Control the OpenBSD packet filter (PF).
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:
all
info
osfp
rules
sources
states
tables
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.
Full path to the file containing the ruleset.
Don't actually load the rules, just parse them.
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)
.
Log level. Should be one of the following: emerg, alert, crit, err, warning, notice, info or debug (OpenBSD); or none, urgent, misc, loud (FreeBSD).
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.
rules
states
tables
CLI Example:
salt '*' pf.show rules
Apply a command on the specified table.
Name of the table.
Command to apply to the table. Supported commands are:
add
delete
expire
flush
kill
replace
show
test
zero
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"]'