Site-to-Site OpenVPN, connects but client site loses Internet

  • I have a site-to-site OpenVPN connection between two pfSesne 2.4.4p3 machines. Both work independently fine and have been in use for months. I followed the site-to-site (shared key) example in the pfsense book, section 20.6.

    When site B (client) connects to site A (server), site B loses its internet connections.

    WAN IP - Dynamic, set by Dynamic DNS service to
    LAN network -
    Open VPN Server
    Server Mode - Peer to Peer (Shared Key)
    Shared Key - generated and copied to client-side
    Tunnel network -
    Remote network -

    firewall alias - Site-B =
    firewall WAN rule - UDP from Site-B to WAN address on 1194 (OpenVPN)
    firewall OpenVPN rule - Any from anywhere to anywhere on any port

    WAN IP - dynamic, set by Dynamic DNS service to
    LAN network -
    OpenVPN Client
    Server mode - Peer to Peer (Shared Key)
    Protocol - UDP on IPv4 only
    Interface - WAN
    Server Port - 1194
    Shared key - copied from Site A
    IPv4 Tunnel Network -
    IPv4 Remote Network -

    firewall OpenVPN rule - Any from anywhere to anywhere on any port

    The connection works, and stays up. I can ping hosts at either end ok. However, Site-B cannot get to the internet.

    Any ideas? I have looked at the troubleshooting OpenVPN section, which says check the openvpn logs, but I don't know what I am looking for. I set the logging level to 6, which generates too much. Any guidance on logging level useful to figuring out how to proceed?

    Best regards,

  • @greeners What is Site B's default gateway? System - Routing - Gateways.

  • Two gateways set; regular WAN (public IP redacted), and the Site-A tunnel endpoint. Default gateway - Automatic ?


  • Automatic is the default, and it's showing your WAN as default so that's good.

    Is it possible there's netmask mismatch somewhere? What are your outbound NAT rules for Site B? Please put them in manual mode and then take a screenshot.

  • @KOM thanks for trying to help. Below is a screengrab of the manual outbound NAT mappings. The bottom two are for the tunnel network. The mappings are for remote user VPN. is pfBlocker DNSBL.


  • @greeners is there a chance you have the option to route all traffic through VPN set on client?

  • @BogusException said in Site-to-Site OpenVPN, connects but client site loses Internet:

    route all traffic through VPN

    I did not specifically add an option to route everything through the VPN. I note the client config does have a 'Don't add/remove routes' option - which I have not set.

    pfSense documentation VPN section doesn't mention it, and 'The pfSense Book' doesn't mention this option either.

  • I have fixed my site-to-site config. Unfortunately this was done by deleting the client and server config and recreating them. It now connects but Site B keeps its internet. Backup taken (just in case) and adding desireable tweaks, like adding an interface so the traffic graph is drawn on the homepage. If it breaks again I will restore the backup.

    If I figure out a change that stops internet access for Site-B again, I will post here.

    Thanks to both who tried to help. Much appreciated.

Log in to reply