iptables -F
Somehow a few hours ago all my domains and cpanel that I host on a server weren't available. Using a browser I would get an error telling me that the domain could not be accessed.
I was able to ssh using the IP address and I started searching the Internet about networking issues and fixes. Finally I issued the command
I think this command flushes the iptables. If I reboot the server, everything becomes unavailable again. As soon as I issue the above command, poof, everything is available again. Can someone please help me understand what is happening here, please. Why is tis command makes everything to work but if I reboot everything becomes unavailable? HELP!!!!
iptables -FI think this command flushes the iptables. If I reboot the server, everything becomes unavailable again. As soon as I issue the above command, poof, everything is available again. Can someone please help me understand what is happening here, please. Why is tis command makes everything to work but if I reboot everything becomes unavailable? HELP!!!!
-
Hello :) That command will temporarily flush the rules. If you want to ensure the default rules are not restored, then you must run a command such as: /etc/init.d/iptables save
That being said, it's likely a better idea to install a third-party firewall management utility such as CSF. Thank you.0
Please sign in to leave a comment.
Comments
1 comment