2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 NFMENU:=Netfilter Extensions
11 define KernelPackage/ipt-conntrack
12 TITLE:=Modules for connection tracking
14 Netfilter (IPv4) kernel modules for connection tracking\\\
19 - ipt_connmark/CONNMARK
20 FILES:=$(foreach mod,$(IPT_CONNTRACK-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
22 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_CONNTRACK-m)))
24 $(eval $(call KernelPackage,ipt-conntrack))
26 define KernelPackage/ipt-filter
27 TITLE:=Modules for packet content inspection
29 Netfilter (IPv4) kernel modules for packet content inspection \\\
34 FILES:=$(foreach mod,$(IPT_FILTER-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
36 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_FILTER-m)))
38 $(eval $(call KernelPackage,ipt-filter))
40 define KernelPackage/ipt-ipopt
41 TITLE:=Modules for matching/changing IP packet options
43 Netfilter (IPv4) modules for matching/changing IP packet options \\\
55 FILES:=$(foreach mod,$(IPT_IPOPT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
57 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_IPOPT-m)))
59 $(eval $(call KernelPackage,ipt-ipopt))
61 define KernelPackage/ipt-ipsec
62 TITLE:=Modules for matching IPSec packets
64 Netfilter (IPv4) modules for matching IPSec packets \\\
69 FILES:=$(foreach mod,$(IPT_IPSEC-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
71 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_IPSEC-m)))
73 $(eval $(call KernelPackage,ipt-ipsec))
75 define KernelPackage/ipt-nat
76 TITLE:=Modules for extra NAT targets
78 Netfilter (IPv4) modules for extra NAT targets \\\
83 FILES:=$(foreach mod,$(IPT_NAT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
85 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_NAT-m)))
87 $(eval $(call KernelPackage,ipt-nat))
89 define KernelPackage/ipt-nathelper
90 TITLE:=Default Conntrack and NAT helpers
92 Default Netfilter (IPv4) Conntrack and NAT helpers \\\
95 - ip_conntrack_ftp \\\
97 - ip_conntrack_irc \\\
100 FILES:=$(foreach mod,$(IPT_NAT_DEFAULT-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
102 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_NAT_DEFAULT-m)))
104 $(eval $(call KernelPackage,ipt-nathelper))
106 define KernelPackage/ipt-nathelper-extra
107 TITLE:=Extra Conntrack and NAT helpers
109 Extra Netfilter (IPv4) Conntrack and NAT helpers \\\
112 - ip_conntrack_amanda \\\
113 - ip_conntrack_proto_gre \\\
114 - ip_nat_proto_gre \\\
115 - ip_conntrack_pptp \\\
117 - ip_conntrack_sip \\\
120 FILES:=$(foreach mod,$(IPT_NAT_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
122 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_NAT_EXTRA-m)))
124 $(eval $(call KernelPackage,ipt-nathelper-extra))
126 define KernelPackage/ipt-imq
127 TITLE:=Intermediate Queueing support
129 Kernel support for Intermediate Queueing devices
130 KCONFIG:=$(CONFIG_IP_NF_TARGET_IMQ)
131 FILES:=$(LINUX_DIR)/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX)
133 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/*IMQ*.$(LINUX_KMOD_SUFFIX) $(LINUX_DIR)/drivers/net/imq.$(LINUX_KMOD_SUFFIX)))))
135 $(eval $(call KernelPackage,ipt-imq))
138 define KernelPackage/ipt-queue
139 TITLE:=Module for user-space packet queueing
141 Netfilter (IPv4) module for user-space packet queueing \\\
145 FILES:=$(foreach mod,$(IPT_QUEUE-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
147 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_QUEUE-m)))
149 $(eval $(call KernelPackage,ipt-queue))
151 define KernelPackage/ipt-ulog
152 TITLE:=Module for user-space packet logging
154 Netfilter (IPv4) module for user-space packet logging \\\
158 FILES:=$(foreach mod,$(IPT_ULOG-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
160 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_ULOG-m)))
162 $(eval $(call KernelPackage,ipt-ulog))
164 define KernelPackage/ipt-extra
167 Other Netfilter (IPv4) kernel modules\\\
176 FILES:=$(foreach mod,$(IPT_EXTRA-m),$(LINUX_DIR)/net/$(mod).$(LINUX_KMOD_SUFFIX))
178 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(IPT_EXTRA-m)))
180 $(eval $(call KernelPackage,ipt-extra))
182 define KernelPackage/ip6tables
185 Netfilter IPv6 firewalling support
186 KCONFIG:=$(CONFIG_IP6_NF_IPTABLES)
187 FILES:=$(LINUX_DIR)/net/ipv6/netfilter/ip*.$(LINUX_KMOD_SUFFIX)
189 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv6/netfilter/ip6_*.$(LINUX_KMOD_SUFFIX)) $(wildcard $(LINUX_DIR)/net/ipv6/netfilter/ip6table_*.$(LINUX_KMOD_SUFFIX)) $(wildcard $(LINUX_DIR)/net/ipv6/netfilter/ip6t_*.$(LINUX_KMOD_SUFFIX)))))
191 $(eval $(call KernelPackage,ip6tables))
194 define KernelPackage/arptables
195 TITLE:=ARP firewalling modules
197 Kernel modules for ARP firewalling
198 FILES:=$(LINUX_DIR)/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)
199 KCONFIG:=$(CONFIG_IP_NF_ARPTABLES)
201 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,$(wildcard $(LINUX_DIR)/net/ipv4/netfilter/arp*.$(LINUX_KMOD_SUFFIX)))))
203 $(eval $(call KernelPackage,arptables))
206 define KernelPackage/ebtables
207 TITLE:=Bridge firewalling modules
209 Kernel modules for Ethernet Bridge firewalling
210 FILES:=$(LINUX_DIR)/net/bridge/netfilter/*.$(LINUX_KMOD_SUFFIX)
211 KCONFIG:=$(CONFIG_BRIDGE_NF_EBTABLES)
213 AUTOLOAD:=$(call AutoLoad,40,$(notdir $(patsubst %.ko,%,ebtables.ko $(wildcard $(LINUX_DIR)/net/bridge/netfilter/ebtable_*.$(LINUX_KMOD_SUFFIX)) $(wildcard $(LINUX_DIR)/net/bridge/netfilter/ebt_*.$(LINUX_KMOD_SUFFIX)))))
215 $(eval $(call KernelPackage,ebtables))