|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Senior Member
Iscritto dal: May 2001
Città: ROMA
Messaggi: 2967
|
info iptables
ciao,
è possibile settare iptables in modo che limiti le connessioni in uscita verso un ip/porta ad un numero customizzabile? Vorrei per esempio limitare le connessioni verso 1.1.1.1 porta 80 a 10, superate queste fa una REJCET si può fare? Grazie ![]()
__________________
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Oct 2003
Città: La Spezia
Messaggi: 962
|
ciao
man iptables cmq: connlimit Allows you to restrict the number of parallel TCP connections to a server per client IP address (or address block). [!] --connlimit-above n match if the number of existing tcp connections is (not) above n --connlimit-mask bits group hosts using mask Examples: # allow 2 telnet connections per client host iptables -p tcp --syn --dport 23 -m connlimit --connlimit-above 2 -j REJECT # you can also match the other way around: iptables -p tcp --syn --dport 23 -m connlimit ! --connlimit-above 2 -j ACCEPT # limit the nr of parallel http requests to 16 per class C sized network (24 bit netmask) iptables -p tcp --syn --dport 80 -m connlimit --connlimit-above 16 --connlimit-mask 24 -j REJECT
__________________
![]() ![]() Gigabyte ga-p55-ud6 | Intel i7 860 | 2x2gb Corsair xms3 | Adaptec 2410sa | raid1 barracuda 500gb 7200.12 | Intel x25-m 80gb G2 | ATI radeon 4890 | tutto in downclock (non ho parenti all'enel) |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 23:09.