longzuyuan / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

route statements misinterpreted #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

My configuration creates a default route to the VPN then adds a few exceptions 
by using lines like:

route 101.0.0.0 255.0.0.0 net_gateway default

Unfortunately the OpenVPN app rewrites these to:

route 101.0.0.0 255.0.0.0

Which is the equivalent of:

route 101.0.0.0 255.0.0.0 vpn_gateway

Which is the opposite of the original statement.

What is the expected output? What do you see instead?

Expected: routes that are an exception to the default route. 
What do I see: routes that (redundantly) match the default route.

What mobile phone are you using?

Samsung S3.

Which Android Version and stock ROM or aftermarket like cyanogenmod?

Android 4.1.1 stock.

Original issue reported on code.google.com by ni...@peen.net on 31 Aug 2012 at 1:03

GoogleCodeExporter commented 9 years ago
Yes the current behavior is wrong but I can only add positive routes with the 
VPNService API.

I will add a warning that routes that are which do not use the VPN are not 
supported. 

One could split the defualt in many small routes that exclude the routes with 
net_gateway but I don't know if that is a good approach.

Original comment by arne@rfc2549.org on 31 Aug 2012 at 1:16

GoogleCodeExporter commented 9 years ago
Thanks. Will try and see how that works out.

Original comment by ni...@peen.net on 31 Aug 2012 at 1:49

GoogleCodeExporter commented 9 years ago
Closing because of inactivity

Original comment by arne@rfc2549.org on 15 Dec 2012 at 8:08