News for hackers. Stuff that matters.
Re:Linode introduces StackScripts - Custom recipes for your ... by fortes on Tuesday February 09, 2010 @12:06PM (#1112607)
This is neat. Similar to EC2 AMIs, right?

Something I've these -- who is responsible for security updates? I assume it's the deployer, which can often be someone who may not have much experience as an sysadmin. What's the best way to keep a system secure? Cron + Apt-get update?

Re:Linode introduces StackScripts - Custom recipes for your ... by poutine on Tuesday February 09, 2010 @12:18PM (#1112642)
I wouldn't suggest cron'ing apt-get update, it may break something while you're not there. Better to do a manual update once a month or so and do a quick test afterwards. Ideally you'd do this on a identical non-production QA machine, but if you're only a one box sorta guy then you can likely get away with no issues.

Of course, security issues these days are more often the result of misconfiguration but if you're doing something simple like a single box with a localhost only MySQL, Apache/Nginx and Rails/Python/PHP or the like then it's pretty straight forward. Don't really even need a firewall.

What I would suggest is locking down SSH to not allow root login and to require key authentication and deny password auth. So much automated SSH password guessing bot spam out there.

Re:Linode introduces StackScripts - Custom recipes for your ... by gtani on Tuesday February 09, 2010 @07:17PM (#1113802)
Brute forcing:

http://news.ycombinator.com/item?id=1025520

I think a new admin needs to read up on locking down ports in iptables, Bastille, snort, filesystem fingerprinting and some checklists:

http://www.mnxsolutions.com/blog/apache/securing-your-server...

http://blog.dhananjaynene.com/2009/10/configuring-a-secure-u...

Re:Linode introduces StackScripts - Custom recipes for your ... by slig on Tuesday February 09, 2010 @01:23PM (#1112816)
Setting up UFW on ubuntu is so simple that I really don't see why not use a firewall.
Re:Linode introduces StackScripts - Custom recipes for your ... by andrewvc on Wednesday February 10, 2010 @12:22AM (#1114296)
Oddly enough, from the command line, I don't get the point of UFW, straight iptables is much easier for me. I mean, if you understand the concepts of iptables, UFW is just an alternate but by no means easier way of manimpulating iptables.
Re:Linode introduces StackScripts - Custom recipes for your ... by slig on Wednesday February 10, 2010 @03:40PM (#1115950)
Agreed. UFW is just simple to copy/paste commands from tutorials on how to set up your own server.
Re:Linode introduces StackScripts - Custom recipes for your ... by fortes on Tuesday February 09, 2010 @12:55PM (#1112737)
Thanks for the info. Are exploits rare enough these days that updating once a month good enough for a well-configured machine? (If so, that's great -- I was worried about taking a vacation :))
Re:Linode introduces StackScripts - Custom recipes for your ... by poutine on Tuesday February 09, 2010 @05:05PM (#1113487)
Depends on your risk profile, but in general if you update once a month you're probably ahead of 95% of the servers out there.
Re:Linode introduces StackScripts - Custom recipes for your ... by wizard_2 on Tuesday February 09, 2010 @05:16PM (#1113509)
I don't agree - I try to do security patches every few days, and major upgrades when I have time to test them. The hard part is keeping tabs on what servers need them. I have 7 or 8 vm's and when they're not involved in a project they're easy to forget about.
Re:Linode introduces StackScripts - Custom recipes for your ... by larrywright on Tuesday February 09, 2010 @10:02PM (#1114106)
I always run ssh on a really high port, which does a decent enough job of keeping the password guessing bots.
Re:Linode introduces StackScripts - Custom recipes for your ... by Joe_Bananas on Tuesday February 09, 2010 @01:43PM (#1112869)
I have a cron job set up to mail me if there are packages to upgrade. Avoids potential breakage with automated updates while still letting me act reasonably fast.