Send Traffic over OpenVPN
-
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
-
@jdonks The best way I've found to route traffic over a VPN reliably is to
-
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
-
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.
-
-
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