BleepingComputer.com: Setting up my own webserver

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Setting up my own webserver

#1 User is offline   The Pugilist 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 194
  • Joined: 20-September 10
  • Gender:Male

Posted 11 May 2011 - 07:54 AM

Hello all,

Recently I have embarked on the endeavor to run a small web server out of my house. After building the server and getting things all setup I have been plagued with hack attempts and DDos attacks to my IP (according to my router). I assume this problem to be largely related to the fact that I now have open ports on my router but as one could imagine, I would like them to stop. I am not attached to any particular flavor of Linux but that is what I would like to run in one form or another. What I am looking for is good reading material or advice on software and techniques I can use to secure my server.

Your ideas are appreciated :)
//Dave

#2 User is offline   raw 

  • Bleeping Hacker
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,299
  • Joined: 14-April 04
  • Gender:Male
  • Location:Texas

Posted 12 May 2011 - 11:33 PM

http://www.amazon.com/exec/obidos/ASIN/067232380X/dnssesecurthe-20
http://www.amazon.com/HACKING-EXPOSED-WEB-APPLICATIONS-3rd/dp/0071740643/ref=sr_1_3?s=books&ie=UTF8&qid=1305259661&sr=1-3

Quote

I have been plagued with hack attempts and DDos attacks

Welcome to the wonderful world of system administration.
Your first decision is what you will be serving:
Web pages, FTP, email, irc, gaming, teamspeak... huge list.
If you are just running a web site with static html you can turn
off all unneeded services and block those ports at the router.
One of the top server OS's is EnGarde - http://www.engardelinux.org/
OpenBSD is also very secure - http://www.openbsd.org/
My first server OS was SME (e-smith) http://wiki.contribs.org/SME_Server:About
And i've also used tiny sofa (no longer maintained,but good secure OS) http://www.tinysofa.org/
Hope that helps.
Posted Image
Posted ImageHOSTFix only works on XP,no longer maintained

#3 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,425
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 13 May 2011 - 01:50 AM

It's unlikely that you're really the target of a DDoS attack unless you've gone and pissed someone off. Most any server administrator can show you their server logs with thousands of attempted break-ins. These are automated and are not much of a threat to a properly configured server.

Like raw suggested, find out what you need to have running and turn everything else off. Every added bit of software which faces the internet is another potential vulnerability.

Another strategy is to move applications from their default ports. This doesn't ipso facto make you more secure but it certainly weeds out 99% of the automated attacks.

If you're also running an SSH server for remote administration, disable root SSH logins and require certificate authentication.

Never, ever, ever run an internet-facing server daemon as root. Each daemon should have its own account and have only as much access to the system as is necessary.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#4 User is offline   The Pugilist 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 194
  • Joined: 20-September 10
  • Gender:Male

Posted 13 May 2011 - 07:42 AM

Yeah my webserver is not for much, its primary purpose is a media server for its local network and its secondary purpose is to serve basic webpages / be a sandbox for me to mess around with. Ive since reformatted my machine with ubuntu 11.04 server, what do you guys think of this distro over some of the others mentioned? I would kind of like to stick with a debian base but I'm not 100% set on that. Also what do you think about things like webmin? Is running such an administration program just asking for trouble?
//Dave

#5 User is offline   cryptodan 

  • Bleepin Madman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 18,386
  • Joined: 08-September 08
  • Gender:Male
  • Location:Catonsville, Md

Posted 08 June 2011 - 09:57 AM

It may seem that you are a target of a DOS but adversaries are out there scanning every IP address owned by the US to gain access to our private and intelligence information. WHen you open port 80 you are probably catching these scan attempts. You will know when you are the target of a DOS.

My work schedule is as follows: Mon and Tues 1800 to 0600, Friday - Sunday 1800EST to 0600, and Wednesday to Thursday 1800est to 0600. So if I do not respond right away I am at work.
----------------
If I am helping you, then Please Send Me a Message!with your thread link in it. This is only if I haven't replied back to you within 24 to 48 hours.
----------------
My Main Site || My Backup Site || steam://friends/add/cryptodan Add me to your Steam Friends.

#6 User is offline   The Pugilist 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Malware Study Hall Junior
  • Posts: 194
  • Joined: 20-September 10
  • Gender:Male

Posted 08 June 2011 - 10:04 AM

Yeah, I figured as much. I only thought it was DDoS due to some of the router logs I had and the fact that my internet would be intermittent and/or slow at certain times. In any case I have since employed certain measure to help better protect myself ;)
//Dave

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users