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

    Routing specific IP through OpenVPN connection, everything else as normal.

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 1.2k 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.
    • A
      Atlan
      last edited by

      I am looking for the best approach to route a specific host on my network through an OpenVPN connection running on pfSense. All DNS lookups and traffic coming and going involving this host should route through the VPN.

      So far, I have configured an OpenVPN server remotely, and verified it can be connected to via my laptop and route internet traffic through it. That part seems fine.

      I can also configure the connection in pfSense as a client connection and it appears to connect. When I go to the pfSense main status page, I see the connection as up.

      I’ve gone to Interfaces (Assign) and added a new interface from the dropdown, specifying the active VPN connection. The only thing I did at this point was enable and rename the interface. All interface options were left blank/none. After restarting the OpenVPN connection, the interface IP matches that of the Client OpenVPN connection virtual IP.

      At this point - I am a bit lost as to what else needs to be configured in order for this to work (if I am even approaching this problem correctly). I have set a floating rule that says traffic leaving the host 10.0.10.122 is to use the VPN gateway. Do I need to define some sort of route?

      I don’t mind starting over from scratch, I have been hitting a wall with this for several days now. Any guidance would be greatly appreciated.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Sounds like you did the pfSense part correct (assign the interface, use policy routing on the rule) – make sure the far side is passing through the traffic and performing NAT on the traffic exiting from that local client. That part is up to the far side, not pfSense.

        You could try doing outbound NAT on the pfSense side on the assigned OpenVPN interface, but that could end up with double NAT and problems on the far side also.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • L
          lepri13
          last edited by

          I have the same issue with the VPN. And same config.
          Can you recommend the VPN provider?

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