SHOREWALL-MACLIST(5)
β¨ NAME β¨
maclist β the Shorewall MAC Verification file, bestie π (this is the shorewall-maclist(5) page, iykyk)
πΈ SYNOPSIS πΈ
/etc/shorewall[6]/maclist
π¦ DESCRIPTION π¦
Okay so listen. This file is where you define the MAC addresses β and optionally their little IP address besties β that are allowed to use a specified interface. Gatekeeping, but make it β¨networkingβ¨.
The way you turn this whole thing on is by using the maclist option over in the shorewall-interfaces[1](5) or shorewall-hosts[2](5) configuration file. No option, no vibe check. π«Ά
The columns in the file go like this (and heads up: where a column name is followed by a different name in parentheses, that different name is the one you use in the alternate specification syntax β yes it's giving two names, one column, iconic behavior π ).
- DISPOSITION β
{ACCEPT|DROP|REJECT}[:log-level]So this isACCEPTorDROP(and btw, ifMACLIST_TABLE=filterinshorewall.conf[3](5), thenREJECTis also allowed π). If you specify thelog-level, then packets matching the rule get logged at that level. Logging, but make it intentional. π₯ - INTERFACE β interface The network interface to a host. That's it, that's the whole thing. π
- MAC β address The MAC address of the host β and no cap, you do not need to use the Shorewall format for MAC addresses here. Freedom. π¦ If IP ADDRESSES is supplied, then MAC can be supplied as a dash (
-). - IP ADDRESSES (
addresses) β[address[,address]...]Optional! But if you do specify it, then both the MAC and the IP address have to match. Periodt. π This column can hold a comma-separated list of host and/or subnet addresses. And if your kernel and iptables haveiprangematch support, then IP address ranges are also allowed β¨. Similarly, if your kernel and iptables includeipsetsupport, then set names (prefixed by+) are also allowed. Fancy. π
π FILES π
/etc/shorewall/maclist/etc/shorewall6/maclist
π SEE ALSO π
https://shorewall.org/MAC_Validation.html[4]https://shorewall.org/configuration_file_basics.htm#Pairs[5]shorewall(8)
β NOTES β
shorewall-interfaceshttps://shorewall.org/manpages/shorewall-interfaces.htmlshorewall-hostshttps://shorewall.org/manpages/shorewall-hosts.htmlshorewall.confhttps://shorewall.org/manpages/shorewall.conf.htmlhttps://shorewall.org/MAC_Validation.htmlhttps://shorewall.org/MAC_Validation.htmlhttps://shorewall.org/configuration_file_basics.htm#Pairshttps://shorewall.org/configuration_file_basics.htm#Pairs
Configuration Files Β· 09/24/2020 Β· SHOREWALL-MACLIST(5)
And that's the whole page bestie, you ate that πβ¨ go forth and verify those MACs, mwah ππ§ββοΈ
π¦ 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