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

    Route all traffic across openvpn tunnel

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 6.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.
    • M
      mohammadreza73
      last edited by

      hello i have client-to-site openvpn that lunch in pfsense and with client export utility use it in windows clinet to access to my servers in my network .
      how can i route all traffic include internet traffic and everything acros the openvpn tunnel and use internet in client with my company IPs

      is it possible ?

      i try push route 0.0.0.0 mask 0.0.0.0 and its not work

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

        In the server settings check "Redirect Gateway". This should push the default route to the client. Remember that you run OpenVPN on Windows with admin privileges.

        On the pfSense server go to Firewall > NAT > Outbound and check if there is a rule for WAN interface, with source = your vpn tunnel network and NAT Address = WAN address. If it isn't there, add it manually.

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