News for hackers. Stuff that matters.
Re:Securing a Linux Server by ruttiger on Saturday September 14, 2013 @02:28AM (#6384875)
I made the mistake of accidentally setting the firewall too strict on a remote server, killing my ability to SSH. A neat little trick I found was to setup a scheduled task to kill the firewall in 5 minutes, and then restart it. If it's too restrictive and locks you out, wait 5 minutes. If you did it right, then kill the scheduled task.
Re:Securing a Linux Server by tobithiel on Saturday September 14, 2013 @03:29AM (#6384963)
You can just use iptables-apply. It achieves the same thing and is built-in. If you don't confirm the changes after they are applied, because you locked yourself out, they will be rolled back.
Re:Securing a Linux Server by pbhjpbhj on Saturday September 14, 2013 @05:11AM (#6385096)
This is in the article FWIW.
Re:Securing a Linux Server by moepstar on Saturday September 14, 2013 @05:44AM (#6385144)
APF, which is basically just a simplified way of setting up IPTables rules, does this.

http://www.rfxn.com/projects/advanced-policy-firewall/

or

apt-get install apf-firewall

Re:Securing a Linux Server by froyke on Sunday September 15, 2013 @04:31AM (#6388485)
Install dome9 to remotely configure the iptables. Never be locked out of your server again