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

[Openvpn-users] nobind gives: read UDP4: Invalid argument


  • Subject: [Openvpn-users] nobind gives: read UDP4: Invalid argument
  • From: Mathias Sundman <mathias@xxxxxxxxxx>
  • Date: Thu, 1 Jul 2004 20:47:34 +0200 (CEST)

When I use the --nobind option on my WinXP client with OpenVPN 2.0-beta7 I get the following error before the connection is initiated with the server:

read UDPv4: Invalid argument (WSAEINVAL) (code=10022)

The tunnel works perfect, I just wonder what causes this message. It has been there since atleast 2.0-beta3. Probably with earlier version too.

It seems to me like openvpn tries to listen to a socket that does not exist as we have not bound to a local port when I'm using --nobind.

Here's the full log I get using verb 4:

Thu Jul 01 20:39:49 2004 Current Parameter Settings:
Yhu Jul 01 20:39:49 2004   config = 'D:\vpn\xxxxxxx\xxxxxxx.ovpn'
Thu Jul 01 20:39:49 2004   mode = 0
Thu Jul 01 20:39:49 2004   show_ciphers = DISABLED
Thu Jul 01 20:39:49 2004   show_digests = DISABLED
Thu Jul 01 20:39:49 2004   genkey = DISABLED
Thu Jul 01 20:39:49 2004   askpass = DISABLED
Thu Jul 01 20:39:49 2004   show_tls_ciphers = DISABLED
Thu Jul 01 20:39:49 2004   proto = 0
Thu Jul 01 20:39:49 2004   local = '[UNDEF]'
Thu Jul 01 20:39:49 2004   remote_list[0] = {'xxxxxxx.xxxxxxx.xx', 5000}
Thu Jul 01 20:39:49 2004   remote_random = DISABLED
Thu Jul 01 20:39:49 2004   local_port = 5000
Thu Jul 01 20:39:49 2004   remote_port = 5000
Thu Jul 01 20:39:49 2004   remote_float = DISABLED
Thu Jul 01 20:39:49 2004   ipchange = '[UNDEF]'
Thu Jul 01 20:39:49 2004   bind_local = DISABLED
Thu Jul 01 20:39:49 2004   dev = 'tap'
Thu Jul 01 20:39:49 2004   dev_type = '[UNDEF]'
Thu Jul 01 20:39:49 2004   dev_node = 'tap-other'
Thu Jul 01 20:39:49 2004   tun_ipv6 = DISABLED
Thu Jul 01 20:39:49 2004   ifconfig_local = '[UNDEF]'
Thu Jul 01 20:39:49 2004   ifconfig_remote_netmask = '[UNDEF]'
Thu Jul 01 20:39:49 2004   ifconfig_noexec = DISABLED
Thu Jul 01 20:39:49 2004   ifconfig_nowarn = DISABLED
Thu Jul 01 20:39:49 2004   shaper = 0
Thu Jul 01 20:39:49 2004   tun_mtu = 1500
Thu Jul 01 20:39:49 2004   tun_mtu_defined = ENABLED
Thu Jul 01 20:39:49 2004   link_mtu = 1500
Thu Jul 01 20:39:49 2004   link_mtu_defined = DISABLED
Thu Jul 01 20:39:49 2004   tun_mtu_extra = 32
Thu Jul 01 20:39:49 2004   tun_mtu_extra_defined = ENABLED
Thu Jul 01 20:39:49 2004   fragment = 1400
Thu Jul 01 20:39:49 2004   mtu_discover_type = -1
Thu Jul 01 20:39:49 2004   mtu_test = 0
Thu Jul 01 20:39:49 2004   mlock = DISABLED
Thu Jul 01 20:39:49 2004   inactivity_timeout = 0
Thu Jul 01 20:39:49 2004   ping_send_timeout = 0
Thu Jul 01 20:39:49 2004   ping_rec_timeout = 0
Thu Jul 01 20:39:49 2004   ping_rec_timeout_action = 0
Thu Jul 01 20:39:49 2004   ping_timer_remote = DISABLED
Thu Jul 01 20:39:49 2004   persist_tun = DISABLED
Thu Jul 01 20:39:49 2004   persist_local_ip = DISABLED
Thu Jul 01 20:39:49 2004   persist_remote_ip = DISABLED
Thu Jul 01 20:39:49 2004   persist_key = DISABLED
Thu Jul 01 20:39:49 2004   mssfix = 1400
Thu Jul 01 20:39:49 2004   resolve_retry_seconds = 0
Thu Jul 01 20:39:49 2004   connect_retry_seconds = 5
Thu Jul 01 20:39:49 2004   username = '[UNDEF]'
Thu Jul 01 20:39:49 2004   groupname = '[UNDEF]'
Thu Jul 01 20:39:49 2004   chroot_dir = '[UNDEF]'
Thu Jul 01 20:39:49 2004   cd_dir = '[UNDEF]'
Thu Jul 01 20:39:49 2004   writepid = '[UNDEF]'
Thu Jul 01 20:39:49 2004   up_script = '[UNDEF]'
Thu Jul 01 20:39:49 2004   down_script = '[UNDEF]'
Thu Jul 01 20:39:49 2004   up_restart = DISABLED
Thu Jul 01 20:39:49 2004   up_delay = DISABLED
Thu Jul 01 20:39:49 2004   daemon = DISABLED
Thu Jul 01 20:39:49 2004   inetd = 0
Thu Jul 01 20:39:49 2004   log = ENABLED
Thu Jul 01 20:39:49 2004   nice = 0
Thu Jul 01 20:39:49 2004   verbosity = 4
Thu Jul 01 20:39:49 2004   mute = 0
Thu Jul 01 20:39:49 2004   gremlin = DISABLED
Thu Jul 01 20:39:49 2004   status_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   status_file_update_freq = 60
Thu Jul 01 20:39:49 2004   occ = ENABLED
Thu Jul 01 20:39:49 2004   rcvbuf = 65536
Thu Jul 01 20:39:49 2004   sndbuf = 65536
Thu Jul 01 20:39:49 2004   http_proxy_server = '[UNDEF]'
Thu Jul 01 20:39:49 2004   http_proxy_port = 0
Thu Jul 01 20:39:49 2004   http_proxy_auth_method = '[UNDEF]'
Thu Jul 01 20:39:49 2004   http_proxy_auth_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   http_proxy_retry = DISABLED
Thu Jul 01 20:39:49 2004   socks_proxy_server = '[UNDEF]'
Thu Jul 01 20:39:49 2004   socks_proxy_port = 0
Thu Jul 01 20:39:49 2004   socks_proxy_retry = DISABLED
Thu Jul 01 20:39:49 2004   comp_lzo = DISABLED
Thu Jul 01 20:39:49 2004   comp_lzo_adaptive = ENABLED
Thu Jul 01 20:39:49 2004   route_script = '[UNDEF]'
Thu Jul 01 20:39:49 2004   route_default_gateway = '[UNDEF]'
Thu Jul 01 20:39:49 2004   route_noexec = DISABLED
Thu Jul 01 20:39:49 2004   route_delay = 10
Thu Jul 01 20:39:49 2004   route_delay_defined = ENABLED
Thu Jul 01 20:39:49 2004   shared_secret_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   key_direction = 0
Thu Jul 01 20:39:49 2004   ciphername_defined = ENABLED
Thu Jul 01 20:39:49 2004   ciphername = 'BF-CBC'
Thu Jul 01 20:39:49 2004   authname_defined = ENABLED
Thu Jul 01 20:39:49 2004   authname = 'SHA1'
Thu Jul 01 20:39:49 2004   keysize = 0
Thu Jul 01 20:39:49 2004   engine = DISABLED
Thu Jul 01 20:39:49 2004   replay = ENABLED
Thu Jul 01 20:39:49 2004   replay_window = 64
Thu Jul 01 20:39:49 2004   replay_time = 15
Thu Jul 01 20:39:49 2004   packet_id_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   use_iv = ENABLED
Thu Jul 01 20:39:49 2004   test_crypto = DISABLED
Thu Jul 01 20:39:49 2004   tls_server = DISABLED
Thu Jul 01 20:39:49 2004   tls_client = ENABLED
Thu Jul 01 20:39:49 2004   key_method = 2
Thu Jul 01 20:39:49 2004   ca_file = 'ca.crt'
Thu Jul 01 20:39:49 2004   dh_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   cert_file = 'mathias.sundman.crt'
Thu Jul 01 20:39:49 2004   priv_key_file = 'mathias.sundman.key'
Thu Jul 01 20:39:49 2004   cipher_list = '[UNDEF]'
Thu Jul 01 20:39:49 2004   tls_verify = '[UNDEF]'
Thu Jul 01 20:39:49 2004   tls_remote = '[UNDEF]'
Thu Jul 01 20:39:49 2004   crl_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   tls_timeout = 2
Thu Jul 01 20:39:49 2004   renegotiate_bytes = 0
Thu Jul 01 20:39:49 2004   renegotiate_packets = 0
Thu Jul 01 20:39:49 2004   renegotiate_seconds = 3600
Thu Jul 01 20:39:49 2004   handshake_window = 60
Thu Jul 01 20:39:49 2004   transition_window = 3600
Thu Jul 01 20:39:49 2004   single_session = DISABLED
Thu Jul 01 20:39:49 2004   tls_auth_file = '[UNDEF]'
Thu Jul 01 20:39:49 2004   pull = ENABLED
Thu Jul 01 20:39:49 2004   ifconfig_pool_defined = DISABLED
Thu Jul 01 20:39:49 2004   ifconfig_pool_start = 0.0.0.0
Thu Jul 01 20:39:49 2004   ifconfig_pool_end = 0.0.0.0
Thu Jul 01 20:39:49 2004   n_bcast_buf = 256
Thu Jul 01 20:39:49 2004   real_hash_size = 256
Thu Jul 01 20:39:49 2004   virtual_hash_size = 256
Thu Jul 01 20:39:49 2004   client_connect_script = '[UNDEF]'
Thu Jul 01 20:39:49 2004   learn_address_script = '[UNDEF]'
Thu Jul 01 20:39:49 2004   client_disconnect_script = '[UNDEF]'
Thu Jul 01 20:39:49 2004   client_config_dir = '[UNDEF]'
Thu Jul 01 20:39:49 2004   tmp_dir = '[UNDEF]'
Thu Jul 01 20:39:49 2004   push_ifconfig_defined = DISABLED
Thu Jul 01 20:39:49 2004   push_ifconfig_local = 0.0.0.0
Thu Jul 01 20:39:49 2004   push_ifconfig_remote_netmask = 0.0.0.0
Thu Jul 01 20:39:49 2004   enable_c2c = DISABLED
Thu Jul 01 20:39:49 2004   duplicate_cn = DISABLED
Thu Jul 01 20:39:49 2004   cf_max = 0
Thu Jul 01 20:39:49 2004   cf_per = 0
Thu Jul 01 20:39:49 2004   ip_win32_defined = DISABLED
Thu Jul 01 20:39:49 2004   ip_win32_type = 3
Thu Jul 01 20:39:49 2004   dhcp_masq_offset = 0
Thu Jul 01 20:39:49 2004   dhcp_lease_time = 31536000
Thu Jul 01 20:39:49 2004   tap_sleep = 0
Thu Jul 01 20:39:49 2004   dhcp_options = DISABLED
Thu Jul 01 20:39:49 2004   domain = '[UNDEF]'
Thu Jul 01 20:39:49 2004   netbios_scope = '[UNDEF]'
Thu Jul 01 20:39:49 2004   netbios_node_type = 0
Thu Jul 01 20:39:49 2004 OpenVPN 2.0_beta7 Win32-MinGW [SSL] [LZO] built on Jun 29 2004
Thu Jul 01 20:39:49 2004 Control Channel MTU parms [ L:1577 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Jul 01 20:39:49 2004 Data Channel MTU parms [ L:1577 D:1400 EF:45 EB:0 ET:32 EL:0 ]
Thu Jul 01 20:39:49 2004 Fragmentation MTU parms [ L:1577 D:1400 EF:45 EB:0 ET:32 EL:0 ]
Thu Jul 01 20:39:49 2004 Local Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,mtu-dynamic,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Thu Jul 01 20:39:49 2004 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1577,tun-mtu 1532,proto UDPv4,mtu-dynamic,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Thu Jul 01 20:39:49 2004 Local Options hash (VER=V4): 'cb29316b'
Thu Jul 01 20:39:49 2004 Expected Remote Options hash (VER=V4): '002d8bc3'
Thu Jul 01 20:39:49 2004 Socket Buffers: R=[8192->65536] S=[8192->65536]
Thu Jul 01 20:39:49 2004 UDPv4 link local: [undef]
Thu Jul 01 20:39:49 2004 UDPv4 link remote: xxx.xx.xx.xx:5000
Thu Jul 01 20:39:49 2004 read UDPv4: Invalid argument (WSAEINVAL) (code=10022)
Thu Jul 01 20:39:49 2004 TLS: Initial packet from xxx.xx.xx.xx:5000, sid=754c041e bebb00a0
Thu Jul 01 20:39:49 2004 VERIFY OK: depth=1, /C=SE/ST=NA/L=STOCKHOLM/O=xxxxxxx/CN=xxxxxxx.OpenVPN.CA/emailAddress=info@xxxxxxxxxx
Thu Jul 01 20:39:49 2004 VERIFY OK: depth=0, /C=SE/ST=NA/O=xxxxxxx/CN=Server/emailAddress=info@xxxxxxxxxx
Thu Jul 01 20:39:49 2004 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 01 20:39:49 2004 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 01 20:39:49 2004 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Thu Jul 01 20:39:49 2004 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Thu Jul 01 20:39:49 2004 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Jul 01 20:39:49 2004 [Server] Peer Connection Initiated with xxx.xx.xx.xx: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