Add test-nft script

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2024-08-23 15:08:14 +02:00
parent 87cdd8fa50
commit a277ba3eae
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57

8
linux/test-nft.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh -Cefux
# Check if netfilter kicks kernel upon loading rules
# Georg Pfuetzenreuter <mail+opensuse@georg-pfuetzenreuter.net>
[ "$(id -u)" = 0 ] || exit 1
/root/bin/mkdummies.sh
nft -f /etc/nftables.conf
dmesg -T|tail
dmesg -T|grep trace