On Sunday 26 June 2016 12:48 PM, Gert Doering wrote:
> Hi,
> 
> On Sun, Jun 26, 2016 at 11:50:43AM -0400, Sachin Garg wrote:
>> Following 2 netsh set the address (but why twice?)
>>
>> Sun Jun 26 11:34:44 2016 NETSH: C:\WINDOWS\system32\netsh.exe interface
>> ipv6 set address WinTAP 2001:0db8:dead:beef:beef:dead:2525:1018 store=active
>> Sun Jun 26 11:34:44 2016 NETSH: C:\WINDOWS\system32\netsh.exe interface
>> ipv6 set address WinTAP 2001:0db8:dead:beef:beef:dead:2525:1018 store=active
>>
>> This sets teh route. Again why twice?
> 
> The duplicate log entry is a bit weird - it shouldn't be doing this
> (but if there is no error, it's likely that it did not actually *do* it
> twice, just the line in the log duplicated - for whatever reason).

Found the issue. It was actually at my end. I had both host.ovpn and
host-tcp.ovpn files in the config directory. First the OpenVPN service
started OVPN on the host.ovpn and then on the host-tcp.ovpn. This OVPN
service failed, but *after* assigning the address. See the log below:

Sun Jun 26 13:14:30 2016 PUSH: Received control message:
'PUSH_REPLY,ifconfig-ipv6 2001:0db8:dead:beef:beef:dead:2575:d000/112
2001:470:d:76:67:d:2575:1,topology subnet,tun-ipv6,route-gateway
172.25.75.1,route-ipv6
2001:0db8:dead:beef:beef:dead:2575::/112,route-ipv6
2000::/3,redirect-gateway def1 ipv6 !ipv4,dhcp-option DNS
8.8.8.8,dhcp-option DNS 8.8.4.4,ping 10,ping-restart 30,ifconfig
192.168.75.150 255.255.255.0'
Sun Jun 26 13:14:30 2016 Options error: unknown --redirect-gateway flag:
ipv6
Sun Jun 26 13:14:30 2016 Options error: dhcp-option parameter DNS
'2604:180::5fae:1d32' must be an IP address
Sun Jun 26 13:14:30 2016 Options error: dhcp-option parameter DNS
'2001:470:20::2' must be an IP address
Sun Jun 26 13:14:30 2016 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jun 26 13:14:30 2016 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jun 26 13:14:30 2016 OPTIONS IMPORT: route options modified
Sun Jun 26 13:14:30 2016 OPTIONS IMPORT: route-related options modified
Sun Jun 26 13:14:30 2016 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option
options modified
Sun Jun 26 13:14:30 2016 do_ifconfig, tt->ipv6=1,
tt->did_ifconfig_ipv6_setup=1
Sun Jun 26 13:14:31 2016 NETSH: C:\WINDOWS\system32\netsh.exe interface
ipv6 set address WinTAP 2001:0db8:dead:beef:beef:dead:2575:d000 store=active
Sun Jun 26 13:14:31 2016
add_route_ipv6(2001:0db8:dead:beef:beef:dead:2575:0/112 ->
2001:0db8:dead:beef:beef:dead:2575:d000 metric 0) dev WinTAP
Sun Jun 26 13:14:31 2016 C:\WINDOWS\system32\netsh.exe interface ipv6
add route 2001:0db8:dead:beef:beef:dead:2575:0/112 WinTAP fe80::8
store=active
Sun Jun 26 13:14:31 2016 env_block: add
PATH=C:\Windows\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Sun Jun 26 13:14:31 2016 ERROR: Windows route add ipv6 command failed:
returned error code 1
Sun Jun 26 13:14:31 2016 open_tun, tt->ipv6=1
Sun Jun 26 13:14:31 2016 CreateFile failed on TAP device:
\\.\Global\{5523AAA4-F6DC-4D52-8127-D059321E6F8D}.tap
Sun Jun 26 13:14:31 2016 All TAP-Windows adapters on this system are
currently in use.
Sun Jun 26 13:14:31 2016 Exiting due to fatal error

Stopping the OVPN service, starting the host-ctcp.ovpn via OpenVPN GUI,
disconnecting, the renaming host-tcp.ovpn to host-ovpn.ovpn.xyz and
re-starting OpenVPN service does fix this.

Sorry for the trouble and thanks for all your help.

>> This deletes the address and the route ...
>>
>> Sun Jun 26 11:38:27 2016 C:\WINDOWS\system32\netsh.exe interface ipv6
>> delete route 2001:0db8:dead:beef:beef:dead:2525:0/112 WinTAP fe80::8
>> store=active
>> Sun Jun 26 11:38:27 2016 NETSH: C:\WINDOWS\system32\netsh.exe interface
>> ipv6 delete address WinTAP 2001:0db8:dead:beef:beef:dead:2525:1018
>> store=active
>> Sun Jun 26 11:38:27 2016 NETSH: C:\WINDOWS\system32\netsh.exe interface
>> ipv6 delete address WinTAP 2001:0db8:dead:beef:beef:dead:2525:1018
>> store=active
>>
>> So, OpenVPN does clean up after itself. 
> 
> Indeed.  So if you do "netstat -r" after OpenVPN quits, the address should
> be gone - so, no idea why it reappears if you connect to the :2575: TCP
> server.
> 
> What is the TCP server pushing?
> 
>> Wild guess: does the fact that
>> the DHCP leases are for a year have to do something with this?
> 
> No DHCP involved in IPv6 handling.
> 
> gert

Thanks,
Sachin




------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to