how to pass traffic for port 80 not through openvpn?

Posted by moti on Server Fault See other posts from Server Fault or by moti
Published on 2012-05-13T17:51:29Z Indexed on 2013/10/22 3:57 UTC
Read the original article Hit count: 500

Filed under:
|
|

Is there a way to configure OpenVPN clients to route traffic for HTTP port 80 and HTTPS port 443 directly (i.e. not through the VPN), but through the regular default gateway the clients have. All other traffic should go through the VPN.

My client is running OpenVPN on Windows and my current configuration looks like this:

client
dev tun
proto tcp
remote my-server-2 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ../keys/ca.crt
cert ../keys/client1.crt
key ../keys/client1.key
ns-cert-type server
verb 3
route-metric 1
show-net-up
dhcp-renew
dhcp-release
route-delay 0 120
hand-window 180
management localhost 13010
management-hold
management-query-passwords
management-forget-disconnect
management-signal
auth-user-pass

© Server Fault or respective owner

Related posts about Windows

Related posts about routing