mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 03:40:52 +04:00
netfilter: add kmod-nf-xtables
When building nftables-only images, with all iptables related packages disabled, NETFILTER_XTABLES is not enabled in the kernel, as it is enabled by kmod-ipt-core and kmod-nf-ipt. This makes it impossible to build e.g. kmod-nf-nathelper-rtsp from the xtables-addon package in the packages feed, without enabling unneeded packages. Add a new package kmod-nf-xtables that packages both the kernel modules that are built when NETFILTER_XTABLES is enabled in the kernel, and add dependencies to the new package in kmod-ipt-core, kmod-nf-ipt and kmod-nft-compat. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
1 parent
557a1dc686
commit
ee0cdcee02
2 files changed
+14
-4
No files matched your search
@@ -30,12 +30,12 @@ endef
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,NF_REJECT,CONFIG_NF_REJECT_IPV4, $(P_V4)nf_reject_ipv4),))
|
||||
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,NF_IPT,CONFIG_IP_NF_IPTABLES, $(P_V4)ip_tables),))
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,NF_IPT,CONFIG_NETFILTER_XTABLES, $(P_XT)x_tables),))
|
||||
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_CORE,CONFIG_NETFILTER_XTABLES, $(P_XT)xt_tcpudp),))
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_CORE,CONFIG_IP_NF_FILTER, $(P_V4)iptable_filter),))
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,IPT_CORE,CONFIG_IP_NF_MANGLE, $(P_V4)iptable_mangle),))
|
||||
|
||||
$(eval $(if $(NF_KMOD),$(call nf_add,NF_XTABLES,CONFIG_NETFILTER_XTABLES, $(P_XT)x_tables $(P_XT)xt_tcpudp),))
|
||||
|
||||
# userland only
|
||||
$(eval $(if $(NF_KMOD),,$(call nf_add,IPT_CORE,CONFIG_IP_NF_IPTABLES, xt_standard ipt_icmp xt_tcp xt_udp xt_comment xt_set xt_SET)))
|
||||
|
||||
|
||||
Reference in new issue
Block a user