Przedtem generalne sprzątanie iptables upewnij się, że wiesz, jak go skonfigurować według własnych potrzeb
Wyczyść CentOS/ Debian reguły iptables .
Poniższe wiersze polecenia w poniższej kolejności:
1. iptables -P INPUT ACCEPT
2. iptables -P FORWARD ACCEPT
3. iptables -P OUTPUT ACCEPT
4. iptables -F
5. iptables -X
6. iptables -t nat -F
7. iptables -t nat -X
8. iptables -t mangle -F
9. iptables -t mangle -X
iptables –pomoc :
-P (polityka) = łańcuch target
–Flush -F [łańcuch] Usuwa wszystkie reguły w łańcuchu lub wszystkie łańcuchy
-table -t tabela stół do manipulowania (default: `filtr ')
-X [łańcuch] Usuń łańcuch zdefiniowany przez użytkownika