Portál AbcLinuxu, 29. prosince 2025 09:56
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 -A INPUT -p tcp --syn --dport 23 -m connlimit
--connlimit-above 2 -j REJECT
# you can also match the other way around:
iptables -A INPUT -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 net‐
work (24 bit netmask)
iptables -p tcp --syn --dport 80 -m connlimit --connlimit-above
16 --connlimit-mask 24 -j REJECT
takze
iptables -p tcp --syn --dport 80 -m connlimit --connlimit-above
16 --connlimit-mask 24 -j REJECT
povoli maximalne 16 pripojeni z jedny ip? chapu to spravne? nebo?
dekuji
iptables -I INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 16 --connlimit-mask 24 -j REJECTaby to bolo z jedne IP tak treba dat --connlimit-mask 32
pacman -S connlimit
error: 'connlimit': not found in sync db
jenze ja ho tam nemam jak nainstalovat :| (Linux Arch)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.