What's new

Reconnect openvpn every hour AC68U

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Hi.
Openvpn reconnect every hour on router. Why it happens?
It is impossible to say with so little information
 
I can't insert the log. Forum is blocked me, when I insert log in message.
You can use pastebin to post logs and put link here.
 
Router - AC68U, firmware - 380.65
 

Attachments

  • 1.jpg
    1.jpg
    104.6 KB · Views: 327
Router restart openvpn every hour. Client can't work near 2 minutes, while server down and up. It's normal?

daemon
topology subnet
server 192.168.0.0 255.255.255.0
proto udp
port *
dev tun21
cipher BF-CBC
comp-lzo adaptive
keepalive 15 60
verb 3
push "route 192.168.1.0 255.255.255.0 vpn_gateway 500"
duplicate-cn
push "dhcp-option DNS 192.168.1.1"
push "redirect-gateway def1"
tls-auth static.key 0
ca ca.crt
dh dh.pem
cert server.crt
key server.key
status-version 2
status status 10

Doh. it's "keepalive 15 60" do this?
 
Last edited:
Yes, it's commandline config.
 

Attachments

  • openvpn_version.jpg
    openvpn_version.jpg
    13.7 KB · Views: 525
  • openvpn_gui.jpg
    openvpn_gui.jpg
    63.2 KB · Views: 421
You missing:
Auth Digest
I would change VPN subnet/mask to default.
Chirper Negotiation missing
I would use aes-128-cbc ist optimized to that.

Make sure your time is working. (NTP)
 
I changed the openvpn settings with your recommendations. Server still rebooted each hour.

ps which auth digest are you recommend?
 
I changed the openvpn settings with your recommendations. Server still rebooted each hour.
ps which auth digest are you recommend?

I'm using ecdca-with-SHA1 but SHA1 will sute your needs. If router reboot every hour there must be any other problems.
What you show in log I can't se any prblem relaying to that.
 
Key rotation defaults to every hour. It's a security measure, it's normal in the default configuration. Your wifi does the same thing in WPA2, renegotiating the key every hour.
 
Yep, that's what I was showing above. Rotating the key every hour cuts down on someones ability to "crack" your key. By the time they do, you are already issued a new key and the compromised one would be invalid at the point. (Guess I should have explained more than just the link)
 
Sorry, but key rotation is not what he is seeing. udhcpc is restarting both the firewall and the vpnserver, so something on the WAN side is changing. Does your ISP have a short lease interval?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top