Nftables (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 18: | Zeile 18: | ||
<pre> | <pre> | ||
sudo vi /etc/nftables.conf | sudo vi /etc/nftables.conf | ||
</pre> | |||
<pre> | |||
#!/usr/sbin/nft -f | |||
flush ruleset | |||
table inet filter { | |||
chain input { | |||
type filter hook input priority 0; policy accept; | |||
} | |||
chain forward { | |||
type filter hook forward priority 0; policy accept; | |||
} | |||
chain output { | |||
type filter hook output priority 0; policy accept; | |||
} | |||
} | |||
</pre> | </pre> | ||
Version vom 10. Februar 2020, 23:58 Uhr
Noch in Bearbeitung
Installation
sudo apt-get install -y nftables
Service
sudo systemctl enable nftables.service
Konfiguration
sudo vi /etc/nftables.conf
#!/usr/sbin/nft -f flush ruleset table inet filter { chain input { type filter hook input priority 0; policy accept; } chain forward { type filter hook forward priority 0; policy accept; } chain output { type filter hook output priority 0; policy accept; } }
Links
https://wiki.debian.org/nftables
Zurück zu Ubuntu