SHOREWALL-RULES(5)
π NAME π
rules β the Shorewall rules file. We're in SHOREWALL-RULES(5), the Configuration Files one, and bestie this is the file. It's where you decide who gets in and who gets ghosted. π
π SYNOPSIS π
/etc/shorewall[6]/rules
π¦ DESCRIPTION π¦
okay so the entries in this file govern connection establishment, and the way they do it is by defining exceptions to the policies laid out over in shorewall-policy[1](5). By default, the follow-up requests and responses are just automatically allowed using connection tracking β no extra work, we love a system that handles its own business. π
For any particular (source,dest) pair of zones, the rules get evaluated in the exact order they appear in this file, and the first terminating match is the one that determines the disposition of the request. First come, first served, no takebacks. And heads up: all rules are terminating except LOG and COUNT rules.
β οΈ Warning β οΈ If you masquerade or useSNATfrom a local system to the internet, you cannot use anACCEPTrule to allow traffic from the internet to that system. You must use aDNATrule instead. That's just how it is, no cap. π
π The sections (they have a strict order, bestie) π
The rules file is divided into sections. Each section is introduced by a "Section Header", which is a line beginning with ?SECTION and followed by the section name.
Sections are as follows and they must appear in the order listed:
ALLβ This section was added in Shorewall 4.4.23. Rules in this section are applied, regardless of the connection tracking state of the packet, and they're applied before rules in the other sections.ESTABLISHEDβ Packets in theESTABLISHEDstate are processed by rules in this section.- The only ACTIONs allowed in this section are
ACCEPT,DROP,REJECT,LOG,NFLOG,NFQUEUEandQUEUE - There is an implicit
ACCEPTrule inserted at the end of this section.
- The only ACTIONs allowed in this section are
RELATEDβ Packets in theRELATEDstate are processed by rules in this section.- The only ACTIONs allowed in this section are
ACCEPT,DROP,REJECT,LOG,NFLOG,NFQUEUEandQUEUE - There is an implicit rule added at the end of this section that invokes the
RELATED_DISPOSITION(shorewall.conf[2](5)).
- The only ACTIONs allowed in this section are
INVALIDβ Added in Shorewall 4.5.13. Packets in theINVALIDstate are processed by rules in this section.- The only Actions allowed in this section are
ACCEPT,DROP,REJECT,LOG,NFLOG,NFQUEUEandQUEUE. - There is an implicit rule added at the end of this section that invokes the
INVALID_DISPOSITION(shorewall.conf[2](5)).
- The only Actions allowed in this section are
UNTRACKEDβ Added in Shorewall 4.5.13. Packets in theUNTRACKEDstate are processed by rules in this section.- The only Actions allowed in this section are
ACCEPT,DROP,REJECT,LOG,NFLOG,NFQUEUEandQUEUE. - There is an implicit rule added at the end of this section that invokes the
UNTRACKED_DISPOSITION(shorewall.conf[2](5)).
- The only Actions allowed in this section are
NEWβ Packets in theNEWstate are processed by rules in this section. If theINVALIDand/orUNTRACKEDsections are empty or not included, then the packets in the corresponding state(s) are also processed in this section.
π Note π If you are not familiar with Netfilter to the point where you are comfortable with the differences between the various connection tracking states, then it is suggested that you place all of your rules in theNEWsection (That's after the line that reads?SECTION NEW).
β οΈ Warning β οΈ If you specifyFASTACCEPT=Yesinshorewall.conf[2](5)then theALL,ESTABLISHEDandRELATEDsections must be empty. An exception is made if you are running Shorewall 4.4.27 or later and you have specified a non-default value forRELATED_DISPOSITIONorRELATED_LOG_LEVEL. In that case, you may have rules in theRELATEDsection of this file. π«Ά
You may omit any section that you don't need. And if no Section Headers appear in the file, then all rules are assumed to be in the NEW section. Easy. π¦
π― DNAT / REDIRECT: which column is which π―
When defining rules that rewrite the destination IP address and/or port number (namely DNAT and REDIRECT rules), it is important to keep straight which columns in the file specify the packet before rewriting and which specify how the packet will look after rewriting. Mixing these up is giving chaos. π
- The
DESTcolumn specifies the final destination for the packet after rewriting and can include the final IP address and/or port number. - The remaining columns specify characteristics of the packet before rewriting. In particular, the
ORIGDESTcolumn gives the original destination IP address of the packet and theDPORTcolumn give the original destination port(s).
ποΈ ACTION ποΈ
ACTION - target[:{log-level|none}[!][:tag]]
Specifies the action to be taken if the connection request matches the rule. target must be one of the following:
ACCEPTβ Allow the connection request.ACCEPT+β likeACCEPTbut also excludes the connection from any subsequent matchingDNAT[-]orREDIRECT[-]rules. Use with IPv6 requires Shorewall 4.5.14 or later.ACCEPT!β likeACCEPTbut exempts the rule from being suppressed byOPTIMIZE=1inshorewall.conf[2](5).actionβ The name of an action declared inshorewall-actions[3](5)or in/usr/share/shorewall[6]/actions.std.ADD(ipset:flags[:timeout])β Added in Shorewall 4.4.12. Causes addresses and/or port numbers to be added to the named ipset. Theflagsspecify the address or tuple to be added to the set and must match the type of ipset involved. For example, for aniphashipset, either the SOURCE or DESTINATION address can be added using flagssrcordstrespectively (see the-Acommand inipset (8)).- Beginning with Shorewall 5.0.3, an optional
timeoutcan be specified. This is the number of seconds that the new entry in the ipset is to remain valid and overrides any timeout specified when the ipset was created. ADDis non-terminating. Even if a packet matches the rule, it is passed on to the next rule.
- Beginning with Shorewall 5.0.3, an optional
AUDIT[(accept|drop|reject)]β Added in Shorewall 4.5.10. Audits the packet with the specified type; if the type is omitted, thendropis assumed. RequireAUDIT_TARGETsupport in the kernel and iptables.A_ACCEPT,A_ACCEPT+andA_ACCEPT!β Added in Shorewall 4.4.20. Audited versions ofACCEPT,ACCEPT+andACCEPT!respectively. RequireAUDIT_TARGETsupport in the kernel and iptables.A_ACCEPT+with IPv6 requires Shorewall 4.5.14 or later.A_DROPandA_DROP!β Added in Shorewall 4.4.20. Audited versions ofDROPandDROP!respectively. RequireAUDIT_TARGETsupport in the kernel and iptables.A_REJECTandA_REJECT!β Added in Shorewall 4.4.20. Audited versions ofREJECTandREJECT!respectively. RequireAUDIT_TARGETsupport in the kernel and iptables.?COMMENTβ the rest of the line will be attached as a comment to the Netfilter rule(s) generated by the following entries. The comment will appear delimited by/* ... */in the output ofshorewall show <chain>. To stop the comment from being attached to further rules, simply include?COMMENTon a line by itself.CONMARK({mark})β Added in Shorewall 5.0.7,CONNMARKis identical toMARKwith the exception that the mark is assigned to connection to which the packet belongs is marked rather than to the packet itself.CONTINUEβ For experts only.- Do not process any of the following rules for this (source zone,destination zone). If the source and/or destination IP address falls into a zone defined later in
shorewall-zones[4](5)or in a parent zone of the source or destination zones, then this connection request will be passed to the rules defined for that (those) zone(s). Seeshorewall-nesting[5](5)for additional information.
- Do not process any of the following rules for this (source zone,destination zone). If the source and/or destination IP address falls into a zone defined later in
CONTINUE!β likeCONTINUEbut exempts the rule from being suppressed byOPTIMIZE=1inshorewall.conf[2](5).COUNTβ Simply increment the rule's packet and byte count and pass the packet to the next rule.DEL(ipset:flags)β Added in Shorewall 4.4.12. Causes an entry to be deleted from the named ipset. Theflagsspecify the address or tuple to be deleted from the set and must match the type of ipset involved. For example, for aniphashipset, either the SOURCE or DESTINATION address can be deleted using flagssrcordstrespectively (see the-Dcommand inipset (8)).DELis non-terminating. Even if a packet matches the rule, it is passed on to the next rule.
DNATβ Forward the request to another system (and optionally another port). Use with IPv6 requires Shorewall 4.5.14 or later.DNAT-β Advanced users only.- Like
DNATbut only generates the DNAT iptables rule and not the companionACCEPTrule. Use with IPv6 requires Shorewall 4.5.14 or later.
- Like
DROPβ Ignore the request.DROP!β likeDROPbut exempts the rule from being suppressed byOPTIMIZE=1inshorewall.conf[2](5).HELPERβ Added in Shorewall 4.5.7. This action requires that theHELPERcolumn contains the name of the Netfilter helper to be associated with connections matching this connection. May only be specified in theNEWsection and is useful for being able to specify a helper when the applicable policy isACCEPT. No destination zone should be specified inHELPERrules.INLINE[(action)]β Added in Shorewall 4.5.16. This action allows you to construct most of the rule yourself using iptables syntax. The part that you specify must follow two semicolons (;;) and is completely free-form. If the target of the rule (the part followingj) is something that Shorewall supports in theACTIONcolumn, then you may enclose it in parentheses (e.g.,INLINE(ACCEPT)). Otherwise, you can include it after the semicolon(s). In this case, you must declare the target as a builtin action inshorewall-actions[3](5).- Some considerations when using
INLINE:- The
p,s,d,i,o,policy, andstatematch (stateorconntrack --ctstate) matches will always appear in the front of the rule in that order.
- The
- Some considerations when using
- ok so when you spec multiple matches, the compiler keeps them in the order they show up (minus the ones listed up above), but bestie they will not necessarily land at the end of the generated rule. Like, if you put addresses in the SOURCE and/or DEST columns, their generated matches show up after the ones you did with
;;or;. Just so you know. π
IPTABLES({iptables-target [option ...])
IPv4 only, bestie. This action lets you name an iptables target with options, like IPTABLES(MARK --set-xmark 0x01/0xff). If the iptables-target isn't one Shorewall recognizes, you get this lil error:
ERROR: Unknown target (iptables-target)
You can make that error go bye-bye by adding the iptables-target as a builtin action in shorewall-actions[3](5).
Important β if you specifyREJECTas the iptables-target, the target of the rule is the iptables REJECT target, not Shorewall's builtinrejectchain (which is what gets used whenREJECTβ see below β is the target in the ACTION column). Do not confuse the girlies. π
IP6TABLES({ip6tables-target [option ...])
IPv6 only. Same vibe as above but for ip6tables: name an ip6tables target with options, e.g. IPTABLES(MARK --set-xmark 0x01/0xff). Unrecognized ip6tables-target? You get:
ERROR: Unknown target (ip6tables-target)
And yeah, you can eliminate that by adding the ip6tables-target as a builtin action in shorewall-actions[3](5).
Important β if you specifyREJECTas the ip6tables-target, the target is the i6ptables REJECT target, not Shorewall's builtinrejectchain (the one that's used whenREJECTβ see below β is the ACTION column target).
LOG:level
Lowkey the simplest one: just log the packet and keep going to the next rule. That's it, that's the whole thing. β¨
macro[(macrotarget)]
This is the name of a macro defined in a file named macro.macro. If the macro takes an action parameter (peek at the macro source β if it's got PARAM in the TARGET column, it does), then the macro name gets followed by the parenthesized macrotarget (ACCEPT, DROP, REJECT, β¦) that gets substituted in for that parameter.
Example: FTP(ACCEPT).
The older syntax where the macro name and target are separated by a slash (like FTP/ACCEPT) still works but it's deprecated, bestie. Move on. π«Ά
MARK({mark})
where mark is a packet mark value.
Added in Shorewall 5.0.7, MARK needs "Mark in filter table" support in your kernel and iptables.
Normally it sets the mark value of the current packet. But if it's preceded by a vertical bar (|), the mark value gets logically ORed with the current mark value to make a new mark value. If it's preceded by an ampersand (&), it gets logically ANDed with the current mark value to make a new mark value.
Both | and & require Extended MARK Target support in your kernel and iptables. π
The mark value may optionally be followed by / and a mask value (used to figure out which bits of the connection mark actually get set). When a mask is specified, the result of logically ANDing the mark value with the mask has to be the same as the mark value.
NFLOG[(nflog-parameters)]
Added in Shorewall 4.5.9.3. Queues matching packets to a back end logging daemon via a netlink socket, then continues to the next rule. See https://shorewall.org/shorewall_logging.html[6].
The nflog-parameters are a comma-separated list of up to 3 numbers:
- The first number is the netlink group (
0-65535). If you omit it (likeNFLOG(,0,10)) then a value of0is assumed. - The second number is the max number of bytes to copy. If you omit it,
0(no limit) is assumed. - The third number is how many log messages should be buffered in the kernel before they're sent to user space. Default is
1.
NFLOG is similar to LOG:NFLOG[(nflog-parameters)], except the log level isn't changed when this ACTION is used in an action or macro body and the invocation of that action or macro specifies a log level. πΈ
NFQUEUE[([queuenumber1[:queuenumber2[c]][,bypass]]|bypass)]
Queues the packet to a user-space application using the nfnetlink_queue mechanism. If queuenumber1 isn't specified, queue zero (0) is assumed. Beginning with Shorewall 4.6.10, you can give the keyword bypass. By default, if no userspace program is listening on an NFQUEUE, then all the packets that are meant to be queued get dropped. When this option is used, the NFQUEUE rule behaves like ACCEPT instead. Also starting in Shorewall 4.6.10, you can specify a second queue number (queuenumber2). This gives a range of queues to use, and packets get balanced across the given queues. Super handy for multicore systems: start multiple instances of the userspace program on queues x, x+1, .. x+n and use "x:x+n". Packets belonging to the same connection get put into the same nfqueue. π§
Beginning with Shorewall 5.1.0, queuenumber2 may be followed by the letter c to indicate the CPU ID will be used as an index to map packets to the queues. The idea? You can improve performance if there's a queue per CPU. Requires the NFQUEUE CPU Fanout capability in your kernel and iptables.
NFQUEUE![([queuenumber1[:queuenumber2[c]][,bypass]]|bypass)]
like NFQUEUE but exempts the rule from being suppressed by OPTIMIZE=1 in shorewall.conf[2](5). Periodt.
NONAT
Excludes the connection from any subsequent DNAT[-] or REDIRECT[-] rules, but doesn't generate a rule to accept the traffic. Use with IPv6 requires Shorewall 4.5.14 or later.
QUEUE
Queue the packet to a user-space application such as ftwall (http://p2pwall.sf.net). The application may reinsert the packet for further processing.
QUEUE!
like QUEUE but exempts the rule from being suppressed by OPTIMIZE=1 in shorewall.conf[2](5).
REJECT[(option)]
disallow the request and return an icmp-unreachable or an RST packet. If no option is passed, Shorewall picks the appropriate option based on the protocol of the packet.
Beginning with Shorewall 5.0.8, the type of reject can be specified in the option parameter. Valid IPv4 option values are:
icmp-net-unreachableicmp-host-unreachableicmp-port-unreachableicmp-proto-unreachableicmp-net-prohibitedicmp-host-prohibitedicmp-admin-prohibitedicmp-tcp-reset(the PROTO column must specify TCP). Beginning with Shorewall 5.1.3, this option may also be specified astcp-reset.
Valid IPv6 option values are:
icmp6-no-routeno-routeicmp6-adm-prohibitedadm-prohibitedicmp6-addr-unreachableaddr-unreachicmp6-port-unreachabletcp-reset(the PROTO column must specify TCP)
REJECT!
like REJECT but exempts the rule from being suppressed by OPTIMIZE=1 in shorewall.conf[2](5).
REDIRECT
Redirect the request to a server running on the firewall. Use with IPv6 requires Shorewall 4.5.14 or later.
REDIRECT-
Advanced users only. π¨
Like REDIRECT but only generates the REDIRECT iptables rule and not the companion ACCEPT rule. Use with IPv6 requires Shorewall 4.5.14 or later.
TARPIT [(tarpit | honeypot | reset)]
Added in Shorewall 4.6.6.
TARPIT captures and holds incoming TCP connections using no local per-connection resources. Iconic.
TARPIT only works with the PROTO column set to tcp (6), and it's totally application agnostic. This module answers a TCP request and plays along like a listening server, but aside from sending an ACK or RST, no data is sent. Incoming packets are ignored and dropped. The attacker will terminate the session eventually. This module lets the initial packets of an attack get captured by other software for inspection. In most cases that's enough to figure out the nature of the attack.
It offers similar functionality to LaBrea <http://www.hackbusters.net/LaBrea/> but doesn't require dedicated hardware or IPs. Any TCP port you'd normally DROP or REJECT can instead become a tarpit. π
The target accepts a single optional parameter:
tarpitβ This mode is the default and completes a connection with the attacker but limits the window size to0, thus keeping the attacker waiting long periods of time. While he's maintaining state of the connection and trying to continue every 60-240 seconds, we keep none, so it's very lightweight. Attempts to close the connection are ignored, forcing the remote side to time out the connection in 12-24 minutes.honeypotβ This mode completes a connection with the attacker, but signals a normal window size, so the remote side will attempt to send data, often with some very nasty exploit attempts. We can capture these packets for decoding and further analysis. The module doesn't send any data, so if the remote expects an application level response, the game is up.resetβ This mode is handy because we can send an inline RST (reset). It has no other function.
ULOG[(ulog-parameters)]
IPv4 only. Added in Shorewall 4.5.10. Queues matching packets to a back end logging daemon via a netlink socket, then continues to the next rule. See shorewall-logging(5)[7]. π
okay so this one is basically LOG:ULOG[(ulog-parameters)]'s chill twin, with one very specific plot twist: the log level does not get changed when this ACTION is used inside an action or macro body and the thing invoking that action or macro specifies a log level. It just minds its own business. Respect. π
You can optionally follow the target with a ":" and a syslog log level β like REJECT:info or Web(ACCEPT):debug β and that makes the packet get logged at the level you named. β¨ One thing to know: if the ACTION involves destination network address translation (DNAT, REDIRECT, etc.), then the packet is logged before the destination address is rewritten. So you're seeing the pre-glow-up version. iykyk. π«Ά
If the ACTION names an action declared in shorewall-actions[3](5) or in /usr/share/shorewall/actions.std, then here's the tea:
- If the log level is followed by
"!", then all rules in the action are logged at the log level. π - If the log level is not followed by
"!", then only those rules in the action that don't specify logging get logged at the specified level. π - The special log level
none!suppresses logging by the action entirely. π
You can also specify ULOG (IPv4 only) or NFLOG (must be in upper case, lowercase will not fly) as a log level. That logs to the ULOG or NFLOG target so it can be routed to a separate log through use of ulogd (shorewall-logging(5)[7]). π
Actions that specify logging may be followed by a log tag β a string of alphanumeric characters β which gets appended to the string generated by the LOGPREFIX (in shorewall.conf[2](5)). β
Example: ACCEPT:info:ftp would include 'ftp ' at the end of the log prefix generated by the LOGPREFIX setting. π
πΈ SOURCE πΈ β source-spec[,...]
Source hosts to which the rule applies. Who's coming in, bestie?
source-spec is one of the following:
zone[,...[+]]
The name of a zone defined in shorewall-zones[4](5). When only the zone name is specified, the packet source may be any host in that zone. π«Ά
zone may also be one of the following:
all[+]βall, without the"-", means "All Zones, including the firewall zone". Normallyallomits intra-zone traffic, but intra-zone traffic can be included by specifying"+". π«any[+]βanyis equivalent toallwhen there are no nested zones. When there are nested zones,anyonly refers to top-level zones (those with no parent zones). Note thatanyexcludes all vserver zones, since those zones are nested within the firewall zone. πnoneβ whennoneis used in either the SOURCE or DEST column, the rule is ignored. Straight up ghosted. π
Similar to with all and any, intra-zone traffic is normally excluded when multiple zones are listed. Intra-zone traffic may be included by following the list with a plus sign ("+"). β¨
And all and any may be followed by an exclamation point ("!") and a comma-separated list of zone names to be omitted. π
zone:[!]interface
When this form is used, interface must be the name of an interface associated with the named zone in either shorewall-interfaces[8](5) or shorewall-hosts[9](5). Only packets from hosts in the zone that arrive through the named interface will match the rule. πͺ
Beginning with Shorweall 5.2.1, the interface may be preceded with '!', which matches all interfaces associated with the zone except the one specified. π
zone:address[,...]
where address can be:
- A host or network IP address. A network address may be followed by exclusion (see
shorewall-exclusion[10](5)). - An address range, specified using the syntax
lowaddress-highaddress. +ipsetwhere ipset is the name of an ipset and must be preceded by a plus sign ("+").- A MAC address in Shorewall format (preceded by a tilde (
"~") and with the hex byte values separated by dashes (e.g.,"~00-0a-f6-04-9c-7d"). ^country-codewhere country-code is a two-characterISO-3661country code preceded by a caret ("^").^country-code-listwhere country-code-list is a comma-separated list of up to 15ISO-3661country codes enclosed in square brackets ("[...]").- The primary IP address of a firewall interface can be specified by an ampersand (
'&') followed by the logical name of the interface as found in the INTERFACE column ofshorewall-interfaces[8] (5).
zone:interface:address[,...]
This form combines the preceding two and requires that both the incoming interface and source address match. π―
zone:exclusion
This form matches if the host IP address does not match any of the entries in the exclusion (see shorewall-exclusion[10](5)). π«
zone:interface:exclusion
This form matches packets from the named zone entering through the specified interface where the source address doesn't match any entry in the exclusion. π
Beginning with Shorewall 5.1.0, multiple source-specs may be listed, provided that extended forms of the source-spec are used:
zone:(interface)
zone:(address[,...])
zone:(interface:address[,...])
zone:(exclusion)
zone:(interface:exclusion)
Examples: π
dmz:192.168.2.2β Host192.168.2.2in the DMZnet:155.186.235.0/24β Subnet155.186.235.0/24on the Internetloc:192.168.1.1,192.168.1.2β Hosts192.168.1.1and192.168.1.2in the local zone.loc:~00-A0-C9-15-39-78β Host in the local zone with MAC address00:A0:C9:15:39:78.net:192.0.2.11-192.0.2.17β Hosts192.0.2.11-192.0.2.17in the net zone.net:!192.0.2.11-192.0.2.17β All hosts in the net zone except for192.0.2.11-192.0.2.17.net:155.186.235.0/24!155.186.235.16/28β Subnet155.186.235.0/24on the Internet except for155.186.235.16/28$FW:ð0β The primary IP address ofeth0in the firewall zone.loc,dmzβ Both the loc and dmz zones.all!dmzβ All but the dmz zone.all+!$FWβ All but the firewall zone and applies to intrazone traffic.net:^CNβ China.loc:(eth1:1.2.3.4,2.3.4.5),dmz:(eth2:5.6.7.8,9.10.11.12),netβ Hosts1.2.3.4and2.3.4.5in the loc zone when the packet arrives througheth1plus hosts5.6.7.8and9.10.11.12in the dmz zone when the packet arrives througheth2plus all of the net zone.dmz:[2002:ce7c:2b4:1::2]β Host2002:ce7c:92b4:1::2in the DMZnet:2001:4d48:ad51:24::/64β Subnet2001:4d48:ad51:24::/64on the Internetloc:[2002:cec792b4:1::2],[2002:cec792b4:1::44]β Hosts2002:cec792b4:1::2and2002:cec792b4:1::44in the local zone.loc:~00-A0-C9-15-39-78β Host in the local zone with MAC address00:A0:C9:15:39:78.net:[2001:4d48:ad51:24::]/64![2001:4d48:ad51:24:6::]/80β Subnet2001:4d48:ad51:24::/64on the Internet except for2001:4d48:ad51:24:6::/80.
π¦ DEST π¦ β dest-spec[,...]
Destination hosts to which the rule applies. And where's it all going?
dest-spec is one of the following:
zone[,...[+]]
The name of a zone defined in shorewall-zones[4](5). When only the zone name is specified, the packet destination may be any host in that zone. π«Ά
zone may also be one of the following:
all[+]βall, without the"-", means "All Zones, including the firewall zone". Normallyallomits intra-zone traffic, but intra-zone traffic can be included by specifying"+". π«any[+]βanyis equivalent toallwhen there are no nested zones. When there are nested zones,anyonly refers to top-level zones (those with no parent zones). Note thatanyexcludes all vserver zones, since those zones are nested within the firewall zone. πnoneβ whennoneis used in either the SOURCE or DEST column, the rule is ignored. Not even a little bit applied. π
Similar to with all and any, intra-zone traffic is normally excluded when multiple zones are listed. Intra-zone traffic may be included by following the list with a plus sign ("+"). β¨
And all and any may be followed by an exclamation point ("!") and a comma-separated list of zone names to be omitted. π
zone:[!]interface
When this form is used, interface must be the name of an interface associated with the named zone in either shorewall-interfaces[8](5) or shorewall-hosts[11](5). Only packets to hosts in the zone that are sent through the named interface will match the rule. πͺ
Beginning with Shorweall 5.2.1, the interface may be preceded with '!', which matches all interfaces associated with the zone except the one specified. π
zone:address[,...]
where address can be:
- A host or network IP address. A network address may be followed by exclusion (see
shorewall-exclusion[10](5)). - An address range, specified using the syntax
lowaddress-highaddress. +ipsetwhere ipset is the name of an ipset and must be preceded by a plus sign ("+").^country-codewhere country-code is a two-characterISO-3661country code preceded by a caret ("^").^country-code-listwhere country-code-list is a comma-separated list of up to 15ISO-3661country codes enclosed in square brackets ("[...]").- The primary IP address of a firewall interface can be specified by an ampersand (
'&') followed by the logical name of the interface as found in the INTERFACE column ofshorewall-interfaces[8] (5).
zone:[!]interface:address[,...]
This form combines the preceding two and requires that both the outgoing interface and destinationaddress match. π―
Beginning with Shorweall 5.2.1, the interface may be preceded with '!', which matches all interfaces associated with the zone except the one specified. π
zone:exclusion
This form matches if the host IP address does not match any of the entries in the exclusion (see shorewall-exclusion[10](5)). π«
zone:[!]interface:exclusion β this one matches packets headed to the named zone that are leaving through the specified interface, but ONLY when the destination address doesn't match anything in the exclusion list. Picky little vibe check, love that for it. π
Starting with Shorewall 5.2.1, you can slap a '!' in front of the interface, and it'll match every interface tied to that zone except the one you named. Not me giving you the "all of them but not that one" option β¨
[zone]:[server-IP][:port-or-port-range[:random]] β this form only shows up when the ACTION is DNAT[-] or REDIRECT[-]. The zone can be left out of REDIRECT rules (in which case $FW is assumed π) and must be left out of DNAT-, REDIRECT- and NONAT rules.
server-IP is not allowed in REDIRECT rules at all, and in DNAT[-] rules you can skip it as long as you include port-or-port-range.
- The IP address of the server the packet is getting sent to.
- A range of IP addresses with the low and high address separated by a dash (
"-"). Connections get distributed among all the IPs in that range. π
If server-IP is omitted in a DNAT[-] rule, then literally only the destination port number gets modified by the rule. That's it, that's the whole glow-up.
port-or-port-range can be:
- An integer port number in the range
1 - 65535. - The name of a service from
/etc/services. - A port range with the low and high integer port numbers separated by a dash (
"-"). Connections get distributed among the ports in the range. π¦
If random is specified, port mapping will be randomized. Spicy. π₯
If the DEST zone is a bport zone, then either:
- the SOURCE must be
all[+], or - the SOURCE zone must be another bport zone associated with the same bridge, or
- the SOURCE zone must be an ipv4 zone that is associated with only the same bridge.
Beginning with Shorewall 5.1.0, you can list multiple dest-specs, as long as you're using the extended forms of the source-spec. Bestie, the extended forms are:
zone:(interface)
zone:(address[,...])
zone:(interface:address[,...])
zone:(exclusion)
zone:(interface:exclusion)
Heads up π β multiple dest-specs are not permitted inDNAT[-]andREDIRECT[-]rules. Periodt.
πΈ Examples πΈ
dmz:192.168.2.2 β Host 192.168.2.2 in the DMZ.
net:155.186.235.0/24 β Subnet 155.186.235.0/24 on the Internet.
loc:192.168.1.1,192.168.1.2 β Hosts 192.168.1.1 and 192.168.1.2 in the local zone.
net:192.0.2.11-192.0.2.17 β Hosts 192.0.2.11-192.0.2.17 in the net zone.
net:!192.0.2.11-192.0.2.17 β All hosts in the net zone except for 192.0.2.11-192.0.2.17.
net:155.186.235.0/24!155.186.235.16/28 β Subnet 155.186.235.0/24 on the Internet except for 155.186.235.16/28.
$FW:ð0 β The primary IP address of eth0 in the firewall zone.
loc,dmz β Both the loc and dmz zones.
all!dmz β All but the dmz zone.
net:^CN β China.
dmz:192.168.10.4:25 β Port 25 on server 192.168.10.4 in the dmz zone (DNAT rule).
loc:(eth1:1.2.3.4,2.3.4.5),dmz:(eth2:5.6.7.8,9.10.11.12),net β Hosts 1.2.3.4 and 2.3.4.5 in the loc zone when the packet arrives through eth1, plus hosts 5.6.7.8 and 9.10.11.12 in the dmz zone when the packet arrives through eth2, plus all of the net zone. Iconic multi-spec behavior, honestly. π
π PROTO π
{-|tcp:[!]syn|ipp2p|ipp2p:udp|ipp2p:all|protocol-number|protocol-name|all}
Optional Protocol, bestie. The ipp2p* options require ipp2p match support in your kernel and iptables β no support, no ipp2p, no cap. π«Ά
tcp:syn implies tcp plus the SYN flag must be set and the RST, ACK and FIN flags must all be reset. Beginning with Shorewall 5.1.3, you can also specify tcp:!syn, which matches if SYN is not set, or if RST, ACK or FIN is set. Flip the vibe, same energy. π
Beginning with Shorewall 4.4.19, this column can hold a comma-separated list of protocol-numbers and/or protocol names. Yes, a whole list. She's versatile. β¨
π DPORT π
{-|port-name-number-or-range[,port-name-number-or-range]...|+ipset}
Optional destination Ports. It's a comma-separated list of port names (straight from services(5)), port numbers, or port ranges. But wait β if the protocol is icmp, this column gets interpreted as the destination icmp-type(s) instead. ICMP types can be a numeric type, a numeric type and code separated by a slash (like 3/4), or a typename. See https://shorewall.org/configuration_file_basics.htm#ICMP[12]. π
Note that prior to Shorewall 4.4.19, only a single ICMP type may be listed. Just the one. π
If the protocol is ipp2p, this column is interpreted as an ipp2p option without the leading "--" (example: bit for bit-torrent). If no port is given, ipp2p is assumed.
A port range is expressed as lowport:highport.
This column is ignored if PROTO = all, but it must be entered if any of the following columns are supplied. In that case, it's suggested that this field contain a dash (-). Little placeholder moment, love her. π
If your kernel contains multi-port match support, then only a single Netfilter rule will be generated if in this list and the SPORT list below:
- There are 15 or less ports listed.
- No port ranges are included, or your kernel and iptables contain extended multi-port match support.
Beginning with Shorewall 4.6.0, an ipset name can be specified in this column. This is intended to be used with bitmap:port ipsets. π
This column was formerly labelled DEST PORT(S).
π¦ SPORT π¦
{-|port-name-number-or-range[,port-name-number-or-range]...|+ipset}
Optional port(s) used by the client. If it's omitted, any source port is acceptable. Specified as a comma-separated list of port names, port numbers or port ranges.
Beginning with Shorewall 4.5.15, you may place '=' in this column, provided the DPORT column is non-empty. This makes the rule match when either the source port or the destination port in a packet matches one of the ports specified in DEST PORTS(S). Using '=' requires multi-port match in your iptables and kernel. π
Warning β οΈ Unless you really understand IP, you should leave this column empty or place a dash (-) in the column. Most people who try to use this column get it wrong. Like, they get it so wrong. Save yourself bestie π
If you don't want to restrict client ports but need to specify an ORIGDEST in the next column, then place "-" in this column.
If your kernel contains multi-port match support, then only a single Netfilter rule will be generated if in this list and the DPORT list above:
- There are 15 or less ports listed.
- No port ranges are included, or your kernel and iptables contain extended multi-port match support.
Beginning with Shorewall 4.6.0, an ipset name can be specified in this column. This is intended to be used with bitmap:port ipsets. π
This column was formerly labelled SOURCE PORT(S).
β ORIGDEST β
[-|address[,address]...[exclusion]|exclusion]
Optional. If ACTION is DNAT[-] or REDIRECT[-], then if this column is included and is different from the IP address given in the DEST column, then connections destined for that address will be forwarded to the IP and port specified in the DEST column. Sneaky redirect arc, we stan. π
A comma-separated list of addresses may also be used. This is most useful with the REDIRECT target, where you want to redirect traffic destined for a particular set of hosts. Finally, if the list of addresses begins with "!" (exclusion), then the rule will be followed only if the original destination address in the connection request does not match any of the addresses listed.
Beginning with Shorewall 4.4.17, the primary IP address of a firewall interface can be specified by an ampersand ('&') followed by the logical name of the interface as found in the INTERFACE column of shorewall-interfaces[8] (5). π
For other actions, this column may be included and may contain one or more addresses (host or network) separated by commas. Address ranges are not allowed here β sorry, not that kind of party. When this column is supplied, rules are generated that require the original destination address to match one of the listed addresses. This feature is most useful when you want to generate a filter rule that corresponds to a DNAT- or REDIRECT- rule. In this usage, the list of addresses should not begin with "!".
It's also possible to specify a set of addresses and then exclude part of those addresses. For example, 192.168.1.0/24!192.168.1.16/28 specifies the addresses 192.168.1.0-182.168.1.15 and 192.168.1.32-192.168.1.255. See shorewall-exclusion[10](5).
See https://shorewall.org/PortKnocking.html[13] for an example of using an entry in this column with a user-defined action rule. π₯
This column was formerly labelled ORIGINAL DEST.
π RATE π
limit β where limit is one of:
[-|[{s|d}[/vlsm]:[name[(ht-buckets,ht-max)]:]rate/{sec|min|hour|day}[:burst]
[s[/vlsm1]:][name1[(ht-buckets1,ht-max1)]:]rate1/{sec|min|hour|day}[:burst1],[d[/vlsm2:][name2[(ht-buckets2,ht-max2)]:]rate2/{sec|min|hour|day}[:burst2]
You may optionally rate-limit the rule by placing a value in this column. Look at you, controlling the flow β¨
rate* is the number of connections per interval (sec or min) and burst* is the largest burst permitted. If no burst is given, a value of 5 is assumed. There may be no white-space embedded in the specification. Keep it tight, no gaps. π
Example: 10/sec:20
When s: or d: is specified, the rate applies per source IP address or per destination IP address respectively. The names may be chosen by the user and specify a hash table to be used to count matching connections. If not given, the name shorewallN (where N is a unique integer) is assumed. Where more than one rule or POLICY specifies the same name, the connection counts for the rules are aggregated and the individual rates apply to the aggregated count. Aggregation era π
Beginning with Shorewall 5.2.1, the s or d may be followed by a slash ("/") and an integer vlsm. When a vlsm is specified, all source or destination addresses encountered will be grouped according to the given prefix length and the so-created subnet will be subject to the rate limit. Grouping, but make it Netfilter.
Example: s/24::10/sec
Beginning with Shorewall 4.6.5, two limits may be specified, separated by a comma. In this case, the first limit (name1, rate1, burst1) specifies the per-source IP limit and the second limit specifies the per-destination IP limit. Two limits, one rule. Main character energy, honestly. π
Example: client:10/sec:20,:60/sec:100
okay so continuing the rate-limit saga, bestie, because there's more π«Ά
In that example up there, the 'client' hash table gets used to enforce the per-source limit, and the compiler will just pick a unique name all by itself for the hash table that tracks the per-destination limit. it's giving β¨delegationβ¨
Starting with Shorewall 5.2.1, the table name (if you even gave one) can be followed by two integers separated by commas and wrapped in parentheses:
- the first integer (
ht-buckets) says how many buckets the generated hash table gets - the second integer (
ht-max) says the max number of entries in the hash table
Example, no cap:
s:netfw(1024,65536):10/sec
This column used to be called RATE LIMIT, iykyk.
π€ USER β [!][user-name-or-number][:group-name-or-number][,...]
This one is optional, and it may only be non-empty if the SOURCE is the firewall itself. like, only then. periodt.
When this column <em>is</em> non-empty, the rule only applies if the program generating the output is running under the effective user and/or group you specified β or, if you slap a "!" in there, it applies only if it is NOT running under that id.
Beginning with Shorewall 4.5.8, you can list multiple user or group names/ids separated by commas. multi-id slay π
Examples:
joeβ the program must be run by joe:kidsβ the program must be run by a member of the'kids'group!:kidsβ the program must not be run by a member of the'kids'group2001-2099β UIDs 2001 through 2099 (Shorewall 4.5.6 and later)
This column used to be called USER/GROUP.
π·οΈ MARK β [!]value[/mask][:C]
This defines a test on the existing packet or connection mark. The rule only matches if that test comes back true. vibe check passed βοΈ
If you don't wanna define a test but still need to put <em>something</em> in the following columns, just drop a "-" in this field. easy.
!β inverts the test (so, not equal)valueβ the value of the packet or connection markmaskβ a mask applied to the mark <em>before</em> testing it:Cβ designates a connection mark. if you omit it, the packet mark's value is what gets tested
π CONNLIMIT β [d:][!]limit[:mask]
Use this to cap the number of simultaneous connections to/from each individual host or network. it needs the connlimit match in your kernel and iptables, so check that first bestie.
Important detail: even though the limit is only checked on rules that specify CONNLIMIT, the number of current connections is calculated over <em>all</em> current connections from the SOURCE or DESTINATION host. no cap, fr fr.
By default, limiting is done by SOURCE host or net. but if the spec starts with d:, then limiting is done by destination host or net instead. π―
By default the limit is applied to <em>each host</em>, but you can make it apply to networks of hosts by specifying a mask. The mask specifies the width of a VLSM mask to be applied to the source address; the number of current connections is then taken over all hosts in the subnet source-address/mask. And when ! is specified, the rule matches when the number of connections exceeds the limit. π
β° TIME β timeelement[&timeelement...]
This limits the rule to a particular time period each day, to particular days of the week or month, or to a range defined by dates and times. Needs time match support in your kernel and iptables. β³
timeelement may be:
timestart=hh:mm[:ss]β defines the starting time of daytimestop=hh:mm[:ss]β defines the ending time of daycontiguousβ added in Shorewall 5.0.12. whentimestopis smaller than thetimestartvalue, match this as a <em>single</em> time period instead of distinct intervalsutcβ times are expressed in Greenwich Mean Timelocaltzβ deprecated by the Netfilter team in favor ofkerneltz. times are expressed in Local Civil Time (default)kerneltzβ added in Shorewall 4.5.2. times are expressed in Local Kernel Time (requires iptables 1.4.12 or later)weekdays=ddd[,ddd]...β wheredddis one ofMon,Tue,Wed,Thu,Fri,SatorSunmonthdays=dd[,dd],...β whereddis an ordinal day of the monthdatestart=yyyy[-mm[-dd[Thh[:mm[:ss]]]]]β defines the starting date and timedatestop=yyyy[-mm[-dd[Thh[:mm[:ss]]]]]β defines the ending date and time
π¦ HEADERS β [!][any:|exactly:]header-list (Optional β Added in Shorewall 4.4.15)
Heads up: this column is only used in IPv6. In IPv4, supply "-" in this column if you want to place a value in one of the following columns. π¦
The header-list is a comma-separated list of headers from this list:
auth,ah, or51β Authentication Headers extension headeresp, or50β Encrypted Security Payload extension headerhop,hop-by-hopor0β Hop-by-hop options extension headerroute,ipv6-routeor43β IPv6 Route extension headerfrag,ipv6-fragor44β IPv6 fragmentation extension headernone,ipv6-nonxtor59β No next headerproto,protocolor255β Any protocol header
If any: is specified, the rule matches if <em>any</em> of the listed headers are present. If exactly: is specified, it matches packets that <em>exactly</em> include <em>all</em> the specified headers. If neither is given, any: is assumed. π
If ! is entered, the rule matches those packets which would not be matched when ! is omitted.
π SWITCH β [!]switch-name[={0|1}]
Added in Shorewall 4.4.24, and it lets you enable and disable the rule <em>without</em> needing a shorewall reload. iconic behaviour honestly.
The rule is enabled if the value stored in /proc/net/nf_condition/switch-name is 1. The rule is disabled if that file contains 0 (the default). If '!' is supplied, the test is inverted, so the rule is enabled if the file contains 0.
Within the switch-name, '@0' and '@{0}' are replaced by the name of the chain to which the rule is added. After the '@...' expansion, the switch-name must begin with a letter and be composed of letters, decimal digits, underscores or hyphens. Switch names must be 30 characters or less in length.
Switches are normally off. To turn a switch on:
echo 1 > /proc/net/nf_condition/switch-name
To turn it off again:
echo 0 > /proc/net/nf_condition/switch-name
Switch settings are retained over shorewall reload. π«Ά
Beginning with Shorewall 4.5.10, when the switch-name is followed by =0 or =1, the switch is initialized to off or on respectively by the start command. Other commands do not affect the switch setting.
π§ HELPER β [helper]
Added in Shorewall 4.5.7.
In the NEW section, this causes the named conntrack helper to be associated with this connection β but the contents of this column are ignored unless ACTION is ACCEPT*, DNAT* or REDIRECT*. so don't come for me if it does nothing, check your action first π
In the RELATED section, it will only match if the related connection has the named helper associated with it.
The helper may be one of:
amandaftpircnetbios-nspptpQ.931RASsanesipsnmptftp
If the HELPERS option is specified in shorewall.conf[2](5), then any module you put in this column must be listed in the HELPERS setting. no exceptions bestie π
β¨ EXAMPLES β¨
Okay bestie, this is the part where it all clicks. Every single one of these is a real rules file excerpt, so copy the vibes, not my typos. π
πΈ Example 1 πΈ
Accept SMTP requests from the DMZ to the internet
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
ACCEPT dmz net tcp smtp
πΈ Example 2 πΈ
Forward all ssh and http connection requests from the internet to local system 192.168.1.3
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
DNAT net loc:192.168.1.3 tcp ssh,http
πΈ Example 3 πΈ
Forward all http connection requests from the internet to local system 192.168.1.3 with a limit of 3 per second and a maximum burst of 10
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE
DNAT net loc:192.168.1.3 tcp http - - 3/sec:10
πΈ Example 4 πΈ
Redirect all locally-originating www connection requests to port 3128 on the firewall (Squid running on the firewall system) except when the destination address is 192.168.2.2
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
REDIRECT loc 3128 tcp www - !192.168.2.2
πΈ Example 5 πΈ
All http requests from the internet to address 130.252.100.69 are to be forwarded to 192.168.1.3
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
DNAT net loc:192.168.1.3 tcp 80 - 130.252.100.69
πΈ Example 6 πΈ
You want to accept SSH connections to your firewall only from internet IP addresses 130.252.100.69 and 130.252.100.70
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
ACCEPT net:130.252.100.69,130.252.100.70 \
$FW tcp 22
πΈ Example 7 πΈ
You wish to accept connections from the internet to your firewall on port 2222 and you want to forward them to local system 192.168.1.3, port 22
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
DNAT net loc:192.168.1.3:22 tcp 2222
πΈ Example 8 πΈ
You want to redirect connection requests to port 80 randomly to the port range 81-90.
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
REDIRECT net $FW::81-90:random tcp www
πΈ Example 9 πΈ
Shorewall does not impose as much structure on the Netfilter rules in the 'nat' table as it does on those in the filter table. As a consequence, when using Shorewall versions before 4.1.4, care must be exercised when using DNAT and REDIRECT rules with zones defined with wildcard interfaces (those ending with '+'. Here is an example:
shorewall-zones[4](5):
#ZONE TYPE OPTIONS
fw firewall
net ipv4
dmz ipv4
loc ipv4
shorewall-interfaces[8](5):
#ZONE INTERFACE BROADCAST OPTIONS
net ppp0
loc eth1 detect
dmz eth2 detect
- ppp+ # Addresses are assigned from 192.168.3.0/24
shorewall-host[11](5):
#ZONE HOST(S) OPTIONS
loc ppp+:192.168.3.0/24
rules:
#ACTION SOURCE DEST PROTO DPORT
REDIRECT loc 3128 tcp 80
Note that it would have been tempting to simply define the loc zone entirely in shorewall-interfaces(8):
#******************* INCORRECT *****************
#ZONE INTERFACE BROADCAST OPTIONS
net ppp0
loc eth1 detect
loc ppp+
dmz eth2
π¨ This would have made it impossible to run a internet-accessible web server in the DMZ because all traffic enteringppp+interfaces would have been redirected to port3128on the firewall and there would have been nonet->fw ACCEPTrule for that traffic.
πΈ Example 10 πΈ
Add the tuple (source IP, dest port, dest IP) of an incoming SSH connection to the ipset S:
#ACTION SOURCE DEST PROTO DPORT
ADD(+S:dst,src,dst) net fw tcp 22
πΈ Example 11 πΈ
You wish to limit SSH connections from remote systems to 1/min with a burst of three (to allow for limited retry):
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE
SSH(ACCEPT) net all - - - - s:1/min:3
πΈ Example 12 πΈ
Forward port 80 to dmz host $BACKUP if switch 'primary_down' is on.
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH
DNAT net dmz:$BACKUP tcp 80 - - - - - - - - primary_down
πΈ Example 13 πΈ
Drop all email from the Anonymous Proxy and Satellite Provider address ranges:
#ACTION SOURCE DEST PROTO DPORT
DROP net:^A1,A2 fw tcp 25
πΈ Example 14 πΈ
You want to generate your own rule involving iptables targets and matches not supported by Shorewall.
#ACTION SOURCE DEST PROTO DPORT
INLINE $FW net ; -p 6 -m mickey-mouse --name test -m set --match-set set1 src -m mickey-mouse --name test2 -j SECCTX --name test3
The above will generate the following iptables-restore input:
-A fw2net -p 6 -m mickey-mouse --name test -m set --match-set set1 src -m mickey-mouse --name test2 -j SECCTX --name test3
Note that SECCTX must be defined as a builtin action in shorewall-actions[3](5):
#ACTION OPTIONS
SECCTX builtin
πΈ Example 15 πΈ
You want to accept SSH connections to your firewall only from internet IP addresses 2002:ce7c::92b4:1::2 and 2002:ce7c::92b4:1::22
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
ACCEPT net:<2002:ce7c::92b4:1::2,2002:ce7c::92b4:1::22> \
$FW tcp 22
π FILES π
The files you'll be living in, bestie:
/etc/shorewall/rules/etc/shorewall6/rules
π SEE ALSO π
Go read these too, they're iconic:
shorewall-logging(5)[7]https://shorewall.org/ipsets.html[14]https://shorewall.org/configuration_file_basics.htm#Pairs[15]shorewall(8)
π NOTES π
The receipts, in order, so you can find everything again:
shorewall-policyhttps://shorewall.org/manpages/shorewall-policy.htmlshorewall.confhttps://shorewall.org/manpages/shorewall.conf.htmlshorewall-actionshttps://shorewall.org/manpages/shorewall-actions.htmlshorewall-zoneshttps://shorewall.org/manpages/shorewall-zones.htmlshorewall-nestinghttps://shorewall.org/manpages/shorewall-nesting.htmlhttps://shorewall.org/shorewall_logging.htmlhttps://shorewall.org/shorewall_logging.htmlshorewall-logging(5)https://shorewall.org/manpages/shorewall-logging.htmlshorewall-interfaceshttps://shorewall.org/manpages/shorewall-interfaces.htmlshorewall-hostshttps://shorewall.org/manpages/shorewall.hosts.htmlshorewall-exclusionhttps://shorewall.org/manpages/shorewall-exclusion.htmlshorewall-hostshttps://shorewall.org/manpages/shorewall-hosts.htmlhttps://shorewall.org/configuration_file_basics.htm#ICMPhttps://shorewall.org/configuration_file_basics.htm#ICMPhttps://shorewall.org/PortKnocking.htmlhttps://shorewall.org/PortKnocking.htmlhttps://shorewall.org/ipsets.htmlhttps://shorewall.org/ipsets.htmlhttps://shorewall.org/configuration_file_basics.htm#Pairshttps://shorewall.org/configuration_file_basics.htm#Pairs
And that's a wrap on SHOREWALL-RULES(5), bestie!! π This whole thing lives under Configuration Files, dated 09/24/2020 β so yeah, it's giving vintage but it still eats. Go forth and write some flawless rules. Periodt. π
β¨π¦
π¦ 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