Shorewall: temporarily drop incoming traffic except port 22?
- by Magnetic_dud
When I work on configuration files, especially of the mail server, I would like to temporarily drop all the incoming traffic except the port 22.
So, I don't risk to lose incoming mails if I need to move the mail server to another server, or something like that.
Using shorewall, how I could do that?
I was thinking to create a rules file to divert all the traffic to a non-existant internal ip and switch it with the normal file when needed.