<feed xmlns='http://www.w3.org/2005/Atom'>
<title>firewall4/tests/02_zones, 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-02T23:49:14Z</updated>
<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: avoid no-op port translation in dnat</title>
<updated>2026-11-02T23:15:59Z</updated>
<author>
<name>Andris PE</name>
</author>
<published>2025-10-17T11:38:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=613198bebd0b6e24b98bb9f8d39c7e12f7ceac0f'/>
<id>urn:sha1:613198bebd0b6e24b98bb9f8d39c7e12f7ceac0f</id>
<content type='text'>
Correct rport null propagation
 moving compensatory conditional to reflection snat rule only.
Emit shorthand rules if user did not specify redirect target port
This saves 2 bytecodes in rule and kernel does not do no-op port
rewrite.
V2 Adjust tests to cover more cases/code paths
V3 Adjust uci example to reflect default of not changing dport

Signed-off-by: Andris PE &lt;neandris@gmail.com&gt;
[folded fix: merge redirect test expectations with #104 and update ubus reflection expectations]
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>tests: drop the helper chains that fw4 no longer emits</title>
<updated>2026-10-28T13:07:03Z</updated>
<author>
<name>John Crispin</name>
</author>
<published>2026-10-28T10:03:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=c80f1f239926990df4ddfa0ce021e7249b809a19'/>
<id>urn:sha1:c80f1f239926990df4ddfa0ce021e7249b809a19</id>
<content type='text'>
Since bac1d65 ("Do not emit helper jump without helper modules"), fw4
writes the helper chain of a zone and its jump only when the chain
gets a helper rule. Seven tests that were added before that commit was
merged still expect the empty chains and fail.

Signed-off-by: John Crispin &lt;john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>Do not emit helper jump without helper modules</title>
<updated>2026-10-26T08:37:23Z</updated>
<author>
<name>Andris PE</name>
</author>
<published>2024-03-22T10:51:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=bac1d656e09b48e542f860844fe91cbba82abae2'/>
<id>urn:sha1:bac1d656e09b48e542f860844fe91cbba82abae2</id>
<content type='text'>
Do not emit helper jump if no helper modules are present saving
per-every-packet bytecode before ct:
```
inet fw4 prerouting
  [ meta load iifname =&gt; reg 1 ]
  [ cmp eq reg 1 0x6c2d7262 0x00006e61 0x00000000 0x00000000 ]
  [ immediate reg 0 jump -&gt; helper_lan ]
  userdata = { \x00-!fw4: Handle lan IPv4/IPv6 helper assignment\x00 }
```

Signed-off-by: Andris PE &lt;neandris@gmail.com&gt;
Link: https://github.com/openwrt/firewall4/pull/27
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>fw4: support forwardings in procd and netifd firewall data</title>
<updated>2026-08-27T16:26:56Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-06-04T21:50:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=c2ae8c8940a89407da32fbd662d4010ee2c9bbe6'/>
<id>urn:sha1:c2ae8c8940a89407da32fbd662d4010ee2c9bbe6</id>
<content type='text'>
Zones synthesised from published firewall data can now also declare
the forwardings between them. All zones are parsed before any
forwarding, so resolution is independent of declaration order.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>fw4: support zones in procd and netifd firewall data</title>
<updated>2026-08-27T16:26:56Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-06-04T21:50:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=b263f8ccbda7ea103cdfe553b631663438d0725e'/>
<id>urn:sha1:b263f8ccbda7ea103cdfe553b631663438d0725e</id>
<content type='text'>
Zone specs were collected from published firewall data but never
parsed. Accept them from the netifd interface data channel and from
procd service data, keep their declared names, default their policies
to drop to stay fail-closed, and attribute diagnostics for malformed
specs to their publisher.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>fw4: skip zones with duplicate names</title>
<updated>2026-08-27T16:12:55Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-08-22T03:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=22afe51bed7cf42015eb2403a84b571c3c670ad8'/>
<id>urn:sha1:22afe51bed7cf42015eb2403a84b571c3c670ad8</id>
<content type='text'>
Same-named zones emit duplicate defines and nft rejects the whole
ruleset. Keep the first zone of a name, skip later ones with a
diagnostic; a zone published over ubus never displaces a uci zone.

Fixes: 59dbb982b7fe ("Initial commit")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>tests: adjust zone log limit testcases</title>
<updated>2023-11-03T13:14:15Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2023-11-03T13:14:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=de3483c561a728d5234a0a3f49b5dde4527a0f3f'/>
<id>urn:sha1:de3483c561a728d5234a0a3f49b5dde4527a0f3f</id>
<content type='text'>
Fix testcase failure introduced by a previous commit.

Fixes: a5553da ("ruleset: reduce ksoftirqd load by refering to looopback by numeric id")
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>
</feed>
