root@router:~ # /usr/local/etc/rc.d/wireguard restartwg-quick: `wg0' is not a WireGuard interfacewg-quick: `wg1' is not a WireGuard interface[#] ifconfig wg create name wg0[!] Missing WireGuard kernel support (ifconfig: SIOCIFCREATE2: Invalid argument). Falling back to slow userspace implementation.[#] wireguard-go wg0┌──────────────────────────────────────────────────────┐│ ││ Running wireguard-go is not required because this ││ kernel has first class support for WireGuard. For ││ information on installing the kernel module, ││ please visit: ││ https://www.wireguard.com/install/ ││ │└──────────────────────────────────────────────────────┘[#] wg setconf wg0 /dev/stdin[#] ifconfig wg0 inet ip/24 alias[#] ifconfig wg0 inet6 ip/64 alias[#] ifconfig wg0 mtu 1420[#] ifconfig wg0 up[+] Backgrounding route monitor[#] route add 192.168.20.1 -iface wg0add host 192.168.20.1: gateway wg0 fib 0: route already in table[#] rm -f /var/run/wireguard/wg0.sock[#] ifconfig wg create name wg1[!] Missing WireGuard kernel support (ifconfig: SIOCIFCREATE2: Invalid argument). Falling back to slow userspace implementation.[#] wireguard-go wg1┌──────────────────────────────────────────────────────┐│ ││ Running wireguard-go is not required because this ││ kernel has first class support for WireGuard. For ││ information on installing the kernel module, ││ please visit: ││ https://www.wireguard.com/install/ ││ │└──────────────────────────────────────────────────────┘[#] wg setconf wg1 /dev/stdin[#] ifconfig wg1 inet ip/24 alias[#] ifconfig wg1 inet6 ip/64 alias[#] ifconfig wg1 mtu 1420[#] ifconfig wg1 up[+] Backgrounding route monitor[#] route add 192.168.30.1 -iface wg1add host 192.168.30.1: gateway wg1 fib 0: route already in table[#] rm -f /var/run/wireguard/wg1.sockroot@router:~ #
PostUp = route add 192.168.20.1 -iface %iPostDown = route del 192.168.20.1 -iface %i
LANVPNFRANCEvlan02 12:29:43.188234 IP 192.168.20.100 > 8.8.8.8: ICMP echo request, id 13, seq 37, length 64VLANVPNFRANCEvlan02 12:29:43.188288 IP 192.168.20.1 > 192.168.20.100: ICMP echo reply, id 13, seq 37, length 64