Mostafa Hussein <mostafa.hussein91@gmail.com>
new
python-iptables
Linux
Add host (IP/FQDN) to allow_hosts.rules and immediately load new rule into firewall
CLI Example:
salt '*' apf.allow 127.0.0.1
Add host (IP/FQDN) to deny_hosts.rules and immediately load new rule into firewall
CLI Example:
salt '*' apf.deny 1.2.3.4
Stop (flush) all firewall rules
CLI Example:
salt '*' apf.disable
Load all firewall rules
CLI Example:
salt '*' apf.enable
Refresh & resolve dns names in trust rules
CLI Example:
salt '*' apf.refresh
Stop (flush) & reload firewall rules
CLI Example:
salt '*' apf.reload
Remove host from [glob]*_hosts.rules and immediately remove rule from firewall
CLI Example:
salt '*' apf.remove 1.2.3.4
Check apf status
CLI Example:
salt '*' apf.running