LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-23-2009, 09:43 PM   #1
Seregwethrin
Member
 
Registered: Feb 2008
Posts: 112

Rep: Reputation: 16
Server's getting attacked, httpd doesn't stop! (restarts itself after a few seconds)


Hello;

Something is attacking my server from httpd, 80 port. CPU was not overloaded while attacked, but always 500kbyte - 1mbyte per second data sent from server for hours.

When I entered "service httpd stop" console says stopped but after 20-30 seconds it starts again.

I'm using Centos 5, I also removed it from "setup - services" console menu.

But started again. I rebooted server, started again...

I don't know what's happening. I've renamed /usr/sbin/httpd to httpd2 and now it is not starting, finally.

But how can it be possible?

And I want to restart server but what should I do before restarting to prevent attack?

Last edited by Seregwethrin; 05-23-2009 at 09:51 PM.
 
Old 05-23-2009, 11:37 PM   #2
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Rep: Reputation: 34
Hi

If you have Cpanel installed on your server, it will restart httpd whenever it crashes.

I suspect other control panels will do too.

As for the attack, you can ask the host of your server to protect you against DDOS attacks, or you could do it yourself if you know how to configure iptables.

Best regards
 
Old 05-24-2009, 12:52 AM   #3
Seregwethrin
Member
 
Registered: Feb 2008
Posts: 112

Original Poster
Rep: Reputation: 16
I'm using directadmin maybe it can do it recursively.

I'll find logs search for ip addresses and block them but isn't there an easy way?
 
Old 05-24-2009, 12:57 AM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 341

Rep: Reputation: 34
Yeah, the easy way is asking your ISP to protect you against DDOS attacks.

The hard way is writing firewall rules that only allows a certain amount of packets per minute from the same IP address.
 
Old 05-24-2009, 07:20 AM   #5
Seregwethrin
Member
 
Registered: Feb 2008
Posts: 112

Original Poster
Rep: Reputation: 16
Can anyone tell me what's going on ?

I've found a stealth.tgz file which is owned by apache:apache at /tmp/, (yes dir name is ,)

Which has those files
Code:
.,/
.,/go
.,/genuser
.,/contrib/
.,/contrib/config/
.,/contrib/config/servers/
.,/contrib/config/servers/UNDERNET
.,/contrib/config/servers/DALNET
.,/contrib/config/servers/EFNET
.,/contrib/config/config
.,/contrib/config/Input.pl
.,/contrib/patches/
.,/contrib/patches/emech-2.8.2-sha.diff
.,/contrib/cvsupdate
.,/configure
.,/sshd
.,/stealth
.,/cyc.help
.,/pico.tgz
.,/.cyc.set.swp
.,/.acc
.,/pico
.,/Makefile
.,/cyc.set
.,/src/
.,/src/debug.o
.,/src/combot.c
.,/src/xmech.c
.,/src/h.h
.,/src/usage.h
.,/src/mcmd.h
.,/src/commands.c
.,/src/combot.o
.,/src/channel.c
.,/src/Makefile.in
.,/src/cfgfile.c
.,/src/cfgfile.o
.,/src/socket.c
.,/src/debug.c
.,/src/dcc.o
.,/src/dcc.c
.,/src/structs.h
.,/src/xmech.o
.,/src/defines.h
.,/src/config.h
.,/src/gencmd.c
.,/src/function.c
.,/src/userlist.o
.,/src/parse.o
.,/src/com-ons.o
.,/src/main.c
.,/src/main.o
.,/src/commands.o
.,/src/socket.o
.,/src/link.o
.,/src/global.h
.,/src/config.h.in
.,/src/Makefile
.,/src/vars.o
.,/src/com-ons.c
.,/src/link.c
.,/src/vars.c
.,/src/mcmd.th
.,/src/channel.o
.,/src/userlist.c
.,/src/parse.c
.,/src/gencmd
.,/src/function.o
.,/randfiles/
.,/randfiles/randsignoff.e
.,/randfiles/randnicks.e
.,/randfiles/randversions.e
.,/randfiles/randsay.e
.,/randfiles/randaway.e
.,/randfiles/randinsult.e
.,/randfiles/randpickup.e
.,/randfiles/randkicks.e
.,/cyc.levels
.,/cyc.pid
and also those files at /tmp/... (dir name is ...)

Code:
<MYSERVER'S_IP2>.user   <MYSERVER'S_IP2>.user   LinkEvents  berliner.seen  echo.save      m.help  m.ses     pico        run          update       xh
<MYSERVER'S_IP>.user2  <MYSERVER'S_IP>.user2  autorun     bor.seen       inst           m.lev   m.set     privs.seen  start        vhosts       xyz.seen
<MYSERVER'S_IP>.user3  <MYSERVER'S_IP2>.user3  bash        cron.d         kathrine.seen  m.pid   mech.dir  r           tweety.seen  wombat.seen
All of them owned by apache:apache

Last edited by Seregwethrin; 05-24-2009 at 07:26 AM.
 
  


Reply

Tags
attack, httpd


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot stop httpd , named, proftpd etc.. !! ximpda Linux - Server 4 04-12-2009 10:44 AM
odd httpd behavior. (only able to load pages for abour 30 seconds.) nkoplm Linux - Server 1 05-19-2007 04:01 PM
httpd restart FAILED error: Could not determine the server's fqdn mcbaind Linux - Networking 8 10-06-2006 08:21 AM
Apache: httpd: Could not determine the server's fully qualified domain name.. shirtboy Linux - Software 1 11-20-2003 03:47 AM
Powercut made httpd stop working. Gramphos Linux - Software 3 11-01-2003 08:58 AM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration