Go Back   Novahq.net Forum > Computers > Hardware and Software
FAQ Community Calendar Today's Posts Search

Hardware and Software Discuss hardware, software and security related stuff

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2006, 07:26 AM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Apache being attack - ASAP

I run my buisiness website from my home, and yesterday i got over 10,000 hits on it - all illegitamate traffic.

As soon as i start apache up on the server my bandwidth starts getting eaten up.

How in the heck do I fix this? Is this something in the ipchain's i can specifiy so people can't use GET things like that to bog down my server?

Screens:




Please help asap...

Thanks in advance to anyone who helps, this place is always great - and thank you panther since im sure your probably the first one to respond
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #2  
Old 01-29-2006, 11:28 AM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Do you have any physical security devices? i.e. Firewalls ?

Edit: Which version of Apache do you have? And which patches are installed on it?

Edit # 2: Oh and which OS you running Apache HTTP on?
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1

Last edited by DevilDog#1; 01-29-2006 at 11:40 AM.
Reply With Quote
  #3  
Old 01-29-2006, 02:06 PM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Mandrake 9.2
The apache that comes with it [2.x]
Firewalled router only has port 80 open tot hat...

Right now I've moved it over to a different box, CentOS 4, SELinux, Firewalled hardware + software, apache hardened, and looks like its stopped.
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #4  
Old 01-29-2006, 02:15 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Check this out. Might have issues related to your prob.
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #5  
Old 01-29-2006, 02:18 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

Although it's annoying there is not much you can do about it as they do look like legit requests, even though they are not.

I can only think of two things, block each and every IP that it comes from (will take awhile) or you can look into an apache mod called MOD Security. I've never used it but there are alot of things you can do with it to protect yourself.

