Automate PFsense
-
Hi All,
I have a virtualized pfsense firewall in front of a vcenter server with almost 100 new servers being added a day.
We program the new VM's MAC Address in the pfsense to get a static IP and then port forward to the new Static IP.
Is there any way to bluck add rules or do we have to add each rule manually...
Any help would be appreciated.
-
I think you would have to modify the config.xml file, then restore it back to the running system via SSH script.
You might want to checkout TNSR.
https://www.netgate.com/applications/high-performance-vrouter.html -
@mattman0123 said in Automate PFsense:
Hi All,
I have a virtualized pfsense firewall in front of a vcenter server with almost 100 new servers being added a day.
We program the new VM's MAC Address in the pfsense to get a static IP and then port forward to the new Static IP.
Is there any way to bluck add rules or do we have to add each rule manually...
Any help would be appreciated.Maybe you can automate it via the php shell:-
https://www.netgate.com/docs/pfsense/development/using-the-php-pfsense-shell.html?highlight=automation
-
Would any one give me an example of what the php would look like to add a static map?
-
Maybe not.
https://forum.netgate.com/topic/109030/upload-a-dhcp-static-mappings-table-to-a-pfsense-device