I dont know why but my Posts are not showing here. Every day at 09:07 the VPN looses Connection and reconnect again and i dont know why.
Client
[server1]
Inactivity timeout (--ping-restart), restarting
Aug 19 09:07:35 server1 ovpn-openvpn[26733]: TCP/UDP: Closing socket
Aug 19 09:07:35 server1 ovpn-openvpn[26733]: SIGUSR1[soft,ping-restart] received, process restarting
Aug 19 09:07:35 server1 ovpn-openvpn[26733]: Restart pause, 5 second(s)
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Re-using SSL/TLS context
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1361)
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Control Channel MTU parms [ L:1420 D:140 EF:40 EB:0 ET:0 EL:0 ]
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Socket Buffers: R=[87380->131072] S=[16384->131072]
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Data Channel MTU parms [ L:1420 D:1420 EF:59 EB:4 ET:0 EL:0 ]
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Local Options String: 'V4,dev-type tun,link-mtu 1420,tun-mtu 1361,proto TCPv4_CLIENT,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-client'
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Expected Remote Options String: 'V4,dev-type tun,link-mtu 1420,tun-mtu 1361,proto TCPv4_SERVER,cipher AES-256-CBC,auth SHA1,keysize 256,key-method 2,tls-server'
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Local Options hash (VER=V4): '352398c0'
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Expected Remote Options hash (VER=V4): '48918586'
Aug 19 09:07:40 server1 ovpn-openvpn[26733]: Attempting to establish TCP connection with [AF_INET]IP:1194 [nonblock]
Aug 19 09:07:41 server1 ovpn-openvpn[26733]: TCP connection established with [AF_INET]IP:1194
Aug 19 09:07:41 server1 ovpn-openvpn[26733]: TCPv4_CLIENT link local: [undef]
Aug 19 09:07:41 server1 ovpn-openvpn[26733]: TCPv4_CLIENT link remote: [AF_INET]IP:1194
Aug 19 09:07:41 server1 ovpn-openvpn[26733]: TLS: Initial packet from [AF_INET]IP:1194, sid=22b5387c 2d2fd3fc
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: VERIFY OK: depth=1, CN=server1
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: Validating certificate key usage
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: ++ Certificate has key usage 00a0, expects 00a0
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: VERIFY KU OK
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: Validating certificate extended key usage
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: VERIFY EKU OK
Aug 19 09:07:42 server1 ovpn-openvpn[26733]: VERIFY OK: depth=0, CN=server1
Aug 19 09:07:43 server1 ovpn-openvpn[26733]: Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 19 09:07:43 server1 ovpn-openvpn[26733]: Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 19 09:07:43 server1 ovpn-openvpn[26733]: Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 19 09:07:43 server1 ovpn-openvpn[26733]: Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 19 09:07:43 server1 ovpn-openvpn[26733]: Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Aug 19 09:07:43 server1 ovpn-openvpn[26733]: [server1] Peer Connection Initiated with [AF_INET]IP:1194
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: SENT CONTROL [server1]: 'PUSH_REQUEST' (status=1)
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: PUSH: Received control message: 'PUSH_REPLY,route 192.168.110.0 255.255.255.0,route 10.1.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.1.0.22 10.1.0.21'
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: OPTIONS IMPORT: timers and/or timeouts modified
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: OPTIONS IMPORT: --ifconfig/up options modified
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: OPTIONS IMPORT: route options modified
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: Preserving previous TUN/TAP instance: tun0
Aug 19 09:07:46 server1 ovpn-openvpn[26733]: Initialization Sequence Completed
Server
Aug 19 09:07:37 ovpn-openvpn[20441]: WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1361)
Aug 19 09:07:37 ovpn-openvpn[20441]: TCP connection established with [AF_INET]IP:48824
Aug 19 09:07:38 ovpn-openvpn[20441]: IP TLS: Initial packet from [AF_INET]IP:48824, sid=6e3b92fc bf2cc905
Aug 19 09:07:40 ovpn-openvpn[20441]: IP VERIFY OK: depth=1, CN=server1
Aug 19 09:07:40 ovpn-openvpn[20441]: IP VERIFY OK: depth=0, CN=client2
Aug 19 09:07:40 ovpn-openvpn[20441]: WARNING: normally if you use --mssfix and/or --fragment, you should also set --tun-mtu 1500 (currently it is 1361)
Aug 19 09:07:40 ovpn-openvpn[20441]: TCP connection established with [AF_INET]IP
Aug 19 09:07:40 ovpn-openvpn[20441]: IP Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 19 09:07:40 ovpn-openvpn[20441]: IP Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 19 09:07:40 ovpn-openvpn[20441]: IP Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 19 09:07:40 ovpn-openvpn[20441]: IP Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 19 09:07:40 ovpn-openvpn[20441]: IP Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Aug 19 09:07:40 ovpn-openvpn[20441]: IP [client2] Peer Connection Initiated with [AF_INET]IP
Aug 19 09:07:40 ovpn-openvpn[20441]: MULTI: new connection by client 'client2' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Aug 19 09:07:40 ovpn-openvpn[20441]: MULTI_sva: pool returned IPv4=10.1.0.18, IPv6=(Not enabled)
Aug 19 09:07:40 ovpn-openvpn[20441]: MULTI: Learn: 10.1.0.18 -> client2/IP
Aug 19 09:07:40 ovpn-openvpn[20441]: MULTI: primary virtual IP for client2/IP: 10.1.0.18
Aug 19 09:07:41 ovpn-openvpn[20441]: IP TLS: Initial packet from [AF_INET]IP, sid=8d98a3d5 6bd94719
Aug 19 09:07:42 ovpn-openvpn[20441]: IP VERIFY OK: depth=1, CN=server1
Aug 19 09:07:42 ovpn-openvpn[20441]: IPVERIFY OK: depth=0, CN=client1
Aug 19 09:07:43 ovpn-openvpn[20441]: client2/IP PUSH: Received control message: 'PUSH_REQUEST'
Aug 19 09:07:43 ovpn-openvpn[20441]: client2/IP send_push_reply(): safe_cap=940
Aug 19 09:07:43 ovpn-openvpn[20441]: client2/IP SENT CONTROL [client2]: 'PUSH_REPLY,route 192.168.110.0 255.255.255.0,route 10.1.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.1.0.18 10.1.0.17' (status=1)
Aug 19 09:07:43 ovpn-openvpn[20441]: IP Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 19 09:07:43 ovpn-openvpn[20441]: IP Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 19 09:07:43 ovpn-openvpn[20441]: IP Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
Aug 19 09:07:43 ovpn-openvpn[20441]: IP Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Aug 19 09:07:43 ovpn-openvpn[20441]: IP Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 4096 bit RSA
Aug 19 09:07:43 ovpn-openvpn[20441]: IP [client1] Peer Connection Initiated with [AF_INET]IP
Aug 19 09:07:43 ovpn-openvpn[20441]: MULTI: new connection by client 'client1' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Aug 19 09:07:43 ovpn-openvpn[20441]: MULTI_sva: pool returned IPv4=10.1.0.22, IPv6=(Not enabled)
Aug 19 09:07:43 ovpn-openvpn[20441]: MULTI: Learn: 10.1.0.22 -> client1/IP
Aug 19 09:07:43 ovpn-openvpn[20441]: MULTI: primary virtual IP for client1/IP: 10.1.0.22
Aug 19 09:07:46 ovpn-openvpn[20441]: client1/IP PUSH: Received control message: 'PUSH_REQUEST'
Aug 19 09:07:46 ovpn-openvpn[20441]: client1/IP send_push_reply(): safe_cap=940
Aug 19 09:07:46 ovpn-openvpn[20441]: client1/IP SENT CONTROL [client1]: 'PUSH_REPLY,route 192.168.110.0 255.255.255.0,route 10.1.0.1,topology net30,ping 10,ping-restart 120,ifconfig 10.1.0.22 10.1.0.21' (status=1)
i dont use duplicate keys i created 1 client 1 key pair and 1 client 2 key pair