Add and modify firewall rules remotely - API?
-
Hi
What would be the best way to automatically create/modify pfSense firewall rules from a remote system? I need this for an ongoing project, and I haven't found a solution yet. Is there a way to do this? Could I do this with the PHP shell on pfSense or is there an API?
I could also spend some hours working on an API.
-
You could read the config.xml, (in /conf) edit it, restore back and reload the rules.
-
If you just want to add a rule, check out easyrule.php in 2.0 or in the Dashboard package in 1.2.3. You could probably call that remotely with the right params and do what you need.