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

    Site to Site OpenVPN Routing

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 2.3k 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.
    • P
      phospher
      last edited by

      Hi, I'm running pfsense 2.0RC1. I have a Site to Site OpenVPN setup. I'm trying to route all traffic from one end of the tunnel through the other end of the tunnel. This way I can control all internet traffic flows from one firewall. If I add a default route and point it to use the gateway of the vpn tunnel shouldn't this route all traffic out the other end? I've tried this and I see the packets arrive at the remote end of the tunnel as expected. However, the packets never get returned.  Has anyone done this or can anyone point me in the right direction?

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

        The easiest way is on the client to add "redirect-gateway def1;" into the custom options, which will redirect the default gateway over the VPN.

        Alternately, if you are on a recent 2.0 snapshot you should also get a dynamic gateway entry under System > Routing for the VPN connection and then you can use policy routing to selectively route traffic from the LAN side over the VPN.

        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.