OpenVPN time-out

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
tripline
OpenVpn Newbie
Posts: 3
Joined: Fri Dec 29, 2017 4:22 pm

OpenVPN time-out

Post by tripline » Thu Mar 08, 2018 1:37 pm

My OpenVPN seems to time-out really fast (around 15 minutes). I try to do a ping -t yahoo.com to act as if the computer is active but I still get timed out. Why would constant ping count as inactivity? How can I extend my time-out or remove it altogether?

Here is my client config file

client
dev tun
proto udp

remote IP port#
resolv-retry infinite
nobind
persist-key
persist-tun

comp-lzo
auth-user-pass
auth-nocache
remote-cert-tls server

cipher AES-128-CBC
auth SHA256
key-direction 1

pkcs12 Name.p12
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>
____________________________________________________________________________________-
Here is the server config

push "route ip subnet"
push "route ip subnet"

dev tun

management ip port

server ip subnet

dh .../dh2048.pem
ca .../ca.crt
cert .../crt
key /.../server.key
tls-auth.../ta.key 0

max-clients 20

comp-lzo

persist-tun
persist-key

verb 3

log-append /var/log/openvpn.log

keepalive 10 60
reneg-sec 0

plugin /var/packages/VPNCenter/target/lib/radiusplugin.so /var/packages/VPNCenter/target/etc/openvpn/radiusplugin.cnf

username-as-common-name
duplicate-cn

status /tmp/ovpn_status_2_result 30
status-version 2
proto udp6

port #
cipher AES-128-CBC
auth SHA256
_________________________________________________________________________________________
Client Logs
Thu Mar 08 08:44:22 2018 Successful ARP Flush on interface [12] {C453AC44-BD06-407E-A8AF-6F4E08A055EC}
Thu Mar 08 08:44:23 2018 do_ifconfig, tt->did_ifconfig_ipv6_setup=0
Thu Mar 08 08:44:28 2018 Initialization Sequence Completed
Thu Mar 08 09:46:58 2018 ERROR: could not read Auth username/password/ok/string from management interface
Thu Mar 08 09:46:58 2018 Exiting due to fatal error
Last edited by tripline on Thu Mar 08, 2018 3:47 pm, edited 1 time in total.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5127
Joined: Fri Jun 03, 2016 1:17 pm

Re: OpenVPN time-out

Post by TinCanTech » Thu Mar 08, 2018 2:30 pm

Check your server log.

Post Reply