SHOREWALL-MODULES(5)
π SHOREWALL-MODULES π
okay bestie so this is the shorewall-modules page from the Configuration Files section of the manual β it's the one about the modules and helpers files, and honestly it's short but it's lowkey important so let's go π«Ά
β¨ NAME β¨
modules β Shorewall file, that's it, that's the name, she's simple and she knows it π
πΈ SYNOPSIS πΈ
/usr/share/shorewall[6]/modules
/usr/share/shorewall[6]/helpers
like yes, those are the paths, and the [6] is doing its little "maybe there's a 6 here, maybe there isn't" thing, iykyk π
π¦ DESCRIPTION π¦
so these files are the ones that tell Shorewall which kernel modules to load before it goes and tries to figure out what your iptables/kernel can actually do. vibe check first, capabilities second, periodt β¨
here's the tea on which file gets used:
- the
modulesfile is used whenLOAD_HELPERS_ONLY=Noinshorewall.conf(8) - the
helpersfile is used whenLOAD_HELPERS_ONLY=Yes
Important π¨ β beginning with Shorewall 5.2.3, theLOAD_HELPERS_ONLYoption has been removed, and the behavior is the same as ifLOAD_HELPERS_ONLY=Yeswas specified. so yeah, that option is giving ghost of christmas past π
every record in these files has this format:
loadmodule modulename [moduleoption...]
the modulename names a kernel module (no suffix, bestie, leave the suffix at home). Shorewall will search for modules based on your MODULESDIR setting in shorewall.conf(8). the moduleoptions get passed to modprobe (if it's installed) or to insmod. no cap π―
the /usr/share/shorewall/modules file contains a large number of modules. and the manpage says users are encouraged to copy that file over to /etc/shorewall/modules and modify the copy so you only load the modules you actually need β or alternatively just use LOAD_HELPERS_ONLY=Yes. not me being told to declutter my module list π§Ήβ¨
Note π β if you build monolithic kernels and you have not installedmodule-init-tools, then create an empty/etc/shorewall/modulesfile; that will prevent Shorewall from trying to load modules at all. empty file = no modules attempted, iconic minimalism π
π EXAMPLE π
loadmodule ip_conntrack_ftp ports=21,221
look at her, loading ip_conntrack_ftp with ports=21,221, she's thriving π
π FILES π
/usr/share/shorewall/modules/usr/share/shorewall/helpers/etc/shorewall/modules/etc/shorewall/helpers/usr/share/shorewall6/modules/usr/share/shorewall6/helpers/etc/shorewall6/modules/etc/shorewall6/helpers
eight files, all accounted for, no skips, we don't do that here π
π SEE ALSO π
shorewall(8)
go read her next, she's the main character π«Ά
π NOTES π
- shorewall.conf https://shorewall.org/manpages/shorewall.conf.html
like the link, go click it, it's right there β
and that's the whole page bestie!! mwah π this was served up by the Configuration Files crew, version 09/24/2020, under the name SHOREWALL-MODULES(5) β so when you cite her, cite her full government name π€π stay slaying, drink water, and don't forget to modprobe responsibly π
β¨πΈ
π¦ where this page comes from
- alpine 3.22: shorewall-doc 5.2.8-r1 Β· GPL-2.0-or-later
- alpine 3.23: shorewall-doc 5.2.8-r1 Β· GPL-2.0-or-later
- alpine 3.24: shorewall-doc 5.2.8-r1 Β· GPL-2.0-or-later
- debian bookworm: shorewall 5.2.8-2 Β· GPL-2.0-or-later
- debian trixie: shorewall 5.2.8-6 Β· GPL-2.0-or-later
- fedora 43: shorewall 5.2.8-17.fc43 Β· GPL-2.0-or-later
- fedora 44: shorewall 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: shorewall 5.2.8-5 Β· GPL-2.0-or-later
- ubuntu questing: shorewall 5.2.8-6
- ubuntu resolute: shorewall 5.2.8-6build1 Β· GPL-2.0-or-later
- ubuntu stonking: shorewall 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