From e15208097cf3e97c8165536c2005e53961227621 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 23 Jul 2018 20:20:27 +0200 Subject: Add nftables service Signed-off-by: David Oberhollenzer --- .gitignore | 1 + configure.ac | 1 + services/Makemodule.am | 2 +- services/nft.in | 7 +++++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 services/nft.in diff --git a/.gitignore b/.gitignore index e28328d..914f9ec 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ services/modules services/hostapd services/swclock services/swclocksave +services/nft scripts/devfs.sh scripts/ifrename.sh diff --git a/configure.ac b/configure.ac index 564689a..e8fade6 100644 --- a/configure.ac +++ b/configure.ac @@ -70,6 +70,7 @@ AC_CONFIG_FILES([services/modules]) AC_CONFIG_FILES([services/hostapd]) AC_CONFIG_FILES([services/swclock]) AC_CONFIG_FILES([services/swclocksave]) +AC_CONFIG_FILES([services/nft]) AC_CONFIG_FILES([scripts/devfs.sh]) AC_CONFIG_FILES([scripts/ifrename.sh]) AC_CONFIG_FILES([scripts/ifcfg.sh]) diff --git a/services/Makemodule.am b/services/Makemodule.am index 3625715..ab79414 100644 --- a/services/Makemodule.am +++ b/services/Makemodule.am @@ -8,7 +8,7 @@ init_DATA += services/vfs services/ifrename services/ifcfg init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound init_DATA += services/dnsmasq services/ifdown services/modules init_DATA += services/network services/hostapd services/swclock -init_DATA += services/swclocksave +init_DATA += services/swclocksave services/nft if USYSLOGD init_DATA += services/usyslogd diff --git a/services/nft.in b/services/nft.in new file mode 100644 index 0000000..21caab0 --- /dev/null +++ b/services/nft.in @@ -0,0 +1,7 @@ +description "restore netfilter rule set" +type wait +target boot +after sysinit ifrename +before network ifcfg + +exec nft -f "@ETCPATH@/nftables.rules" -- cgit v1.2.3