Wireguard is not working

Keep in mind I set up a wireguard server and 3 ubuntu clients. we

wg0.conf
Code:
[Interface]
PrivateKey = private.key
address = 11.11.11.6/32
DNS = 8.8.8.8

[Peer]
PublicKey = publicserver.key
AllowedIPs = 0.0.0.0/0
Endpoint = serverip:51820
PersistentKeepalive = 15

rc.conf
Code:
wireguard_enable="YES"
wireguard_interface="wg0"
Code:
[user@dreamerbsd ~]$ doas wg-quick up wg0
[#] ifconfig wg create name wg0
[#] wg setconf wg0 /dev/stdin
[#] ifconfig wg0 inet 10.10.10.6/32 alias
[#] ifconfig wg0 mtu 1420
[#] ifconfig wg0 up
[#] resolvconf -a wg0 -x
[#] route -q -n add -inet 0.0.0.0/1 -interface wg0
[#] route -q -n add -inet 128.0.0.0/1 -interface wg0
[#] route -q -n delete -inet serverip
[#] route -q -n add -inet serverip -gateway 11.11.3.1
[+] Backgrounding route monitor
 
Back
Top