LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-11-2003, 01:14 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Securing RH 7.3 and 9.0 servers on install...


Hello everyone.

I wanted to post here about a few things I am looking for. I am hoping that someone on the list can point me in the right direction as to where I may be able to find the documents I am looking for.

(As I finish this, I am reading through the thread in this forum on security, trying to see what I can find. I was hoping someone have another recommendation or link for me as well.)

I am currently in the process of setting up a few RH servers (using 7.3 and 9.0). However, before I begin the install on these servers, I wanted to find some documentation on good ways to make the install as secure as possible.

Topics include items like:

What to install, what not to install
Partition suggestions
How to lock down the server during install and after install
How to overall, harden the Linux server.

I know of Bastille and am planning to implement it onto all of our servers. However, I would like to find documentation that will help me install only the items I need and make the server as secure as possible right out of the box, sort a speak.

Anyone have any suggestions or recommendations?

I should mention that I will be putting up the following type of servers:
Mail Server
Web Server
DNS Server
Samba PDC Server
Samba File server

I really appreciate everyones input.

Cheers,

Tarballed
 
Old 07-12-2003, 10:52 AM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want Documentation and HOWTOs, I suggest Linux Online
The documentations section is good.
http://www.linux.org/

If you want to secure your system after the installation, I suggest disconnecting from the external network (internet).
Setup all your services, secure them and then connect back to the network.

Unlike Windows, Linux services are quite secure out of the box.
However, you may want to shutdown certain daemons (services) such as Telnet.

As for Partition suggestions, usually the distribution defaults are good. Usually...
Depending on the size of your hard drive(s), you may want to change the size and location of certain partitions.

As for which packages to installed, it depends on whether or not you want your servers to have graphical environments, what type of network connection (DSL, Ethernet, ISDN, etc), etc.
You may want to do as I did, I starting reading the descriptions of all the available RPMs on my installation CDs.
It takes times, but in the end you will reduce the amount of disk space used, or find new features you did not know were available.

Linux, it is full of neat stuff.
 
Old 07-13-2003, 04:52 AM   #3
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
suggestions

These are suggestions. I have set up some of what you are looking at doing at my business and be assured that a) it is secure b) it is stable. This takes in the assumption that your have updated your packages after install.

"Topics include items like:

What to install, what not to install
Partition suggestions
How to lock down the server during install and after install
How to overall, harden the Linux server."

For serving, you install the packages you need and only those. Any services that are running that have nothing to do with server functionality should be disabled. But that goes for any OS.. except one that I don't need to mention.

Partitioning usually consists of /boot, / , and SWAP. The rest are optional and based on what functions your server performs. If it is a fileserver, you give /home/samba/MyFiles a separate partition to keep it from disturbing other processes.

Locking down a server during or after install depends on what OS you are installing and what server processes you are bringing up. But if you enable only what you need, that is the major part of a lockdown. Linux was built secure from day 1... again, unlike other OS's I don't need to mention.

"Anyone have any suggestions or recommendations?

I should mention that I will be putting up the following type of servers:
Mail Server
Web Server
DNS Server
Samba PDC Server
Samba File server "

Before you do any of this, I recommend that you add one more server. A multinetwork firewall with intrusion detection and proxy caching. Mandkrake has a free one called ironically enough, MultiNetwork Firewall(MNF). Netmax also makes a nice comparable one for 300 bucks. This will be the iron between the internet and your lan. And I will tell you from experience, that nothing gets through it. The 100 Mbit proxy cache bursting and user ip tracking, bandwidth tracking, cpu monitoring, hacking attempt tracking is invaluable. The users get a kick out of loading a webpage, or doing 45 MB MS updates in seconds. Yes, I have MS clients at my place . And it saves money cause you don't need as fat a pipe due to the cacheing.. Anyway, beyond that-

Mail Server- http://www.opengroupware.org/ just released a MS Exchange mail server replacement. Something more costly but stable is Suse's openexchange server:
http://www.suse.com/us/business/prod...nge/index.html
If you don't want all those heavy IMAP features, you can use postfix or for a nice web interface with calendering, you can use squirrelmail(SMTP/POP/HTTP).

Web server- apache and all the fixins. Nothing really complex here. Every distribution has it installed by default. Although adding WebMin to configure the server remotely and graphically is nice.

DNS server- BIND services are includes by default on all OS's, but serving as a DNS host is a bitch to set up if you need to go more than 2 deep. This one will take more time to configure than the rest. Have a network guy handy for this. Seriously, I'm not a pussy. But, BIND is still something that scares me(Although I have multiple ISP's dual-homed and 40 WAN sites across the wilderness doing critical care)

Samba PDC server- Easy as pie to set up. Samba wants to assume it's the PDC anyway. It dislikes being a BDC. You will want to enable LDAP for permissions since it is the PDC. Again Webmin is your friend here. Btw, it's faster than MS PDC's in authentication. Lots faster.

Samba Fileserver- Permissions to file would be granted via your PDC's ldap user/groups. Also a simple server to set up. And again, it's faster than MS's sharing fileservices. Don't ask me why. It just is. Water's wet. The sky's blue. Samba is faster. Who gives a shit.

And so, that's what little sophomoric wisdom I can bestow on you. May God bless you and keep you. And as the sun gently sets in the west, I bid you a fond farewall.

Thor
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Me Install VPN Servers ayie Linux - Networking 2 09-19-2005 02:19 AM
Install network card Intel PRO/1000 MT Dual Servers adapter Alex_Saf Fedora 3 03-17-2005 11:30 AM
Securing a system and its SSH install for access from the outside TheOneKEA Linux - Security 4 07-07-2004 03:27 PM
Securing Passwd Obie Linux - Security 5 05-31-2004 06:36 PM
securing FTP radnix Linux - Security 3 09-16-2002 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration