X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/4428e3a8ce0990e9299d85ffd4cd183f2458fc4f..5c317523d87089efc14d4a8e3597b652d81a0745:/package/kernel/modules/netfilter.mk diff --git a/package/kernel/modules/netfilter.mk b/package/kernel/modules/netfilter.mk index 3ce557aa5..9f6e23ace 100644 --- a/package/kernel/modules/netfilter.mk +++ b/package/kernel/modules/netfilter.mk @@ -13,7 +13,10 @@ include $(INCLUDE_DIR)/netfilter.mk define KernelPackage/ipt-core SUBMENU:=$(NF_MENU) TITLE:=Netfilter core - KCONFIG:=$(KCONFIG_IPT_CORE) + KCONFIG:= \ + CONFIG_NETFILTER=y \ + CONFIG_NETFILTER_ADVANCED=y \ + $(KCONFIG_IPT_CORE) FILES:=$(foreach mod,$(IPT_CORE-m),$(LINUX_DIR)/net/$(mod).ko) AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_CORE-m))) endef @@ -225,30 +228,6 @@ endef $(eval $(call KernelPackage,ipt-nathelper-extra)) -define KernelPackage/ipt-imq - TITLE:=Intermediate Queueing support - KCONFIG:= \ - CONFIG_IMQ \ - CONFIG_IMQ_BEHAVIOR_BA=y \ - CONFIG_IMQ_NUM_DEVS=2 \ - CONFIG_NETFILTER_XT_TARGET_IMQ - FILES:= \ - $(LINUX_DIR)/drivers/net/imq.ko \ - $(foreach mod,$(IPT_IMQ-m),$(LINUX_DIR)/net/$(mod).ko) - AUTOLOAD:=$(call AutoLoad,46,$(notdir \ - imq \ - $(IPT_IMQ-m) \ - )) - $(call AddDepends/ipt) -endef - -define KernelPackage/ipt-imq/description - Kernel support for Intermediate Queueing devices -endef - -$(eval $(call KernelPackage,ipt-imq)) - - define KernelPackage/ipt-queue TITLE:=Module for user-space packet queueing KCONFIG:=$(KCONFIG_IPT_QUEUE) @@ -283,8 +262,41 @@ endef $(eval $(call KernelPackage,ipt-ulog)) +define KernelPackage/ipt-debug + TITLE:=Module for debugging/development + KCONFIG:=$(KCONFIG_IPT_DEBUG) + DEFAULT:=n + FILES:=$(foreach mod,$(IPT_DEBUG-m),$(LINUX_DIR)/net/$(mod).ko) + AUTOLOAD:=$(call AutoLoad,45,$(notdir $(IPT_DEBUG-m))) + $(call AddDepends/ipt) +endef + +define KernelPackage/ipt-debug/description + Netfilter modules for debugging/development of the firewall + Includes: + - TRACE +endef + +$(eval $(call KernelPackage,ipt-debug)) + + +define KernelPackage/ipt-led + TITLE:=Module to trigger a LED with a Netfilter rule + KCONFIG:=$(KCONFIG_IPT_LED) + FILES:=$(foreach mod,$(IPT_LED-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX)) + AUTOLOAD:=$(call AutoLoad,61,$(notdir $(IPT_LED-m))) + $(call AddDepends/ipt) +endef + +define KernelPackage/ipt-led/description + Netfilter target to trigger a LED when a network packet is matched. +endef + +$(eval $(call KernelPackage,ipt-led)) + define KernelPackage/ipt-tproxy TITLE:=Transparent proxying support + DEPENDS+=+IPV6:kmod-ipv6 KCONFIG:= \ CONFIG_NETFILTER_TPROXY \ CONFIG_NETFILTER_XT_MATCH_SOCKET \ @@ -292,7 +304,7 @@ define KernelPackage/ipt-tproxy FILES:= \ $(LINUX_DIR)/net/netfilter/nf_tproxy_core.ko \ $(foreach mod,$(IPT_TPROXY-m),$(LINUX_DIR)/net/$(mod).ko) - AUTOLOAD:=$(call AutoLoad,45,$(notdir nf_tproxy_core $(IPT_TPROXY-m))) + AUTOLOAD:=$(call AutoLoad,50,$(notdir nf_tproxy_core $(IPT_TPROXY-m))) $(call AddDepends/ipt) endef @@ -514,11 +526,12 @@ endef $(eval $(call KernelPackage,nf-conntrack-netlink)) define KernelPackage/ipt-hashlimit -$(call KernelPackage/ipt/Depends,) + SUBMENU:=$(NF_MENU) TITLE:=Netfilter hashlimit match - FILES:=$(LINUX_DIR)/net/netfilter/xt_hashlimit.ko KCONFIG:=$(KCONFIG_IPT_HASHLIMIT) + FILES:=$(LINUX_DIR)/net/netfilter/xt_hashlimit.ko AUTOLOAD:=$(call AutoLoad,50,xt_hashlimit) + $(call KernelPackage/ipt) endef define KernelPackage/ipt-hashlimit/description