Cum stergem regulile din IPTABLES (CentOS/Debian)

Configurare noua (How To)

Situatie

Mai jos aveti comenzile pe care trebuie sa le rulati.

Solutie

Urmatoarele linii de comanda in ordinea de mai jos:

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 –help :

-P (policy) = chain target

–flush   -F [chain]          Delete all rules in  chain or all chains

-table       -t table        table to manipulate (default: `filter’)

-X [chain]          Delete a user-defined chain

Tip solutie

Permanent
Etichetare:

Voteaza

(16 din 41 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?