<feed xmlns='http://www.w3.org/2005/Atom'>
<title>firewall4/root/usr/share/nftables.d/README, 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>2022-09-01T09:32:27Z</updated>
<entry>
<title>doc: fix swapped include positions in nftables.d README</title>
<updated>2022-09-01T09:32:27Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-09-01T09:31:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=695e8211d1d02a2274f4bbf51c9017d4b29b653e'/>
<id>urn:sha1:695e8211d1d02a2274f4bbf51c9017d4b29b653e</id>
<content type='text'>
The README swapped the meaning of the `ruleset-pre`/`ruleset-post`
and `table-pre`/`table-post` include directories.

Ref: https://forum.openwrt.org/t/x/135594/174
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>fw4: support automatic includes</title>
<updated>2022-08-12T12:35:58Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2022-08-11T11:48:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/firewall4/commit/?id=a4484d4612931800583a7219271b63224491244c'/>
<id>urn:sha1:a4484d4612931800583a7219271b63224491244c</id>
<content type='text'>
Introduce a new directory tree /usr/share/nftables.d/ which may contain
partial nftables files being included into the rendered ruleset.

The include position is derived from the file path;

 - Files in .../nftables.d/table-pre/ and .../nftables.d/table-post/ are
   included before and after the `table inet fw4 { ... }` declaration
   respectively

 - Files in .../nftables.d/ruleset-pre/ and .../nftables.d/ruleset-post/
   are included before the first chain and after the last chain
   declaration within the fw4 table respectively

 - Files in .../nftables.d/chain-pre/${chain}/ and .../chain-post/${chain}/
   are included before the first and after the last rule within the mentioned
   chain of the fw4 table respectively

Automatic includes can be disabled by setting the `auto_includes` option to
`0` in the global defaults section.

Also adjust testcases accordingly.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
</feed>
