OpenVPN client: Route selected ports through VPN

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
mechhisui
OpenVpn Newbie
Posts: 2
Joined: Mon Dec 31, 2012 5:21 pm

OpenVPN client: Route selected ports through VPN

Post by mechhisui » Mon Dec 31, 2012 5:25 pm

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!

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: OpenVPN client: Route selected ports through VPN

Post by maikcat » Tue Jan 01, 2013 6:17 pm

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.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

mechhisui
OpenVpn Newbie
Posts: 2
Joined: Mon Dec 31, 2012 5:21 pm

Re: OpenVPN client: Route selected ports through VPN

Post by mechhisui » Tue Jan 01, 2013 9:03 pm

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.

Post Reply