The pfSense Store

Author Topic: Start/Stop specific OVPN instance from command line/script ?  (Read 1675 times)

0 Members and 1 Guest are viewing this topic.

Offline gridrun

  • Jr. Member
  • **
  • Posts: 67
  • Karma: +1/-0
    • View Profile
Start/Stop specific OVPN instance from command line/script ?
« on: April 15, 2013, 09:44:44 am »
How can we start/stop a specific OpenVPN instance from a script?
Tech stuff on my blog: http://niston.wordpress.com

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 19962
  • Karma: +1150/-8
    • View Profile
Re: Start/Stop specific OVPN instance from command line/script ?
« Reply #1 on: April 15, 2013, 04:37:19 pm »
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.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!