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
#2

Any way you can give me a code that works for Windows?
Reply
#3

In Windows server you just have to go in the Control Panel and manage firewalll settings it's easier then Linux
Reply
#4

Quote:
Originally Posted by iKyle
Посмотреть сообщение
Any way you can give me a code that works for Windows?
Sorry buddy, I know a sh** about window , maybe you can get more info there : http://serverfault.com/questions/207...nt-of-iptables , good luck!
Reply
#5

okay..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)