aprovpn / ics-openvpn

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

Wrong IPv6 route set #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to route all IPv6 traffic via VPN tunnel. For that reason I set in 
server config
push "route-ipv6 2000::/3"
in order to route the current allocated public IPv6 space.

The client receives the route:
-PUSH: Received control message: 'PUSH_REPLY,ifconfig-ipv6 
2a01:xxx:xxxx:xx::xxxx/66 2a01:xxx:xxxx:xx::1,redirect-gateway def1 
bypass-dhcp,route-ipv6 2000::/3,...
-ROUTE6: default_gateway=UNDEF
-do_ifconfig, tt->ipv6=1, tt->did_ifconfig_ipv6_setup=1
-add_route_ipv6(2000::/3 -> 2a01:xxx:xxxx:xx::x metric -1) dev (null)

The installed route however is wrong:
-Routen: 0.0.0.0/1, 128.0.0.0/1 ::/3
-ausgeschlossene Routen: 
-Installierte Routen (VpnService): 0.0.0.0/1, 128.0.0.0/1 ::/3

The wrong route is also shown in terminal:
$ ip -f inet6 route show
::/3 dev tun0  metric 1024
...

What is the expected output?
I expect the route 2000::/3 installed instead.

What mobile phone are you using?
Samsung S4 Mini with Android 4.3.1, Cyanogenmod 10.2.1, OpenVPN for Android 
0.6.17

The OpenVPN client from openvpn.net works without problems and installes the 
correct route.

Original issue reported on code.google.com by fr...@pinky.sax.de on 16 Aug 2014 at 3:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yes. The Ipv6 parsing, setting code was terrible broken. It should be fixed in 
the next version. If you want to try you can use: 
http://plai.de/android/ics-openvpn-0.6.18pre.apk

Original comment by arne@rfc2549.org on 22 Sep 2014 at 9:22

GoogleCodeExporter commented 9 years ago
Fixed by commit #3141156829ce

Original comment by arne@rfc2549.org on 26 Sep 2014 at 9:08