t0ken
I have a very simple question. I connect to my openvpn server at home from work (I use a linux client). On my work network, there are two different gateways I can use: 172.16.1.1 (which is a 50/5 connection) and 172.16.1.5 (a 1.5/1.5 connection). I use 172.16.1.5 as my default gateway for various reason, however I wanted to see if it was possible to have the openvpn connection (i.e., the tun0 device) use the 172.16.1.1 gateway rather than default gateway setup on eth0.
I'd imagine I could do this with a skillfully setup route, however, I figured I'd ask here in parallel with my trial-and-error 🙂
Thanks for any insight anyone can provide.
maikcat
hi there,
the easy way to accomplish what you want is if you have a static ip for openvpn server
simply add a static route to your linux pc pointing to your 2 router,
the hard way is using iptables to accomplish port based routing.
Michael.