What's new

OpenVPN Client Doesn't Stay Active After Reboot

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

Starbloom

Occasional Visitor
Using the latest firmware 380.68 on AC3100. The router is in "Repeater Mode", so it's not the usual setup. Activate the service "Client 1" OpenVPN profile and it connects. However, after reboot, it stays inactive.

Model RT-AC3100
Firmware Version 380.68
Firmware Build Fri Aug 18 21:40:59 UTC 2017 merlin@c46c964
Bootloader (CFE) 1.0.3.9

My AC87U as the main router doesn't have this issue and VPN reconnects after reboot. Any idea why? Thanks.
 
Confirmed the auto start with WAN script. So in repeater mode, no VPN client will start.

The workaround is to use custom script to check internet connection then start VPN Client from command line.

Could consider this as a future improvement.
 
In Repeater Mode VPN is not supported, as the implementation relies on the presence of separate WAN and LAN interfaces.
 
If it's in repeater mode why does it even need to connect to the VPN.it's just repeating the wireless from primary router that will handle the vpn.
 
That's a good question. In my case, the primary router is stable but a bit overwhelmed with VPN duty. The AC3100 has a good CPU and light load in its AP duty. Plus I have different VPN routes connecting to multiple data centers, so it's handy having always-on VPN routes available from my secondary router.

Here's the script:

/jffs/scripts/services-start
Code:
#!/bin/sh
exec /jffs/scripts/startopenvpn &

/jffs/scripts/startopenvpn
Code:
#!/bin/sh

while true; do
  sleep 10
  if ping -w 10 -c 10 www.google.com > /dev/null; then
    break;
  fi
done

logger -t "openvpn" "start vpnclient1"
service start_vpnclient1
 
Last edited:
That's a good question. In my case, the primary router is stable but a bit overwhelmed with VPN duty. The AC3100 has a good CPU and light load in its AP duty. Plus I have different VPN routes connecting to multiple data centers, so it's handy having always-on VPN routes available from my secondary router.

Here's the script:

/jffs/scripts# cat services-start
Code:
#!/bin/sh
exec /jffs/scripts/startopenvpn &

/jffs/scripts/startopenvpn
Code:
#!/bin/sh

while true; do
  sleep 10
  if ping -w 10 -c 10 www.google.com > /dev/null; then
    break;
  fi
done

logger -t "openvpn" "start vpnclient1"
service start_vpnclient1
But as a repeater surely it is incapable of actually routing anything to the VPN, since it has no concept of LAN and WAN? Unless I'm missing something
 
No it's a fully functioning router with nat & iptables capability. You do need to configure routes using scripts on the primary (and maybe the secondary if more than what OpenVPN can push), so each packet knows the proper gateway to use.

Primary: AC87U 1 VPN connection
Secondary: AC3100 3 VPN connections
 

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

Staff online

Top