I wanted to implement some IPTables on a remote server so I opened all necessary ports and then added the following to lock down the firewall:
iptables -P INPUT DROP
iptables -P OUTPUT DROP
I scheduled a reboot via crontab to make sure the tables get flushed in case I mess up ...
So I made some further tests which locked me out (which was expected) because I knew I had the reboot scheduled.
Now I am still locked out ... I got two options now
1. Reboot did not work for some reason
2. The drop command remains after reboot.
Does anyone know if the DROP commands remain after a reboot and only additional "rules" are being flushed ?