3 # Copyright (C) 2006-2010 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
14 define KernelPackage
/nf-reject
16 TITLE
:=Netfilter IPv4 reject support
19 CONFIG_NETFILTER_ADVANCED
=y \
21 FILES
:=$(foreach mod
,$(NF_REJECT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
22 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_REJECT-m
)))
25 $(eval
$(call KernelPackage
,nf-reject
))
28 define KernelPackage
/nf-reject6
30 TITLE
:=Netfilter IPv6 reject support
33 CONFIG_NETFILTER_ADVANCED
=y \
36 FILES
:=$(foreach mod
,$(NF_REJECT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
37 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_REJECT6-m
)))
40 $(eval
$(call KernelPackage
,nf-reject6
))
43 define KernelPackage
/nf-ipt
46 KCONFIG
:=$(KCONFIG_NF_IPT
)
47 FILES
:=$(foreach mod
,$(NF_IPT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
48 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_IPT-m
)))
51 $(eval
$(call KernelPackage
,nf-ipt
))
54 define KernelPackage
/nf-ipt6
57 KCONFIG
:=$(KCONFIG_NF_IPT6
)
58 FILES
:=$(foreach mod
,$(NF_IPT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
59 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_IPT6-m
)))
63 $(eval
$(call KernelPackage
,nf-ipt6
))
67 define KernelPackage
/ipt-core
70 KCONFIG
:=$(KCONFIG_IPT_CORE
)
71 FILES
:=$(foreach mod
,$(IPT_CORE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
72 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CORE-m
)))
73 DEPENDS
:=+kmod-nf-reject
+kmod-nf-ipt
76 define KernelPackage
/ipt-core
/description
77 Netfilter core kernel modules
88 $(eval
$(call KernelPackage
,ipt-core
))
91 define KernelPackage
/nf-conntrack
93 TITLE
:=Netfilter connection tracking
96 CONFIG_NETFILTER_ADVANCED
=y \
97 CONFIG_NF_CONNTRACK_MARK
=y \
98 CONFIG_NF_CONNTRACK_ZONES
=y \
99 $(KCONFIG_NF_CONNTRACK
)
100 FILES
:=$(foreach mod
,$(NF_CONNTRACK-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
101 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_CONNTRACK-m
)))
104 define KernelPackage
/nf-conntrack
/install
105 $(INSTALL_DIR
) $(1)/etc
/sysctl.d
106 $(INSTALL_DATA
) .
/files
/sysctl-nf-conntrack.conf
$(1)/etc
/sysctl.d
/11-nf-conntrack.conf
109 $(eval
$(call KernelPackage
,nf-conntrack
))
112 define KernelPackage
/nf-conntrack6
114 TITLE
:=Netfilter IPv6 connection tracking
115 KCONFIG
:=$(KCONFIG_NF_CONNTRACK6
)
116 DEPENDS
:=@IPV6
+kmod-nf-conntrack
117 FILES
:=$(foreach mod
,$(NF_CONNTRACK6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
118 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_CONNTRACK6-m
)))
121 $(eval
$(call KernelPackage
,nf-conntrack6
))
124 define KernelPackage
/nf-nat
127 KCONFIG
:=$(KCONFIG_NF_NAT
)
128 DEPENDS
:=+kmod-nf-conntrack
129 FILES
:=$(foreach mod
,$(NF_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
130 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NAT-m
)))
133 $(eval
$(call KernelPackage
,nf-nat
))
136 define KernelPackage
/nf-nat6
138 TITLE
:=Netfilter IPV6-NAT
139 KCONFIG
:=$(KCONFIG_NF_NAT6
)
140 DEPENDS
:=@IPV6
+kmod-nf-conntrack6
+kmod-nf-nat
141 FILES
:=$(foreach mod
,$(NF_NAT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
142 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NAT6-m
)))
145 $(eval
$(call KernelPackage
,nf-nat6
))
148 define KernelPackage
/nf-flow
150 TITLE
:=Netfilter flowtable support
152 CONFIG_NETFILTER_INGRESS
=y \
153 CONFIG_NF_FLOW_TABLE \
154 CONFIG_NF_FLOW_TABLE_HW
155 DEPENDS
:=+kmod-nf-conntrack
157 $(LINUX_DIR
)/net
/netfilter
/nf_flow_table.ko \
158 $(LINUX_DIR
)/net
/netfilter
/nf_flow_table_hw.ko
159 AUTOLOAD
:=$(call AutoProbe
,nf_flow_table nf_flow_table_hw
)
162 $(eval
$(call KernelPackage
,nf-flow
))
165 define AddDepends
/ipt
167 DEPENDS
+= +kmod-ipt-core
$(1)
171 define KernelPackage
/ipt-conntrack
172 TITLE
:=Basic connection tracking modules
173 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK
)
174 FILES
:=$(foreach mod
,$(IPT_CONNTRACK-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
175 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CONNTRACK-m
)))
176 $(call AddDepends
/ipt
,+kmod-nf-conntrack
)
179 define KernelPackage
/ipt-conntrack
/description
180 Netfilter
(IPv4
) kernel modules for connection tracking
189 $(eval
$(call KernelPackage
,ipt-conntrack
))
192 define KernelPackage
/ipt-conntrack-extra
193 TITLE
:=Extra connection tracking modules
194 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK_EXTRA
)
195 FILES
:=$(foreach mod
,$(IPT_CONNTRACK_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
196 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CONNTRACK_EXTRA-m
)))
197 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
)
200 define KernelPackage
/ipt-conntrack-extra
/description
201 Netfilter
(IPv4
) extra kernel modules for connection tracking
210 $(eval
$(call KernelPackage
,ipt-conntrack-extra
))
212 define KernelPackage
/ipt-conntrack-label
213 TITLE
:=Module for handling connection tracking labels
214 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK_LABEL
)
215 FILES
:=$(foreach mod
,$(IPT_CONNTRACK_LABEL-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
216 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CONNTRACK_LABEL-m
)))
217 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
)
220 define KernelPackage
/ipt-conntrack-label
/description
221 Netfilter
(IPv4
) module for handling connection tracking labels
226 $(eval
$(call KernelPackage
,ipt-conntrack-label
))
228 define KernelPackage
/ipt-filter
229 TITLE
:=Modules for packet content inspection
230 KCONFIG
:=$(KCONFIG_IPT_FILTER
)
231 FILES
:=$(foreach mod
,$(IPT_FILTER-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
232 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_FILTER-m
)))
233 $(call AddDepends
/ipt
,+kmod-lib-textsearch
+kmod-ipt-conntrack
)
236 define KernelPackage
/ipt-filter
/description
237 Netfilter
(IPv4
) kernel modules for packet content inspection
243 $(eval
$(call KernelPackage
,ipt-filter
))
246 define KernelPackage
/ipt-offload
247 TITLE
:=Netfilter routing
/NAT offload support
248 KCONFIG
:=$(KCONFIG_IPT_FLOW
)
249 FILES
:=$(foreach mod
,$(IPT_FLOW-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
250 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_FLOW-m
)))
251 $(call AddDepends
/ipt
,+kmod-nf-flow
)
254 $(eval
$(call KernelPackage
,ipt-offload
))
257 define KernelPackage
/ipt-ipopt
258 TITLE
:=Modules for matching
/changing IP packet options
259 KCONFIG
:=$(KCONFIG_IPT_IPOPT
)
260 FILES
:=$(foreach mod
,$(IPT_IPOPT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
261 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_IPOPT-m
)))
262 $(call AddDepends
/ipt
)
265 define KernelPackage
/ipt-ipopt
/description
266 Netfilter
(IPv4
) modules for matching
/changing IP packet options
281 $(eval
$(call KernelPackage
,ipt-ipopt
))
284 define KernelPackage
/ipt-ipsec
285 TITLE
:=Modules for matching IPSec packets
286 KCONFIG
:=$(KCONFIG_IPT_IPSEC
)
287 FILES
:=$(foreach mod
,$(IPT_IPSEC-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
288 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_IPSEC-m
)))
289 $(call AddDepends
/ipt
)
292 define KernelPackage
/ipt-ipsec
/description
293 Netfilter
(IPv4
) modules for matching IPSec packets
300 $(eval
$(call KernelPackage
,ipt-ipsec
))
304 ipset
/ip_set_bitmap_ip \
305 ipset
/ip_set_bitmap_ipmac \
306 ipset
/ip_set_bitmap_port \
307 ipset
/ip_set_hash_ip \
308 ipset
/ip_set_hash_ipmark \
309 ipset
/ip_set_hash_ipport \
310 ipset
/ip_set_hash_ipportip \
311 ipset
/ip_set_hash_ipportnet \
312 ipset
/ip_set_hash_mac \
313 ipset
/ip_set_hash_netportnet \
314 ipset
/ip_set_hash_net \
315 ipset
/ip_set_hash_netnet \
316 ipset
/ip_set_hash_netport \
317 ipset
/ip_set_hash_netiface \
318 ipset
/ip_set_list_set \
321 define KernelPackage
/ipt-ipset
322 SUBMENU
:=Netfilter Extensions
323 TITLE
:=IPset netfilter modules
324 DEPENDS
+= +kmod-ipt-core
+kmod-nfnetlink
327 CONFIG_IP_SET_MAX
=256 \
328 CONFIG_NETFILTER_XT_SET \
329 CONFIG_IP_SET_BITMAP_IP \
330 CONFIG_IP_SET_BITMAP_IPMAC \
331 CONFIG_IP_SET_BITMAP_PORT \
332 CONFIG_IP_SET_HASH_IP \
333 CONFIG_IP_SET_HASH_IPMAC \
334 CONFIG_IP_SET_HASH_IPMARK \
335 CONFIG_IP_SET_HASH_IPPORT \
336 CONFIG_IP_SET_HASH_IPPORTIP \
337 CONFIG_IP_SET_HASH_IPPORTNET \
338 CONFIG_IP_SET_HASH_MAC \
339 CONFIG_IP_SET_HASH_NET \
340 CONFIG_IP_SET_HASH_NETNET \
341 CONFIG_IP_SET_HASH_NETIFACE \
342 CONFIG_IP_SET_HASH_NETPORT \
343 CONFIG_IP_SET_HASH_NETPORTNET \
344 CONFIG_IP_SET_LIST_SET \
345 CONFIG_NET_EMATCH_IPSET
=n
346 FILES
:=$(foreach mod
,$(IPSET_MODULES
),$(LINUX_DIR
)/net
/netfilter
/$(mod
).ko
)
347 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(IPSET_MODULES
)))
349 $(eval
$(call KernelPackage
,ipt-ipset
))
368 define KernelPackage
/nf-ipvs
369 SUBMENU
:=Netfilter Extensions
370 TITLE
:=IP Virtual Server modules
371 DEPENDS
:=@IPV6
+kmod-lib-crc32c
+kmod-ipt-conntrack
+kmod-nf-conntrack
374 CONFIG_IP_VS_IPV6
=y \
375 CONFIG_IP_VS_DEBUG
=n \
376 CONFIG_IP_VS_PROTO_TCP
=y \
377 CONFIG_IP_VS_PROTO_UDP
=y \
378 CONFIG_IP_VS_PROTO_AH_ESP
=y \
379 CONFIG_IP_VS_PROTO_ESP
=y \
380 CONFIG_IP_VS_PROTO_AH
=y \
381 CONFIG_IP_VS_PROTO_SCTP
=y \
382 CONFIG_IP_VS_TAB_BITS
=12 \
395 CONFIG_IP_VS_SH_TAB_BITS
=8 \
396 CONFIG_IP_VS_NFCT
=y \
397 CONFIG_NETFILTER_XT_MATCH_IPVS
398 FILES
:=$(foreach mod
,$(IPVS_MODULES
),$(LINUX_DIR
)/net
/netfilter
/$(mod
).ko
)
399 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
,+kmod-nf-conntrack
)
402 define KernelPackage
/nf-ipvs
/description
403 IPVS
(IP Virtual Server
) implements transport-layer load balancing inside
404 the Linux kernel so called Layer-4 switching.
407 $(eval
$(call KernelPackage
,nf-ipvs
))
410 define KernelPackage
/nf-ipvs-ftp
412 TITLE
:=Virtual Server FTP protocol support
413 KCONFIG
:=CONFIG_IP_VS_FTP
414 DEPENDS
:=kmod-nf-ipvs
+kmod-nf-nat
+kmod-nf-nathelper
415 FILES
:=$(LINUX_DIR
)/net
/netfilter
/ipvs
/ip_vs_ftp.ko
418 define KernelPackage
/nf-ipvs-ftp
/description
419 In the virtual server via Network Address Translation
,
420 the IP address and port number of real servers cannot be sent to
421 clients in ftp connections directly
, so FTP protocol helper is
422 required for tracking the connection and mangling it back to that of
426 $(eval
$(call KernelPackage
,nf-ipvs-ftp
))
429 define KernelPackage
/nf-ipvs-sip
431 TITLE
:=Virtual Server SIP protocol support
432 KCONFIG
:=CONFIG_IP_VS_PE_SIP
433 DEPENDS
:=kmod-nf-ipvs
+kmod-nf-nathelper-extra
434 FILES
:=$(LINUX_DIR
)/net
/netfilter
/ipvs
/ip_vs_pe_sip.ko
437 define KernelPackage
/nf-ipvs-sip
/description
438 Allow persistence based on the SIP Call-ID
441 $(eval
$(call KernelPackage
,nf-ipvs-sip
))
444 define KernelPackage
/ipt-nat
445 TITLE
:=Basic NAT targets
446 KCONFIG
:=$(KCONFIG_IPT_NAT
)
447 FILES
:=$(foreach mod
,$(IPT_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
448 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NAT-m
)))
449 $(call AddDepends
/ipt
,+kmod-nf-nat
)
452 define KernelPackage
/ipt-nat
/description
453 Netfilter
(IPv4
) kernel modules for basic NAT targets
458 $(eval
$(call KernelPackage
,ipt-nat
))
461 define KernelPackage
/ipt-raw
462 TITLE
:=Netfilter IPv4 raw table support
463 KCONFIG
:=CONFIG_IP_NF_RAW
464 FILES
:=$(LINUX_DIR
)/net
/ipv4
/netfilter
/iptable_raw.ko
465 AUTOLOAD
:=$(call AutoProbe
,iptable_raw
)
466 $(call AddDepends
/ipt
)
469 $(eval
$(call KernelPackage
,ipt-raw
))
472 define KernelPackage
/ipt-raw6
473 TITLE
:=Netfilter IPv6 raw table support
475 KCONFIG
:=CONFIG_IP6_NF_RAW
476 FILES
:=$(LINUX_DIR
)/net
/ipv6
/netfilter
/ip6table_raw.ko
477 AUTOLOAD
:=$(call AutoProbe
,ip6table_raw
)
478 $(call AddDepends
/ipt
,+kmod-ip6tables
)
481 $(eval
$(call KernelPackage
,ipt-raw6
))
484 define KernelPackage
/ipt-nat6
485 TITLE
:=IPv6 NAT targets
487 KCONFIG
:=$(KCONFIG_IPT_NAT6
)
488 FILES
:=$(foreach mod
,$(IPT_NAT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
489 AUTOLOAD
:=$(call AutoLoad
,43,$(notdir $(IPT_NAT6-m
)))
490 $(call AddDepends
/ipt
,+kmod-nf-nat6
)
491 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
)
492 $(call AddDepends
/ipt
,+kmod-ipt-nat
)
493 $(call AddDepends
/ipt
,+kmod-ip6tables
)
496 define KernelPackage
/ipt-nat6
/description
497 Netfilter
(IPv6
) kernel modules for NAT targets
500 $(eval
$(call KernelPackage
,ipt-nat6
))
503 define KernelPackage
/ipt-nat-extra
504 TITLE
:=Extra NAT targets
505 KCONFIG
:=$(KCONFIG_IPT_NAT_EXTRA
)
506 FILES
:=$(foreach mod
,$(IPT_NAT_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
507 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NAT_EXTRA-m
)))
508 $(call AddDepends
/ipt
,+kmod-ipt-nat
)
511 define KernelPackage
/ipt-nat-extra
/description
512 Netfilter
(IPv4
) kernel modules for extra NAT targets
518 $(eval
$(call KernelPackage
,ipt-nat-extra
))
521 define KernelPackage
/nf-nathelper
523 TITLE
:=Basic Conntrack and NAT helpers
524 KCONFIG
:=$(KCONFIG_NF_NATHELPER
)
525 FILES
:=$(foreach mod
,$(NF_NATHELPER-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
526 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NATHELPER-m
)))
527 DEPENDS
:=+kmod-nf-nat
530 define KernelPackage
/nf-nathelper
/description
531 Default Netfilter
(IPv4
) Conntrack and NAT helpers
536 $(eval
$(call KernelPackage
,nf-nathelper
))
539 define KernelPackage
/nf-nathelper-extra
541 TITLE
:=Extra Conntrack and NAT helpers
542 KCONFIG
:=$(KCONFIG_NF_NATHELPER_EXTRA
)
543 FILES
:=$(foreach mod
,$(NF_NATHELPER_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
544 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NATHELPER_EXTRA-m
)))
545 DEPENDS
:=+kmod-nf-nat
+kmod-lib-textsearch
+kmod-ipt-raw
+kmod-asn1-decoder
548 define KernelPackage
/nf-nathelper-extra
/description
549 Extra Netfilter
(IPv4
) Conntrack and NAT helpers
563 $(eval
$(call KernelPackage
,nf-nathelper-extra
))
566 define KernelPackage
/ipt-ulog
567 TITLE
:=Module for user-space packet logging
568 KCONFIG
:=$(KCONFIG_IPT_ULOG
)
569 FILES
:=$(foreach mod
,$(IPT_ULOG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
570 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_ULOG-m
)))
571 $(call AddDepends
/ipt
)
574 define KernelPackage
/ipt-ulog
/description
575 Netfilter
(IPv4
) module for user-space packet logging
580 $(eval
$(call KernelPackage
,ipt-ulog
))
583 define KernelPackage
/ipt-nflog
584 TITLE
:=Module for user-space packet logging
585 KCONFIG
:=$(KCONFIG_IPT_NFLOG
)
586 FILES
:=$(foreach mod
,$(IPT_NFLOG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
587 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NFLOG-m
)))
588 $(call AddDepends
/ipt
,+kmod-nfnetlink-log
)
591 define KernelPackage
/ipt-nflog
/description
592 Netfilter module for user-space packet logging
597 $(eval
$(call KernelPackage
,ipt-nflog
))
600 define KernelPackage
/ipt-nfqueue
601 TITLE
:=Module for user-space packet queuing
602 KCONFIG
:=$(KCONFIG_IPT_NFQUEUE
)
603 FILES
:=$(foreach mod
,$(IPT_NFQUEUE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
604 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NFQUEUE-m
)))
605 $(call AddDepends
/ipt
,+kmod-nfnetlink-queue
)
608 define KernelPackage
/ipt-nfqueue
/description
609 Netfilter module for user-space packet queuing
614 $(eval
$(call KernelPackage
,ipt-nfqueue
))
617 define KernelPackage
/ipt-debug
618 TITLE
:=Module for debugging
/development
619 KCONFIG
:=$(KCONFIG_IPT_DEBUG
)
620 FILES
:=$(foreach mod
,$(IPT_DEBUG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
621 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_DEBUG-m
)))
622 $(call AddDepends
/ipt
,+kmod-ipt-raw
+IPV6
:kmod-ipt-raw6
)
625 define KernelPackage
/ipt-debug
/description
626 Netfilter modules for debugging
/development of the firewall
631 $(eval
$(call KernelPackage
,ipt-debug
))
634 define KernelPackage
/ipt-led
635 TITLE
:=Module to trigger a LED with a Netfilter rule
636 KCONFIG
:=$(KCONFIG_IPT_LED
)
637 FILES
:=$(foreach mod
,$(IPT_LED-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
638 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_LED-m
)))
639 $(call AddDepends
/ipt
)
642 define KernelPackage
/ipt-led
/description
643 Netfilter target to trigger a LED when a network packet is matched.
646 $(eval
$(call KernelPackage
,ipt-led
))
648 define KernelPackage
/ipt-tproxy
649 TITLE
:=Transparent proxying support
650 DEPENDS
+=+kmod-ipt-conntrack
+IPV6
:kmod-nf-conntrack6
+IPV6
:kmod-ip6tables
651 KCONFIG
:=$(KCONFIG_IPT_TPROXY
)
652 FILES
:=$(foreach mod
,$(IPT_TPROXY-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
653 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_TPROXY-m
)))
654 $(call AddDepends
/ipt
)
657 define KernelPackage
/ipt-tproxy
/description
658 Kernel modules for Transparent Proxying
661 $(eval
$(call KernelPackage
,ipt-tproxy
))
663 define KernelPackage
/ipt-tee
665 DEPENDS
:=+kmod-ipt-conntrack
666 KCONFIG
:=$(KCONFIG_IPT_TEE
)
667 FILES
:=$(foreach mod
,$(IPT_TEE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
668 AUTOLOAD
:=$(call AutoProbe
,$(notdir nf_tee
$(IPT_TEE-m
)))
669 $(call AddDepends
/ipt
)
672 define KernelPackage
/ipt-tee
/description
673 Kernel modules for TEE
676 $(eval
$(call KernelPackage
,ipt-tee
))
679 define KernelPackage
/ipt-u32
681 KCONFIG
:=$(KCONFIG_IPT_U32
)
682 FILES
:=$(foreach mod
,$(IPT_U32-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
683 AUTOLOAD
:=$(call AutoProbe
,$(notdir nf_tee
$(IPT_U32-m
)))
684 $(call AddDepends
/ipt
)
687 define KernelPackage
/ipt-u32
/description
688 Kernel modules for U32
691 $(eval
$(call KernelPackage
,ipt-u32
))
693 define KernelPackage
/ipt-checksum
694 TITLE
:=CHECKSUM support
695 KCONFIG
:=$(KCONFIG_IPT_CHECKSUM
)
696 FILES
:=$(foreach mod
,$(IPT_CHECKSUM-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
697 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CHECKSUM-m
)))
698 $(call AddDepends
/ipt
)
701 define KernelPackage
/ipt-checksum
/description
702 Kernel modules for CHECKSUM fillin target
705 $(eval
$(call KernelPackage
,ipt-checksum
))
708 define KernelPackage
/ipt-iprange
709 TITLE
:=Module for matching ip ranges
710 KCONFIG
:=$(KCONFIG_IPT_IPRANGE
)
711 FILES
:=$(foreach mod
,$(IPT_IPRANGE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
712 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_IPRANGE-m
)))
713 $(call AddDepends
/ipt
)
716 define KernelPackage
/ipt-iprange
/description
717 Netfilter
(IPv4
) module for matching ip ranges
722 $(eval
$(call KernelPackage
,ipt-iprange
))
724 define KernelPackage
/ipt-cluster
725 TITLE
:=Module for matching cluster
726 KCONFIG
:=$(KCONFIG_IPT_CLUSTER
)
727 FILES
:=$(foreach mod
,$(IPT_CLUSTER-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
728 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CLUSTER-m
)))
729 $(call AddDepends
/ipt
,+kmod-nf-conntrack
)
732 define KernelPackage
/ipt-cluster
/description
733 Netfilter
(IPv4
/IPv6
) module for matching cluster
734 This option allows you to build work-load-sharing clusters of
735 network servers
/stateful firewalls without having a dedicated
736 load-balancing router
/server
/switch. Basically
, this match returns
737 true when the packet must be handled by this cluster node. Thus
,
738 all nodes see
all packets and this match decides which node handles
739 what packets. The work-load sharing algorithm is based on source
742 This module is usable for ipv4 and ipv6.
744 To use it also enable iptables-mod-cluster
746 see
`iptables -m cluster --help` for more information.
749 $(eval
$(call KernelPackage
,ipt-cluster
))
751 define KernelPackage
/ipt-clusterip
752 TITLE
:=Module for CLUSTERIP
753 KCONFIG
:=$(KCONFIG_IPT_CLUSTERIP
)
754 FILES
:=$(foreach mod
,$(IPT_CLUSTERIP-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
755 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CLUSTERIP-m
)))
756 $(call AddDepends
/ipt
,+kmod-nf-conntrack
)
759 define KernelPackage
/ipt-clusterip
/description
760 Netfilter
(IPv4-only
) module for CLUSTERIP
761 The CLUSTERIP target allows you to build load-balancing clusters of
762 network servers without having a dedicated load-balancing
763 router
/server
/switch.
765 To use it also enable iptables-mod-clusterip
767 see
`iptables -j CLUSTERIP --help` for more information.
770 $(eval
$(call KernelPackage
,ipt-clusterip
))
773 define KernelPackage
/ipt-extra
775 KCONFIG
:=$(KCONFIG_IPT_EXTRA
)
776 FILES
:=$(foreach mod
,$(IPT_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
777 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_EXTRA-m
)))
778 $(call AddDepends
/ipt
)
781 define KernelPackage
/ipt-extra
/description
782 Other Netfilter
(IPv4
) kernel modules
790 $(eval
$(call KernelPackage
,ipt-extra
))
793 define KernelPackage
/ipt-physdev
794 TITLE
:=physdev module
795 KCONFIG
:=$(KCONFIG_IPT_PHYSDEV
)
796 FILES
:=$(foreach mod
,$(IPT_PHYSDEV-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
797 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_PHYSDEV-m
)))
798 $(call AddDepends
/ipt
,+kmod-br-netfilter
)
801 define KernelPackage
/ipt-physdev
/description
802 The iptables physdev kernel module
805 $(eval
$(call KernelPackage
,ipt-physdev
))
808 define KernelPackage
/ip6tables
811 DEPENDS
:=@IPV6
+kmod-nf-reject6
+kmod-nf-ipt6
+kmod-ipt-core
812 KCONFIG
:=$(KCONFIG_IPT_IPV6
)
813 FILES
:=$(foreach mod
,$(IPT_IPV6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
814 AUTOLOAD
:=$(call AutoLoad
,42,$(notdir $(IPT_IPV6-m
)))
817 define KernelPackage
/ip6tables
/description
818 Netfilter IPv6 firewalling support
821 $(eval
$(call KernelPackage
,ip6tables
))
823 define KernelPackage
/ip6tables-extra
825 TITLE
:=Extra IPv6 modules
826 DEPENDS
:=@IPV6
+kmod-ip6tables
827 KCONFIG
:=$(KCONFIG_IPT_IPV6_EXTRA
)
828 FILES
:=$(foreach mod
,$(IPT_IPV6_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
829 AUTOLOAD
:=$(call AutoLoad
,43,$(notdir $(IPT_IPV6_EXTRA-m
)))
832 define KernelPackage
/ip6tables-extra
/description
833 Netfilter IPv6 extra header matching modules
836 $(eval
$(call KernelPackage
,ip6tables-extra
))
838 ARP_MODULES
= arp_tables arpt_mangle arptable_filter
839 define KernelPackage
/arptables
841 TITLE
:=ARP firewalling modules
842 DEPENDS
:=+kmod-ipt-core
843 FILES
:=$(LINUX_DIR
)/net
/ipv4
/netfilter
/arp
*.ko
844 KCONFIG
:=CONFIG_IP_NF_ARPTABLES \
845 CONFIG_IP_NF_ARPFILTER \
846 CONFIG_IP_NF_ARP_MANGLE
847 AUTOLOAD
:=$(call AutoProbe
,$(ARP_MODULES
))
850 define KernelPackage
/arptables
/description
851 Kernel modules for ARP firewalling
854 $(eval
$(call KernelPackage
,arptables
))
857 define KernelPackage
/br-netfilter
859 TITLE
:=Bridge netfilter support modules
860 DEPENDS
:=+kmod-ipt-core
861 FILES
:=$(LINUX_DIR
)/net
/bridge
/br_netfilter.ko
862 KCONFIG
:=CONFIG_BRIDGE_NETFILTER
863 AUTOLOAD
:=$(call AutoProbe
,br_netfilter
)
866 define KernelPackage
/br-netfilter
/install
867 $(INSTALL_DIR
) $(1)/etc
/sysctl.d
868 $(INSTALL_DATA
) .
/files
/sysctl-br-netfilter.conf
$(1)/etc
/sysctl.d
/11-br-netfilter.conf
871 $(eval
$(call KernelPackage
,br-netfilter
))
874 define KernelPackage
/ebtables
876 TITLE
:=Bridge firewalling modules
877 DEPENDS
:=+kmod-ipt-core
878 FILES
:=$(foreach mod
,$(EBTABLES-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
879 KCONFIG
:=$(KCONFIG_EBTABLES
)
880 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES-m
)))
883 define KernelPackage
/ebtables
/description
884 ebtables is a general
, extensible frame
/packet identification
885 framework. It provides you to do Ethernet
886 filtering
/NAT
/brouting on the Ethernet bridge.
889 $(eval
$(call KernelPackage
,ebtables
))
892 define AddDepends
/ebtables
894 DEPENDS
+= +kmod-ebtables
$(1)
898 define KernelPackage
/ebtables-ipv4
899 TITLE
:=ebtables
: IPv4 support
900 FILES
:=$(foreach mod
,$(EBTABLES_IP4-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
901 KCONFIG
:=$(KCONFIG_EBTABLES_IP4
)
902 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES_IP4-m
)))
903 $(call AddDepends
/ebtables
)
906 define KernelPackage
/ebtables-ipv4
/description
907 This option adds the IPv4 support to ebtables
, which allows basic
908 IPv4 header field filtering
, ARP filtering
as well
as SNAT
, DNAT targets.
911 $(eval
$(call KernelPackage
,ebtables-ipv4
))
914 define KernelPackage
/ebtables-ipv6
915 TITLE
:=ebtables
: IPv6 support
917 FILES
:=$(foreach mod
,$(EBTABLES_IP6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
918 KCONFIG
:=$(KCONFIG_EBTABLES_IP6
)
919 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES_IP6-m
)))
920 $(call AddDepends
/ebtables
)
923 define KernelPackage
/ebtables-ipv6
/description
924 This option adds the IPv6 support to ebtables
, which allows basic
925 IPv6 header field filtering and target support.
928 $(eval
$(call KernelPackage
,ebtables-ipv6
))
931 define KernelPackage
/ebtables-watchers
932 TITLE
:=ebtables
: watchers support
933 FILES
:=$(foreach mod
,$(EBTABLES_WATCHERS-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
934 KCONFIG
:=$(KCONFIG_EBTABLES_WATCHERS
)
935 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES_WATCHERS-m
)))
936 $(call AddDepends
/ebtables
)
939 define KernelPackage
/ebtables-watchers
/description
940 This option adds the log watchers
, that you can use in any rule
941 in any ebtables table.
944 $(eval
$(call KernelPackage
,ebtables-watchers
))
947 define KernelPackage
/nfnetlink
949 TITLE
:=Netlink-based userspace interface
950 FILES
:=$(foreach mod
,$(NFNETLINK-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
951 KCONFIG
:=$(KCONFIG_NFNETLINK
)
952 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFNETLINK-m
)))
955 define KernelPackage
/nfnetlink
/description
956 Kernel modules support for a netlink-based userspace interface
959 $(eval
$(call KernelPackage
,nfnetlink
))
962 define AddDepends
/nfnetlink
964 DEPENDS
+=+kmod-nfnetlink
$(1)
968 define KernelPackage
/nfnetlink-log
969 TITLE
:=Netfilter LOG over NFNETLINK interface
970 FILES
:=$(foreach mod
,$(NFNETLINK_LOG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
971 KCONFIG
:=$(KCONFIG_NFNETLINK_LOG
)
972 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFNETLINK_LOG-m
)))
973 $(call AddDepends
/nfnetlink
)
976 define KernelPackage
/nfnetlink-log
/description
977 Kernel modules support for logging packets via NFNETLINK
982 $(eval
$(call KernelPackage
,nfnetlink-log
))
985 define KernelPackage
/nfnetlink-queue
986 TITLE
:=Netfilter QUEUE over NFNETLINK interface
987 FILES
:=$(foreach mod
,$(NFNETLINK_QUEUE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
988 KCONFIG
:=$(KCONFIG_NFNETLINK_QUEUE
)
989 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFNETLINK_QUEUE-m
)))
990 $(call AddDepends
/nfnetlink
)
993 define KernelPackage
/nfnetlink-queue
/description
994 Kernel modules support for queueing packets via NFNETLINK
999 $(eval
$(call KernelPackage
,nfnetlink-queue
))
1002 define KernelPackage
/nf-conntrack-netlink
1003 TITLE
:=Connection tracking netlink interface
1004 FILES
:=$(LINUX_DIR
)/net
/netfilter
/nf_conntrack_netlink.ko
1005 KCONFIG
:=CONFIG_NF_CT_NETLINK CONFIG_NF_CONNTRACK_EVENTS
=y
1006 AUTOLOAD
:=$(call AutoProbe
,nf_conntrack_netlink
)
1007 $(call AddDepends
/nfnetlink
,+kmod-ipt-conntrack
)
1010 define KernelPackage
/nf-conntrack-netlink
/description
1011 Kernel modules support for a netlink-based connection tracking
1015 $(eval
$(call KernelPackage
,nf-conntrack-netlink
))
1017 define KernelPackage
/ipt-hashlimit
1019 TITLE
:=Netfilter hashlimit match
1020 DEPENDS
:=+kmod-ipt-core
1021 KCONFIG
:=$(KCONFIG_IPT_HASHLIMIT
)
1022 FILES
:=$(LINUX_DIR
)/net
/netfilter
/xt_hashlimit.ko
1023 AUTOLOAD
:=$(call AutoProbe
,xt_hashlimit
)
1024 $(call KernelPackage
/ipt
)
1027 define KernelPackage
/ipt-hashlimit
/description
1028 Kernel modules support for the hashlimit bucket match module
1031 $(eval
$(call KernelPackage
,ipt-hashlimit
))
1033 define KernelPackage
/ipt-rpfilter
1035 TITLE
:=Netfilter rpfilter match
1036 DEPENDS
:=+kmod-ipt-core
1037 KCONFIG
:=$(KCONFIG_IPT_RPFILTER
)
1039 $(LINUX_DIR
)/net
/ipv4
/netfilter
/ipt_rpfilter.ko \
1040 $(LINUX_DIR
)/net
/ipv6
/netfilter
/ip6t_rpfilter.ko
)
1041 AUTOLOAD
:=$(call AutoProbe
,ipt_rpfilter ip6t_rpfilter
)
1042 $(call KernelPackage
/ipt
)
1045 define KernelPackage
/ipt-rpfilter
/description
1046 Kernel modules support for the Netfilter rpfilter match
1049 $(eval
$(call KernelPackage
,ipt-rpfilter
))
1052 define KernelPackage
/nft-core
1054 TITLE
:=Netfilter nf_tables support
1055 DEPENDS
:=+kmod-nfnetlink
+kmod-nf-reject
+IPV6
:kmod-nf-reject6
+IPV6
:kmod-nf-conntrack6
+!LINUX_4_19
:kmod-nf-nat
1056 FILES
:=$(foreach mod
,$(NFT_CORE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1057 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_CORE-m
)))
1059 CONFIG_NFT_COMPAT
=n \
1060 CONFIG_NFT_QUEUE
=n \
1064 define KernelPackage
/nft-core
/description
1065 Kernel module support for nftables
1068 $(eval
$(call KernelPackage
,nft-core
))
1071 define KernelPackage
/nft-arp
1073 TITLE
:=Netfilter nf_tables ARP table support
1074 DEPENDS
:=+kmod-nft-core
1075 FILES
:=$(foreach mod
,$(NFT_ARP-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1076 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_ARP-m
)))
1077 KCONFIG
:=$(KCONFIG_NFT_ARP
)
1080 $(eval
$(call KernelPackage
,nft-arp
))
1083 define KernelPackage
/nft-bridge
1085 TITLE
:=Netfilter nf_tables bridge table support
1086 DEPENDS
:=+kmod-nft-core
1087 FILES
:=$(foreach mod
,$(NFT_BRIDGE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1088 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_BRIDGE-m
)))
1090 CONFIG_NF_LOG_BRIDGE
=n \
1091 $(KCONFIG_NFT_BRIDGE
)
1094 $(eval
$(call KernelPackage
,nft-bridge
))
1097 define KernelPackage
/nft-nat
1099 TITLE
:=Netfilter nf_tables NAT support
1100 DEPENDS
:=+kmod-nft-core
+kmod-nf-nat
1101 FILES
:=$(foreach mod
,$(NFT_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1102 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_NAT-m
)))
1103 KCONFIG
:=$(KCONFIG_NFT_NAT
)
1106 $(eval
$(call KernelPackage
,nft-nat
))
1109 define KernelPackage
/nft-offload
1111 TITLE
:=Netfilter nf_tables routing
/NAT offload support
1112 DEPENDS
:=@IPV6
+kmod-nf-flow
+kmod-nft-nat
1114 CONFIG_NF_FLOW_TABLE_INET \
1115 CONFIG_NF_FLOW_TABLE_IPV4 \
1116 CONFIG_NF_FLOW_TABLE_IPV6 \
1117 CONFIG_NFT_FLOW_OFFLOAD
1119 $(LINUX_DIR
)/net
/netfilter
/nf_flow_table_inet.ko \
1120 $(LINUX_DIR
)/net
/ipv4
/netfilter
/nf_flow_table_ipv4.ko \
1121 $(LINUX_DIR
)/net
/ipv6
/netfilter
/nf_flow_table_ipv6.ko \
1122 $(LINUX_DIR
)/net
/netfilter
/nft_flow_offload.ko
1123 AUTOLOAD
:=$(call AutoProbe
,nf_flow_table_inet nf_flow_table_ipv4 nf_flow_table_ipv6 nft_flow_offload
)
1126 $(eval
$(call KernelPackage
,nft-offload
))
1129 define KernelPackage
/nft-nat6
1131 TITLE
:=Netfilter nf_tables IPv6-NAT support
1132 DEPENDS
:=+kmod-nft-nat
+kmod-nf-nat6
1133 FILES
:=$(foreach mod
,$(NFT_NAT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1134 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_NAT6-m
)))
1135 KCONFIG
:=$(KCONFIG_NFT_NAT6
)
1138 $(eval
$(call KernelPackage
,nft-nat6
))
1140 define KernelPackage
/nft-netdev
1142 TITLE
:=Netfilter nf_tables netdev support
1143 DEPENDS
:=+kmod-nft-core
1145 CONFIG_NETFILTER_INGRESS
=y \
1146 CONFIG_NF_TABLES_NETDEV \
1147 CONFIG_NF_DUP_NETDEV \
1148 CONFIG_NFT_DUP_NETDEV \
1149 CONFIG_NFT_FWD_NETDEV
1151 $(LINUX_DIR
)/net
/netfilter
/nf_dup_netdev.ko \
1152 $(LINUX_DIR
)/net
/netfilter
/nft_dup_netdev.ko \
1153 $(LINUX_DIR
)/net
/netfilter
/nft_fwd_netdev.ko
1154 AUTOLOAD
:=$(call AutoProbe
,nf_tables_netdev nf_dup_netdev nft_dup_netdev nft_fwd_netdev
)
1157 $(eval
$(call KernelPackage
,nft-netdev
))
1160 define KernelPackage
/nft-fib
1162 TITLE
:=Netfilter nf_tables fib support
1163 DEPENDS
:=+kmod-nft-core
1164 FILES
:=$(foreach mod
,$(NFT_FIB-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1165 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_FIB-m
)))
1166 KCONFIG
:=$(KCONFIG_NFT_FIB
)
1169 $(eval
$(call KernelPackage
,nft-fib
))