I'm playing around with nftables a little bit and I've set up this rule to block all traffic coming from 192.168.0.29.
The curious result, however, is that it blocks the pings, but I can still SSH from that respective host, in spite of the rule.
sudo nft rule add mytable mychain ip saddr 192.168.0.29 drop
What's wrong with this? nft list ruleset
table ip mytable {
chain mychain {
type filter hook input priority 0; policy accept;
ip saddr 192.168.0.29 drop
}
} Edit: Now I've blocked the whole subnet, with the same result. SSH is still standing, for some reason.