Strange happening and on internet is nothing pointing.
I've setup the OpenVPN server with two TAP adapters: OpenVPN0 and OpenVPN1. Everything works normally. But on system reboot, the second "openvpn.exe" process hangs. OpenVPN is set to run automatically on system boot. This is what I get:
Fri Jan 06 06:55:43 2012 us=968000 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Fri Jan 06 06:55:44 2012 us=78000 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Fri Jan 06 06:55:44 2012 us=609000 Diffie-Hellman initialized with 1024 bit key
Fri Jan 06 06:55:44 2012 us=656000 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Fri Jan 06 06:55:44 2012 us=656000 Socket Buffers: R=[8192->8192] S=[8192->8192]
Fri Jan 06 06:55:44 2012 us=703000 ROUTE default_gateway=ISP gateway
Fri Jan 06 06:55:44 2012 us=703000 TAP-WIN32 device [OpenVPN1] opened: \\.\Global\{269F9435-4DC9-407D-BB8E-00D5EA03E8CA}.tap
Fri Jan 06 06:55:44 2012 us=703000 TAP-Win32 Driver Version 9.9
Fri Jan 06 06:55:44 2012 us=703000 TAP-Win32 MTU=1500
Fri Jan 06 06:55:44 2012 us=703000 Sleeping for 60 seconds...
Fri Jan 06 06:56:44 2012 us=703000 NOTE: FlushIpNetTable failed on interface [2] {269F9435-4DC9-407D-BB8E-00D5EA03E8CA} (status=1413) : Invalid index.
Fri Jan 06 06:56:44 2012 us=718000 GetAdaptersInfo #2 failed (status=111) : The file name is too long.
Which file name is too long, I don't understand. And the process that handles OpenVPN1 is running at 100% CPU. Just stopping the OpenVPN service will not have. This hanged process "openvpn.exe" will remain, even "openvpnserv.exe" has stopped. I have to manually kill the hanged process.
Starting the OpenVPN service again - does not bring any error, and both VPN tunnels works. The problem occurs only on system boot.