LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2004, 05:09 AM   #1
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
My first server


My personal homepage & email needs are served by a company that is unfortunately shutting down. So I'm going to have to move my stuff elsewhere.

Then I thought, Hey, why not just set up my own server and run it from that?

So I'm giving some serious thought to having my own email & web server. However, I've only used Linux as a desktop, so the world of servers is one that's not too familiar with me.

A bit of background:

I have a website that gets a maximum of 8000 hits a month, with no more than 500 megs of data downloaded per month.
I have three (main) mail accounts which don't get a huge amount of mail (maybe a dozen a day), but do get spammed quite a lot. I need to be able to access my mail via a web browser interface, and it really, REALLY needs a spam filter running on it.
I connect to the web via an ethernet router with a 512 broadband connection.

So, given that, what I need to know is:

How much RAM & CPU power should I be expecting to need?

Is the standard iptables firewall good enough for security, or will I need to look for something more heavy-duty?

Would it be worth also setting it up as a DNS server while I'm at it?

How hard is it to set up such a server?

Any advice gratefully received, including links to any places that'll help me figure out the answers myself.
 
Old 12-10-2004, 05:56 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Ok, you didn't specify which distro you had in mind (you like slack and LFS). My vote is slack with a little optimizing. I'm assuming your ISP isn't going to care that you are running this and block ports. I also assume that your bandwidth is sufficent to support your own traffic. That said:

1. How much RAM & CPU power should I be expecting to need?
I suspect a simple 1Ghz with 512MB should do the trick. Even if you are doing server-side scripting. Also, Preferebly SCSI drives or highspeed SATA.

2. Is the standard iptables firewall good enough for security, or will I need to look for something more heavy-duty?
Um, the firewall is yours to configure. I've used slack and suse and you will be writing your own firewall. Maybe they come with premade firewalls, but I've not seen them.

3. Would it be worth also setting it up as a DNS server while I'm at it?
Might was well, it can't hurt. YES

4. How hard is it to set up such a server?
The apache, squid, and bind will all be covered in multilple threads here. As for email and spamassasin, I'm not sure since I've never set one of those up.
 
Old 12-10-2004, 07:50 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Is the standard iptables firewall good enough for security, or will I need to look for something more heavy-duty?
Iptables is certainly good enough, provided that the rules are written correctly. If you're not familiar with writing iptables rules, I would strongly suggest using a front-end like firestarter. However, iptables is really nowhere near enough for security. First, at a bare minimum I would want an IDS like Snort and a file integrity checker like Tripwire or Aide. If you are counting on this site you need to be able to detect if/when an intrusion has happened and what files were affected. You may also want to investigate some of the hardening script programs like Bastile. Spend some quality time in the Security forum here because unSpawn has a sticky thread that is jam-packed with security tips and sites.
 
Old 12-10-2004, 10:15 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Re: My first server

Quote:
Originally posted by oneandoneis2
So, given that, what I need to know is:

How much RAM & CPU power should I be expecting to need?
Far less than you would think regarding CPU, about what you would think regarding RAM. As mentioned, I'd agree 512MB should suffice. However, 1Ghz is a ton. Although, with prices and speed the way they are these days, you probably can't buy a configuration less than this. If you can, get a used P3 setup, or an AMD equivilent. You can probably grab one for less than the cost of a new 1Ghz CPU, maybe...

Quote:
Is the standard iptables firewall good enough for security, or will I need to look for something more heavy-duty?


The chime in on unSpawn's security thread has already been made. IDS, intrustion detection systems, is certainly something to look at. When it comes to security, there is no such thing as overkill. However, don't let the security overwhelm you either, you will learn as you go.

Quote:
Would it be worth also setting it up as a DNS server while I'm at it?
I wouldn't personally. It's a big jump, and entirely new field. It's like going to college to become a Pediatrician and saying "While I'm at it, why don't I become a Surgeon as well?". Sure they are both Medical Doctor degrees, but completely different fields. Just as DNS is. You will be setting up and learning about new servers (Apache, Postfix, etc along with all the security precautions) why overwhelm yourself with learning DNS at the same time? Use a free service, such as www.zoneedit.com until you get your feet on the ground with the rest of your setup, then turn to looking at doing your own DNS. However, I've personally found that more ISP's seem to block port 53 more than any other service port, save 1, and that is email...

Quote:
How hard is it to set up such a server?
A very subjectional question. Apache was very easy for me at first. Postfix, not so much, but after using it, and reading a bunch of stuff on it, it became very simple and easy to use. I use Squirrelmail with Courier-imap and Postfix for my setup. More on that in a second. But basically, it's really easy, once you get the hang of it. As long as you've got a grasp on networking, the rest will hopefully fall into place as you go. Remember, security is your biggest feat. It's important to keep that box locked down. If it's not, you could easily be broadcasting the next DDoS attack to LQ....

Quote:
Any advice gratefully received, including links to any places that'll help me figure out the answers myself.
My personal favorites are as follows:
http/https = Apache/Apache+SSL
Webmail = Squirrelmail
Imap for the webmail = courier-imap
Email server = Postfix (with Maildir )
Spam prevention = SpamAssassin
Virii protection = clamav

It has been said, many times, postfix is more secure than sendmail. However, with an open box, it doesn't matter what is more secure, so work on that first. A lot of your security options are spelled out in unSpawn's thread, so be sure to take a look.

Have fun!

Cool
 
Old 12-13-2004, 09:33 PM   #5
RHrulz
Member
 
Registered: Jul 2002
Location: Troy, KS
Distribution: Mandrake 10.1
Posts: 57

Rep: Reputation: 15
For a mail server I use QMail. I used qmailrocks and it walks you through server setup, imap, squirrelmail web interface, spamassasin, and clamav setup. I had it up in 2 days running on Mandrake 10.1.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Relay Server<-> GatewayServer<->filtering server: PostFix, amavis,spamassassin, cyrus admore Linux - General 0 11-02-2004 08:46 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 05:17 PM
Linux app-server to server StarOffice to Windows Clients: Need advice biosx Linux - Networking 3 08-14-2002 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:22 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