API or remote CLI to configure pfSense
-
Hi,
I want to configure Firewall, NAT and basic VLAN configuration through either APIs or through script automation.
I am pretty new to pfSense and have tried few configurations through Web GUI. After searching on Web I did not find anything concrete to achieve this through APIs or using python,SSH scripts. Can you help me providing some pointers on this? -
According to the road map I think it is slated for 3.0.
https://forum.pfsense.org/index.php?topic=89436.0
https://blog.pfsense.org/?p=1588
-
Thanks for Sharing info on it.
For now I would like to know any alternative way that I can use to dynamically configure Firewall and NAT rules programmatically.
-
Use PhantomJS to programmatically drive web gui.
Though possible probably not very practical.Write scripts to make desired changes to config.xml and reload. Very dangerous. Not recommended.
Back up config, make changes to backed up config, restore config. Very dangerous. Not recommended.Sorry. Not much help am I.
-
Reload config will interrupt ongoing traffic?
-
Reload config will interrupt ongoing traffic?
I think it requires a reboot, so YES.
Making a change in the webconfigurator, saving and applying does NOT. You have to manually kill states to interrupt existing sessions. -
Thanks a lot for help.
So can I install phantomJs on pfSense itself?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy