X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mail-setup;h=9b9a97c04589f8a356c65d0b0b80260df06dc010;hb=8fc333f8c2d69d0792f3742d4f4351e7acb07d9e;hp=3b281990b11943e0167bd0556db7e153cba0671a;hpb=ce4cacd36c5b5babeea85d0f93771017e6169180;p=distro-setup diff --git a/mail-setup b/mail-setup index 3b28199..9b9a97c 100755 --- a/mail-setup +++ b/mail-setup @@ -468,8 +468,48 @@ EOF # old. #vpnser=mailvpn.service -# todo: this hangs if it cant resolv the endpoint. we -# want it to just retry in the background. +# note: this hangs if it cant resolv the endpoint. we +# want it to just retry in the background. i just use a static ip instead. +# +# Note: at least on t10, on reboot, the service fails to come up according to systemd, but +# in reality it is up and working, then it tries to restart infinitely, and fails +# because it detects that the interface exists. +# +# failing output: +# +# Aug 02 21:59:27 sy wg-quick[2092]: [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1 +# Aug 02 21:59:27 sy wg-quick[2248]: [#] iptables-restore -n +# Aug 02 21:59:27 sy wg-quick[2249]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option? +# Aug 02 21:59:27 sy wg-quick[2259]: [#] iptables-restore -n +# Aug 02 21:59:27 sy wg-quick[2260]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option? +# Aug 02 21:59:27 sy systemd[1]: wg-quick@wgmail.service: Main process exited, code=exited, status=4/NOPERMISSION + + +# successful output. +# Aug 03 14:12:47 sy wg-quick[711336]: [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1 +# Aug 03 14:12:47 sy wg-quick[711384]: [#] iptables-restore -n +# Aug 03 14:12:47 sy wg-quick[711336]: [#] ping -w10 -c1 10.8.0.1 ||: +# Aug 03 14:12:47 sy wg-quick[711389]: PING 10.8.0.1 (10.8.0.1) 56(84) bytes of data. +# Aug 03 14:12:47 sy wg-quick[711389]: 64 bytes from 10.8.0.1: icmp_seq=1 ttl=64 time=73.0 ms +# Aug 03 14:12:47 sy wg-quick[711389]: --- 10.8.0.1 ping statistics --- +# Aug 03 14:12:47 sy wg-quick[711389]: 1 packets transmitted, 1 received, 0% packet loss, time 0ms +# Aug 03 14:12:47 sy wg-quick[711389]: rtt min/avg/max/mdev = 72.993/72.993/72.993/0.000 ms +# Aug 03 14:12:47 sy systemd[1]: Finished WireGuard via wg-quick(8) for wgmail. +# Aug 02 21:59:27 sy systemd[1]: wg-quick@wgmail.service: Failed with result 'exit-code'. +# Aug 02 21:59:27 sy systemd[1]: Failed to start WireGuard via wg-quick(8) for wgmail. +# Aug 02 21:59:47 sy systemd[1]: wg-quick@wgmail.service: Scheduled restart job, restart counter is at 1. +# Aug 02 21:59:47 sy systemd[1]: Stopped WireGuard via wg-quick(8) for wgmail. +# Aug 02 21:59:47 sy systemd[1]: Starting WireGuard via wg-quick(8) for wgmail... +# Aug 02 21:59:47 sy wg-quick[3424]: wg-quick: `wgmail' already exists +# Aug 02 21:59:47 sy systemd[1]: wg-quick@wgmail.service: Main process exited, code=exited, status=1/FAILURE +# Aug 02 21:59:47 sy systemd[1]: wg-quick@wgmail.service: Failed with result 'exit-code'. +# Aug 02 21:59:47 sy systemd[1]: Failed to start WireGuard via wg-quick(8) for wgmail. + + +# According to iptables -S and iptables -t nat -S, +# there are no modifications to iptables rules on a succsfull run, +# and + vpnser=wg-quick@wgmail.service case $HOSTNAME in