Fix: Server Blocked From the Web After Reboot (Ping & SSH OK)
Hello!
If your server is experiencing a strange issue where it becomes completely blocked from the outside world after a reboot, restart, or waking from sleep—but your Ping and SSH (root access) still work perfectly—you are not alone.
Here is why this happens and how to fix it permanently.
The Root Cause
This issue is caused by a firewall conflict. Specifically, the default Linux iptables service and your Imunify360 firewall are both trying to control the server's security rules at the same time.
When the server boots up, the old iptables service starts automatically and applies outdated or incorrect blocking rules. This drops all web traffic, completely disconnecting your websites from the internet, even though the server itself is still online and responding to pings.
How to Solve It
If you are already trapped and your websites are currently down, follow the steps below in order.
Step 1: Emergency Access (If Currently Trapped)
If your server is currently blocking traffic, you need to flush the bad rules to force the server back online immediately. Log in via SSH as root and run:
Bash/code
iptables -F
Note: Your server is now online but temporarily unprotected. Move immediately to Step 2.
Step 2: The Permanent Fix
To prevent the server from applying these old rules on the next reboot, you must disable the default iptables service so Imunify360 can handle your security without interference.
Run the following commands one by one:
Bash/code
systemctl disable iptables
systemctl daemon-reload
systemctl restart imunify360
Step 3: Verify
Once you have disabled the iptables service and restarted Imunify360, your server is fully protected again.
You can safely reboot your server to test it. When it comes back online, it will no longer block web traffic, and your sites will load immediately.
We hope this solves your issue completely!