Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    2 different lan via one router and 2 different vpn out on one WAN

    OpenVPN
    2
    2
    106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fogel last edited by

      Hi,

      I have a pfsens router with Openvpn installed.
      I would like to have more then one Openvpn klient, one for each LAN.
      Example all traffic from one LAN always using nordvpn and all traffic from the other is using expressvpn, but they will share WAN connection.

      Is this possible and how shall it be configured?

      1 Reply Last reply Reply Quote 0
      • V
        viragomann last edited by

        In the OpenVPN client settings check "Don't pull routes" to avoid to get pushed the default route by the VPN servers.

        Assign interfaces to each client instance and enable the interfaces.

        Edit the firewall rules on your LANs which are allowing the upstream traffic, expand the advanced options, go down to Gateway and select the appropriate gateway.

        In System > Advanced > Miscellaneous check "Skip rules when gateway is down".

        Consider that firewall rules with stated gateway allow traffic passing that gateway solely. So you will need separate rule to permit internal access it you need, for instance DNS to the pfSense interface.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post