View Single Post
Tuổi 27-09-2015, 09:57 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
Iptables – Làm thế nào để giới hạn concurrent connection trên cùng một IP address
Iptables – Làm thế nào để giới hạn concurrent connection trên cùng một IP address.




Đây là 2 rule IP table để giới hạn concurrent connection trên cùng 1 IP address.


Trích dẫn:


iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –set


iptables -I INPUT -p tcp –dport 80 -i eth0 -m state –state NEW -m recent –update –seconds 60 –hitcount 10 -j DROP




Rule 1: Rule này sẽ xem những connection nào đến cổng eth0 port 80
Rule 2: Nếu Connection nào gửi hơn 10 gói tin trong vòng 60s thì sẽ drop connection đó.

Suu Tap


  Trả lời ngay kèm theo trích dẫn này