On 3/15/2012 5:01 AM, Raimund Sacherer wrote: > I would wish that pfSense integrates a simple REST API for functionality like > that: > > * Add/Remove IP to/from alias > * Add/Remove Rule X (e.g., we do at times integration work, would be nice to > have GUI in our back-office application that requests a port open to an > internal dev pc, and on submit, add's this rule via the REST API to pfsense > and reloads the config, ...) > * Reload Config > > Doesn't have to be that fancy, I guess one could check the forms and create > scripts that execute these, but it's dificult to not mess up this way ...
Not really an API, but check out the easy rule code (the code that adds rules from the firewall log view), and the "easyrule" command line program. It's been fixed up a bit in master and RELENG_2_0 compared to 2.0.1 but it could still give someone good ideas. Jim _______________________________________________ List mailing list List@lists.pfsense.org http://lists.pfsense.org/mailman/listinfo/list