REST Style WebAPI for other systems to dynamiclly create firewalling rules.
-
I'm wanting to have another system interact with my pfsense machine to create firewall rules, check status's, etc.. I was hoping to simply use the webgui for this in a REST manner by sending the needed http GET's an POST's. Does anyone know if this is possible or if their is a easier way and could point me to any documentation available on that?
-
I'm wanting to have another system interact with my pfsense machine to create firewall rules, check status's, etc.. I was hoping to simply use the webgui for this in a REST manner by sending the needed http GET's an POST's. Does anyone know if this is possible or if their is a easier way and could point me to any documentation available on that?
Also the console has a developer shell option however it doesn't appear to functional but their seems to be a mechanism to modify/create filter rules and other settings. I'm really not wanting to use the command line to manually drop in new filtering rules using pfctl since they will not be visible within the webgui.
release info:
2.0.1-RELEASE (i386)
built on Mon Dec 12 18:24:17 EST 2011
FreeBSD 8.1-RELEASE-p6 -
Using "easyrule' appears to be the best approach but I'm not clear on the best way to do the filter reload after adding new rules via this method.
https://192.168.1.254:444/easyrule.php?action=pass&int=wan&proto=tcp&src=4.4.4.4&dst=5.5.5.5&dstport=1723&ipproto=inet
http://doc.pfsense.org/index.php/Adding_Rules_With_easyrule
-
EasyRule automatically does a filter reload when called.