windows: netsh command failed: returned error code 1
On some widows systems openvpn doesn't work with the following log:
Thu Sep 05 17:51:16 2019 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Jun 28 2018
Thu Sep 05 17:51:16 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Thu Sep 05 17:51:16 2019 library versions: OpenSSL 1.1.0h 27 Mar 2018, LZO 2.10
Thu Sep 05 17:51:16 2019 Deprecated TLS cipher name 'DHE-RSA-AES128-SHA', please use IANA name 'TLS-DHE-RSA-WITH-AES-128-CBC-SHA'
Thu Sep 05 17:51:16 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]212.83.143.67:443
Thu Sep 05 17:51:16 2019 Attempting to establish TCP connection with [AF_INET]212.83.143.67:443 [nonblock]
Thu Sep 05 17:51:17 2019 TCP connection established with [AF_INET]212.83.143.67:443
Thu Sep 05 17:51:17 2019 TCPv4_CLIENT link local: (not bound)
Thu Sep 05 17:51:17 2019 TCPv4_CLIENT link remote: [AF_INET]212.83.143.67:443
Thu Sep 05 17:51:18 2019 [hoatzin.riseup.net] Peer Connection Initiated with [AF_INET]212.83.143.67:443
Thu Sep 05 17:51:19 2019 open_tun
Thu Sep 05 17:51:19 2019 TAP-WIN32 device [Ethernet 3] opened: \\.\Global\{0B3FF282-2948-4843-969F-8AE98ECB74A5}.tap
Thu Sep 05 17:51:19 2019 Set TAP-Windows TUN subnet mode network/local/netmask = 10.41.0.0/10.41.0.179/255.255.248.0 [SUCCEEDED]
Thu Sep 05 17:51:19 2019 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.41.0.179/255.255.248.0 on interface {0B3FF282-2948-4843-969F-8AE98ECB74A5} [DHCP-serv: 10.41.7.254, lease-time: 31536000]
Thu Sep 05 17:51:19 2019 Successful ARP Flush on interface [3] {0B3FF282-2948-4843-969F-8AE98ECB74A5}
Thu Sep 05 17:51:19 2019 do_ifconfig, tt->did_ifconfig_ipv6_setup=1
Thu Sep 05 17:51:20 2019 NETSH: C:\WINDOWS\system32\netsh.exe interface ipv6 set address interface=3 2001:db8:123::10b1 store=active
Thu Sep 05 17:51:20 2019 ERROR: netsh command failed: returned error code 1
Thu Sep 05 17:51:25 2019 NETSH: C:\WINDOWS\system32\netsh.exe interface ipv6 set address interface=3 2001:db8:123::10b1 store=active
Thu Sep 05 17:51:25 2019 ERROR: netsh command failed: returned error code 1
Thu Sep 05 17:51:30 2019 NETSH: C:\WINDOWS\system32\netsh.exe interface ipv6 set address interface=3 2001:db8:123::10b1 store=active
Thu Sep 05 17:51:30 2019 ERROR: netsh command failed: returned error code 1
Thu Sep 05 17:51:35 2019 NETSH: C:\WINDOWS\system32\netsh.exe interface ipv6 set address interface=3 2001:db8:123::10b1 store=active
Thu Sep 05 17:51:35 2019 ERROR: netsh command failed: returned error code 1
Thu Sep 05 17:51:39 2019 NETSH: command failed
Thu Sep 05 17:51:39 2019 Exiting due to fatal error