Setup OpenVPN client auto connects to remote server after reboot in AC3100, AC88U Merlin system

As you may know, the OpenVPN server already can be auto startup after reboot router, however,  OpenVPN client need you manually start it after your machine reboot. 

user can set up a custom script to make system services auto-start after reboot

Let's start !

1, SSH login router 

2, 

cd /jffs/scripts

vi services-start

(input the code in below and :wq to save and quit)

 #!/bin/sh

service start_vpnclient1

sleep 5

/etc/openvpn/vpnclient1 --cd /etc/openvpn/client1 --config config.ovpn






Comments

Popular posts from this blog

梅林380固件支持vless,xray,trojan, trojan go

An efficient way to transpose a file in Bash