Hi, On Fri, Jan 26, 2018 at 10:20 AM, Jan Just Keijser <janj...@nikhef.nl> wrote: > Hi Selva, > > > > > On 26-Jan-18 16:08, Selva Nair wrote: >> ...
>>> arrrgh, the important line is missing: >>> ERROR: Windows route add ipv6 command failed: returned error code 1 >> >> Gert has explained the fe80::8 magic. >> >> Here is my guess about the ERROR: The route already existed and so >> errored trying to add again -- most likely from a previous run as it >> seems we have a problem in deleting the route on exit (I guess this is >> on Windows 10) (see Trac 1003: >> https://community.openvpn.net/openvpn/ticket/1003 ) >> >> "netsh int ipv6 show route" will confirm that. >> >> The route destinations have their host bits zeroed out before setting >> route, but those bits reappear (which is strange) in route delete. >> And netsh doesnt like that at least on Windows 10. Gert, any idea why >> this happens? >> > this is on *Windows 7* and indeed that route is never deleted when OpenVPN > exits. Here's the error associated with *that*: > > Fri Jan 26 16:13:08 2018 ERROR: Windows route delete ipv6 command failed: > returned error code 1 > Fri Jan 26 16:13:09 2018 NETSH: C:\Windows\system32\netsh.exe interface ipv6 > delete address vpn0 2001:610:120::200:0:1001 store=active > Fri Jan 26 16:13:09 2018 TAP: DHCP address released > > C:\Users\janjust\OpenVPN\config> C:\Windows\system32\netsh.exe interface > ipv6 delete route 2001:610:120::200:0:1001/112 > interface=17 fe80::8 store=active > The parameter is incorrect. The error is due to the host part (1001) in the route destination -- changing that to C:\Windows\system32\netsh.exe interface ipv6 delete route 2001:610:120::200:0:/112 should succeed. The mystery (at least for me) is where that host part is coming from... Its zeroed out before setting the route, and I thought the same (?) route list pointer is passed in while deleting routes. Selva ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel