Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Start/Stop specific OVPN instance from command line/script ?

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 2.9k Views
    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.
    • G
      gridrun
      last edited by

      How can we start/stop a specific OpenVPN instance from a script?

      Tech stuff on my blog: http://niston.wordpress.com

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Not easily possible on pfSense 2.0.x

        Easy on pfSense 2.1:

        pfSsh.php playback svc stop openvpn server 2
        pfSsh.php playback svc start openvpn server 2
        pfSsh.php playback svc restart openvpn server 2

        The # is the actual VPN ID, the one you'll see in the links to the service controls on the service status page.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.