A
A
Adiost2011-06-01 07:39:45
Apache HTTP Server
Adiost, 2011-06-01 07:39:45

Setting up iptables on ubuntu server

There is a server with a raised Ubuntu Server 10.10, an SSH server and Apache are raised. The server is regularly subjected to a DDoS attack, and falls from the simplest LOIC. Could you tell me how to configure iptables so that this does not happen again? Please do not suggest nginx, in this case the task is specific and only Apache is suitable.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Vavilov, 2011-06-01
@Synergyx

So put nginx as a proxy in front of Apache, since you need Apache. It will become much easier

V
Vlad Zhivotnev, 2011-06-01
@inkvizitor68sl

Fail2ban configure it to ban those who pull Apache too often.
Well, a little more difficult to set up, but more effective as a banomet - denyhosts.

I
itrabotnik, 2011-06-01
@itrabotnik

I recently encountered a similar situation on a local project.
used deflate from medialayer dot com + JS redirect to fake domains that were CNAME to the second level domain.
The second moment saved us from a heavy load on apache, as a result of which the machine used 100% of the resources and made it possible for the script to work.
Unfortunately, the programmers who wrote the project did not take care of caching, we periodically suffer from DDoS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question