Sample iptables config for a web server

Posted by robbiebow on 17 August, 2008 under geek | Be the First to Comment

I’ve cribbed this sample iptables config from the one at IPTablesRocks – basically restricting the incoming ports down to SSH (port 22) and HTTP (port 80). Be sure to follow their precautions before trying to change your iptables – get it wrong and it could cost you a fair price to get your web hosts to flush your iptables.

Add A Comment