Page 1 of 1

OpenVPN client: Route selected ports through VPN

Posted: Mon Dec 31, 2012 5:25 pm
by mechhisui
Hello there,

apologies in advance if this is the wrong section or the question has been asked before.

I have severe port blocks on my home connection, forcing traffic through a HTTP proxy and blocking all other ports. In order to go around it, I have ordered an OpenVPN service (StrongVPN) that enables me to bypass the block. However, now I'd like to configure OpenVPN so that it does not tunnel the already-open HTTP ports through the VPN connection, since those work just fine directly through the proxy. How would I go about setting this up?

I use Proxifier to tunnel ports 80, 8080 and 443 through the proxy (my OpenVPN connection uses 443) and direct everything else "directly". Any way to have the 80/8080/443 traffic go directly through my connection rather than also through the VPN?

Thank you in advance!

Re: OpenVPN client: Route selected ports through VPN

Posted: Tue Jan 01, 2013 6:17 pm
by maikcat
hi there,
However, now I'd like to configure OpenVPN so that it does not tunnel the already-open HTTP ports through the VPN connection, since those work just fine directly through the proxy. How would I go about setting this up?
you want something that is called policy based routing....

if your client is linux then using iptables to mark packages and iproute
to route them accordingly...

f.e

http://www.policyrouting.org/PolicyRout ... E/TOC.html

Michael.

Re: OpenVPN client: Route selected ports through VPN

Posted: Tue Jan 01, 2013 9:03 pm
by mechhisui
Oh yes, sorry, I forgot to mention that my client is Windows 7.

I have found the following page on the subject of policy-based routing:
http://www.experts-exchange.com/Network ... tools.html

but it seems to refer only to connections to certain IPs, not all IPs on a port/port range.