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

[Openvpn-users] openvpn-2.0_beta9: Crash when using ifconfig


  • Subject: [Openvpn-users] openvpn-2.0_beta9: Crash when using ifconfig
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Sun, 1 Aug 2004 12:55:06 +0200 (CEST)

I just upgraded from 2.0_beta7 to beta9 and encountered a new problem...

My connections to other 2.0-betaX based servers in "udp-server" mode, and pulling parameters works just fine.

But my connection to an old server running OpenVPN 1.5 and static keys fails.

I'm running WinXP SP1 on the machine I see this problem.

Here's my config for the failing connection:

################################
remote xxx.xxx.xx
dev tap
dev-node tap-ljustero
port 5000
secret d:/vpn/ljustero/key.mathias
ifconfig 10.0.5.231 255.255.0.0
#ip-win32 netsh
#ifconfig-nowarn
verb 6
#mute 20
ping 5
ping-exit 20
resolv-retry infinite
float
mssfix 1400
comp-lzo
###############################

If I set the IP address directly on the TAP interface and removes the ifconfig option, it works.

It doesn't seem to matter which ip-win32 method I use, it crashes regardless.

I can see using "ipconfig" that the TAP interface gets assigned the IP address, but somewhere after that openvpn crashes.

Also, the TAP driver included in beta9 is a DEBUG build. Was that intentional?

Unfortunally I can't see anything in the log indicating what is causing the crash.

Please let me know if how I can provide more info to debug this...


Here's my openvpn log:

