OpenVPN Connect with static routes?
Posted: Thu May 01, 2014 12:53 pm
I have an OpenVPN server, and an Android client that works fine when pushing the redirect-gateway option. A particular wifi network I connect to has two local subnets. I'd like to push a static route to bypass the vpn for these two subnets.
From reading the docs, I think the following should do the trick:
push "route x.x.x.x y.y.y.y net_gateway"
push "redirect-gateway def1 bypass-dhcp"
and indeed both client and server accept the config, and the client shows in its log that it has processed it, but tcpdump on the server shows that all packets for the intended target static are still sent to the vpn.
Are the route and redirect-gateway options mutually exclusive on the android platform?
Cheers,
Paul
From reading the docs, I think the following should do the trick:
push "route x.x.x.x y.y.y.y net_gateway"
push "redirect-gateway def1 bypass-dhcp"
and indeed both client and server accept the config, and the client shows in its log that it has processed it, but tcpdump on the server shows that all packets for the intended target static are still sent to the vpn.
Are the route and redirect-gateway options mutually exclusive on the android platform?
Cheers,
Paul