ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

manage rule #50

Open Nacho-Neko opened 5 years ago

Nacho-Neko commented 5 years ago

rule_update Rule_ID(1) type:(UDP/TCP/ICMP/ALL/OTHER) Port(80;443;21:22) Description (TEST) return (True?False)

rule_create type:(UDP/TCP/ICMP/ALL/OTHER) Port(80;443;21:22) Description (TEST) return (Rule_ID?-1)

rule_delect Rule_ID(1) return (True?False)

rule_search source(192.168.1) || destination(192.1681.2) return Serialization(List)

ndejong commented 5 years ago

Thanks for the brief suggestion here

Could you provide a little more detail how you actually see these working?

N

setsecurity commented 4 years ago

It would be nice to be able to run easyrule (rule command line management) with the API. From a security perspective it would be interesting, you could send from a SIEM calls to block malware connections in firewall.

ndejong commented 4 years ago

You may want to review the approach discussed here https://github.com/ndejong/pfsense_fauxapi/issues/56#issuecomment-569243747