Unable to access Plesk administrator due to DOS attack, block IP address through SSH?

I cannot access Plesk Amdin due to a DOS attack; Can I block the hostname or IP address through SSH? If so, how can I do this?

Thank!

+5
source share
3 answers

If you have iptables, you can block it with a simple rule:

iptables -I INPUT --source 1.2.3.4 -j DROP

This rule drops packets originating from IP 1.2.3.4.

+3
source

Probably the easiest way is to use SSH for your window using vim and add the following to the top of your .htaccess file in the root of your domain ( /var/www/vhosts/yourdomain.com/httpdocs/.htaccess):

deny from 12.345.67.89

, IP- , . , , , .

0

iptables -I INPUT -p tcp -s 1.2.3.4 -m - 0.5 -j DROP iptables -I INPUT n -p tcp -s 1.2.3.4 -m rpfilter --loose -j ACCEPT # n INPUT CHAIN ​​- INPUT

iptables -I INPUT -p tcp -m hashlimit --hashlimit-mode srcip -s 1.2.3.4 --hashlimit-srcmask --hashlimit - 9/second -j DROP

iptables -I INPUT -p tcp -s 1.2.3.4 -m limit --sport 80 -limit 100/second -j ACCEPT

.

,

ArrowInTree

0

All Articles