SHOREWALL-PARAMS(5)
πΈ NAME πΈ
okay so this is the manual page for params β the Shorewall parameters file, bestie. it's SHOREWALL-PARAMS(5) if you're keeping track, and it's genuinely the most low-key powerful file in your whole firewall setup π
β¨ SYNOPSIS β¨
/etc/shorewall[6]/params
π DESCRIPTION π
okay so the whole vibe of this file is: assign any shell variables you need in here. that's it, that's the job. and because the file is always processed by /bin/sh, you get the full range of shell capabilities β loops, conditionals, command substitution, all of it. the whole toolbox. slay β¨
one lil tip though (a suggestion, not a rule, don't come for me): it's suggested that you start your variable names with an upper case letter. why? so they don't get confused with the variables Shorewall's own programs use internally. keep your stuff visually separate from their stuff. it's giving boundaries, and we love that π«Ά
π« variable names you MUST avoid π«
ngl this is the important part. these names are off-limits:
- the ones printed in bold are banned in all Shorewall versions, periodt.
- the ones in regular font are only a problem in versions prior to
4.4.8.
fr fr, do not name your variables any of these. the shell doesn't care about your feelings, and neither does a collision π
here's the list:
- Any option from
shorewall.conf(5) COMMANDCONFDIRDEBUGECHO_EECHO_NEXPORTFASTFILEMODEHOSTNAMEIPT_OPTIONSNOROUTESPREVIEWPRODUCTPROFILEPURGERECOVERINGRESTOREPATHRING_BELLSHAREDIR- Any name beginning with
SHOREWALL_orSW_ STOPPINGTESTTIMESTAMPUSE_VERBOSITYVARDIRVERBOSEVERBOSE_OFFSETVERSION
π example params file π
so this is what a params file can look like:
NET_IF=eth0
NET_BCAST=130.252.100.255
NET_OPTIONS=routefilter
and here's an example shorewall-interfaces(5) file that uses those variables:
ZONE INTERFACE BROADCAST OPTIONS
net $NET_IF $NET_BCAST $NET_OPTIONS
and this is exactly the same thing as if the interfaces file had just said:
ZONE INTERFACE BROADCAST OPTIONS
net eth0 130.252.100.255 routefilter
see?? the variables just get swapped in. iconic behaviour, no notes π
π FILES π
/etc/shorewall/params/etc/shorewall6/params
π SEE ALSO π
π NOTES π
shorewall.confhttps://shorewall.org/manpages/shorewall.conf.htmlshorewall-interfaceshttps://shorewall.org/manpages/shorewall-interfaces.html- https://shorewall.org/configuration_file_basics.htm#Variables https://shorewall.org/configuration_file_basics.htm#Variables
and that's the whole page, bestie π¦ this one lives in Configuration Files, it's version SHOREWALL-PARAMS(5), and it was dated 09/24/2020. go forth and name your variables something that isn't on that list π
β¨
π¦ where this page comes from
- alpine 3.22: shorewall6-doc 5.2.8-r1 Β· GPL-2.0-or-later
- alpine 3.23: shorewall6-doc 5.2.8-r1 Β· GPL-2.0-or-later
- alpine 3.24: shorewall6-doc 5.2.8-r1 Β· GPL-2.0-or-later
- debian bookworm: shorewall6 5.2.8-2 Β· GPL-2.0-or-later
- debian trixie: shorewall6 5.2.8-6 Β· GPL-2.0-or-later
- fedora 43: shorewall6 5.2.8-17.fc43 Β· GPL-2.0-or-later
- fedora 44: shorewall6 5.2.8-18.fc44 Β· GPL-2.0-or-later
- nixos 26.05: shorewall 5.2.8
- nixpkgs unstable: shorewall 5.2.8
- ubuntu noble: shorewall6 5.2.8-5 Β· GPL-2.0-or-later
- ubuntu questing: shorewall6 5.2.8-6
- ubuntu resolute: shorewall6 5.2.8-6build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms