root@OPNsense-1:~ # less /usr/local/etc/wireguard/wg0.conf[Interface]Address = 10.10.10.1/24DNS = 192.168.106.5,192.168.106.6ListenPort = 51820PrivateKey = geheim[Peer]PublicKey = auch_geheimAllowedIPs = 192.168.106.0/24,10.10.10.2/32
root@OPNsense-1:~ # /usr/local/etc/rc.d/wireguard restartwg-quick: `wg0' 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[#] wg setconf wg0 /dev/stdin[#] ifconfig wg0 inet 10.10.10.1/24 alias[#] ifconfig wg0 mtu 1420[#] ifconfig wg0 up[#] resolvconf -a wg0 -x[#] route -q -n add -inet 10.10.10.2/32 -interface wg0[#] route -q -n add -inet 192.168.106.0/24 -interface wg0[#] resolvconf -d wg0[#] rm -f /var/run/wireguard/wg0.sock
2021-04-04T20:29:12 kernel wg0: link state changed to DOWN 2021-04-04T20:29:12 kernel tun0: changing name to 'wg0' 2021-04-04T20:29:12 kernel tun0: link state changed to UP
oot@gw:~ # less /usr/local/etc/wireguard/wg0.conf[Interface]Address = 10.11.100.1/24DNS = 10.11.10.254ListenPort = 51820PrivateKey = =[Peer]PublicKey = =AllowedIPs = 10.11.100.2/32[Peer]PublicKey = CGfM0p+/rQPwNjGb/YUw=AllowedIPs = 10.11.100.5/32[Peer]PublicKey = /=AllowedIPs = 10.11.100.4/32
root@gw:~ # netstat -u -l -p udp | grep 51820udp6 0 0 *.51820 *.*udp4 0 0 *.51820 *.*root@gw:~ #