Nftables: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
 
(29 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
=Install=
+
* [[Nftabels Grundlagen]]
*apt-get install nftables
+
* [[Grundlegendes zum Connection Tracking]]
=Create a basic IPv4 table=
+
* [[nftables console]]
*nft add table inet filter
+
* [[iptables zu nftables]]
=List that table=
+
* [[nftables masquerade]]
*nft list table inet filter
+
* [[nftables Host absichern]]
table inet filter {
+
* [[nftables Netze absichern]]
}
+
* [[nftables misc]]
=Create a chain for input traffic IPv4=
+
* [[nftables Anpassung]]
*nft add chain inet filter input { type filter hook input priority 0\; }
 
=A rule to check that all is fine (IPv4)=
 
*nft add rule inet filter input counter accept
 
=List that table=
 
*nft list table inet filter
 
<pre>
 
table inet filter {
 
chain input {
 
type filter hook input priority 0; policy accept;
 
counter packets 47 bytes 3100 accept
 
}
 
}
 
</pre>
 
=Flush rules in chain filter/input=
 
*nft flush chain inet filter input
 
=Delete the chain filter/input=
 
*nft delete chain inet filter input
 
=Delete the table filter=
 
*nft delete table inet filter
 

Aktuelle Version vom 7. März 2023, 08:35 Uhr