Delete a single rule by handle nftables
Surgical removal without flushing; get the handle from nft -a list ruleset
nft delete rule inet filter input handle 7
more nftables
all 12 commands →
Named counter on a rule
nft add rule inet filter input tcp dport 22 counter accept comment \"ssh\"
SNAT masquerade for outbound NAT
nft add rule ip nat postrouting oifname \"eth0\" masquerade
DNAT port forward to internal host
nft add rule ip nat prerouting iif \"eth0\" tcp dport 443 dnat to 10.0.0.5:8443
Rate-limit new connections
nft add rule inet filter input tcp dport 22 ct state new limit rate 10/minute accept
Watch ruleset changes live
nft monitor ruleset