letheanVPN / lthn-app-vpn

Client/Server dVPN
https://www.lt.hn
European Union Public License 1.2
36 stars 16 forks source link

Loosing internet connection with lthnvpnc_4.exe OpenVPN after 10 minutes #74

Closed ronnylov closed 5 years ago

ronnylov commented 5 years ago

Hi!

As mentioned in discord I am having an issue that internet browser can't load pages after 10 minutes of usage of the VPN. Attaching log files from server and client.

lthnvpnd.log lthnvpnc.log

valiant1x commented 5 years ago

Hi @ronnylov, is the service time set to 10 minutes on the server side for the services in question?

This most likely relates to the more pressing bug that still exists: subsequent payments are not being processed properly for haproxy or VPN. See #75..

ronnylov commented 5 years ago

Time is set to 30 minutes. But there is a reneg 600 in /opt/lthn/var/vpn_1D/cfg which I bekeive might have something to do with this. Not sure though.

cd /opt/lthn/var/vpn_1D/
dhcp-option dns 172.28.0.11
dh /opt/lthn/etc/dhparam.pem
topology net30
server 10.11.0.0 255.255.0.0
#server-ipv6 None
keepalive 30 120
reneg-sec 600
#<tls-auth>
#f_ta
#</tls-auth>
#key-direction 0
auth SHA256
management 127.0.0.1 10111
management-hold
management-up-down
management-query-passwords
cipher AES-256-CBC
#user nobody
#group nogroup
status status
float
tun-mtu 1400
mssfix 1300
syslog
ronnylov commented 5 years ago

But thinking about it I might have run out of money because I reconnected to same authid without paying again. Well maybe the logs can give some info. The server log includes also first connection.

valiant1x commented 5 years ago

fixed in #81 by adding openvpn server handling of REAUTH message