[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Why 2 openvpn clients will all disconnect at same time?


  • Subject: Re: [Openvpn-users] Why 2 openvpn clients will all disconnect at same time?
  • From: "openbsd shen" <openbsd.shen@xxxxxxxxx>
  • Date: Tue, 7 Nov 2006 10:19:01 +0800

Charles Duffy, thank you for help.

1.
In my winxp box, I press mouse right click in the running openvpn
icon(openvpn client 1) in task bar, and choise "disconnect", then the
openvpn client 1 is disconnected, and the openvpn client 2 is
disconnected at same time.

2.
When I disconnect openvpn client 1(get IP 10.8.0.x from openvpn server
1), the openvpn client 2 (get IP 10.7.0.x from openvpn server 2) say
these logs:

Tue Nov 07 09:11:54 2006 us=13161  event_wait returned 0
Tue Nov 07 09:11:54 2006 us=13195 I/O WAIT status=0x0020
Tue Nov 07 09:11:54 2006 us=13232 WE_CTL n=0 ev=0x00469984
rwflags=0x0001 arg=0x00453560
Tue Nov 07 09:11:54 2006 us=13249 STREAM: SET NEXT, buf=[164,0]
next=[164,1528] len=-1 maxlen=1528
Tue Nov 07 09:11:54 2006 us=13263 WE_CTL n=1 ev=0x00b75bbc
rwflags=0x0001 arg=0x00453558
Tue Nov 07 09:11:54 2006 us=13276 WE_CTL n=2 ev=0x00ba6f40
rwflags=0x0001 arg=0x0045355c
Tue Nov 07 09:11:54 2006 us=13294 I/O WAIT TRQ|Tw0|SRQ|Sw1 [1/149266]
Tue Nov 07 09:11:54 2006 us=13306 WE_WAIT enter n=3 to=1149
Tue Nov 07 09:11:54 2006 us=13319 [0] ev=0x00000758 rwflags=0x0001
arg=0x00453560
Tue Nov 07 09:11:54 2006 us=13331 [1] ev=0x00000760 rwflags=0x0001
arg=0x00453558
Tue Nov 07 09:11:54 2006 us=13343 [2] ev=0x00000744 rwflags=0x0001
arg=0x0045355c
Tue Nov 07 09:11:54 2006 us=18909 WE_WAIT leave rwflags=0x0001 arg=0x00453560
Tue Nov 07 09:11:54 2006 us=18928  event_wait returned 1
Tue Nov 07 09:11:54 2006 us=20811 I/O WAIT status=0x0010
Tue Nov 07 09:11:54 2006 us=20848 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=20904 SSL alert (write): warning: close notify
Tue Nov 07 09:11:54 2006 us=21080 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21092 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21102 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21132 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21143 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21153 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21163 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=21259 TCP/UDP: Closing socket
Tue Nov 07 09:11:54 2006 us=21666 route DELETE 10.7.0.1 MASK
255.255.255.255 10.7.0.10
Tue Nov 07 09:11:54 2006 us=159550 DEBUG: route find if: on_tun=1
count=1 index=131077
Tue Nov 07 09:11:54 2006 us=165278 Route deletion via IPAPI succeeded
Tue Nov 07 09:11:54 2006 us=165309 Closing TUN/TAP interface
Tue Nov 07 09:11:54 2006 us=165322 Attempting CancelIO on TAP-Win32 adapter
Tue Nov 07 09:11:54 2006 us=176769 Attempting close of overlapped read
event on TAP-Win32 adapter
Tue Nov 07 09:11:54 2006 us=176805 Attempting close of overlapped
write event on TAP-Win32 adapter
Tue Nov 07 09:11:54 2006 us=176822 Attempting CloseHandle on TAP-Win32 adapter
Tue Nov 07 09:11:54 2006 us=177747 client_down.bat Local Link 17 1500
1528 10.7.0.9 10.7.0.10 init
Tue Nov 07 09:11:54 2006 us=178498 SYSTEM[3] 'client_down.bat Local
Link 17 1500 1528 10.7.0.9 10.7.0.10 init'
Tue Nov 07 09:11:54 2006 us=178515 ENV [0] 'script_type=down'
Tue Nov 07 09:11:54 2006 us=178526 ENV [1] 'dev=Local Link 17'
Tue Nov 07 09:11:54 2006 us=178536 ENV [2] 'link_mtu=1528'
Tue Nov 07 09:11:54 2006 us=178546 ENV [3] 'tun_mtu=1500'
Tue Nov 07 09:11:54 2006 us=178556 ENV [4] 'script_context=init'
Tue Nov 07 09:11:54 2006 us=178567 ENV [5] 'signal=sigterm'
Tue Nov 07 09:11:54 2006 us=178577 ENV [6] 'route_gateway_1=10.7.0.10'
Tue Nov 07 09:11:54 2006 us=178587 ENV [7] 'route_netmask_1=255.255.255.255'
Tue Nov 07 09:11:54 2006 us=178598 ENV [8] 'route_network_1=10.7.0.1'
Tue Nov 07 09:11:54 2006 us=178608 ENV [9] 'route_vpn_gateway=10.7.0.10'
Tue Nov 07 09:11:54 2006 us=178619 ENV [10] 'route_net_gateway=192.168.70.1'
Tue Nov 07 09:11:54 2006 us=178629 ENV [11] 'ifconfig_remote=10.7.0.10'
Tue Nov 07 09:11:54 2006 us=178640 ENV [12] 'ifconfig_local=10.7.0.9'
Tue Nov 07 09:11:54 2006 us=178650 ENV [13] 'common_name=SERVER'
Tue Nov 07 09:11:54 2006 us=178661 ENV [14] 'trusted_port=58194'
Tue Nov 07 09:11:54 2006 us=178671 ENV [15] 'trusted_ip=123.123.123.123'
Tue Nov 07 09:11:54 2006 us=178682 ENV [16] 'untrusted_port=58194'
Tue Nov 07 09:11:54 2006 us=178692 ENV [17] 'untrusted_ip=123.123.123.123'
Tue Nov 07 09:11:54 2006 us=178703 ENV [18] 'tls_serial_0=1'
Tue Nov 07 09:11:54 2006 us=178714 ENV [19]
'tls_id_0=/C=KG/ST=NA/O=OpenVPN-TEST/CN=SERVER/emailAddress=me@xxxxxxxxxxxxxxx'
Tue Nov 07 09:11:54 2006 us=178725 ENV [20] 'tls_serial_1=0'
Tue Nov 07 09:11:54 2006 us=178736 ENV [21]
'tls_id_1=/C=KG/ST=NA/L=BISHKEK/O=OpenVPN-TEST/CN=CA/emailAddress=me@xxxxxxxxxxxxxxx'
Tue Nov 07 09:11:54 2006 us=178747 ENV [22] 'config=client.ovpn'
Tue Nov 07 09:11:54 2006 us=178758 ENV [23] 'proto=tcp-client'
Tue Nov 07 09:11:54 2006 us=178768 ENV [24] 'local_port=1194'
Tue Nov 07 09:11:54 2006 us=178778 ENV [25] 'verb=9'
Tue Nov 07 09:11:54 2006 us=178788 ENV [26] 'daemon=0'
Tue Nov 07 09:11:54 2006 us=178799 ENV [27] 'daemon_log_redirect=0'
Tue Nov 07 09:11:54 2006 us=178810 ENV [28] 'remote_1=123.123.123.123'
Tue Nov 07 09:11:54 2006 us=178822 ENV [29] 'remote_port_1=58194'
C:\Program Files\openvpn-2\config>route delete 10.7.0.0
The route specified was not found.
Tue Nov 07 09:11:54 2006 us=419276 SYSTEM return=0
Tue Nov 07 09:11:54 2006 us=420524 PID packet_id_free
Tue Nov 07 09:11:54 2006 us=420580 SIGTERM[hard,] received, process exiting
Tue Nov 07 09:11:54 2006 us=421278 Closing Win32 semaphore 'openvpn_netcmd'


3.
Must I change the source code of openvpn-2.0.8 (include
openvpn-2.0.8/tap-win32) or openvpn-gui-1.0.3 ?


2006/11/7, Charles Duffy <cduffy@xxxxxxxxxxx>:
> openbsd shen wrote:
> > I've installed 2 openvpn clients in my winxp box, there has different
> > reg key, different install dir, different tap NIC (with different
> > hardware ID), I can open the 2 clients and connect to different server
> > at same time, but when I disconnet one client, the other client will
> > be disconnected.
> > I don't know why, who can tell my why the 2 openvpn clients will all
> > disconnect at same time?
>
> What say the logs for the one which you didn't directly command to
> disconnect? If it's at any reasonable verbosity level (3-4), there
> should be an explanation as to why the disconnection is occurring.
>
> Also, how are you commanding the first client to disconnect?
>
>
> -------------------------------------------------------------------------
> Get stuff done quickly with pre-integrated technology to make your job easier
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
>
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-11/msg00048.html on line 303

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-11/msg00048.html on line 303