<feed xmlns='http://www.w3.org/2005/Atom'>
<title>firewall4/tests/01_configuration/01_ruleset, branch master</title>
<subtitle>OpenWrt nftables firewall</subtitle>
<id>https://git.openwrt.org/project/firewall4/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/firewall4/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/'/>
<updated>2026-11-08T16:27:23Z</updated>
<entry>
<title>fw4: list the software flowtable devices for hardware offloading too</title>
<updated>2026-11-08T16:27:23Z</updated>
<author>
<name>Julius Bairaktaris</name>
</author>
<published>2026-11-08T11:57:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=3722eadc088c3ab81389596ca9796112b436583a'/>
<id>urn:sha1:3722eadc088c3ab81389596ca9796112b436583a</id>
<content type='text'>
With flow_offloading_hw, fw4 lists only the devices below the zone
devices. A hardware flowtable is a software flowtable too: the flows the
hardware does not take run through the same ingress hooks. A WireGuard
flow and a container flow then find no hook for their device and stay
on the classic path.

List the same devices for both. A device without hardware offload
support is accepted in a hardware flowtable (pending patch 701), so the
hardware check keeps its meaning.

Signed-off-by: Julius Bairaktaris &lt;julius@bairaktaris.de&gt;
Link: https://github.com/openwrt/firewall4/pull/116
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>Set has_ports for helper rules and require helper port</title>
<updated>2026-11-02T23:49:14Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2024-11-27T01:03:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=a314df48644ec8f894f31141327f5522ad7c87f1'/>
<id>urn:sha1:a314df48644ec8f894f31141327f5522ad7c87f1</id>
<content type='text'>
Helper definitions are used to generate automatic `ct helper set` rules.
A helper without a port cannot produce a meaningful assignment rule, so
make `port` mandatory in `parse_helper()`. The generated helper rule now
also carries `has_ports: true`, which suppresses the redundant `meta
l4proto` match via the normal `has_ports` guard instead of special-casing
`set_helper` in the template. No behavior change for valid helpers.

Suggested-by: Andris PE &lt;neandris@gmail.com&gt;
[require helper port and set has_ports instead of special-casing set_helper]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>ruleset: apply egress MSS fixup later to apply final MTU before wire</title>
<updated>2023-11-03T13:33:55Z</updated>
<author>
<name>Andris PE</name>
</author>
<published>2023-06-21T10:06:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=698a53354fd280aae097efe08803c0c9a10c14c2'/>
<id>urn:sha1:698a53354fd280aae097efe08803c0c9a10c14c2</id>
<content type='text'>
Reduce scope of MSS fixup to TCP SYN packets only and relocate the fixing
of egress MSS to the mangle/postrouting chain in order to properly apply
final known MTU size.

Fixes: openwrt/openwrt#12112
Signed-off-by: Andris PE &lt;neandris@gmail.com&gt;
[fix S-o-b tag, fix commit author, reword commit message]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>ruleset: reduce ksoftirqd load by refering to looopback by numeric id</title>
<updated>2023-11-03T13:11:06Z</updated>
<author>
<name>Andris PE</name>
</author>
<published>2023-09-19T15:23:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=a5553dae70439c7e4fa910490fcf12a1ffff5bd2'/>
<id>urn:sha1:a5553dae70439c7e4fa910490fcf12a1ffff5bd2</id>
<content type='text'>
Reduce ksoftirq load by half using more efficient reference to loopback
which always has index equal to one.

Should help a lot with openwrt/openwrt#12914, openwrt/openwrt#12121 and
similar iperf3 cases clamping against 100% CPU usage.

Signed-off-by: Andris PE &lt;neandris@gmail.com&gt;
[fix S-o-b tag, fix commit author, rewrap commit message]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>ruleset: dispatch ct states using verdict map</title>
<updated>2023-11-03T13:09:43Z</updated>
<author>
<name>Andris PE</name>
</author>
<published>2023-09-07T19:04:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=19a8caf614ec338513e58535ea02c6ee52988170'/>
<id>urn:sha1:19a8caf614ec338513e58535ea02c6ee52988170</id>
<content type='text'>
In case the dropping of invalid conntrack states is enabled, using a verdict
map allows us to use only one rule instead of two, lowering the initial rule
match overhead.

Signed-off-by: Andris PE &lt;neandris@gmail.com&gt;
[whitespace cleanup, rebase, extend commit subject and message]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>Revert "ruleset: dispatch ct states using verdict map"</title>
<updated>2023-11-03T13:09:16Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2023-11-03T13:09:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=22c53921c11115e5437385719b6e73800a68cd33'/>
<id>urn:sha1:22c53921c11115e5437385719b6e73800a68cd33</id>
<content type='text'>
This reverts commit 785798c8fd72ff3c4c8940922173290bb25bc18e.

Revert commit due to bad commit metadata.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>ruleset: dispatch ct states using verdict map</title>
<updated>2023-11-03T13:04:39Z</updated>
<author>
<name>User User-User</name>
</author>
<published>2023-09-07T19:04:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=785798c8fd72ff3c4c8940922173290bb25bc18e'/>
<id>urn:sha1:785798c8fd72ff3c4c8940922173290bb25bc18e</id>
<content type='text'>
In case the dropping of invalid conntrack states is enabled, using a verdict
map allows us to use only one rule instead of two, lowering the initial rule
match overhead.

Signed-off-by: Andris PE &lt;neandris@gmail.com&gt;
[whitespace cleanup, rebase, extend commit subject and message]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>tests: fix expected test output</title>
<updated>2023-05-30T08:19:51Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2023-05-30T08:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=23a434d0d15d61db61bb065c89f266a326c78a88'/>
<id>urn:sha1:23a434d0d15d61db61bb065c89f266a326c78a88</id>
<content type='text'>
A previous commit enabled flowtable counters without properly adjusting
the testcase output.

Fixes: 04a06bd ("fw4: enable flowtable counters")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>config: drop input traffic by default</title>
<updated>2022-11-02T15:24:20Z</updated>
<author>
<name>Baptiste Jonglez</name>
</author>
<published>2022-11-02T15:06:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=6443ec7805295de07f6051662065a16b4a194f19'/>
<id>urn:sha1:6443ec7805295de07f6051662065a16b4a194f19</id>
<content type='text'>
This is necessary with firewall4 to avoid a hard-to-diagnose race
condition during boot, causing DNAT rules not to be taken into account
correctly.

The root cause is that, during boot, the ruleset is mostly empty, and
interface-related rules (including DNAT rules) are added incrementally.
If a packet hits the input chain before the DNAT rules are setup, it can
create buggy conntrack entries that will persist indefinitely.

This new default should be safe because firewall4 explicitly accepts
authorized traffic and rejects the rest.  Thus, in normal operations, the
default policy is not used.

Fixes: #10749
Ref: https://github.com/openwrt/openwrt/issues/10749
Signed-off-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
</content>
</entry>
<entry>
<title>ruleset: drop ctstate invalid traffic for masq-enabled zones</title>
<updated>2022-10-26T13:45:16Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-10-25T19:03:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=119ee1a06d4a5e5fd01ec1a242d21d6f355d7ff6'/>
<id>urn:sha1:119ee1a06d4a5e5fd01ec1a242d21d6f355d7ff6</id>
<content type='text'>
For NAT enabled zones, stage rules to drop forwarded traffic with conntrack
state "invalid" and honor `masq_allow_invalid` option to inhibit those
rules.

This ports the corresponding firewall3 logic to firewall4.

Ref: https://forum.openwrt.org/t/x/140790
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
</feed>
