Pour vérifier si nftables est en cours
sudo nft list ruleset
table inet filter {
chain input {
type filter hook input priority filter; policy accept;
iif "lo" accept
ct state established,related accept
tcp dport { 80, 443, 8200 } ct state new accept
udp dport { 53, 67, 68 } ct state new accept
counter packets 16618 bytes 7370061 drop
}
}
je me suis contenté des règles par défaut avec quelques ports en plus
Dorénavant je n’ai plus de iptable
apt list --installed | grep iptable
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
apt list --installed | grep nftable
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libnftables1/testing,unstable,now 0.9.3-2 amd64 [installé, automatique]
nftables/testing,unstable,now 0.9.3-2 amd64 [installé]
NB Testing est très solide
lsb_release --all
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye
je lui mets le dernier kernel venant de sid
uname --all
Linux debian 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64 GNU/Linux