Configuration files¶
ShorewallNF reads a configuration directory of Shorewall-style tabular files. It processes only the files it knows about, in a fixed order; anything else in the directory is ignored.
Skeleton page
One row per file with a link out to a dedicated page as each is documented in full.
Files ShorewallNF processes¶
| File | Purpose |
|---|---|
params |
Variable definitions substituted into the other files during preprocessing. |
zones |
Named network zones (family-aware membership). |
interfaces |
Interface-to-zone bindings and per-interface options. |
providers |
Policy-routing providers. |
policy |
Default inter-zone policies and their logging. |
sets |
Named address sets referenced as +setname in rules. |
rules |
Per-connection filter rules and DNAT/port-forwarding. |
snat |
Source NAT / masquerading (IPv4). |
conntrack |
Connection-tracking helper assignments (FTP, SIP, …). |
mangle |
Packet marking and TPROXY. |
stoppedrules |
Admin-access rules that stay in force in the stopped safe state. |
shorewallnf.conf — an optional, non-tabular KEY=value settings file for whole-ruleset
behaviour (logging, kernel sysctl toggles) — is documented separately: see
shorewallnf.conf reference.
Preprocessing¶
Before parsing, ShorewallNF resolves params substitution and the ?if / ?FORMAT /
?SECTION directives, so the files support the same conditional and formatting constructs as
Shorewall.