OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • How do I restart openvpn client from the command prompt?
« previous next »
  • Print
Pages: [1]

Author Topic: How do I restart openvpn client from the command prompt?  (Read 16499 times)

pedrofln

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
How do I restart openvpn client from the command prompt?
« on: September 30, 2015, 09:49:27 pm »
Gentleman,

How can I restart openvpn client from the command prompt? In PFsense there is the pfSsh.php that can be invoked to do that, but I have not found a similar one in OpnSense.

I will appreciate any help in this matter.

« Last Edit: September 30, 2015, 10:12:31 pm by pedrofln »
Logged

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 850
  • Karma: 163
    • View Profile
Re: How do I restart openvpn client from the command prompt?
« Reply #1 on: October 01, 2015, 05:07:06 pm »
Hi,

At the moment we don't have a call for that, although it shouldn't be very hard to create a configd call + script for it like all new features we implement.

Maybe you can add an issue on github (https://github.com/opnsense/core/) for such a feature? When there's time, we might pick it up and come up with calls like:

Code: [Select]
configctl openvpn client list
configctl openvpn client start <id>
configctl openvpn client stop <id>
configctl openvpn client restart <id>


Regards,

Ad

Logged

DanMc85

  • Jr. Member
  • **
  • Posts: 68
  • Karma: 3
    • View Profile
Re: How do I restart openvpn client from the command prompt?
« Reply #2 on: June 27, 2017, 05:11:00 pm »
I was just wondering if these or similar OpenVPN restart commands/scripts were ever implemented or if there are any other similar recommendations?

I would like OPNSense to restart my OpenVPN client running at:    /usr/local/sbin/openvpn --config /var/etc/openvpn/client2.conf     every evening at midnight (12AM). I was thinking about using CRON but wasn't sure the best way on how to implement it myself.

I am currently running 17.1.8 OPNSense

Thanks
« Last Edit: June 27, 2017, 05:12:31 pm by DanMc85 »
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 15.7 Legacy Series »
  • How do I restart openvpn client from the command prompt?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2