Sun Aug 01 12:48:52 2004 us=765731 Current Parameter Settings:
Sun Aug 01 12:48:52 2004 us=766069   config = 'ljustero.ovpn'
Sun Aug 01 12:48:52 2004 us=766209   mode = 0
Sun Aug 01 12:48:52 2004 us=766343   show_ciphers = DISABLED
Sun Aug 01 12:48:52 2004 us=766477   show_digests = DISABLED
Sun Aug 01 12:48:52 2004 us=766610   genkey = DISABLED
Sun Aug 01 12:48:52 2004 us=766744   askpass = DISABLED
Sun Aug 01 12:48:52 2004 us=766884   show_tls_ciphers = DISABLED
Sun Aug 01 12:48:52 2004 us=767018   proto = 0
Sun Aug 01 12:48:52 2004 us=767150   local = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=767295   remote_list[0] = {'xxxxx.xxx.xx', 5000}
Sun Aug 01 12:48:52 2004 us=767430   remote_random = DISABLED
Sun Aug 01 12:48:52 2004 us=767567   local_port = 5000
Sun Aug 01 12:48:52 2004 us=767888   remote_port = 5000
Sun Aug 01 12:48:52 2004 us=767916   remote_float = ENABLED
Sun Aug 01 12:48:52 2004 us=767940   ipchange = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=767965   bind_local = ENABLED
Sun Aug 01 12:48:52 2004 us=767988   dev = 'tap'
Sun Aug 01 12:48:52 2004 us=768013   dev_type = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768037   dev_node = 'tap-ljustero'
Sun Aug 01 12:48:52 2004 us=768062   tun_ipv6 = DISABLED
Sun Aug 01 12:48:52 2004 us=768087   ifconfig_local = '10.0.5.231'
Sun Aug 01 12:48:52 2004 us=768113   ifconfig_remote_netmask = '255.255.0.0'
Sun Aug 01 12:48:52 2004 us=768138   ifconfig_noexec = DISABLED
Sun Aug 01 12:48:52 2004 us=768163   ifconfig_nowarn = DISABLED
Sun Aug 01 12:48:52 2004 us=768188   shaper = 0
Sun Aug 01 12:48:52 2004 us=768212   tun_mtu = 1500
Sun Aug 01 12:48:52 2004 us=768236   tun_mtu_defined = ENABLED
Sun Aug 01 12:48:52 2004 us=768261   link_mtu = 1500
Sun Aug 01 12:48:52 2004 us=768286   link_mtu_defined = DISABLED
Sun Aug 01 12:48:52 2004 us=768311   tun_mtu_extra = 32
Sun Aug 01 12:48:52 2004 us=768336   tun_mtu_extra_defined = ENABLED
Sun Aug 01 12:48:52 2004 us=768361   fragment = 0
Sun Aug 01 12:48:52 2004 us=768386   mtu_discover_type = -1
Sun Aug 01 12:48:52 2004 us=768410   mtu_test = 0
Sun Aug 01 12:48:52 2004 us=768434   mlock = DISABLED
Sun Aug 01 12:48:52 2004 us=768459   inactivity_timeout = 0
Sun Aug 01 12:48:52 2004 us=768483   ping_send_timeout = 5
Sun Aug 01 12:48:52 2004 us=768509   ping_rec_timeout = 20
Sun Aug 01 12:48:52 2004 us=768534   ping_rec_timeout_action = 1
Sun Aug 01 12:48:52 2004 us=768559   ping_timer_remote = DISABLED
Sun Aug 01 12:48:52 2004 us=768584   persist_tun = DISABLED
Sun Aug 01 12:48:52 2004 us=768609   persist_local_ip = DISABLED
Sun Aug 01 12:48:52 2004 us=768634   persist_remote_ip = DISABLED
Sun Aug 01 12:48:52 2004 us=768659   persist_key = DISABLED
Sun Aug 01 12:48:52 2004 us=768684   mssfix = 1400
Sun Aug 01 12:48:52 2004 us=768710   resolve_retry_seconds = 1000000000
Sun Aug 01 12:48:52 2004 us=768735   connect_retry_seconds = 5
Sun Aug 01 12:48:52 2004 us=768760   username = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768785   groupname = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768810   chroot_dir = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768841   cd_dir = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768866   writepid = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768891   up_script = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768915   down_script = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=768940   up_restart = DISABLED
Sun Aug 01 12:48:52 2004 us=768964   up_delay = DISABLED
Sun Aug 01 12:48:52 2004 us=768989   daemon = DISABLED
Sun Aug 01 12:48:52 2004 us=769013   inetd = 0
Sun Aug 01 12:48:52 2004 us=769037   log = DISABLED
Sun Aug 01 12:48:52 2004 us=769061   nice = 0
Sun Aug 01 12:48:52 2004 us=769085   verbosity = 6
Sun Aug 01 12:48:52 2004 us=769109   mute = 0
Sun Aug 01 12:48:52 2004 us=769133   gremlin = DISABLED
Sun Aug 01 12:48:52 2004 us=769157   status_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769183   status_file_update_freq = 60
Sun Aug 01 12:48:52 2004 us=769207   occ = ENABLED
Sun Aug 01 12:48:52 2004 us=769231   rcvbuf = 0
Sun Aug 01 12:48:52 2004 us=769255   sndbuf = 0
Sun Aug 01 12:48:52 2004 us=769279   http_proxy_server = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769460   http_proxy_port = 0
Sun Aug 01 12:48:52 2004 us=769487   http_proxy_auth_method = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769512   http_proxy_auth_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769538   http_proxy_retry = DISABLED
Sun Aug 01 12:48:52 2004 us=769563   socks_proxy_server = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769588   socks_proxy_port = 0
Sun Aug 01 12:48:52 2004 us=769613   socks_proxy_retry = DISABLED
Sun Aug 01 12:48:52 2004 us=769638   comp_lzo = ENABLED
Sun Aug 01 12:48:52 2004 us=769662   comp_lzo_adaptive = ENABLED
Sun Aug 01 12:48:52 2004 us=769687   route_script = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769712   route_default_gateway = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=769737   route_noexec = DISABLED
Sun Aug 01 12:48:52 2004 us=769762   route_delay = 0
Sun Aug 01 12:48:52 2004 us=769787   route_delay_defined = ENABLED
Sun Aug 01 12:48:52 2004 us=769813   shared_secret_file = 'd:/vpn/ljustero/key.mathias'
Sun Aug 01 12:48:52 2004 us=769860   key_direction = 0
Sun Aug 01 12:48:52 2004 us=769886   ciphername_defined = ENABLED
Sun Aug 01 12:48:52 2004 us=769910   ciphername = 'BF-CBC'
Sun Aug 01 12:48:52 2004 us=769935   authname_defined = ENABLED
Sun Aug 01 12:48:52 2004 us=769960   authname = 'SHA1'
Sun Aug 01 12:48:52 2004 us=769984   keysize = 0
Sun Aug 01 12:48:52 2004 us=770008   engine = DISABLED
Sun Aug 01 12:48:52 2004 us=770032   replay = ENABLED
Sun Aug 01 12:48:52 2004 us=770057   mute_replay_warnings = DISABLED
Sun Aug 01 12:48:52 2004 us=770083   replay_window = 64
Sun Aug 01 12:48:52 2004 us=770107   replay_time = 15
Sun Aug 01 12:48:52 2004 us=770132   packet_id_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770156   use_iv = ENABLED
Sun Aug 01 12:48:52 2004 us=770181   test_crypto = DISABLED
Sun Aug 01 12:48:52 2004 us=770206   tls_server = DISABLED
Sun Aug 01 12:48:52 2004 us=770230   tls_client = DISABLED
Sun Aug 01 12:48:52 2004 us=770255   key_method = 2
Sun Aug 01 12:48:52 2004 us=770279   ca_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770304   dh_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770328   cert_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770353   priv_key_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770378   pkcs12_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770402   cipher_list = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770427   tls_verify = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770452   tls_remote = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770476   crl_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770501   tls_timeout = 2
Sun Aug 01 12:48:52 2004 us=770526   renegotiate_bytes = 0
Sun Aug 01 12:48:52 2004 us=770551   renegotiate_packets = 0
Sun Aug 01 12:48:52 2004 us=770576   renegotiate_seconds = 3600
Sun Aug 01 12:48:52 2004 us=770602   handshake_window = 60
Sun Aug 01 12:48:52 2004 us=770628   transition_window = 3600
Sun Aug 01 12:48:52 2004 us=770652   single_session = DISABLED
Sun Aug 01 12:48:52 2004 us=770677   tls_auth_file = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=770702   pull = DISABLED
Sun Aug 01 12:48:52 2004 us=770727   ifconfig_pool_defined = DISABLED
Sun Aug 01 12:48:52 2004 us=770769   ifconfig_pool_start = 0.0.0.0
Sun Aug 01 12:48:52 2004 us=770823   ifconfig_pool_end = 0.0.0.0
Sun Aug 01 12:48:52 2004 us=770963   n_bcast_buf = 256
Sun Aug 01 12:48:52 2004 us=770989   real_hash_size = 256
Sun Aug 01 12:48:52 2004 us=771014   virtual_hash_size = 256
Sun Aug 01 12:48:52 2004 us=771039   client_connect_script = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771065   learn_address_script = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771091   client_disconnect_script = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771116   client_config_dir = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771141   tmp_dir = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771167   push_ifconfig_defined = DISABLED
Sun Aug 01 12:48:52 2004 us=771195   push_ifconfig_local = 0.0.0.0
Sun Aug 01 12:48:52 2004 us=771223   push_ifconfig_remote_netmask = 0.0.0.0
Sun Aug 01 12:48:52 2004 us=771249   enable_c2c = DISABLED
Sun Aug 01 12:48:52 2004 us=771435   duplicate_cn = DISABLED
Sun Aug 01 12:48:52 2004 us=771461   cf_max = 0
Sun Aug 01 12:48:52 2004 us=771485   cf_per = 0
Sun Aug 01 12:48:52 2004 us=771509   max_clients = 1024
Sun Aug 01 12:48:52 2004 us=771535   show_net_up = DISABLED
Sun Aug 01 12:48:52 2004 us=771561   ip_win32_defined = DISABLED
Sun Aug 01 12:48:52 2004 us=771586   ip_win32_type = 3
Sun Aug 01 12:48:52 2004 us=771611   dhcp_masq_offset = 0
Sun Aug 01 12:48:52 2004 us=771637   dhcp_lease_time = 31536000
Sun Aug 01 12:48:52 2004 us=771662   tap_sleep = 0
Sun Aug 01 12:48:52 2004 us=771687   dhcp_options = DISABLED
Sun Aug 01 12:48:52 2004 us=771712   dhcp_renew = DISABLED
Sun Aug 01 12:48:52 2004 us=771736   dhcp_release = DISABLED
Sun Aug 01 12:48:52 2004 us=771761   domain = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771786   netbios_scope = '[UNDEF]'
Sun Aug 01 12:48:52 2004 us=771811   netbios_node_type = 0
Sun Aug 01 12:48:52 2004 us=772040 OpenVPN 2.0_beta9 Win32-MinGW [SSL] [LZO] built on Jul 30 2004
Sun Aug 01 12:48:52 2004 us=774840 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Aug 01 12:48:52 2004 us=774927 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Aug 01 12:48:52 2004 us=775116 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sun Aug 01 12:48:52 2004 us=775158 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Aug 01 12:48:52 2004 us=775215 LZO compression initialized
Sun Aug 01 12:48:52 2004 us=837686 TAP-WIN32 device [tap-ljustero] opened: \\.\Global\{724B959F-83D5-42D3-8F27-3D8FFC8E06EE}.tap
Sun Aug 01 12:48:52 2004 us=837802 TAP-Win32 Driver Version 8.1 (DEBUG)
Sun Aug 01 12:48:52 2004 us=837870 TAP-Win32 MTU=1500
Sun Aug 01 12:48:52 2004 us=837948 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.0.5.231/255.255.0.0 on interface {724B959F-83D5-42D3-8F27-3D8FFC8E06EE} [DHCP-serv: 10.0.0.0, lease-time: 31536000]
Sun Aug 01 12:48:52 2004 us=850677 Successful ARP Flush on interface [7] {724B959F-83D5-42D3-8F27-3D8FFC8E06EE}
Sun Aug 01 12:48:52 2004 us=993921 WARNING: You have selected '--ip-win32 dynamic', which will not work unless the TAP-Win32 TCP/IP properties are set to 'Obtain an IP address automatically'
Sun Aug 01 12:48:52 2004 us=994169 Data Channel MTU parms [ L:1577 D:1400 EF:45 EB:19 ET:32 EL:0 ]
Sun Aug 01 12:48:52 2004 us=994237 Local Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,ifconfig 10.0.0.0 255.255.0.0,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
Sun Aug 01 12:48:52 2004 us=994261 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,ifconfig 10.0.0.0 255.255.0.0,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
Sun Aug 01 12:48:52 2004 us=994317 Local Options hash (VER=V4): '07ef7818'
Sun Aug 01 12:48:52 2004 us=994352 Expected Remote Options hash (VER=V4): '07ef7818'
Sun Aug 01 12:48:52 2004 us=994431 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sun Aug 01 12:48:52 2004 us=994465 UDPv4 link local (bound): [undef]:5000
Sun Aug 01 12:48:52 2004 us=994486 UDPv4 link remote: xxx.xxx.xxx.xxx:5000
Sun Aug 01 12:48:52 2004 us=994587 TAP-Win32: AdapterTransmit IPv4 UDP[243] 10.0.5.231:138 -> 10.0.255.255:138
Sun Aug 01 12:48:52 2004 us=994661 TAP-Win32: AdapterTransmit IPv4 UDP[253] 10.0.5.231:138 -> 10.0.255.255:138
Sun Aug 01 12:48:52 2004 us=994737 TAP-Win32: [\DEVICE\{724B959F-83D5-42D3-8F27-3D8FFC8E06EE}] [TAP] release [8.1] close/cleanup request
Sun Aug 01 12:48:52 2004 us=994813 TAP-Win32: [\Device\{724B959F-83D5-42D3-8F27-3D8FFC8E06EE}.tap] [TAP] FlushQueues n_IRP=[0,1,16] n_Packet=[3,18,64]
Sun Aug 01 12:48:52 2004 us=994889 TAP-Win32: [\DEVICE\{724B959F-83D5-42D3-8F27-3D8FFC8E06EE}] [TAP] release [8.1] open request (m_TapOpens=0)
Sun Aug 01 12:48:52 2004 us=995163 UDPv4 WRITE [60] to xxx.xxx.xxx.xxx:5000:  DATA len=60
Sun Aug 01 12:48:54 2004 us=210243 TAP-Win32: AdapterTransmit ARP src=0:ff:72:4b:95:9f dest=ff:ff:ff:ff:ff:ff OP=0x0001 M=0x0001(6) P=0x0800(4) MacSrc=0:ff:72:4b:95:9f MacDest=0:0:0:0:0:0 IPSrc=10.0.5.231 IPDest=10.0.5.231
Sun Aug 01 12:48:54 2004 us=210514 UDPv4 WRITE [84] to xxx.xxx.xxx.xxx:5000:  DATA len=84
Sun Aug 01 12:48:54 2004 us=528814 UDPv4 WRITE [84] to xxx.xxx.xxx.xxx:5000:  DATA len=84
Sun Aug 01 12:48:55 2004 us=529035 UDPv4 WRITE [84] to xxx.xxx.xxx.xxx:5000:  DATA len=84
Sun Aug 01 12:48:56 2004 us=616768 TAP-Win32: AdapterTransmit IPv4 UDP[175] 10.0.5.228:3189 -> 239.255.255.250:1900
Sun Aug 01 12:48:56 2004 us=617012 UDPv4 WRITE [220] to xxx.xxx.xxx.xxx:5000:  DATA len=220
Sun Aug 01 12:48:56 2004 us=619382 TAP-Win32: AdapterTransmit IPv4 UDP[110] 10.0.5.231:137 -> 10.0.255.255:137
Sun Aug 01 12:48:56 2004 us=619578 UDPv4 WRITE [148] to xxx.xxx.xxx.xxx:5000:  DATA len=148
Sun Aug 01 12:48:56 2004 us=627879 TAP-Win32: AdapterTransmit IPv4 IGMP[54] ipproto=2 10.0.5.231 -> 224.0.0.22
Sun Aug 01 12:48:56 2004 us=628115 UDPv4 WRITE [92] to xxx.xxx.xxx.xxx:5000:  DATA len=92
Sun Aug 01 12:48:57 2004 us=369131 UDPv4 WRITE [148] to xxx.xxx.xxx.xxx:5000:  DATA len=148
Sun Aug 01 12:48:57 2004 us=393921 UDPv4 WRITE [92] to xxx.xxx.xxx.xxx:5000:  DATA len=92
Sun Aug 01 12:48:58 2004 us=119557 UDPv4 WRITE [148] to xxx.xxx.xxx.xxx:5000:  DATA len=148
Sun Aug 01 12:48:58 2004 us=869975 UDPv4 WRITE [148] to xxx.xxx.xxx.xxx:5000:  DATA len=148
Sun Aug 01 12:48:59 2004 us=626450 TAP-Win32: AdapterTransmit IPv4 UDP[110] 10.0.5.231:137 -> 10.0.255.255:137
Sun Aug 01 12:48:59 2004 us=626692 UDPv4 WRITE [148] to xxx.xxx.xxx.xxx:5000:  DATA len=148
Sun Aug 01 12:48:59 2004 us=629193 TAP-Win32: AdapterTransmit IPv4 UDP[175] 10.0.5.228:3189 -> 239.255.255.250:1900
Sun Aug 01 12:48:59 2004 us=629888 UDPv4 WRITE [220] to xxx.xxx.xxx.xxx:5000:  DATA len=220
Sun Aug 01 12:49:00 2004 us=376764 UDPv4 WRITE [148] to xxx.xxx.xxx.xxx:5000:  DATA len=148
Sun Aug 01 12:49:00 2004 us=388214 UDPv4 READ [60] from xxx.xxx.xxx.xxx:5000:  DATA len=60
Sun Aug 01 12:49:00 2004 us=388370 Peer Connection Initiated with xxx.xxx.xxx.xxx:5000


-- _____________________________________________________________ Mathias Sundman (^) ASCII Ribbon Campaign NILINGS AB X NO HTML/RTF in e-mail Tel: +46-(0)8-666 32 28 / \ NO Word docs in e-mail

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users