install | setup | routing states
tested on debian12
it’s better to use a casual debian kernel for once. you may experience issues with custom kernels (not sure the official doc states all required modules).
grep CONNTRACK /boot/config-`uname -r` mv -i /etc/sysctl.conf /etc/sysctl.conf.dist vi /etc/sysctl.conf
none of those are required as for kernel v6.1
# state tracker legacy tweaks #net.netfilter.nf_conntrack_tcp_be_liberal = 0 #net.netfilter.nf_conntrack_tcp_loose = 0 #net.netfilter.nf_conntrack_helper = 0
#sysctl -p
see install
cd /etc/ mv -i nftables.conf nftables.conf.dist chmod -x nftables.conf.dist cd /etc/conntrackd/ mv -i conntrackd.conf conntrackd.conf.dist grep -vE '^[[:space:]]*#|^$' conntrackd.conf.dist > conntrackd.conf.clean grep -vE '^[[:space:]]*#|^$' conntrackd.conf.dist > conntrackd.conf
see routing sates
tail -F /var/log/conntrackd.log
systemctl restart nftables systemctl restart conntrackd systemctl status nftables # enabled systemctl status conntrackd # enabled
vi /etc/rc.d/rc.inet1 echo netfilter and states tracker nft -f /etc/nftables.conf && /usr/sbin/conntrackd -C /etc/conntrackd/conntrackd.conf -d
https://conntrack-tools.netfilter.org/manual.html
https://conntrack-tools.netfilter.org/testcase.html