root@firewall:~ # cat /var/log/system.log | grep wgAug 2 20:52:13 firewall kernel: tun0: changing name to 'wg0'Aug 2 20:52:13 firewall kernel: wg0: deletion failed: 3Aug 2 20:52:13 firewall kernel: wg0: link state changed to DOWNAug 2 20:56:30 firewall kernel: tun0: changing name to 'wg0'Aug 2 20:56:30 firewall kernel: wg0: deletion failed: 3Aug 2 20:56:30 firewall kernel: wg0: link state changed to DOWNAug 2 20:58:07 firewall kernel: tun0: changing name to 'wg0'Aug 2 20:58:08 firewall kernel: wg0: deletion failed: 3Aug 2 20:58:08 firewall kernel: wg0: link state changed to DOWNAug 2 21:12:08 firewall kernel: tun0: changing name to 'wg0'Aug 2 21:12:09 firewall kernel: wg0: deletion failed: 3Aug 2 21:12:09 firewall kernel: wg0: link state changed to DOWNAug 2 21:13:46 firewall kernel: tun0: changing name to 'wg0'Aug 2 21:13:46 firewall kernel: wg0: deletion failed: 3Aug 2 21:13:46 firewall kernel: wg0: link state changed to DOWNAug 2 20:01:26 firewall kernel: ifa_maintain_loopback_route: deletion failed for interface wg0: 3Aug 2 20:01:26 firewall kernel: wg0: link state changed to DOWN
Hi Michael,I tried the same using service wireguard restart and the method you mentioned here but the result is same, the service is not coming up. Do I need to reboot the system manually after upgrade?Regards,Bobby Thomas
Someone pointed out in another post that if the endpoints have two different networks shown in the allowed IP's field, then Wireguard will not start. Removing access to the local network WILL allow the configuration to display, but defeats the purpose of the VPN.
Deleting the 192.161.1.0/24 from the list, leaving only the Wireguard-IP/32 in all endpoints allows it to startAlso I can still ssh to a LAN machine at 192.168.1.100 so there seems to be no need to have that local setting in the endpoint config.The web ui is also accessible with this setting.
Quote from: bobbythomas on August 02, 2020, 08:16:50 pmHi Michael,I tried the same using service wireguard restart and the method you mentioned here but the result is same, the service is not coming up. Do I need to reboot the system manually after upgrade?Regards,Bobby Thomas/usr/local/etc/rc.d/wireguard restartVia consoleI need this output
root@firewall:~ # /usr/local/etc/rc.d/wireguard restartwg-quick: `wg0' is not a WireGuard interface wireguard-go wg0INFO: (wg0) 2020/08/03 14:56:06 Starting wireguard-go version 0.0.20200320 wg setconf wg0 /tmp/tmp.UtpkrEW8/sh-np.dztf3d ifconfig wg0 inet 10.1.1.1/32 10.1.1.1 alias ifconfig wg0 mtu 1420 ifconfig wg0 up route -q -n add -inet 10.1.1.3/32 -interface wg0 route -q -n add -inet 10.1.1.2/32 -interface wg0 route -q -n add -inet 10.1.1.1/32 -interface wg0 route -q -n add -inet 192.168.2.0/24 -interface wg0 rm -f /var/run/wireguard/wg0.sockroot@firewall:~ #
route -q -n add -inet 192.168.2.0/24 -interface wg0Is this your LAN?
But it points to wireguard interface .. can you remove it?
Quote from: mimugmail on August 03, 2020, 12:43:19 pmBut it points to wireguard interface .. can you remove it?Yeah, I'll remove that, not sure why it's not working now, it was working previously with the same config in 20.1. I will remove that and try.Thanks and regards,Bobby Thomas
root@firewall:~ # service wireguard restartwg-quick: `wg0' is not a WireGuard interface wireguard-go wg0INFO: (wg0) 2020/08/03 16:29:35 Starting wireguard-go version 0.0.20200320 wg setconf wg0 /tmp/tmp.HQjWBJgx/sh-np.rUTYLg ifconfig wg0 inet 10.1.1.1/32 10.1.1.1 alias ifconfig wg0 mtu 1420 ifconfig wg0 up route -q -n add -inet 10.1.1.3/32 -interface wg0 route -q -n add -inet 10.1.1.2/32 -interface wg0 route -q -n add -inet 10.1.1.1/32 -interface wg0 route -q -n add -inet 192.168.1.0/24 -interface wg0 rm -f /var/run/wireguard/wg0.sockroot@firewall:~ #