I have a problem with limiting the number of concurrent network connections. I just need to set them so that my machine will never produce more than 200 concurrent network connections, but I am unable to do so.
Here is my /etc/sysctl.conf:
net.ipv4.netfilter.ip_conntrack_max=100
fs.inotify.max_user_watches=100000
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_orphan_retries = 1
net.ipv4.tcp_fin_timeout = 25
net.ipv4.tcp_max_orphans = 150
I understand that this setting means that number of connections should not exceed 150 connections, but when, for example, I open many pages in firefox at same time, I can see that this setting is not respected - netstat | grep tcp | wc -l
shows many more connections.
Here are some info about my system:
[firzen:~] lsb_release -sd
Debian GNU/Linux 7.7 (n/a)
[firzen:~] uname -r
3.2.0-2-686-pae
[firzen:~] arch
i686
How can I fix that? It is really a critical setting for me.
Thanks in advance!
sysctl variable
, eg.sysctl net.ipv4.netfilter.ip_conntrack_max
?