Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

iptables -F

Discussion in 'General Discussion' started by epanagio, Jun 21, 2014.

  1. epanagio

    epanagio Well-Known Member

    Joined:
    May 26, 2012
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    58
    cPanel Access Level:
    Website Owner
    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
    Code:
    iptables -F
    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!!!!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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:

    Code:
    /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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice