Wilders Security Forums  

Go Back   Wilders Security Forums > Software, Hardware and General Services > all things UNIX
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread
  #1  
Old June 9th, 2012, 05:02 PM
BrandiCandi
 
Posts: n/a
Default Linux Server Security

In light of another thread, I would like to discuss necessary security measures one should implement on any given Linux server. For the sake of argument, let's say we have several servers running a website, an sql database, a file server, and an email server.

I'm in the process of setting up my very first file server on a VLAN. It happens to be an Ubuntu 12.04 server, but I will also be installing a Centos server in the future. I will eventually set up an email, web, and sql server as well. Utlimately they will face the internet. But I want to learn the basics before I unleash them upon the world.

I'm interested in your personal opinions, links to articles, tutorials, horror stories. Pretty much anything because it's all brand new to me.

Thanks!
  #2  
Old June 9th, 2012, 05:05 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: Linux Server Security

Remove the UI =p
__________________
  #3  
Old June 10th, 2012, 06:27 AM
Kyle1420's Avatar
Kyle1420 Kyle1420 is offline
Frequent Poster
 
Join Date: May 2008
Posts: 402
Default Re: Linux Server Security

Quote:
Originally Posted by Hungry Man
Remove the UI =p
What would that achieve?...
__________________
Win 7 x64(gaming);
Sandboxie/Mbam paid
Linux Mint x64(everything else);
http://linuxmint.com/
  #4  
Old June 10th, 2012, 11:27 AM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: Linux Server Security

Reduce attack surface a ton and avoid keylogging through X.
__________________
  #5  
Old June 10th, 2012, 01:10 PM
Mrkvonic Mrkvonic is online now
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,433
Default Re: Linux Server Security

Brandi, do you plan on running all of the services on a single box?
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #6  
Old June 10th, 2012, 01:54 PM
Gentoo64's Avatar
Gentoo64 Gentoo64 is offline
Infrequent Poster
 
Join Date: Jun 2012
Location: UK
Posts: 12
Default Re: Linux Server Security

Quote:
Originally Posted by Hungry Man
Reduce attack surface a ton and avoid keylogging through X.

I doubt it would reduce the attack surface by much, most people just don't have a UI on a server because it's not needed. Waste of resources.
  #7  
Old June 10th, 2012, 01:56 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: Linux Server Security

Do "sudo apt-get remove unity" (or whatever your DM is) and see how many dependencies it tries to remove.
__________________
  #8  
Old June 10th, 2012, 02:06 PM
Gentoo64's Avatar
Gentoo64 Gentoo64 is offline
Infrequent Poster
 
Join Date: Jun 2012
Location: UK
Posts: 12
Default Re: Linux Server Security

Of course, removing anything unneeded will improve the potential security. Didn't think Ubuntu Server came with a UI anyway?
  #9  
Old June 10th, 2012, 02:09 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: Linux Server Security

I don't think so but I believe brandi is running with a UI.
__________________
  #10  
Old June 10th, 2012, 05:00 PM
NGRhodes's Avatar
NGRhodes NGRhodes is offline
Very Frequent Poster
 
Join Date: Jun 2003
Location: West Yorkshire, UK
Posts: 1,905
Default Re: Linux Server Security

I assume you mean GUI and not UI or else that include command line as well...
  #11  
Old June 10th, 2012, 06:59 PM
Hungry Man's Avatar
Hungry Man Hungry Man is offline
Incredibly Massive Poster
 
Join Date: May 2011
Posts: 8,486
Default Re: Linux Server Security

I suppose.
__________________
  #12  
Old June 10th, 2012, 09:42 PM
BrandiCandi
 
Posts: n/a
Default Re: Linux Server Security

OK that was just amusing.

I'm running an Ubuntu server without a GUI in fact. It does have a command line. It is not headless if that's what you meant Hungry Man.

Mr.Kvonic, your question is one of the things I was driving at. I presume that one would not want to run all the services on one machine, but I don't know if it's best practice to dedicate one machine per service or keep some of them on one device (or for that matter how I would decide one way or the other). Advice/links/tutorials in this regard would be appreciated.
  #13  
Old June 11th, 2012, 01:56 AM
Mrkvonic Mrkvonic is online now
Linux Systems Expert
 
Join Date: May 2005
Posts: 7,433
Default Re: Linux Server Security

Well, if you can, you might want to separate those.
It's easier for management, and more beneficial for security.
You will have more fine-grained control of what goes on your boxes.
Mrk
__________________
http://www.dedoimedo.com

All your base are belong to us

Linux Systems Expert / Systems Programmer, Linux System Administrator, LPIC-1, LPIC-2 (WIP), GSEC, CCHD, CCHA
  #14  
Old June 11th, 2012, 05:10 AM
mack_guy911's Avatar
mack_guy911 mack_guy911 is offline
Very Frequent Poster
 
Join Date: Mar 2007
Posts: 2,483
Default Re: Linux Server Security

sorry to ask but what wrong with these

Zentyal or clearOS

http://www.wilderssecurity.com/showthread.php?t=324873
__________________
Scientific Linux 6.2, xubuntu 11.10 *2x, Linux mint 10, Linux mint 12, opensuse 11.4, windows vista, ubuntu 10.04 and windows xp
  #15  
Old June 11th, 2012, 09:11 AM
EncryptedBytes EncryptedBytes is offline
Frequent Poster
 
Join Date: Feb 2011
Location: Odenton, Maryland
Posts: 416
Default Re: Linux Server Security

Here is a pretty good guide for RedHat 5, you can amend it to Ubuntu, some of the fields are outdated, though the principles addressed are still very relevant and can help you harden your linux server.

Last edited by EncryptedBytes : June 11th, 2012 at 09:23 AM.
  #16  
Old June 11th, 2012, 12:26 PM
BrandiCandi
 
Posts: n/a
Default Re: Linux Server Security

Quote:
Originally Posted by EncryptedBytes
Here is a pretty good guide for RedHat 5, you can amend it to Ubuntu, some of the fields are outdated, though the principles addressed are still very relevant and can help you harden your linux server.
That's exactly what I was looking for. Thanks!

@mack_guy911: I want to learn what needs to be configured and how to configure a server with security in mind. There are some other out-of-the-box secure servers out there that you may be interested in, I'll post those in the other thread.
 

Wilders Security Forums > Software, Hardware and General Services > all things UNIX « Previous Thread | Next Thread »

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Settings
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:37 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2013, Wilders Security Forums