To help build of list of IP's to ban easier there is a script called LogWatch (I think that's what it is) and it will tally each entry in the log and give you the IP addy plus how many times it made a connection. Make sure you look up each IP before you ban it though (http://www.dnsstuff.com) to make sure your not banning anyone trying to do business.

IPChains (IP Tables?) may have something in it, but I am not very fluent with either since I always used a seperate program for simplicity.
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #6  
Old 01-29-2006, 02:20 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Oh and when you findout what fixed it eventually let us know too please
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #7  
Old 01-29-2006, 03:38 PM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
I will, hardening the new server fixed the major bandwidth issues i was having but im sitll getting those ungodly amounts of requests (which in turn is creating massive log files x.x

-- looking into what P said and going to block them
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #8  
Old 01-29-2006, 03:49 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Maybe one or more sites you hosting have streaming media on it?
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #9  
Old 01-29-2006, 05:33 PM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Im only hosting my one buisiness site - seems like im getting hit by proxies a fck load though

heres some of hte list so far - i need to see if this gets rid of them

Code:
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A INPUT -s 218.89.53.168 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 12.208.236.118 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 129.240.91.6 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 194.29.137.71 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 195.182.138.206 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 198.104.137.12 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 198.104.137.13 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 198.104.137.14 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 198.104.137.15 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 198.65.144.236 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 200.125.51.54 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 200.125.51.64 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 201.132.37.108 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 201.217.190.80 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 202.201.11.200 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 202.229.212.142 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 136.188.0.29 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 203.136.188.29 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 66.246.252.0/255.255.255.0 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 222.122.0.0/255.255.0.0 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 222.141.0.0/255.255.0.0 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 222.184.0.0/255.255.0.0 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 222.188.0.0/255.255.0.0 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 222.89.0.0/255.255.0.0 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 64.200.20.114 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 66.230.178.26 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 207.46.250.119 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 207.46.130.108 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 213.83.55.1 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 66.28.56.152 -p tcp -m tcp --dport 80 -j DROP
-A INPUT -s 82.92.34.5 -p tcp -m tcp --dport 80 -j DROP
-A FORWARD -j RH-Firewall-1-INPUT
-A OUTPUT -s 130.117.156.231 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 130.117.156.232 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 130.117.156.233 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 130.117.156.234 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 64.200.20.114 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 66.230.178.26 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 213.83.55.1 -p tcp -m tcp --dport 80 -j DROP
-A OUTPUT -s 82.92.34.5 -p tcp -m tcp --dport 80 -j DROP
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #10  
Old 01-29-2006, 05:37 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

Maybe business is picking up?
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #11  
Old 01-29-2006, 05:58 PM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Well im using iptraf to monitor kbytes out - and it looks like visits/hour is ogne down as well as bandwidth usage, im just watching TCP/IP traffic and blocking any asian IPs i see [221 222 223 etc >.<] or any unusual activity i see going on.
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #12  
Old 01-29-2006, 06:12 PM
DevilDog#1 is offline DevilDog#1

Join Date: Jul 2002
Posts: 7,040

http://www.apnic.net/index.html your friends and thier pictures. (http://www.apnic.net/info/staff/index.html)
__________________








Quote:
If I don't do that doesn't mean I can't - DD#1
Reply With Quote
  #13  
Old 01-29-2006, 06:23 PM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
x.x;
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #14  
Old 01-29-2006, 06:29 PM
Steve is offline Steve
Steve's Avatar
Administrator

Join Date: Sep 2001
Location: 2077
Posts: 21,552

Send a message via ICQ to Steve
Quote:
Originally posted by DevilDog#1
http://www.apnic.net/index.html your friends and thier pictures. (http://www.apnic.net/info/staff/index.html)

kinda has a the feel of a anonymous proxy providing site /address / server.
Reply With Quote
  #15  
Old 01-30-2006, 11:16 AM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

Quote:
Originally posted by Scott
Although it's annoying there is not much you can do about it as they do look like legit requests, even though they are not.

I can only think of two things, block each and every IP that it comes from (will take awhile) or you can look into an apache mod called MOD Security. I've never used it but there are alot of things you can do with it to protect yourself.

To help build of list of IP's to ban easier there is a script called LogWatch (I think that's what it is) and it will tally each entry in the log and give you the IP addy plus how many times it made a connection. Make sure you look up each IP before you ban it though (http://www.dnsstuff.com) to make sure your not banning anyone trying to do business.

IPChains (IP Tables?) may have something in it, but I am not very fluent with either since I always used a seperate program for simplicity.
Something totaly different. I LOVE DNSSTUFF.COM!

EDIT: I know our squad site had a mysql security issue where it was bogged down by queries till it stoped allowing it, and its seems as if Kirk*MFA* made it stopp (might been his connection with FBI though lol) But we have never had any problem since. Might be a good thing to ask him if he knows a way to prevent this (the server has moved to the inner core of the network though so it might be that). But it might be a good thing to talk to him as he works for a big hosting company that is aimed for profecionall buissness hosting.

Can be reached here: http://dfmafia.net/forums
__________________
-1PARA-AlexKall

My photography website




Last edited by SilentTrigger; 01-30-2006 at 11:22 AM.
Reply With Quote
  #16  
Old 01-30-2006, 05:19 PM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Thanks Trig I think I will, but right now the problem seems to be fixed. I put up a Hardware firewall, ran ipchains firewall, enabled SE[security enhanced] Linux for CentOS4 and limited port activity to TCP 80, UDP/TCP 1716-1717 (AA server) and bandwidth out is about .4Kbytes a sec which is much better than the 60KB/sec i had on the toher server.

Only problem: Instead of them [the attackers] being able to use my server as a proxy [which they were doing] I'm know getting tons and tons of 404 errors from them

Little thing from Webalizer when run:
200 OK : 200 someodd hits
404 Error [lol] : 109,000+ hehehe

Whatever i did i think i fixed it except for that minor annoyance.
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #17  
Old 01-31-2006, 07:02 AM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

lmao thats a few 404 errors! Well seems like it was sorted out then! I'm pretty sure you will continue to get them till they realice its not there anymore Which might be a while knowing how stupid some people are hehe

Good thing that you got a Hardware firewall, software is good but a hardware firewall is so much more secure, doesnt matter if its a router or a dedicated firewall, will do a better job then a software either way!

Have a hardware myself, aswell as software (can call me a bit paranoied lol, but i like my server and other computers on the network to be secure! the server is rearly online though lol)
__________________
-1PARA-AlexKall

My photography website



Reply With Quote
  #18  
Old 01-31-2006, 08:14 AM
BeBop is offline BeBop
Registered User

Join Date: Jun 2002
Posts: 600

Send a message via ICQ to BeBop Send a message via AIM to BeBop Send a message via Yahoo to BeBop
Heh, its upto about 140k 404's now, but it looks like hits are dropping down - im getting about 100 [visits is what webalizer calls them] per hour, its still about 1100 visits per day thoughw hich is a little high.
__________________
- My: Drawings, rants, raves, my cat, designs, and everything else i want to put on the net.
Free Teamspeak servers: http://gamersnetwork.us/

Reply With Quote
  #19  
Old 01-31-2006, 08:24 AM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

yeah, well i hope the 404 spamming stops lol
__________________
-1PARA-AlexKall

My photography website



Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help. ASAP! the Medicâ„¢ Tech Support 7 08-11-2006 07:31 PM
Need some Graphics ASAP Wilson1990 Sigs and Graphics 5 01-20-2005 02:24 AM
need help - my friend asap MikeCoDBHD Tech Support 21 12-03-2004 02:05 PM
X300 if you here PM me asap Hellfighter General Chat 2 11-13-2004 06:08 PM


All times are GMT -5. The time now is 06:51 PM.




Powered by vBulletin®