#nftables
4 one-liners with this tag.
All one-liners tagged nftables
Add an IP address to an nftables blocklist
#nft add element inet filter blocklist '{ 203.0.113.25 }'
Create an IP blocklist set in nftables
#nft add set inet filter blocklist '{ type ipv4_addr; flags interval; }' && nft insert rule inet filter input ip saddr @blocklist drop
Open a port with nftables
#nft insert rule inet filter input tcp dport 443 accept
Show the complete nftables ruleset with handles
#nft -a list ruleset