Page 1 of 1

flush iptables

Posted: Wed May 31, 2017 4:22 pm
by Augie Erhard
How can I safely flush iptables in a Linux firewall? My server is not accessible via port 80, nor 443 and the best is to delete all the rules, because I don't know where ever it is it from.

Re: flush iptables

Posted: Thu Jun 01, 2017 8:15 am
by Juraj Vysvader
Basically, it worked for me on CentOS and Debian based OS as well. Just the order...

Code: Select all

iptables -F
iptables -X

Flush UFW

Posted: Thu Jun 01, 2017 10:03 pm
by Augie Erhard
What if it is UFW installed in CentOs? Is it the same command?