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

    Send Traffic over OpenVPN

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 3 Posters 555 Views 3 Watching
    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 Offline
      jdonks
      last edited by

      I wanted to send traffic (Bittorrent) over my OpenVPN connection. the OpenVPN connection is up and connected. I tried a firewall rule to send traffic from one IP using thr OpenVPN Gateway but only saw some traffic it didn't connect and complete. Any help would be appreciated

      B 1 Reply Last reply Reply Quote 0
      • B Offline
        bPsdTZpW @jdonks
        last edited by bPsdTZpW

        @jdonks The best way I've found to route traffic over a VPN reliably is to

        1. Setup a gateway group with the VPN gateway at higher priority and the non-VPN WAN gateway(s) at lower priority, then set the default gateway to the gateway group; AND

        2. Tag all the traffic that must be routed to the VPN (using an advanced rule at the relevant LAN interface(s)), then add a floating rule, out direction, on the non-VPN WAN interface(s) to block all packets bearing the tag. This ensures that nothing that must be routed to the VPN escapes out the non-VPN WAN(s) if the VPN goes down.

        1 Reply Last reply Reply Quote 0
        • stephenw10S Offline
          stephenw10 Netgate Administrator
          last edited by

          Bittorrent is a special case because it generally relies on incoming connections too if you are seeding and want good performance. That may not be possible via a commercial VPN provider.

          But routing all outbound traffic from a particular internal IP via the VPN is certainly possible.
          It should only require a policy routing rule to do so.

          Steve

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