Allows configuration of tables, chains and rules provided by the…
Allows configuration of tables, chains and rules provided by the Linux kernel firewall. Nftables replaces iptables.
sudo nft list ruleset
sudo nft add table {{inet}} {{filter}}
sudo nft add chain {{inet}} {{filter}} {{input}} \{ type {{filter}} hook {{input}} priority {{0}} \; policy {{accept}} \}
sudo nft add rule {{inet}} {{filter}} {{input}} {{tcp}} {{dport \{ telnet, ssh, http, https \} accept}}
sudo nft --handle --numeric list chain {{family}} {{table}} {{chain}}
sudo nft delete rule {{inet}} {{filter}} {{input}} handle {{3}}
sudo nft list ruleset > {{/etc/nftables.conf}}