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

    Routing all traffic via VPN?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 464 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.
    • G
      ganewbie
      last edited by

      Hello,
      I have OpenVPN working PfSense server, my problem is how to direct all the traffic after successful OVPN connection to go throughout the VPN. I think I need a static rout to direct all VPN private IP to go through the tunnel.
      Cheers,
      ![Screen Shot 2017-03-24 at 7.56.52 AM.png](/public/imported_attachments/1/Screen Shot 2017-03-24 at 7.56.52 AM.png)
      ![Screen Shot 2017-03-24 at 7.56.52 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2017-03-24 at 7.56.52 AM.png_thumb)

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

        Yes, you need a route on the client, but not static.
        The OpenVPN server can push the route to the client after the connection is established, when connection is closed the route is deleted again.

        To set this up go to the server settings and check "Redirect gateway".

        Ensure that there is an outbound NAT rule for the vpn tunnel subnet in place on pfSense with NAT address = WAN address.

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