route traffic of one network adapters, two connected

How to customize and extend your OpenVPN installation.
Locked
elios115
OpenVpn Newbie
Posts: 8
Joined: Tue Jan 10, 2012 4:58 am

route traffic of one network adapters, two connected

Post by elios115 » Tue Jan 10, 2012 5:04 am

i am just a newbie here hopefully i ll be able to get help.
i have two network adapters on my computer.both wireless connecting to the same network.
i m a client of a vpn service using ovpn since i am in a country where almost everything is blocked.
the server side of the vpn redirects all client network traffic when connected.
how can i redirect the traffic of one of the two wireless adapters through the vpn tunnel without the other one.
will bridging the adapter needed to be tunneled with the tap adapter created by the ovpn connection will do?
thank you for your help

elios115
OpenVpn Newbie
Posts: 8
Joined: Tue Jan 10, 2012 4:58 am

Re: route traffic of one network adapters, two connected

Post by elios115 » Wed Jan 11, 2012 9:33 am

anybody??
after some research i found that using
push route [ipaddress to skip] 255.255.255.0 gateway(which is the ip of my router)
eg push route 192.168.2.3 255.255.255.0 192.168.2.1

but its not working taking into consideration that 192.168.2.3 is the of the network that i dont want its traffic to be redirected the tunnel.
if the server side use push "redirect-gateway def1" will the upper push route override the server one?

Locked