Linux Sysadmin Lesson 135: Do not configure your firewall over SSH.

Wanted to make sure my server was secure, so I was updating IPTables config. I was also curious what would happen if I configured my firewall over SSH. I was correct: my SSH connection was instantly dropped. Time for a walk to the other side of campus to hit the reset button.

UPDATE: So I managed to clear out everything and reconfigure IPTables. Seems like a program that would be cool to learn more about (re: setting up my own NAT router with a linux computer and two NICs). Overall, I’ve simply allowed all outgoing and only allowed incoming on ports that I’m actually using (just in case some random thing is running that I’m not aware of).

Of course I’m still vulnerable to the reverse SSH tunnel…

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.