News for hackers. Stuff that matters.
Re:Ask HN: Best Server Hardening Guide? by e1ven on Monday August 24, 2015 @02:06PM (#10111815)
One quick note - You probably shouldn't be performing your server hardening manually on each server. It's easy to miss things.

I'd suggest using an ansible/chef/puppet/whatever script, that you customize to meet the needs of your particular application.

Some simple ones you could start with are available at http://tinyurl.com/AnsibleFirst5 and/or http://hardening.io/

Expand to add additional configuration and hardening for your particular infrastructure.

Re:Ask HN: Best Server Hardening Guide? by api on Monday August 24, 2015 @12:15PM (#10110855)
(1) sudo netstat -tanp | grep LISTEN

(2) For anything not listening to 127.0.0.1: what is it and do you need it?

(3) If answer to #2 is "dunno" or "no," turn it off.

:)

Re:Ask HN: Best Server Hardening Guide? by Kinnard on Monday August 24, 2015 @12:30PM (#10111007)
Nice.
Re:Ask HN: Best Server Hardening Guide? by richardthered on Monday August 24, 2015 @01:43PM (#10111635)
Check out : https://benchmarks.cisecurity.org/downloads/multiform/

They call them 'benchmarks', but they are really just checklists of things to do (disable X, lock down Y, etc.)

Re:Ask HN: Best Server Hardening Guide? by VarunAgw on Monday August 24, 2015 @01:07PM (#10111329)
Co-incidentally I got this in E-Mail as newsletter

https://www.digitalocean.com/community/tutorials/7-security-...

Re:Ask HN: Best Server Hardening Guide? by ch215 on Monday August 24, 2015 @02:21PM (#10111937)
The Hardened Gentoo project page has a lot of useful information, guides on using Pax, grsecurity and so on...

https://wiki.gentoo.org/wiki/Project:Hardened

Re:Ask HN: Best Server Hardening Guide? by leni536 on Monday August 24, 2015 @12:31PM (#10111011)
Re:Ask HN: Best Server Hardening Guide? by jlawer on Tuesday August 25, 2015 @02:28AM (#10114875)
Red Hat have a very good guide for RHEL / CentOS:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterp...

NSA have also put out some good hardening guides

Re:Ask HN: Best Server Hardening Guide? by tmaly on Monday August 24, 2015 @01:09PM (#10111343)
stay away from ufw and stick with iptables. I had some ufw stuff fail on me and I discovered when I logged in that everything was open again.
Re:Ask HN: Best Server Hardening Guide? by Kinnard on Monday August 24, 2015 @12:33PM (#10111020)
Surprised HN doesn't have more advice on this.