ipt_connlimit patch for 2.6.0-test5
Subsystems (2)
Harald,
Here is a patch to add the connection limit filter from the 2.4 series.
rtg
Signature · 3 lines
Tim Gardner - [email protected] 406-443-5357 TriplePoint, Inc. - http://www.tpi.com PGP: http://www.tpi.com/PGP/Tim.txt
include/linux/netfilter_ipv4/ipt_connlimit.h +12 -0
@@ -0,0 +1,12 @@ +#ifndef _IPT_CONNLIMIT_H +#define _IPT_CONNLIMIT_H + +struct ipt_connlimit_data ; + +struct ipt_connlimit_info { +int limit; +int inverse; +u_int32_t mask; +struct ipt_connlimit_data *data; +}; +#endif /* _IPT_CONNLIMIT_H */
net/ipv4/netfilter/Kconfig +10 -0
@@ -94,6 +94,16 @@ <file:Documentation/modules.txt>. If unsure, say `N'. # The simple matches. +config IP_NF_MATCH_CONNLIMIT + tristate "IP connection 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 + <file:Documentation/modules.txt>. If unsure, say `N'. + config IP_NF_MATCH_LIMIT tristate "limit match support" depends on IP_NF_IPTABLES
net/ipv4/netfilter/Makefile +1 -0
@@ -42,6 +42,7 @@ # matches obj-$(CONFIG_IP_NF_MATCH_HELPER) += ipt_helper.o obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o +obj-$(CONFIG_IP_NF_MATCH_CONNLIMIT) += ipt_connlimit.o obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o obj-$(CONFIG_IP_NF_MATCH_IPRANGE) += ipt_iprange.o
net/ipv4/netfilter/ipt_connlimit.c +235 -0
235 lines not on this page · raw message