Ran IPTables Flush? How To Regain SSH Access After Being Locked Out Of CSF Firewall Servers

Centmin Mod Tips

You’ve accidentally run the SSH command iptables -F and have locked yourself out of your server and can not SSH login again. So how do you regain SSH access? Centmin Mod LEMP stack uses CSF Firewall which is a wrapper interface to CentOS system’s underlying IPTables. If you run the SSH command, iptables -F you may end up locking yourself out of the server as this command flushes all the existing IPTable rules that are configured and setup by CSF Firewall at startup. This guide will outline ways you can possibly regain SSH access using example VPS providers – Upcloud, DigitalOcean, Vultr, Linode, Hetzner and Amazon AWS EC2 instance servers.

Read moreRan IPTables Flush? How To Regain SSH Access After Being Locked Out Of CSF Firewall Servers