16.12.2014, 22:08
The following is a command to only accept secures ports
It allows access to secure ports , the rest will be dropped
Rate Limiting Connections:
you can have control of ip's connecting to your server
Example:
This allows up to 3 connections from the same IP in a 60 second period. Any more than that are blocked (and not logged).
This work for me !
Код:
iptables -restore <iptables
Rate Limiting Connections:
you can have control of ip's connecting to your server
Example:
Код:
iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 -j DROP
This work for me !