diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-06-22 22:39:22 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-06-22 22:39:22 +0000 |
commit | 91468dcf4ff06a7d691f3dcbc63c152b669ac72b (patch) | |
tree | c8cc5e96d1292108714fcf1e282da2d4a6a3a2f8 /package | |
parent | ded2b7765262a6a9903e7e31bf715625c6f83cd0 (diff) | |
download | upstream-91468dcf4ff06a7d691f3dcbc63c152b669ac72b.tar.gz upstream-91468dcf4ff06a7d691f3dcbc63c152b669ac72b.tar.bz2 upstream-91468dcf4ff06a7d691f3dcbc63c152b669ac72b.zip |
package TPROXY target and module infrastructure
SVN-Revision: 21883
Diffstat (limited to 'package')
-rw-r--r-- | package/iptables/Makefile | 14 | ||||
-rw-r--r-- | package/kernel/modules/netfilter.mk | 21 |
2 files changed, 35 insertions, 0 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile index d8698c5de6..b37a66fd3f 100644 --- a/package/iptables/Makefile +++ b/package/iptables/Makefile @@ -214,6 +214,19 @@ Includes: - libipt_recent endef +define Package/iptables-mod-tproxy +$(call Package/iptables/Module, +kmod-ipt-tproxy) + TITLE:=Transparent proxy iptables extensions +endef + +define Package/iptables-mod-tproxy/description +Transparent proxy iptables extensions. +Includes: +- libxt_socket +- libxt_TPROXY +endef + + define Package/iptables-utils $(call Package/iptables/Module, ) TITLE:=iptables save and restore utilities @@ -380,6 +393,7 @@ $(eval $(call BuildPlugin,iptables-mod-nat,$(IPT_NAT-m))) $(eval $(call BuildPlugin,iptables-mod-nat-extra,$(IPT_NAT_EXTRA-m))) $(eval $(call BuildPlugin,iptables-mod-iprange,$(IPT_IPRANGE-m))) $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m))) +$(eval $(call BuildPlugin,iptables-mod-tproxy,$(IPT_TPROXY-m))) $(eval $(call BuildPackage,ip6tables)) $(eval $(call BuildPackage,ip6tables-utils)) $(eval $(call BuildPackage,libiptc)) diff --git a/package/kernel/modules/netfilter.mk b/package/kernel/modules/netfilter.mk index 7c3fe2241a..3fbd641318 100644 --- a/package/kernel/modules/netfilter.mk +++ b/package/kernel/modules/netfilter.mk @@ -283,6 +283,27 @@ endef $(eval $(call KernelPackage,ipt-ulog)) +define KernelPackage/ipt-tproxy + TITLE:=Transparent proxying support + DEPENDS:=@LINUX_2_6 + KCONFIG:= \ + CONFIG_NETFILTER_TPROXY \ + CONFIG_NETFILTER_XT_MATCH_SOCKET \ + CONFIG_NETFILTER_XT_TARGET_TPROXY + FILES:= \ + $(LINUX_DIR)/net/netfilter/nf_tproxy_core.$(LINUX_KMOD_SUFFIX) \ + $(foreach mod,$(IPT_TPROXY-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX)) + AUTOLOAD:=$(call AutoLoad,45,$(notdir nf_tproxy_core $(IPT_TPROXY-m))) + $(call AddDepends/ipt) +endef + +define KernelPackage/ipt-tproxy/description + Kernel modules for Transparent Proxying +endef + +$(eval $(call KernelPackage,ipt-tproxy)) + + define KernelPackage/ipt-iprange TITLE:=Module for matching ip ranges KCONFIG:=$(KCONFIG_IPT_IPRANGE) |