TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Turn your VPN on/off

    Example Commands
    3
    3
    485
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Seth KazzimS
      Seth Kazzim
      last edited by

      I'm using Merlin atm, so the command below will work.

      ssh router-admin-name@router-ip service stop_vpnclient1
      ssh router-admin-name@router-ip service start_vpnclient1

      You will need to turn off allow password login and generate/add the keys from your machine.

      But it works well. I will write up a full guide, only took me about a day to figure out so it can't be that hard.

      1 Reply Last reply Reply Quote 1
      • Scott BartonS
        Scott Barton
        last edited by

        For OpenWRT you can start the VPN interface with:
        ifup VPNInterfaceName

        And Stop it with:
        ifdown VPNInterfaceName

        More info:
        https://openwrt.org/docs/guide-user/base-system/basic-networking#network_management

        1 Reply Last reply Reply Quote 1
        • Seth KazzimS
          Seth Kazzim
          last edited by

          Thanks for that tip, Scott.

          I will add that to my guide on r/SmartHome.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post