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!

Turn on OpenVPN via ssh?

Discussion in 'Asuswrt-Merlin' started by ICDeadPpl, Oct 9, 2013.

  1. ICDeadPpl

    ICDeadPpl Occasional Visitor

    Joined:
    Sep 27, 2012
    Messages:
    16
    Is there a way to switch on/off the OpenVPN client (1 or 2) from the shell?
    That way I could enable and disable the OpenVPN client via a bash script...
     
  2. RMerlin

    RMerlin Super Moderator

    Joined:
    Apr 14, 2012
    Messages:
    32,521
    Location:
    Canada
    Code:
    service stop_vpnclient1
    and
    service start_vpnclient1
    
    (or 2 if you configured the second instance)