iptables
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze | ||
iptables [2021/11/15 00:06] – uranusak | iptables [2021/11/15 22:54] (aktuální) – [Jednoduchý firewall] uranusak | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
====== nftables ====== | ====== nftables ====== | ||
+ | |||
+ | Aktivace nftables při startu | ||
+ | systemctl enable nftables.service | ||
Konfigurační soubor | Konfigurační soubor | ||
Řádek 42: | Řádek 45: | ||
+ | ===== Jednoduchý firewall ===== | ||
+ | |||
+ | <file - / | ||
+ | |||
+ | flush ruleset | ||
+ | |||
+ | table inet filter { | ||
+ | chain input { | ||
+ | type filter hook input priority 0; policy drop; | ||
+ | ct state established, | ||
+ | iifname " | ||
+ | icmp type echo-request accept | ||
+ | } | ||
+ | |||
+ | chain forward { | ||
+ | type filter hook forward priority 0; policy drop; | ||
+ | } | ||
+ | |||
+ | chain output { | ||
+ | type filter hook output priority 0; policy accept; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
====== iptables ====== | ====== iptables ====== | ||
[[https:// | [[https:// |
iptables.1636931215.txt.gz · Poslední úprava: 2021/11/15 00:06 autor: uranusak