3 # Copyright (C) 2006-2008 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 NF_MENU
:=Netfilter Extensions
11 include $(INCLUDE_DIR
)/netfilter.mk
13 define KernelPackage
/ipt-core
16 KCONFIG
:=$(KCONFIG_IPT_CORE
)
17 FILES
:=$(foreach mod
,$(IPT_CORE-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
18 AUTOLOAD
:=$(call AutoLoad
,40,$(notdir $(IPT_CORE-m
)))
21 define KernelPackage
/ipt-core
/description
22 Netfilter core kernel modules
32 $(eval
$(call KernelPackage
,ipt-core
))
35 define KernelPackage
/ipt-conntrack
37 TITLE
:=Basic connection tracking modules
38 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK
)
39 FILES
:=$(foreach mod
,$(IPT_CONNTRACK-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
40 AUTOLOAD
:=$(call AutoLoad
,41,$(notdir $(IPT_CONNTRACK-m
)))
41 DEPENDS
:= kmod-ipt-core
44 define KernelPackage
/ipt-conntrack
/description
45 Netfilter
(IPv4
) kernel modules for connection tracking
50 $(eval
$(call KernelPackage
,ipt-conntrack
))
53 define KernelPackage
/ipt-conntrack-extra
55 TITLE
:=Extra connection tracking modules
56 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK_EXTRA
)
57 FILES
:=$(foreach mod
,$(IPT_CONNTRACK_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
58 AUTOLOAD
:=$(call AutoLoad
,42,$(notdir $(IPT_CONNTRACK_EXTRA-m
)))
59 DEPENDS
:= kmod-ipt-core
+kmod-ipt-conntrack
62 define KernelPackage
/ipt-conntrack-extra
/description
63 Netfilter
(IPv4
) extra kernel modules for connection tracking
73 $(eval
$(call KernelPackage
,ipt-conntrack-extra
))
76 define KernelPackage
/ipt-filter
78 TITLE
:=Modules for packet content inspection
79 KCONFIG
:=$(KCONFIG_IPT_FILTER
)
80 FILES
:=$(foreach mod
,$(IPT_FILTER-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
81 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_FILTER-m
)))
82 DEPENDS
:=kmod-ipt-core
+LINUX_2_6
:kmod-textsearch
85 define KernelPackage
/ipt-filter
/description
86 Netfilter
(IPv4
) kernel modules for packet content inspection
92 $(eval
$(call KernelPackage
,ipt-filter
))
95 define KernelPackage
/ipt-ipopt
97 TITLE
:=Modules for matching
/changing IP packet options
98 KCONFIG
:=$(KCONFIG_IPT_IPOPT
)
99 FILES
:=$(foreach mod
,$(IPT_IPOPT-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
100 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_IPOPT-m
)))
101 DEPENDS
:= kmod-ipt-core
104 define KernelPackage
/ipt-ipopt
/description
105 Netfilter
(IPv4
) modules for matching
/changing IP packet options
117 $(eval
$(call KernelPackage
,ipt-ipopt
))
120 define KernelPackage
/ipt-ipsec
122 TITLE
:=Modules for matching IPSec packets
123 KCONFIG
:=$(KCONFIG_IPT_IPSEC
)
124 FILES
:=$(foreach mod
,$(IPT_IPSEC-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
125 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_IPSEC-m
)))
126 DEPENDS
:= kmod-ipt-core
129 define KernelPackage
/ipt-ipsec
/description
130 Netfilter
(IPv4
) modules for matching IPSec packets
136 $(eval
$(call KernelPackage
,ipt-ipsec
))
139 define KernelPackage
/ipt-nat
141 TITLE
:=Basic NAT targets
142 KCONFIG
:=$(KCONFIG_IPT_NAT
)
143 FILES
:=$(foreach mod
,$(IPT_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
144 AUTOLOAD
:=$(call AutoLoad
,42,$(notdir $(IPT_NAT-m
)))
145 DEPENDS
:= kmod-ipt-core
+kmod-ipt-conntrack
148 define KernelPackage
/ipt-nat
/description
149 Netfilter
(IPv4
) kernel modules for basic NAT targets
154 $(eval
$(call KernelPackage
,ipt-nat
))
157 define KernelPackage
/ipt-nat-extra
159 TITLE
:=Extra NAT targets
160 KCONFIG
:=$(KCONFIG_IPT_NAT_EXTRA
)
161 FILES
:=$(foreach mod
,$(IPT_NAT_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
162 AUTOLOAD
:=$(call AutoLoad
,43,$(notdir $(IPT_NAT_EXTRA-m
)))
163 DEPENDS
:= kmod-ipt-core
+kmod-ipt-nat
166 define KernelPackage
/ipt-nat-extra
/description
167 Netfilter
(IPv4
) kernel modules for extra NAT targets
174 $(eval
$(call KernelPackage
,ipt-nat-extra
))
177 define KernelPackage
/ipt-nathelper
179 TITLE
:=Basic Conntrack and NAT helpers
180 KCONFIG
:=$(KCONFIG_IPT_NATHELPER
)
181 FILES
:=$(foreach mod
,$(IPT_NATHELPER-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
182 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_NATHELPER-m
)))
183 DEPENDS
:= kmod-ipt-core
+kmod-ipt-nat
186 define KernelPackage
/ipt-nathelper
/description
187 Default Netfilter
(IPv4
) Conntrack and NAT helpers
197 $(eval
$(call KernelPackage
,ipt-nathelper
))
200 define KernelPackage
/ipt-nathelper-extra
202 TITLE
:=Extra Conntrack and NAT helpers
203 KCONFIG
:=$(KCONFIG_IPT_NATHELPER_EXTRA
)
204 FILES
:=$(foreach mod
,$(IPT_NATHELPER_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
205 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_NATHELPER_EXTRA-m
)))
206 DEPENDS
:= kmod-ipt-core
+kmod-ipt-nat
+LINUX_2_6
:kmod-textsearch
209 define KernelPackage
/ipt-nathelper-extra
/description
210 Extra Netfilter
(IPv4
) Conntrack and NAT helpers
212 - ip_conntrack_amanda
213 - ip_conntrack_proto_gre
222 $(eval
$(call KernelPackage
,ipt-nathelper-extra
))
225 define KernelPackage
/ipt-imq
227 TITLE
:=Intermediate Queueing support
230 CONFIG_IMQ_BEHAVIOR_BA
=y \
231 CONFIG_IMQ_NUM_DEVS
=2 \
232 CONFIG_NETFILTER_XT_TARGET_IMQ
234 $(LINUX_DIR
)/drivers
/net
/imq.
$(LINUX_KMOD_SUFFIX
) \
235 $(foreach mod
,$(IPT_IMQ-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
236 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir \
240 DEPENDS
:= kmod-ipt-core
243 define KernelPackage
/ipt-imq
/description
244 Kernel support for Intermediate Queueing devices
247 $(eval
$(call KernelPackage
,ipt-imq
))
250 define KernelPackage
/ipt-queue
252 TITLE
:=Module for user-space packet queueing
253 KCONFIG
:=$(KCONFIG_IPT_QUEUE
)
254 FILES
:=$(foreach mod
,$(IPT_QUEUE-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
255 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_QUEUE-m
)))
256 DEPENDS
:= kmod-ipt-core
259 define KernelPackage
/ipt-queue
/description
260 Netfilter
(IPv4
) module for user-space packet queueing
265 $(eval
$(call KernelPackage
,ipt-queue
))
268 define KernelPackage
/ipt-ulog
270 TITLE
:=Module for user-space packet logging
271 KCONFIG
:=$(KCONFIG_IPT_ULOG
)
272 FILES
:=$(foreach mod
,$(IPT_ULOG-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
273 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_ULOG-m
)))
274 DEPENDS
:= kmod-ipt-core
277 define KernelPackage
/ipt-ulog
/description
278 Netfilter
(IPv4
) module for user-space packet logging
283 $(eval
$(call KernelPackage
,ipt-ulog
))
286 define KernelPackage
/ipt-iprange
288 TITLE
:=Module for matching ip ranges
289 FILES
:=$(foreach mod
,$(IPT_IPRANGE-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
290 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_IPRANGE-m
)))
291 DEPENDS
:= kmod-ipt-core
294 define KernelPackage
/ipt-iprange
/description
295 Netfilter
(IPv4
) module for matching ip ranges
300 $(eval
$(call KernelPackage
,ipt-iprange
))
303 define KernelPackage
/ipt-ipset
306 KCONFIG
:=$(KCONFIG_IPT_IPSET
)
307 FILES
:=$(foreach mod
,$(IPT_IPSET-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
308 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_IPSET-m
)))
309 DEPENDS
:= kmod-ipt-core
312 define KernelPackage
/ipt-ipset
/description
313 Netfilter kernel modules for ipset
328 $(eval
$(call KernelPackage
,ipt-ipset
))
331 define KernelPackage
/ipt-extra
334 KCONFIG
:=$(KCONFIG_IPT_EXTRA
)
335 FILES
:=$(foreach mod
,$(IPT_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
336 AUTOLOAD
:=$(call AutoLoad
,45,$(notdir $(IPT_EXTRA-m
)))
337 DEPENDS
:= kmod-ipt-core
340 define KernelPackage
/ipt-extra
/description
341 Other Netfilter
(IPv4
) kernel modules
351 $(eval
$(call KernelPackage
,ipt-extra
))
354 define KernelPackage
/ip6tables
358 KCONFIG
:=$(KCONFIG_IPT_IPV6
)
359 FILES
:=$(foreach mod
,$(IPT_IPV6-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
360 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(IPT_IPV6-m
)))
363 define KernelPackage
/ip6tables
/description
364 Netfilter IPv6 firewalling support
367 $(eval
$(call KernelPackage
,ip6tables
))
370 define KernelPackage
/arptables
372 TITLE
:=ARP firewalling modules
373 FILES
:=$(LINUX_DIR
)/net
/ipv4
/netfilter
/arp
*.
$(LINUX_KMOD_SUFFIX
)
374 KCONFIG
:=CONFIG_IP_NF_ARPTABLES \
375 CONFIG_IP_NF_ARPFILTER \
376 CONFIG_IP_NF_ARP_MANGLE
377 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(patsubst %.
$(LINUX_KMOD_SUFFIX
),%,$(wildcard $(LINUX_DIR
)/net
/ipv4
/netfilter
/arp
*.
$(LINUX_KMOD_SUFFIX
)))))
380 define KernelPackage
/arptables
/description
381 Kernel modules for ARP firewalling
384 $(eval
$(call KernelPackage
,arptables
))
386 define KernelPackage
/ebtables
388 TITLE
:=Bridge firewalling modules
390 FILES
:=$(foreach mod
,$(EBTABLES-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
391 KCONFIG
:=CONFIG_BRIDGE_NETFILTER
=y \
393 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(EBTABLES-m
)))
396 define KernelPackage
/ebtables
/description
397 ebtables is a general
, extensible frame
/packet identification
398 framework. It provides you to do Ethernet
399 filtering
/NAT
/brouting on the Ethernet bridge.
402 $(eval
$(call KernelPackage
,ebtables
))
404 define KernelPackage
/ebtables-ipv4
406 TITLE
:=ebtables
: IPv4 support
407 DEPENDS
:= kmod-ebtables
408 FILES
:=$(foreach mod
,$(EBTABLES_IP4-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
409 KCONFIG
:=$(KCONFIG_EBTABLES_IP4
)
410 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(EBTABLES_IP4-m
)))
413 define KernelPackage
/ebtables-ipv4
/description
414 This option adds the IPv4 support to ebtables
, which allows basic
415 IPv4 header field filtering
, ARP filtering
as well
as SNAT
, DNAT targets.
418 $(eval
$(call KernelPackage
,ebtables-ipv4
))
420 define KernelPackage
/ebtables-ipv6
422 TITLE
:=ebtables
: IPv6 support
423 DEPENDS
:= kmod-ebtables
424 FILES
:=$(foreach mod
,$(EBTABLES_IP6-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
425 KCONFIG
:=$(KCONFIG_EBTABLES_IP6
)
426 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(EBTABLES_IP6-m
)))
429 define KernelPackage
/ebtables-ipv6
/description
430 This option adds the IPv6 support to ebtables
, which allows basic
431 IPv6 header field filtering and target support.
434 $(eval
$(call KernelPackage
,ebtables-ipv6
))
436 define KernelPackage
/ebtables-watchers
438 TITLE
:=ebtables
: watchers support
439 DEPENDS
:= kmod-ebtables
440 FILES
:=$(foreach mod
,$(EBTABLES_WATCHERS-m
),$(LINUX_DIR
)/net
/$(mod
).
$(LINUX_KMOD_SUFFIX
))
441 KCONFIG
:=$(KCONFIG_EBTABLES_WATCHERS
)
442 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(EBTABLES_WATCHERS-m
)))
445 define KernelPackage
/ebtables-watchers
/description
446 This option adds the log watchers
, that you can use in any rule
447 in any ebtables table.
450 $(eval
$(call KernelPackage
,ebtables-watchers
))
452 define KernelPackage
/nfnetlink
454 TITLE
:=Netlink-based userspace interface
455 DEPENDS
:=@LINUX_2_6
+kmod-ipt-core
456 FILES
:=$(LINUX_DIR
)/net
/netfilter
/nfnetlink.
$(LINUX_KMOD_SUFFIX
)
457 KCONFIG
:=CONFIG_NETFILTER_NETLINK
458 AUTOLOAD
:=$(call AutoLoad
,48,nfnetlink
)
461 define KernelPackage
/nfnetlink
/description
462 Kernel modules support for a netlink-based userspace interface
465 $(eval
$(call KernelPackage
,nfnetlink
))
468 define KernelPackage
/nfnetlink-log
470 TITLE
:=Netfilter LOG over NFNETLINK interface
471 DEPENDS
:=@LINUX_2_6
+kmod-nfnetlink
472 FILES
:=$(LINUX_DIR
)/net
/netfilter
/nfnetlink_log.
$(LINUX_KMOD_SUFFIX
)
473 KCONFIG
:=CONFIG_NETFILTER_NETLINK_LOG
474 AUTOLOAD
:=$(call AutoLoad
,48,nfnetlink_log
)
477 define KernelPackage
/nfnetlink-log
/description
478 Kernel modules support for logging packets via NFNETLINK
481 $(eval
$(call KernelPackage
,nfnetlink-log
))
484 define KernelPackage
/nfnetlink-queue
486 TITLE
:=Netfilter QUEUE over NFNETLINK interface
487 DEPENDS
:=@LINUX_2_6
+kmod-nfnetlink
488 FILES
:=$(LINUX_DIR
)/net
/netfilter
/nfnetlink_queue.
$(LINUX_KMOD_SUFFIX
)
489 KCONFIG
:=CONFIG_NETFILTER_NETLINK_QUEUE
490 AUTOLOAD
:=$(call AutoLoad
,48,nfnetlink_queue
)
493 define KernelPackage
/nfnetlink-queue
/description
494 Kernel modules support for queueing packets via NFNETLINK
497 $(eval
$(call KernelPackage
,nfnetlink-queue
))
500 define KernelPackage
/nf-conntrack-netlink
502 TITLE
:=Connection tracking netlink interface
503 DEPENDS
:=@LINUX_2_6
+kmod-nfnetlink
+kmod-ipt-conntrack
504 FILES
:=$(LINUX_DIR
)/net
/netfilter
/nf_conntrack_netlink.
$(LINUX_KMOD_SUFFIX
)
505 KCONFIG
:=CONFIG_NF_CT_NETLINK
506 AUTOLOAD
:=$(call AutoLoad
,49,nf_conntrack_netlink
)
509 define KernelPackage
/nf-conntrack-netlink
/description
510 Kernel modules support for a netlink-based connection tracking
514 $(eval
$(call KernelPackage
,nf-conntrack-netlink
))