1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Availabilty of "service start_vpnclient1"

Discussion in 'Asuswrt-Merlin' started by Dan Lundmark, Feb 25, 2020.

Tags:
  1. Dan Lundmark

    Dan Lundmark New Around Here

    Joined:
    Feb 1, 2020
    Messages:
    7
    I have been able to understand that ASUS std firmware for an AC5300 router not any longer support the function "service start_vpnclient1" in a command line approach and also of course then not as a script. My question is if i flash my router with the Merlin version of fw will I be able to write a script for "service start_vpnclient1"?
     
  2. Zastoff

    Zastoff Senior Member

    Joined:
    Nov 21, 2017
    Messages:
    445
    I use these in /jffs/scripts init-start
    ## OVPN Restart @ 06.42 WeekDays
    cru a VpnRestartWD "42 6 * * 1-5 service stop_vpnclient1 && sleep 24m && service start_vpnclient1" #OVPN_Restart#

    ## OVPN Restart @ 06.04 WeekEnds
    cru a VpnRestartWE "04 6 * * 6,0 service stop_vpnclient1 && sleep 32m && service start_vpnclient1" #OVPN_Restart#
    Works fine for me ;)
     
    L&LD likes this.
  3. Dan Lundmark

    Dan Lundmark New Around Here

    Joined:
    Feb 1, 2020
    Messages:
    7
    Thanks very much, I will have to assume that would run well on a AC-5300 too. :)
     
    Zastoff likes this.