I was just configuring IPtables and whilst doing so, had the default chain policies set to
ACCEPT, but when happy with the generated rules I changed that to
DROP for all chains.
I did not run
iptables-save at any time.
After do this, I still had good access, but noticed that one of the rules wasn't right, so I decided to flush the rules immediately to avoid interrupting the users.
When I did this using
iptables -F I was immediately denied access to the server (along with the rest of the world). So much for not wanting to interrupt the users!
Is it possible that the rules were flushed but the default policies were left as
What went wrong and what should I have done?