iptables: Support building connlabel module
It is currently possible to enable connlabel-support in iptables. However, in order for connlabel to work properly, the kernel module must also be present. This patch adds support for building the connlabel-module, and selects it by default when connlabel-support is enabled. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
This commit is contained in:
committed by
John Crispin
parent
f226e652f6
commit
2d27ebbb93
@@ -187,6 +187,21 @@ endef
|
||||
|
||||
$(eval $(call KernelPackage,ipt-conntrack-extra))
|
||||
|
||||
define KernelPackage/ipt-conntrack-label
|
||||
TITLE:=Module for handling connection tracking labels
|
||||
KCONFIG:=$(KCONFIG_IPT_CONNTRACK_LABEL)
|
||||
FILES:=$(foreach mod,$(IPT_CONNTRACK_LABEL-m),$(LINUX_DIR)/net/$(mod).ko)
|
||||
AUTOLOAD:=$(call AutoProbe,$(notdir $(IPT_CONNTRACK_LABEL-m)))
|
||||
$(call AddDepends/ipt,+kmod-ipt-conntrack)
|
||||
endef
|
||||
|
||||
define KernelPackage/ipt-conntrack-label/description
|
||||
Netfilter (IPv4) module for handling connection tracking labels
|
||||
Includes:
|
||||
- connlabel
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,ipt-conntrack-label))
|
||||
|
||||
define KernelPackage/ipt-filter
|
||||
TITLE:=Modules for packet content inspection
|
||||
|
||||
@@ -124,6 +124,20 @@ Extra iptables extensions for connection tracking.
|
||||
|
||||
endef
|
||||
|
||||
define Package/iptables-mod-conntrack-label
|
||||
$(call Package/iptables/Module, +kmod-ipt-conntrack-label @IPTABLES_CONNLABEL)
|
||||
TITLE:=Connection tracking labeling extension
|
||||
DEFAULT:=y if IPTABLES_CONNLABEL
|
||||
endef
|
||||
|
||||
define Package/iptables-mod-conntrack-label/description
|
||||
Match and set label(s) on connection tracking entries
|
||||
|
||||
Matches:
|
||||
- connlabel
|
||||
|
||||
endef
|
||||
|
||||
define Package/iptables-mod-filter
|
||||
$(call Package/iptables/Module, +kmod-ipt-filter)
|
||||
TITLE:=Content inspection extensions
|
||||
@@ -592,6 +606,7 @@ endef
|
||||
|
||||
$(eval $(call BuildPackage,iptables))
|
||||
$(eval $(call BuildPlugin,iptables-mod-conntrack-extra,$(IPT_CONNTRACK_EXTRA-m)))
|
||||
$(eval $(call BuildPlugin,iptables-mod-conntrack-label,$(IPT_CONNTRACK_LABEL-m)))
|
||||
$(eval $(call BuildPlugin,iptables-mod-extra,$(IPT_EXTRA-m)))
|
||||
$(eval $(call BuildPlugin,iptables-mod-filter,$(IPT_FILTER-m)))
|
||||
$(eval $(call BuildPlugin,iptables-mod-ipopt,$(IPT_IPOPT-m)))
|
||||
|
||||
Reference in New Issue
Block a user