Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| knowledge_base:linux:iptables [2020/10/30 01:43] – angelegt julian.lemmerich | 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 | ||
| </ | </ | ||