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

    Static Route for OpenVPN interface

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 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.
    • J
      jonnytabpni
      last edited by

      Hi Folks,

      Is there a way to set a default route on the OpenVPN interface. I have a need where remote clients connecting via OpenVPN, need to be able to access a resource, which is only accessible by using pfsense's static routes table (i.e. there is another hop required on the network).

      Diagram:

      OpenVPN Clients–-->pfsense------>Other Router--------> Resource Needed

      I have OpenVPN set up correctly, as I can see the traffic coming in from the remote clients on the pfsense box, which are destined for the Resource Needed. However, I need a way to tell traffic appearing on the OpenVPN interface on pfsense to use the static routing table so we can go via the Other Router.

      Is this possible?

      Any help is appreciated.

      Thanks

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

        If you do not specify  a gateway in the firewall rules on the OpenVPN tab, it will use the default gateway.

        It's possible the traffic is going the right way but that the other router/far side doesn't have the right routes back to the first pfsense box for the OpenVPN client subnet, or NAT to mask it.

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.