new connlimit for 2.6.14
PATCH 2/3 new connlimit for 2.6.14
[PoM PATCH 2/3] new connlimit for 2.6.14
patched patch-o-matic-ng-20051109
This makes all the changes to ipt_connlimit.{c,h} and basically copies the other PoM helper files to this directory. See first message for new features.
Signed-off-by Damon Gray <[email protected]>
patchlets/connlimit/linux-2.6.14/include/linux/netfilter_ipv4/ipt_connlimit.h +17 -0
@@ -0,0 +1,17 @@ +#ifndef _IPT_CONNLIMIT_H +#define _IPT_CONNLIMIT_H + +struct ipt_connlimit_data ; + +struct ipt_connlimit_info { +int limit; +int inverse; +u_int32_t mask; +unsigned int hash_size;/* will be converted to next highest power of 2, 0 defaults to 256 */ +struct ipt_connlimit_data *data; +unsigned int timeout;/* In seconds */ +unsigned long connmark;/* CONNMARK when timed out, 0=timeout */ +unsigned long connmark_mask; +unsigned int shared_id;/* 0 means unused */ +}; +#endif /* _IPT_CONNLIMIT_H */
patchlets/connlimit/linux-2.6.14/net/ipv4/netfilter/Kconfig.ladd +9 -0
@@ -0,0 +1,9 @@ +config IP_NF_MATCH_CONNLIMIT + tristate 'Connections/IP limit match support' + depends on IP_NF_IPTABLES + help + This match allows you to restrict the number of parallel TCP + connections to a server per client IP address (or address block). + + If you want to compile it as a module, say M here and read + Documentation/modules.txt. If unsure, say `N'.
patchlets/connlimit/linux-2.6.14/net/ipv4/netfilter/Makefile.ladd +2 -0
@@ -0,0 +1,2 @@ +obj-$(CONFIG_IP_NF_MATCH_STATE) += ipt_state.o +obj-$(CONFIG_IP_NF_MATCH_CONNLIMIT) += ipt_connlimit.o
patchlets/connlimit/linux-2.6.14/net/ipv4/netfilter/ipt_connlimit.c +757 -0
757 lines not on this page · raw message