OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: pedrofln on September 30, 2015, 09:49:27 pm

Title: How do I restart openvpn client from the command prompt?
Post by: pedrofln 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.

Title: Re: How do I restart openvpn client from the command prompt?
Post by: AdSchellevis 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

Title: Re: How do I restart openvpn client from the command prompt?
Post by: DanMc85 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