misc/linux/test-nft.sh
Georg Pfuetzenreuter a277ba3eae
Add test-nft script
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2024-08-23 15:08:14 +02:00

9 lines
246 B
Bash
Executable File

#!/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