User Tools

Site Tools


snippets:nftables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

snippets:nftables [2021/02/23 01:55] (current)
chris created
Line 1: Line 1:
 +  * [[https://www.redhat.com/en/blog/using-nftables-red-hat-enterprise-linux-8|Great introduction]]
 +  * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-nftables_configuring-and-managing-networking|product docs]]
 +  * https://wiki.nftables.org/wiki-nftables/index.php/Stateful_objects
  
 +<code>
 +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
 +</code>
snippets/nftables.txt ยท Last modified: 2021/02/23 01:55 by chris