misc/linux/test-nft.sh

9 lines
246 B
Bash
Raw Permalink Normal View History

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