Ip tables firewall config - Can help for full server on linux.
#1

The following is a command to only accept secures ports

Код:
iptables -restore <iptables
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:

Код:
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 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 !
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)