What's new

OpenVPN client switches off

  • 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!

ejh

Occasional Visitor
Hello

I'm running Merlin 380.65_4 on my RT-AC68W.
A few days ago I configured an OpenVPN client and defined 2 device rules as defined here: https://github.com/RMerl/asuswrt-merlin/wiki/Policy-based-routing.

Everything works well when the client is on.
However I noticed that sometimes the client is suddenly off.
The first time I noticed it was after I powered off my router. When I turned it back on the vpn client was off.
I thought it had to do with the power.

Today I noticed it again and there was no power off I'm aware of.

Is this any known issue?
What can I do to resolve it?

Thanks
 
What does the system log says about OpenVPN?

Also please post your configuration for troubleshooting purposes.
 
I'm not sure what to look for so I'm posting my logs at the moment while I keep digging.

Which configuration should I post? My vpn or something else?
 

Attachments

  • syslog.txt
    343.7 KB · Views: 716
I found this block in my logs:

May 8 11:08:16 openvpn[1143]: event_wait : Interrupted system call (code=4)
May 8 11:08:16 openvpn[1143]: vpnrouting.sh tun11 1500 1622 10.22.0.22 10.22.0.21 init
May 8 11:08:16 openvpn-routing: Configuring policy rules for client 1
May 8 11:08:16 openvpn-routing: Flushing client routing table
May 8 11:08:16 openvpn-routing: Completed routing policy configuration for client 1
May 8 11:08:16 openvpn[1143]: /usr/sbin/ip route del 10.22.0.1/32
May 8 11:08:16 openvpn[1143]: ERROR: Linux route delete command failed: external program exited with error status: 2
May 8 11:08:16 openvpn[1143]: /usr/sbin/ip route del 192.207.255.15/32
May 8 11:08:16 openvpn[1143]: ERROR: Linux route delete command failed: external program exited with error status: 2
May 8 11:08:16 openvpn[1143]: /usr/sbin/ip route del 0.0.0.0/1
May 8 11:08:16 openvpn[1143]: ERROR: Linux route delete command failed: external program exited with error status: 2
May 8 11:08:16 openvpn[1143]: /usr/sbin/ip route del 128.0.0.0/1
May 8 11:08:16 openvpn[1143]: ERROR: Linux route delete command failed: external program exited with error status: 2
May 8 11:08:16 openvpn[1143]: Closing TUN/TAP interface
May 8 11:08:16 openvpn[1143]: /usr/sbin/ip addr del dev tun11 local 10.22.0.22 peer 10.22.0.21
May 8 11:08:16 openvpn[1143]: SIGTERM[hard,] received, process exiting
 
I'm not sure what to look for so I'm posting my logs at the moment while I keep digging.

Which configuration should I post? My vpn or something else?
That log is mixed from different programs.
 
That log is mixed from different programs.
Yes you are right.
Is there a specific OpenVPN log? Where can I find it?
On the OpenVPN client page it says:
In case of problem, see the System Log for any error message related to openvpn.

And how can I post my configuration?
 
At one point your Internet connection went down, which explains the disconnection.

Code:
May  8 11:08:01 WAN Connection: Fail to connect with some issues.
May  8 11:08:01 stop_nat_rules: apply the redirect_rules!
May  8 11:08:02 pppd[525]: Connection terminated.
May  8 11:08:03 pppd[525]: Modem hangup

If you fail to reconnect to the tunnel when the Internet goes down or the router reboots, then make sure you have set "Start with WAN" to "Yes" on the OpenVPN client configuration.
 
At one point your Internet connection went down, which explains the disconnection.

Code:
May  8 11:08:01 WAN Connection: Fail to connect with some issues.
May  8 11:08:01 stop_nat_rules: apply the redirect_rules!
May  8 11:08:02 pppd[525]: Connection terminated.
May  8 11:08:03 pppd[525]: Modem hangup

If you fail to reconnect to the tunnel when the Internet goes down or the router reboots, then make sure you have set "Start with WAN" to "Yes" on the OpenVPN client configuration.

Thanks for the quick reply.
"Start with WAN" was indeed set to "No".
 

Latest threads

Sign Up For SNBForums Daily Digest

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