Why are we apache users still victims of DDOS attacks and having root server rental support telling us "It is you responsibility to secure your server". When did you hear about the first dos attack? Back in the 90's? And it is still not solved? This piss me off beyond belief.
And now, after trying to fix this on my Suse 10.1 distro I am stuck at
never ending dependency problems.
My suse version: Linux version 2.6.16.21-0.25-smp (geeko@buildhost) (gcc version 4.1.0 (SUSE Linux))
I run a small gaming community and I just don't have time on my own to fix this. I know for a fact that one particular person used a botnet to attack my forum just to prove "he could".
On July 30 '08 all of my webbys was unreachable because of syn flood attacks
Quote:
Logs from /var/log/messages
Jul 30 15:39:37 u042 kernel: possible SYN flooding on port 80. Sending cookies.
Jul 30 15:40:37 u042 kernel: possible SYN flooding on port 80. Sending cookies.
Jul 30 15:41:38 u042 kernel: possible SYN flooding on port 80. Sending cookies.
Jul 30 15:56:09 u042 kernel: possible SYN flooding on port 80. Sending cookies.
Jul 30 15:58:18 u042 kernel: possible SYN flooding on port 80. Sending cookies.
Jul 30 15:59:43 u042 kernel: possible SYN flooding on port 80. Sending cookies.
Jul 30 16:00:43 u042 kernel: possible SYN flooding on port 80. Sending cookies.
|
And the actual targetted url:
Quote:
Logs from /var/log/apache2/confixx/stdlog_access
forum.euroskillz.eu :: 121.219.64.44 - - [30/Jul/2008:20:30:00 +0200] "GET / HTTP/1.1" 200 1946 "-" "Java/1.6.0_05"
forum.euroskillz.eu :: 121.219.64.44 - - [30/Jul/2008:20:30:00 +0200] "GET / HTTP/1.1" 200 1946 "-" "Java/1.6.0_05"
forum.euroskillz.eu :: 70.178.62.191 - - [30/Jul/2008:20:30:00 +0200] "GET / HTTP/1.1" 200 1946 "-" "Java/1.6.0_07"
forum.euroskillz.eu :: 121.219.64.44 - - [30/Jul/2008:20:30:00 +0200] "GET / HTTP/1.1" 200 1946 "-" "Java/1.6.0_05"
forum.euroskillz.eu :: 70.49.195.145 - - [30/Jul/2008:20:29:28 +0200] "GET / HTTP/1.1" 200 65989 "-" "Java/1.6.0_07"
forum.euroskillz.eu :: 87.208.182.92 - - [30/Jul/2008:20:30:01 +0200] "GET / HTTP/1.1" 200 1946 "-" "Java/1.6.0_06"
|
I contacted support who adviced me to:
Quote:
You may activate reverse-path-checking, what will cause the ip-adresses connected to you being checked.
# echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter
# echo 1 > /proc/sys/net/ipv4/conf/eth0/rp_filter
You may also want to use a filter limiting the number of connections per second one client can open.
# iptables -N synflood
# iptables -A synflood -m limit --limit 10/second --limit-burst 24 -j RETURN
# iptables -A synflood -j REJECT
# iptables -A INPUT -p tcp --syn -j synflood
|
This seemed to stop the syn flooding at least but the ddos attack on the forum kept going. I temp solved it by not using port 80. Shortly before this I moved the webbys to port 80 and was quite happy about that

.
Next step was to find evasive actions against ddos and found mod_evasive. Sounded good and i downloaded
mod_evasive_1.10.1.tar.gz.
Next issue. apache2-devel is missing in my distro. Looked in Yast and it was nowhere to find so I installed
apache2-devel-2.2.2-1
And now when i try and compile the module I get
Quote:
apxs2 -cia mod_evasive20.c
apxs:Error: /usr/bin/apr-1-config not found!.
|
Right! It is in apr-devel, also missing.
And this needs
which needs
rtld(GNU_HASH).
And according to Lenard in this forum
Conclusion
DEAD END
To me this feels like a dead end if I'm not switching to another distro which have whats needed to run mod_evasive. And after reading peoples reviews of mod_evasive there is no garantee it will work.
I have quite a lot of data, and I'm so to speak cornered. I can chose to make a fresh install of another distro, but no clue where to put all the stuff meanwhile as it will whipe the server clean.
If you have any advice for me I would appreciate it a lot. I don't know, I'm a newbie and may have missed something. But to me it seems extremelly weird that ddos is still possible on Apache servers still. And the counter measures would be like switching your entire car just because you need a little engine part for safe driving

.
Thx for listening to my confession, now it feels much better

.