Hey guys.

Having a bit of a headache trying to get wireguard working properly through my pfsense router.

Configuration overview: VPS wireguard server set to forward all traffic from peers (it’s operating as a self-hosted VPN). I have a port on my router we’ll call OPT1 that I want to traffic all connections through wireguard to the VPN.

So far I have the VPS and pfsense connected successful through wireguard. They are making active handshakes and I can ping between them perfectly fine.

I followed the documentation, but my windows PC connected directly to OPT1 can’t access the internet. From the PC I can ping the DHCP server of OPT1 as well as the wireguard tunnel, but I can’t ping anything outside of that. I’m passing all traffic from OPT1 subnet to the wireguard interface in both OPT1 firewall rules and the wireguard interface rules.

I’m sure many of you have dealt with this configuration before. Does this issue sound familiar?

  • brownmustardminionOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 months ago

    Problem solved. The firewall was attempting to pass traffic through the default gateway. You have to create a firewall rule to allow whatever traffic you want but in the advanced settings you need to select the wireguard gateway instead.