OpenVPN Client in Win7x64 Virtual Machine on Win7x64 Host

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Gary Gilmore
OpenVpn Newbie
Posts: 2
Joined: Sat Apr 14, 2012 10:10 am

OpenVPN Client in Win7x64 Virtual Machine on Win7x64 Host

Post by Gary Gilmore » Sat Apr 14, 2012 10:19 am

Hi,

i am running a Windows 7 64Bit guest (private) on a host with Windows 7 64Bit (work) with a bridged setup. I installed the current client (2.2.2) and transfered my config files. Everything works fine so far, even the connection handshake seems to work correct.

Code: Select all

~
Sat Apr 14 11:52:33 2012 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Apr 14 11:52:33 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Apr 14 11:52:33 2012 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Apr 14 11:52:33 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Apr 14 11:52:33 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Sat Apr 14 11:52:33 2012 [BerndtBox] Peer Connection Initiated with 77.21.68.221:65521
Sat Apr 14 11:52:36 2012 SENT CONTROL [BerndtBox]: 'PUSH_REQUEST' (status=1)
Sat Apr 14 11:52:36 2012 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 10.18.18.254,dhcp-option WINS 10.18.18.1,route 10.18.19.0 255.255.255.0,route-gateway 10.18.19.254,route 10.18.18.0 255.255.255.0,ping 10,ping-restart 120,ifconfig 10.18.19.66 255.255.255.0'
Sat Apr 14 11:52:36 2012 OPTIONS IMPORT: timers and/or timeouts modified
Sat Apr 14 11:52:36 2012 OPTIONS IMPORT: --ifconfig/up options modified
Sat Apr 14 11:52:36 2012 OPTIONS IMPORT: route options modified
Sat Apr 14 11:52:36 2012 OPTIONS IMPORT: route-related options modified
Sat Apr 14 11:52:36 2012 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Apr 14 11:52:36 2012 ROUTE default_gateway=192.168.178.1
Sat Apr 14 11:52:36 2012 TAP-WIN32 device [LAN-Verbindung 2] opened: \\.\Global\{5FD07958-6A13-4E4F-8354-AB102F34162A}.tap
Sat Apr 14 11:52:36 2012 TAP-Win32 Driver Version 9.9 
Sat Apr 14 11:52:36 2012 TAP-Win32 MTU=1500
Sat Apr 14 11:52:36 2012 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.18.19.66/255.255.255.0 on interface {5FD07958-6A13-4E4F-8354-AB102F34162A} [DHCP-serv: 10.18.19.0, lease-time: 31536000]
Sat Apr 14 11:52:36 2012 Successful ARP Flush on interface [25] {5FD07958-6A13-4E4F-8354-AB102F34162A}
Sat Apr 14 11:52:41 2012 TEST ROUTES: 2/2 succeeded len=2 ret=1 a=0 u/d=up
Sat Apr 14 11:52:41 2012 C:\WINDOWS\system32\route.exe ADD 10.18.19.0 MASK 255.255.255.0 10.18.19.254
Sat Apr 14 11:52:41 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sat Apr 14 11:52:41 2012 Route addition via IPAPI succeeded [adaptive]
Sat Apr 14 11:52:41 2012 C:\WINDOWS\system32\route.exe ADD 10.18.18.0 MASK 255.255.255.0 10.18.19.254
Sat Apr 14 11:52:41 2012 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sat Apr 14 11:52:41 2012 Route addition via IPAPI succeeded [adaptive]
Sat Apr 14 11:52:41 2012 Initialization Sequence Completed
But after that, this happens:

Code: Select all

Sat Apr 14 11:52:54 2012 Connection reset, restarting [0]
Sat Apr 14 11:52:54 2012 TCP/UDP: Closing socket
Sat Apr 14 11:52:54 2012 SIGUSR1[soft,connection-reset] received, process restarting
Sat Apr 14 11:52:54 2012 Restart pause, 5 second(s)
And the whole connection prozess starts again.

Do i have to configure something special because of the VM?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN Client in Win7x64 Virtual Machine on Win7x64 Hos

Post by janjust » Mon Apr 16, 2012 7:22 am

this message
Connection reset, restarting [0]
suggests the other end has reset the connection - what shows up in the server log? is this a TCP or UDP based connection?

Gary Gilmore
OpenVpn Newbie
Posts: 2
Joined: Sat Apr 14, 2012 10:10 am

Re: OpenVPN Client in Win7x64 Virtual Machine on Win7x64 Hos

Post by Gary Gilmore » Wed Apr 18, 2012 12:04 pm

The problem has been solved. Shame on me, i just had my old notebook trieing to build up the same connection as the new one. So the connections has been closed the same moment the other device tried to connect :(.

Post Reply