Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung | |||
knowledge_base:linux:iptables [2021/09/24 19:10] – Externe Bearbeitung 127.0.0.1 | knowledge_base:linux:iptables [2023/07/26 17:27] (aktuell) – add Digital Ocean julian.lemmerich | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Linux IPtables ====== | ====== Linux IPtables ====== | ||
- | open tcp port | + | Dieser Artikel von Digitalocean ist super: https:// |
+ | |||
+ | == -P INPUT DROP == | ||
+ | |||
+ | droppt allen incoming traffic. <br> Das hießt auch looopback und conntrack! | ||
+ | |||
+ | daher | ||
+ | |||
+ | < | ||
+ | -A INPUT -m conntrack --ctstate RELATED, | ||
+ | -A INPUT -i lo -j ACCEPT | ||
+ | -A INPUT -p icmp -j ACCEPT | ||
+ | </ | ||
+ | |||
+ | == open tcp port == | ||
<code bash> | <code bash> | ||
iptables -A INPUT -p tcp --dport 25569 -j ACCEPT | iptables -A INPUT -p tcp --dport 25569 -j ACCEPT | ||
</ | </ |