Hello All,
Having a little trouble with the Openvpn server on a RT-N66 device. The problem seems to be the connection remains open after the client goes idle and disconnects from the client side. When I try to reconnect the server does not respond. When I check the server it says the client is has never disconnected and been connected continuously until I restart the server. Here is the log from prior to connecting then connecting, going idle then being unable to connect from 4pm until getting home and logging in.
Sep 5 04:17:25 ntp: start NTP update
Sep 5 04:17:25 ntp: NTP update successful after 1 attempt(s)
Sep 5 05:17:25 ntp: start NTP update
Sep 5 05:17:25 ntp: NTP update successful after 1 attempt(s)
Sep 5 05:20:01 Diversion: rotated dnsmasq log files, from /opt/share/diversion/file/rotate-logs.div
Sep 5 06:00:43 miniupnpd[1273]: upnp_event_process_notify: connect(192.168.1.104:2869): No route to host
Sep 5 06:00:43 miniupnpd[1273]: upnpevents_processfds: 0x435110, remove subscriber uuid:d0a7b09b-a2b2-4876-801f-115a8fabb851 after an ERROR cb:
http://192.168.1.104:2869/upnp/eventing/pkdfegzyan
Sep 5 06:17:25 ntp: start NTP update
Sep 5 06:17:25 ntp: NTP update successful after 1 attempt(s)
Sep 5 07:17:25 ntp: start NTP update
Sep 5 07:17:25 ntp: NTP update successful after 1 attempt(s)
Sep 5 08:17:25 ntp: start NTP update
Sep 5 08:17:25 ntp: NTP update successful after 1 attempt(s)
Sep 5 09:17:26 ntp: start NTP update
Sep 5 09:17:26 ntp: NTP update successful after 1 attempt(s)
Sep 5 09:28:08 openvpn[1290]: XXX.XXX.XXX.XXX:15211 TLS: Initial packet from [AF_INET]XXX.XXX.XXX.XXX:15211, sid=bd75d4c8 de2574ed
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_GUI_VER=OC30Android
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_VER=3.2
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_PLAT=android
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_NCP=2
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_TCPNL=1
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_PROTO=2
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_LZO=1
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 peer info: IV_BS64DL=1
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 PLUGIN_CALL: POST /usr/lib/openvpn-plugin-auth-pam.so/PLUGIN_AUTH_USER_PASS_VERIFY status=0
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 TLS: Username/Password authentication succeeded for username 'UserX' [CN SET]
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 Control Channel: TLSv1.2, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-GCM-SHA384
Sep 5 09:28:09 openvpn[1290]: XXX.XXX.XXX.XXX:15211 [UserX] Peer Connection Initiated with [AF_INET]XXX.XXX.XXX.XXX:15211
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 MULTI_sva: pool returned IPv4=10.8.0.2, IPv6=(Not enabled)
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 MULTI: Learn: 10.8.0.2 -> UserX/XXX.XXX.XXX.XXX:15211
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 MULTI: primary virtual IP for UserX/XXX.XXX.XXX.XXX:15211: 10.8.0.2
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 PUSH: Received control message: 'PUSH_REQUEST'
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 SENT CONTROL [UserX]: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0,route-gateway 10.8.0.1,topology subnet,ping 15,ping-restart 60,ifconfig 10.8.0.2 255.255.255.0,peer-id 0,cipher AES-128-GCM' (status=1)
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 Data Channel: using negotiated cipher 'AES-128-GCM'
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 Outgoing Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Sep 5 09:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 Incoming Data Channel: Cipher 'AES-128-GCM' initialized with 128 bit key
Sep 5 10:17:26 ntp: start NTP update
Sep 5 10:17:26 ntp: NTP update successful after 1 attempt(s)
Sep 5 10:28:09 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 TLS: soft reset sec=0 bytes=17793/-1 pkts=441/0
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_GUI_VER=OC30Android
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_VER=3.2
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_PLAT=android
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_NCP=2
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_TCPNL=1
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_PROTO=2
Sep 5 10:28:10 openvpn[1290]: UserX/XXX.XXX.XXX.XXX:15211 peer info: IV_LZO=1
Sep 5 11:17:26 ntp: start NTP update
Sep 5 11:17:26 ntp: NTP update successful after 1 attempt(s)
Sep 5 12:17:26 ntp: start NTP update
Sep 5 12:17:26 ntp: NTP update successful after 1 attempt(s)
Sep 5 13:17:26 ntp: start NTP update
Sep 5 13:17:26 ntp: NTP update successful after 1 attempt(s)
Sep 5 14:17:26 ntp: start NTP update
Sep 5 14:17:26 ntp: NTP update successful after 1 attempt(s)
Sep 5 15:17:27 ntp: start NTP update
Sep 5 15:17:27 ntp: NTP update successful after 1 attempt(s)
Sep 5 16:17:27 ntp: start NTP update
Sep 5 16:17:27 ntp: NTP update successful after 1 attempt(s)
Sep 5 17:17:27 ntp: start NTP update
Sep 5 17:17:27 ntp: NTP update successful after 1 attempt(s)
Sep 5 17:20:00 Diversion: updated ads counter: 592 total, 592 this week, 6 new since last count, from /opt/bin/diversion
Sep 5 18:17:27 ntp: start NTP update
Sep 5 18:17:27 ntp: NTP update successful after 1 attempt(s)
Sep 5 19:08:55 HTTP_login: login 'User1' successful from 192.168.1.104:80
Sep 5 19:17:27 ntp: start NTP update
Sep 5 19:17:27 ntp: NTP update successful after 1 attempt(s)
Sep 5 19:44:51 HTTP_login: logout successful 192.168.1.104:80
Sep 5 19:45:48 HTTP_login: login 'User1' successful from 192.168.1.104:80
How do I setup so that after idle the server closes the idle connection?
Thank You.