Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nftables

nft add table inet filter_table
nft add chain inet filter_table filter_chain '{ type filter hook input priority filter; policy drop; }'
nft add rule inet filter_table filter_chain tcp dport 22 accept

test

nc -lvp
nc -lvp 80
nc -lvp 80
nc -lvp 12345