LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-08-2006, 09:26 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
hosting web and e-mail security risks


What are some of the inherent risk of hosting your own website and e-mail system from home as oppossed to another company hosting it?

Looking at it from the firewall perspective no matter what you will still have to allow traffic between ports 80,443,25 and others so what is the difference?

Last edited by metallica1973; 04-08-2006 at 11:55 AM.
 
Old 04-08-2006, 10:52 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
You have additional services running on your machine that are accesible from outside systems which could be liable to security issues, someone could try using your server as mail relay for spam, DDoS attacks against your webserver would stop your net connection, etc. :-)

There's lots of extra problems unless you secure your system. Your firewall idea doesn't quite hold true though - you would close port 80 on your firewall at home as nothing's running on it - you don't need it open to browse the net. Same with 25 + 443. Opening them opens a way into your system.
 
Old 04-08-2006, 12:01 PM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Quote:
There's lots of extra problems unless you secure your system. Your firewall idea doesn't quite hold true though - you would close port 80 on your firewall at home as nothing's running on it - you don't need it open to browse the net. Same with 25 + 443. Opening them opens a way into your system.
I guess what I meant to say was that at home you of course would filter those ports but I do see what you are saying that with additional services there would be more of a security risk.
 
Old 04-09-2006, 05:44 AM   #4
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Okay, lets assume you have your machine with Apache, Postfix, et al running. A security vulnerability is announced detailing a buffer overflow within Apache. You've got Apache installed so you need to patch it, otherwise there's a security weakness in your system. Take Apache out which would be the case on a fairly standard Linux system, the security issue isn't there :-)

Always goes that the more you have installed, the more security holes you open up, especially when those services are networked ones and accesible over the net. Folks will watch for security problems and try to exploit them, so you'd need to ensure you kept bang up to date with your patching.

Hope that's a bit clearer! So long as you keep on top of things, read well in advance to lock things down, you shouldn't have too many problems, will give you full control over the whole thing, and be a great learning experience!
 
Old 04-09-2006, 10:35 AM   #5
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
If your email is hosted by a company there is a very big chance they have fallback servers. If the primary mailserver is unreachable the mail will be temporary delivered to one of the fallback servers until the primary is up again.

If you have your emailserver at home and your connection is down or you have troubles with the server all mail sent will be lost.
 
Old 04-09-2006, 10:47 AM   #6
king111
Member
 
Registered: Jul 2005
Distribution: Debian, Ubuntu
Posts: 85

Rep: Reputation: 15
Your security depends on what it is that you plan to host. Server daemons can have flaws, server-side scripts can have flaws, etc. Set up a good IDS, iptables, harden your selected distro/web pages/scripts, and let it go. And you don't have to use those ports, but that's a moot point. If you will run SSH, which you probably will, I would suggest changing the default port from 22 to avoid the massive amounts of traffic from port scanning kiddies.

Overall, the main problem that individuals face when hosting web services is bandwidth, maintenance, etc. Security is a concern, but most of us don't have a fat pipe into our closets or whatever to run a server of that nature.
 
Old 04-09-2006, 11:38 AM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
killer points many thanks
 
Old 04-10-2006, 04:18 AM   #8
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Quote:
Originally Posted by pk21
If you have your emailserver at home and your connection is down or you have troubles with the server all mail sent will be lost.
Unless the whole server goes down, it shouldn't be a problem even for home users. You can also usually restore data from a drive if the system fails, or simply take a backup to CD-R every few days (although usually mail wouldn't stay on the server, rather with the mail client on the desktop).

A lack of Internet connection would cause the server to simply queue all outbound messages. Once the connection is back, they're all sent. Inbound messages will be returned to sending mail server where it will usually be re-queued and re-sent over a period of time depending on their set up until either sucessfully delivered once conection restored, or returned to sender (usually after 4 days or so).

I've setup mail servers for people at home where the connection has dropped for a couple of days and all mail gets routed through correctly once the connection returns :-)
 
Old 04-10-2006, 09:39 AM   #9
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
Thanks for the insight!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what are the security risks using 'passwd' in shell scripts? MisterESauce Linux - Security 5 04-10-2005 01:48 PM
Security risks of php based mysql queries TigerOC Linux - Security 5 04-10-2005 07:30 AM
samba/apache machine security risks fatman Linux - Networking 1 01-16-2004 09:31 PM
Enough bandwidth for web/mail hosting? scarr3d Linux - Networking 3 12-12-2003 04:08 PM
Securing Mail and Web hosting server Tigger Linux - Security 1 05-31-2003 10:27 AM

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

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