We are using openvpn to comunicate with our 'hotspots'. All of them are set the same way and connect to one VPN server. But only 59 of them can connect at once and every next request to connect is rejected.
Our server is Ubuntu (karmic) openvpn 2.1~rc19-1ubuntu2
Clients are Debian (lenny) with custom 2.6.38 kernel, openvpn 2.1~rc11-1
client.conf
client
dev tun
proto tcp
remote our.vpn.server 80
resolv-retry infinite
nobind
user nobody
persist-key
persist-tun
ca /our_chroot/ca.crt
cert /our_chroot/client.crt
key /our_chroot/client.key
chroot /our_chroot
ns-cert-type server
comp-lzo
verb 3
server.conf
local IP_of_eth0:1
port 80
proto tcp
dev tun
chroot /etc/openvpn/keys
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
server 10.123.28.0 255.255.248.0
ifconfig-pool-persist ipp.txt
keepalive 60 120
comp-lzo
user nobody
persist-key
persist-tun
status openvpn-status.log
verb 4
management localhost 7505
logs of this unsuccessfull association
client
Apr 8 00:16:03 hostname ovpn-client[3391]: Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Apr 8 00:16:03 hostname ovpn-client[3391]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Apr 8 00:16:03 hostname ovpn-client[3391]: Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Apr 8 00:16:03 hostname ovpn-client[3391]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Apr 8 00:16:03 hostname ovpn-client[3391]: Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Apr 8 00:16:03 hostname ovpn-client[3391]: [server] Peer Connection Initiated with IP_of_eth0:1_of_server:80
Apr 8 00:16:04 hostname ovpn-client[3391]: SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Apr 8 00:16:04 hostname ovpn-client[3391]: event_wait : Interrupted system call (code=4)
Apr 8 00:16:04 hostname ovpn-client[3391]: TCP/UDP: Closing socket
Apr 8 00:16:04 hostname ovpn-client[3391]: SIGTERM[hard,] received, process exiting
server:
Apr 8 00:16:30 server-hostname ovpn-server[27504]: MULTI: multi_create_instance called
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Re-using SSL/TLS context
Apr 8 00:16:30 server-hostname ovpn-server[27504]: LZO compression initialized
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ]
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ]
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Local Options String: 'V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Expected Remote Options String: 'V4,dev-type tun,link-mtu 1544,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Local Options hash (VER=V4): 'c0103fa8'
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Expected Remote Options hash (VER=V4): '69109d17'
Apr 8 00:16:30 server-hostname ovpn-server[27504]: TCP connection established with hotspot-ip:63427
Apr 8 00:16:30 server-hostname ovpn-server[27504]: Socket Buffers: R=[131072->131072] S=[131072->131072]
Apr 8 00:16:30 server-hostname ovpn-server[27504]: TCPv4_SERVER link local: [undef]
Apr 8 00:16:30 server-hostname ovpn-server[27504]: TCPv4_SERVER link remote: hotspot-ip:63427
Apr 8 00:16:31 server-hostname ovpn-server[27504]: hotspot-ip:63427 TLS: Initial packet from hotspot-ip:63427, sid=2d14156c ccc29df7
Apr 8 00:16:34 server-hostname ovpn-server[27504]: hotspot-ip:63427 VERIFY OK: depth=1, /our_cert_info
Apr 8 00:16:34 server-hostname ovpn-server[27504]: hotspot-ip:63427 VERIFY OK: depth=0, /our_cert_info
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot-ip:63427 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot-ip:63427 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot-ip:63427 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot-ip:63427 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot-ip:63427 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot-ip:63427 [hotspot1580783] Peer Connection Initiated with hotspot-ip:63427
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot1580783/hotspot-ip:63427 MULTI: Learn: 10.123.34.54 -> hotspot1580783/hotspot-ip:63427
Apr 8 00:16:35 server-hostname ovpn-server[27504]: hotspot1580783/hotspot-ip:63427 MULTI: primary virtual IP for hotspot1580783/hotspot-ip:63427: 10.123.34.54
Apr 8 00:16:36 server-hostname ovpn-server[27504]: hotspot1580783/hotspot-ip:63427 PUSH: Received control message: 'PUSH_REQUEST'
Apr 8 00:16:36 server-hostname ovpn-server[27504]: hotspot1580783/hotspot-ip:63427 SENT CONTROL [hotspot1580783]: 'PUSH_REPLY,route 10.123.28.1,topology net30,ping 60,ping-restart 120,ifconfig 10.123.34.54 10.123.34.53' (status=1)
Apr 8 00:16:36 server-hostname ovpn-server[27504]: hotspot1580783/hotspot-ip:63427 Connection reset, restarting [0]
Apr 8 00:16:36 server-hostname ovpn-server[27504]: hotspot1580783/hotspot-ip:63427 SIGUSR1[soft,connection-reset] received, client-instance restarting
Apr 8 00:16:36 server-hostname ovpn-server[27504]: TCP/UDP: Closing socket