OpenVPN Commands
-
Good Morning,
I would like to know where I get Commands for OpenVPN, I need to make a script for when to drop a tunnel, disable one and upload another. I would like to know if you have any documentation pages for pfSense openvpn commands.Tks.
-
you'll be in for a rough ride
https://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell
example from devshell
pfSense shell: playback svc start openvpn client 1
example from shell:
pfSsh.php playback svc stop openvpn client 1
-
Thanks,
I would like to disable the tunnel, is there a command for this?
My situation is as follows:
I have a main tunnel in ipv6 and a secondary tunnel for ipv4 failover.
So I need to disable the tunnel that I'm not using. -
you'd need to script a marcro to write the config (examples can be found in the wiki link i posted before)
i posted some examples for someone who wished to change settings to captive-portal here:
https://forum.pfsense.org/index.php?topic=121762.msg673072#msg673072its not all that difficult but will need some experimenting.