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

    Subnet eth3 to OpenVPN client

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 1.1k Views
    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.
    • J
      jdsimonds
      last edited by

      Hello,

      Right now I'm using a router with OpenVPN to connect machines to a remote OpenVPN server. Is there a way to make a subnet on eth3 use the pfsense openvpm client to connect to the openvpn server while leaving the 2(private/guest) other subnets on my default wan?

      Thank You for any help in this!
      Jason Simonds

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

        Yes, you can specify the gateway to use in the firewall rules:
        https://doc.pfsense.org/index.php/What_is_policy_routing
        So add a separate rule for each private subnet and state the gateway in the advanced options of the rule.

        Ensure that the VPN server doesn't push the default route to the client. This can be prevented by selecting "Don't pull routes" in the vpn client setting.

        1 Reply Last reply Reply Quote 0
        • J
          jdsimonds
          last edited by

          Thank You so much!!!1

          I did not even know what to search for.

          And when I finally finish my server rack it will look so much better with out a router just sitting there for my OpenVPN needs.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.