salt.modules.apf
Support for Advanced Policy Firewall (APF)
- maintainer
-
Mostafa Hussein <mostafa.hussein91@gmail.com>
- maturity
-
new
- depends
-
python-iptables
- platform
-
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
salt.modules.apf.allow(ip, port=None)
-
Add host (IP/FQDN) to deny_hosts.rules and immediately load new rule into firewall
CLI Example:
salt '*' apf.deny 1.2.3.4
salt.modules.apf.deny(ip)
-
Stop (flush) all firewall rules
CLI Example:
salt '*' apf.disable
salt.modules.apf.disable()
-
Load all firewall rules
CLI Example:
salt '*' apf.enable
salt.modules.apf.enable()
-
Refresh & resolve dns names in trust rules
CLI Example:
salt '*' apf.refresh
salt.modules.apf.refresh()
-
Stop (flush) & reload firewall rules
CLI Example:
salt '*' apf.reload
salt.modules.apf.reload()
-
Remove host from [glob]*_hosts.rules and immediately remove rule from firewall
CLI Example:
salt '*' apf.remove 1.2.3.4
salt.modules.apf.remove(ip)
-
Check apf status
CLI Example:
salt '*' apf.running
salt.modules.apf.running()
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.apf.html