I
I
im_dimas2016-01-11 18:50:07
iptables
im_dimas, 2016-01-11 18:50:07

How to set up iptables/firewall?

How to configure iptables / firewall so that the page can be loaded for example once every 10 seconds, you get something like anti-flood / anti-DoS'a
The fact is that when the page is loaded, it receives data from MySQL. Therefore, I don’t want everyone to flood with the F5 key

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Parshin, 2016-01-11
@dimas199862

fail2ban will not help here,
apparently you are looking for something else,
1) configure Apache or nging, pay special attention to the KeepAlive directives
2) there are other modules for web servers modsecurity this is WAF (application firewall)
there is a module similar to nginx, habrahabr.ru/ post/152251 , but there is also habrahabr.ru/post/145241
3) Put slick gadgets so that you don’t pull SQL every time, cache for SQL and php - there are a lot of them, I settled on native Opcache and memcached (the first for Bitrix and the 2nd for wp)
But regarding the Firewall, I advise you to look towards CSF + LFD (Login Failure Daemon), contrary to popular belief, it can work with any ports.
It has recently become very popular and has been tested in DDOS, holding back up to 40Gbps as much as possible above, it is better to take hardware Arbor (like a swag / toaster, if I'm not mistaken).
CSF - easy to set up and install, there is a web muzzle for LFD, including native + many manuals.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question