User Tools

Site Tools


Sidebar

snippets:nftables
nft list tables
nft list table firewalld

nft add chain firewalld output { type filter hook output priority 0 \; }
nft add rule firewalld output ip daddr 8.8.8.8 counter
nft add rule firewalld output tcp dport 80 counter

nft list chain firewalld output 
nft list chain firewalld output -n -a

nft add chain firewalld input { type filter hook input priority 0 \; }
nft add rule firewalld input tcp dport 80 counter
nft add rule firewalld input tcp dport 443 counter
snippets/nftables.txt ยท Last modified: 2021/03/23 12:22 (external edit)