T
t.friedrich
Guest
Hi there.
Through Plesk the configuration of the firewall is very limited. It is not possible to add custom settings like one I really could use.
The following two rules will limit incoming connections to port 22 to no more than 3 attemps in a minute - any more than that will be dropped:
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
This limits hackers trying to get into the server by brute force attacks.
Where do I place this so that it doesn't get overwritten when I use the plesk interface?
Regards
Thomas
Through Plesk the configuration of the firewall is very limited. It is not possible to add custom settings like one I really could use.
The following two rules will limit incoming connections to port 22 to no more than 3 attemps in a minute - any more than that will be dropped:
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
This limits hackers trying to get into the server by brute force attacks.
Where do I place this so that it doesn't get overwritten when I use the plesk interface?
Regards
Thomas