]> git.hungrycats.org Git - linux/commit
[NETFILTER]: Make conntrack timeouts become sysctls.
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 2 Oct 2003 16:21:29 +0000 (09:21 -0700)
committerPatrick McHardy <kaber@coreworks.de>
Thu, 2 Oct 2003 16:21:29 +0000 (09:21 -0700)
commit0379e92f17e62738fb7fc3c94830d18b792e92b2
treebff07b265b19c21db82cb67b0a7be50c61b6c848
parent7b32a04cf72e1d6b516ddad7307c061fd89c0c08
[NETFILTER]: Make conntrack timeouts become sysctls.

This patch introduces the /proc/sys/net/ipv4/netfilter/ directory for=20
the tuneable parameters of the conntrack engine of netfilter.

The parameters which can currently be fine-tuned (if required at all)=20
are the ip_conntrack_max, and the conntrack timeout parameters in seconds.

The default timeout value for the TCP CLOSE_WAIT state is raised to 3
days, which should cause less problems with long-lived half-closed TCP
sessions.

For the sake of compatibility with 2.4,=20
/proc/sys/net/ipv4/netfilter/ip_conntrack_max is duplicated as=20
/proc/sys/net/ipv4/ip_conntrack_max as well.
net/ipv4/netfilter/ip_conntrack_core.c
net/ipv4/netfilter/ip_conntrack_proto_generic.c
net/ipv4/netfilter/ip_conntrack_proto_icmp.c
net/ipv4/netfilter/ip_conntrack_proto_tcp.c
net/ipv4/netfilter/ip_conntrack_proto_udp.c
net/ipv4/netfilter/ip_conntrack_standalone.c