Overriding routes on Openvpn client, iproute, iptables2

view full story

http://serverfault.com – I am looking for some way to route packets based on its destination ports switching regular internet connection and established openvpn tunnel. This is my configuration OpenVPN server ( I have no control over it ) OpenVPN client running ubuntu wlan0 - internet connected if Several routes applied on connection to openvpn from server: /sbin/route add -net netmask gw /sbin/route add -net netmask gw /sbin/route add -net netmask gw And I need to route packets regarding it's destinat (HowTos)