LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can i flush iptables?? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-flush-iptables-274623/)

cranium2004 01-06-2005 12:03 PM

How can i flush iptables??
 
I want to restore iptables to state which is same as newly installed Linux contains.I added and then deleted a lot of rules and want to restore them to their default state.

eantoranz 01-06-2005 02:01 PM

depends on the distribution. On RH based (I think)

Code:

service iptables restart

zeridon 01-06-2005 02:08 PM

usually it is achived this way
Code:

iptables -F
iptables -P INPUT ALLOW
iptables -P OUTPUT ALLOW
iptables -P FORWARD ALLOW

But be warned ... this practically removes any filtering you may have and sets all policies to accept. No filtering no closed ports no Masq no nothing


All times are GMT -5. The time now is 05:02 PM.