Wireguard Surfshark Dedicated Server
-
I would like to setup wireguard tunnel between my pfsense box and my dedicated server provided by surfshark and route all LAN traffic through it.
All the information the provided is as follows:Use this configuration with WireGuard client
[Interface]
Address = x.x.x.x/16
PrivateKey = *****************************
DNS = xx.xxx.xx.xx, xx.xx.xx.xx
[Peer]
PublicKey = ************************************
AllowedIPs = 0.0.0.0/0
Endpoint = xx.xx.xx.xx : 51820I am new to both pfsense and wireguard and surfshark has not provided much help apart from the masked details above
I have found several tutorials online (none of them specifically focused on surfshark dedicated IP) and i tried to make it work without luck.Any pointers ??
-
Your WG VPN may be up and running fine and you just don't know it...
From each device: ping the far end WG tunnel IP. If you can ping the tunnel IPs, your VPN is working fine.
If your VPN is working fine but there's still no traffic through it, it's probably because:
-
You didn't set up the static routes.
-
You have OpenVPN entries on your pfSense box that are interfering. The Wireguard module is a little bit broken in that OpenVPN entries (even disabled ones), mess up WG.
I fixed this issue by deleting all of my OVPN entries.
Others have fixed this issue by deleting the WG peers and tunnels and re-installing them.
I highly suggest you backup your pfSense before deleting anything.
One other thing you may try is to explicitly add your tunnel's far end IP in the Allowed IPs (/32). With 0.0.0.0, it shouldn't matter but the WG module is a little flaky and this might fix it:
[Peer]
PublicKey = ************************************
AllowedIPs = x.x.x.x/32
AllowedIPs = 0.0.0.0/0 -