Hi:
I've stablished my openvpn server and it works, it connects I can transfer files without problems but my connections resets
I paste you the log from the server and client side:
SERVER SIDE
Nov 2 10:38:14 remot ovpn-server[21114]: TCP/UDP: Closing socket
Nov 2 10:38:14 remot ovpn-server[21114]: TCP/UDP: Closing socket
Nov 2 10:38:14 remot ovpn-server[21114]: /sbin/route del -net 172.16.0.0 netmask 255.255.255.0
Nov 2 10:38:14 remot ovpn-server[21114]: Closing TUN/TAP interface
Nov 2 10:38:14 remot ovpn-server[21114]: /sbin/ifconfig tun0 0.0.0.0
Nov 2 10:38:14 remot ovpn-server[21114]: SIGTERM[hard,] received, process exiting
Nov 2 10:38:16 remot ovpn-server[21248]: Current Parameter Settings:
Nov 2 10:38:16 remot ovpn-server[21248]: config = '/etc/openvpn/server.conf'
Nov 2 10:38:16 remot ovpn-server[21248]: mode = 1
Nov 2 10:38:16 remot ovpn-server[21248]: persist_config = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: persist_mode = 1
Nov 2 10:38:16 remot ovpn-server[21248]: show_ciphers = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: show_digests = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: show_engines = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: genkey = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: key_pass_file = '[UNDEF]'
Nov 2 10:38:16 remot ovpn-server[21248]: show_tls_ciphers = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: proto = tcp-server
Nov 2 10:38:16 remot ovpn-server[21248]: local = 'IP_OPENVPN_SERVER'
Nov 2 10:38:16 remot ovpn-server[21248]: local_port = 1194
Nov 2 10:38:16 remot ovpn-server[21248]: remote = '[UNDEF]'
Nov 2 10:38:16 remot ovpn-server[21248]: remote_port = 1194
Nov 2 10:38:16 remot ovpn-server[21248]: remote_float = DISABLED
Nov 2 10:38:16 remot ovpn-server[21248]: bind_defined = ENABLED
Nov 2 10:38:16 remot ovpn-server[21248]: bind_local = ENABLED
Nov 2 10:38:16 remot ovpn-server[21248]: NOTE: --mute triggered...
Nov 2 10:38:16 remot ovpn-server[21248]: 247 variation(s) on previous 20 message(s) suppressed by --mute
Nov 2 10:38:16 remot ovpn-server[21248]: OpenVPN 2.1.3 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Aug 5 2011
Nov 2 10:38:16 remot ovpn-server[21248]: MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:1195
Nov 2 10:38:16 remot ovpn-server[21248]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Nov 2 10:38:16 remot ovpn-server[21248]: Diffie-Hellman initialized with 1536 bit key
Nov 2 10:38:16 remot ovpn-server[21248]: /usr/bin/openssl-vulnkey -q -b 1536 -m <modulus omitted>
Nov 2 10:38:16 remot ovpn-server[21248]: TLS-Auth MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Nov 2 10:38:16 remot ovpn-server[21248]: Socket Buffers: R=[87380->131072] S=[16384->131072]
Nov 2 10:38:16 remot ovpn-server[21248]: ROUTE: default_gateway=UNDEF
Nov 2 10:38:16 remot ovpn-server[21248]: TUN/TAP device tun0 opened
Nov 2 10:38:16 remot ovpn-server[21248]: TUN/TAP TX queue length set to 100
Nov 2 10:38:16 remot ovpn-server[21248]: /sbin/ifconfig tun0 172.16.0.1 pointopoint 172.16.0.2 mtu 1500
Nov 2 10:38:16 remot ovpn-server[21248]: /sbin/route add -net 172.16.0.0 netmask 255.255.255.0 gw 172.16.0.2
Nov 2 10:38:16 remot ovpn-server[21248]: Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Nov 2 10:38:16 remot ovpn-server[21255]: GID set to root
Nov 2 10:38:16 remot ovpn-server[21255]: UID set to root
Nov 2 10:38:16 remot ovpn-server[21255]: Listening for incoming TCP connection on [AF_INET]IP_OPENVPN_SERVER:1194
Nov 2 10:38:16 remot ovpn-server[21255]: TCPv4_SERVER link local (bound): [AF_INET]IP_OPENVPN_SERVER:1194
Nov 2 10:38:16 remot ovpn-server[21255]: TCPv4_SERVER link remote: [undef]
Nov 2 10:38:16 remot ovpn-server[21255]: MULTI: multi_init called, r=256 v=256
Nov 2 10:38:16 remot ovpn-server[21255]: MULTI: TCP INIT maxclients=50 maxevents=54
Nov 2 10:38:16 remot ovpn-server[21255]: Initialization Sequence Completed
Nov 2 10:38:17 remot ovpn-server[21255]: MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1195
Nov 2 10:38:17 remot ovpn-server[21255]: MANAGEMENT: Client disconnected
Nov 2 10:38:18 remot ovpn-server[21255]: MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1195
Nov 2 10:38:18 remot ovpn-server[21255]: MANAGEMENT: CMD 'status 2'
Nov 2 10:38:18 remot ovpn-server[21255]: MANAGEMENT: Client disconnected
Nov 2 10:38:19 remot ovpn-server[21255]: MULTI: multi_create_instance called
Nov 2 10:38:19 remot ovpn-server[21255]: Re-using SSL/TLS context
Nov 2 10:38:19 remot ovpn-server[21255]: LZO compression initialized
Nov 2 10:38:19 remot ovpn-server[21255]: Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Nov 2 10:38:19 remot ovpn-server[21255]: Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Nov 2 10:38:19 remot ovpn-server[21255]: Local Options String: 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_SERVER,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Nov 2 10:38:19 remot ovpn-server[21255]: Expected Remote Options String: 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Nov 2 10:38:19 remot ovpn-server[21255]: Local Options hash (VER=V4): 'b695cb4a'
Nov 2 10:38:19 remot ovpn-server[21255]: Expected Remote Options hash (VER=V4): 'bc07730e'
Nov 2 10:38:19 remot ovpn-server[21255]: TCP connection established with [AF_INET]IP_CLIENT:25785
Nov 2 10:38:19 remot ovpn-server[21255]: TCPv4_SERVER link local: [undef]
Nov 2 10:38:19 remot ovpn-server[21255]: TCPv4_SERVER link remote: [AF_INET]IP_CLIENT:25785
Nov 2 10:38:19 remot ovpn-server[21255]: IP_CLIENT:25785 TLS: Initial packet from [AF_INET]IP_CLIENT:25785, sid=9a729ad0 7da47cfb
Nov 2 10:38:19 remot ovpn-server[21255]: IP_CLIENT:25785 VERIFY OK: depth=1, /CN=ca.does.not.exists/C=AD/ST=SERVER_CITY_COMPANY/L=SERVER_CITY_COMPANY/O=SERVER_COMPANY/OU=3438270e9244bca1/dnQualifier=certificateAuthority
Nov 2 10:38:19 remot ovpn-server[21255]: IP_CLIENT:25785 VERIFY OK: depth=0, /C=AD/ST=SERVER_CITY_COMPANY/O=SERVER_COMPANY/OU=3438270e9244bca1/CN=CLIENT_CERT_USER/dnQualifier=client
Nov 2 10:38:20 remot ovpn-server[21255]: IP_CLIENT:25785 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Nov 2 10:38:20 remot ovpn-server[21255]: IP_CLIENT:25785 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 2 10:38:20 remot ovpn-server[21255]: IP_CLIENT:25785 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Nov 2 10:38:20 remot ovpn-server[21255]: IP_CLIENT:25785 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Nov 2 10:38:20 remot ovpn-server[21255]: IP_CLIENT:25785 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1536 bit RSA
Nov 2 10:38:20 remot ovpn-server[21255]: IP_CLIENT:25785 [CLIENT_CERT_USER] Peer Connection Initiated with [AF_INET]IP_CLIENT:25785
Nov 2 10:38:20 remot ovpn-server[21255]: CLIENT_CERT_USER/IP_CLIENT:25785 OPTIONS IMPORT: reading client specific options from: keys/CLIENT_CERT_USER
Nov 2 10:38:20 remot ovpn-server[21255]: CLIENT_CERT_USER/IP_CLIENT:25785 MULTI: Learn: 172.16.0.5 -> CLIENT_CERT_USER/IP_CLIENT:25785
Nov 2 10:38:20 remot ovpn-server[21255]: CLIENT_CERT_USER/IP_CLIENT:25785 MULTI: primary virtual IP for CLIENT_CERT_USER/IP_CLIENT:25785: 172.16.0.5
Nov 2 10:38:22 remot ovpn-server[21255]: CLIENT_CERT_USER/IP_CLIENT:25785 PUSH: Received control message: 'PUSH_REQUEST'
Nov 2 10:38:23 remot ovpn-server[21255]: MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1195
Nov 2 10:38:23 remot ovpn-server[21255]: MANAGEMENT: CMD 'status 2'
Nov 2 10:38:24 remot ovpn-server[21255]: MANAGEMENT: Client disconnected
Nov 2 10:38:29 remot ovpn-server[21255]: MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1195
Nov 2 10:38:29 remot ovpn-server[21255]: MANAGEMENT: CMD 'status 2'
Nov 2 10:38:29 remot ovpn-server[21255]: MANAGEMENT: Client disconnected
Nov 2 10:38:34 remot ovpn-server[21255]: MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1195
Nov 2 10:38:34 remot ovpn-server[21255]: MANAGEMENT: CMD 'status 2'
Nov 2 10:38:34 remot ovpn-server[21255]: MANAGEMENT: Client disconnected
Nov 2 10:38:39 remot ovpn-server[21255]: MANAGEMENT: Client connected from [AF_INET]127.0.0.1:1195
Nov 2 10:38:39 remot ovpn-server[21255]: MANAGEMENT: CMD 'status 2'
Nov 2 10:38:39 remot ovpn-server[21255]: MANAGEMENT: Client disconnected
Nov 2 10:38:43 remot spamd[20636]: spamd: connection from remot [127.0.0.1] at port 5796
Nov 2 10:38:43 remot spamd[20611]: prefork: child states: I
Nov 2 10:38:43 remot ovpn-server[21255]: TCP/UDP: Closing socket
Nov 2 10:38:43 remot ovpn-server[21255]: TCP/UDP: Closing socket
CLIENT SIDE
Wed Nov 02 10:59:21 2011 us=950000 Connection reset, restarting [0]
Wed Nov 02 10:59:21 2011 us=950000 TCP/UDP: Closing socket
Wed Nov 02 10:59:21 2011 us=950000 SIGUSR1[soft,connection-reset] received, process restarting
Wed Nov 02 10:59:21 2011 us=950000 Restart pause, 5 second(s)
Wed Nov 02 10:59:26 2011 us=957000 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Wed Nov 02 10:59:26 2011 us=957000 Re-using SSL/TLS context
Wed Nov 02 10:59:26 2011 us=957000 LZO compression initialized
Wed Nov 02 10:59:26 2011 us=957000 Control Channel MTU parms [ L:1560 D:140 EF:40 EB:0 ET:0 EL:0 ]
Wed Nov 02 10:59:26 2011 us=957000 Socket Buffers: R=[8192->8192] S=[8192->8192]
Wed Nov 02 10:59:26 2011 us=957000 Data Channel MTU parms [ L:1560 D:1450 EF:60 EB:135 ET:0 EL:0 AF:3/1 ]
Wed Nov 02 10:59:26 2011 us=957000 Local Options String: 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_CLIENT,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Wed Nov 02 10:59:26 2011 us=957000 Expected Remote Options String: 'V4,dev-type tun,link-mtu 1560,tun-mtu 1500,proto TCPv4_SERVER,comp-lzo,cipher AES-128-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Wed Nov 02 10:59:26 2011 us=957000 Local Options hash (VER=V4): 'bc07730e'
Wed Nov 02 10:59:26 2011 us=957000 Expected Remote Options hash (VER=V4): 'b695cb4a'
Wed Nov 02 10:59:26 2011 us=957000 Attempting to establish TCP connection with IP_OPENVPNSERVER:1194
Wed Nov 02 10:59:26 2011 us=957000 TCP connection established with IP_OPENVPNSERVER:1194
Wed Nov 02 10:59:26 2011 us=957000 TCPv4_CLIENT link local: [undef]
Wed Nov 02 10:59:26 2011 us=957000 TCPv4_CLIENT link remote: IP_OPENVPNSERVER:1194
Wed Nov 02 10:59:26 2011 us=957000 TLS: Initial packet from IP_OPENVPNSERVER:1194, sid=09a50531 33c27474
Wed Nov 02 10:59:27 2011 us=113000 VERIFY OK: depth=1, /CN=ca.does.not.exists/C=AD/ST=CITY_SERVER/L=CITY_SERVER/O=SERVER_COMPANY/OU=3438270e9244bca1/dnQualifier=certificateAuthority
Wed Nov 02 10:59:27 2011 us=113000 VERIFY OK: nsCertType=SERVER
Wed Nov 02 10:59:27 2011 us=113000 VERIFY OK: depth=0, /C=AD/ST=CITY_SERVER/O=SERVER_COMPANY/OU=3438270e9244bca1/CN=server.does.not.exists/dnQualifier=server
Wed Nov 02 10:59:27 2011 us=534000 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Wed Nov 02 10:59:27 2011 us=534000 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Nov 02 10:59:27 2011 us=534000 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
aNY IDEA ??
My connection it's continuously resetting
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Wed Nov 02, 2011 9:52 am
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: My connection it's continuously resetting
your server log does not show any reconnect attempts; the client shows a single reconnect attempt due to a closed TCP connection; perhaps there's a firewall blocking access? without server+client config files it is hard to tell what is going on.