Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/6] Improved nftables firewall support
@ 2024-07-23 10:28 Fiona Klute via buildroot
  2024-07-23 10:28 ` [Buildroot] [PATCH v2 1/6] package/nftables: add init script Fiona Klute via buildroot
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Fiona Klute via buildroot @ 2024-07-23 10:28 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Fiona Klute, Ricardo Martincoski

From: "Fiona Klute (WIWA)" <fiona.klute@gmx.de>

This series builds on two patches I've sent previously before, with
the main goal of supporting firewall configuration through an nftables
rules file. Offering the choice of iptables-nft as the default
iptables implementation (smilar to e.g. update-alternatives on Debian)
makes it easier to integrate that with legacy applications that rely
on the iptables command (e.g. Docker).

Patches 3-6 have been added in v2.

Changes v1 -> v2:
* clarify comments & commit messages
* nftables init script: Warning about missing flush in ruleset on reload
* nftables init script: check for rules file only on start
* nftables init script: return nft return code from start/stop functions
* iptables init script: start only if rules file exists
* add tests for init scripts
* use long form options in init scripts
* fix typecheck warnings

Fiona Klute (WIWA) (6):
  package/nftables: add init script
  package/iptables: optionally default to nftables compat
  package/iptables: check for rules in init script
  support/testing: test for nftables init script
  support/testing: include init script in iptables test
  support/testing: fix MyPy warnings about BRConfigTest

 .checkpackageignore                           |  1 -
 DEVELOPERS                                    |  1 +
 package/iptables/Config.in                    | 12 ++++
 package/iptables/S35iptables                  | 14 ++--
 package/iptables/iptables.mk                  | 10 ++-
 package/nftables/S35nftables                  | 66 +++++++++++++++++++
 package/nftables/nftables.mk                  |  5 ++
 support/testing/infra/basetest.py             |  4 +-
 .../testing/tests/package/test_iptables.py    | 18 +++++
 .../testing/tests/package/test_nftables.py    | 37 ++++++++++-
 .../rootfs-overlay/etc/nftables.conf          |  8 +++
 11 files changed, 166 insertions(+), 10 deletions(-)
 create mode 100644 package/nftables/S35nftables
 create mode 100644 support/testing/tests/package/test_nftables/rootfs-overlay/etc/nftables.conf

--
2.45.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-07-23 13:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-23 10:28 [Buildroot] [PATCH v2 0/6] Improved nftables firewall support Fiona Klute via buildroot
2024-07-23 10:28 ` [Buildroot] [PATCH v2 1/6] package/nftables: add init script Fiona Klute via buildroot
2024-07-23 10:28 ` [Buildroot] [PATCH v2 2/6] package/iptables: optionally default to nftables compat Fiona Klute via buildroot
2024-07-23 10:28 ` [Buildroot] [PATCH v2 3/6] package/iptables: check for rules in init script Fiona Klute via buildroot
2024-07-23 10:28 ` [Buildroot] [PATCH v2 4/6] support/testing: test for nftables " Fiona Klute via buildroot
2024-07-23 10:28 ` [Buildroot] [PATCH v2 5/6] support/testing: include init script in iptables test Fiona Klute via buildroot
2024-07-23 12:26   ` Thomas Petazzoni via buildroot
2024-07-23 13:41     ` Fiona Klute via buildroot
2024-07-23 10:28 ` [Buildroot] [PATCH v2 6/6] support/testing: fix MyPy warnings about BRConfigTest Fiona Klute via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox