News for hackers. Stuff that matters.
Re:Securing Ubuntu by dmix on Sunday January 20, 2013 @11:38AM (#5087317)
I'd also recommend using http://www.modsecurity.org/ with nginx/apache.
Re:Securing Ubuntu by M4v3R on Sunday January 20, 2013 @12:20PM (#5087429)
Installing mod_security can have nasty side effects. For example, I lost many hours finding cause of my AJAX file uploads failing. It turned out to be caused by this module.
Re:Securing Ubuntu by jiggy2011 on Sunday January 20, 2013 @11:50AM (#5087347)
Is there any straightforward guide to getting started with mod_security?

I installed it on a box with some ruleset and it seems to basically block everything. The configuration format also seems far from simple.

Re:Securing Ubuntu by curiouscats on Sunday January 20, 2013 @06:25PM (#5088744)
Re:Securing Ubuntu by druiid on Monday January 21, 2013 @12:06AM (#5089962)
Well, I'm not sure if I'd suggest looking at mod_security in a 'straightforward' manner particularly. Doing so will likely get you frustrated with the interaction you are likely to have with any default rule-set.

A good way to look at it is to start by installing it and a good rule-set. A good one could be the gotroot/ASL kit http://updates.atomicorp.com/channels/rules/

From that point your best bet would perhaps be one of the freely available 'getting started' guides like https://www.feistyduck.com/books/modsecurity-handbook/gettin...

Mostly though, my suggestion is to deploy it, have your application break (you should be doing this all in a staging environment), figure out if unbreaking your application can be done with scripting changes, bypassing rules, etc.

Re:Securing Ubuntu by erhardm on Sunday January 20, 2013 @12:46PM (#5087516)
I would recommend first reading the nsa best practices guide for RHEL servers. It's a good starting point in securing a Linux machine.