Control the OpenBSD packet filter (PF).
codeauthor: | Jasper Lievisse Adriaanse <j@jasper.la> |
---|
New in version 2019.2.0.
Disable the Packet Filter.
CLI example:
salt '*' pf.disable
Enable the Packet Filter.
CLI example:
salt '*' pf.enable
Flush the specified packet filter parameters.
Should be one of the following:
Please refer to the OpenBSD pfctl(8) documentation for a detailed explanation of each command.
CLI example:
salt '*' pf.flush states
Load a ruleset from the specific file, overwriting the currently loaded ruleset.
CLI example:
salt '*' pf.load /etc/pf.conf.d/lockdown.conf
Set the debug level which limits the severity of log messages printed by pf(4)
.
CLI example:
salt '*' pf.loglevel emerg
Show filter parameters.
Modifier to apply for filtering. Only a useful subset of what pfctl supports can be used with Salt.
CLI example:
salt '*' pf.show rules
Apply a command on the specified table.
Command to apply to the table. Supported commands are:
Please refer to the OpenBSD pfctl(8) documentation for a detailed explanation of each command.
CLI example:
salt '*' pf.table expire table=spam_hosts number=300 salt '*' pf.table add table=local_hosts addresses='["127.0.0.1", "::1"]'
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.pf.html