I have a slow internet bandwith (1024 KBITS/S) to share between 30 users. To control the traffic, I have setup a basic proxy server with iptables. Logs and Packets captured with tcpdump show that there are a lot of connections per IP. So I want to limit http connections by adding this line:
% iptables -A INPUT -p tcp --syn --dport 80 -d !$SQUID_SERVER \
-m connlimit --connlimit-above 5 -j REJECT --reject-with tcp-reset
then I test it with :
% netstat -nt | cut -c 40- | cut -d: -f1 | sort | uniq -c | sort -n
and this seems not working :
3 10.2.13.32
3 10.2.13.91
4 10.2.13.37
5 31.13.72.55
**6** 90.84.59.72
**8** 10.2.13.249
1 108.160.161.158
1 199.7.52.72
1 208.53.158.108
**14** 10.2.13.80
**19** 10.2.13.79
2 178.255.83.1