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
)))
60 DEPENDS
:=+kmod-nf-ipt
+kmod-nf-log6
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
+kmod-nf-log
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-log
126 TITLE
:=Netfilter Logging
127 KCONFIG
:=$(KCONFIG_NF_LOG
)
128 FILES
:=$(foreach mod
,$(NF_LOG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
129 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_LOG-m
)))
132 $(eval
$(call KernelPackage
,nf-log
))
135 define KernelPackage
/nf-log6
137 TITLE
:=Netfilter IPV6 Logging
138 KCONFIG
:=$(KCONFIG_NF_LOG6
)
139 DEPENDS
:=@IPV6
+kmod-nf-log
140 FILES
:=$(foreach mod
,$(NF_LOG6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
141 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_LOG6-m
)))
144 $(eval
$(call KernelPackage
,nf-log6
))
147 define KernelPackage
/nf-nat
150 KCONFIG
:=$(KCONFIG_NF_NAT
)
151 DEPENDS
:=+kmod-nf-conntrack
152 FILES
:=$(foreach mod
,$(NF_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
153 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NAT-m
)))
156 $(eval
$(call KernelPackage
,nf-nat
))
159 define KernelPackage
/nf-nat6
161 TITLE
:=Netfilter IPV6-NAT
162 KCONFIG
:=$(KCONFIG_NF_NAT6
)
163 DEPENDS
:=@IPV6
+kmod-nf-conntrack6
+kmod-nf-nat
164 FILES
:=$(foreach mod
,$(NF_NAT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
165 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NAT6-m
)))
168 $(eval
$(call KernelPackage
,nf-nat6
))
171 define KernelPackage
/nf-flow
173 TITLE
:=Netfilter flowtable support
175 CONFIG_NETFILTER_INGRESS
=y \
176 CONFIG_NF_FLOW_TABLE \
177 CONFIG_NF_FLOW_TABLE_HW
178 DEPENDS
:=+kmod-nf-conntrack
179 FILES
:= $(LINUX_DIR
)/net
/netfilter
/nf_flow_table.ko
180 AUTOLOAD
:=$(call AutoProbe
,nf_flow_table nf_flow_table_hw
)
183 $(eval
$(call KernelPackage
,nf-flow
))
186 define KernelPackage
/nf-socket
188 TITLE
:=Netfilter socket lookup support
189 KCONFIG
:= $(KCOFNIG_NF_SOCKET
)
190 FILES
:=$(foreach mod
,$(NF_SOCKET-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
191 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_SOCKET-m
)))
194 $(eval
$(call KernelPackage
,nf-socket
))
197 define KernelPackage
/nf-tproxy
199 TITLE
:=Netfilter tproxy support
200 KCONFIG
:= $(KCOFNIG_NF_TPROXY
)
201 FILES
:=$(foreach mod
,$(NF_TPROXY-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
202 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_TPROXY-m
)))
205 $(eval
$(call KernelPackage
,nf-tproxy
))
208 define AddDepends
/ipt
210 DEPENDS
+= +kmod-ipt-core
$(1)
214 define KernelPackage
/ipt-conntrack
215 TITLE
:=Basic connection tracking modules
216 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK
)
217 FILES
:=$(foreach mod
,$(IPT_CONNTRACK-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
218 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CONNTRACK-m
)))
219 $(call AddDepends
/ipt
,+kmod-nf-conntrack
)
222 define KernelPackage
/ipt-conntrack
/description
223 Netfilter
(IPv4
) kernel modules for connection tracking
232 $(eval
$(call KernelPackage
,ipt-conntrack
))
235 define KernelPackage
/ipt-conntrack-extra
236 TITLE
:=Extra connection tracking modules
237 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK_EXTRA
)
238 FILES
:=$(foreach mod
,$(IPT_CONNTRACK_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
239 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CONNTRACK_EXTRA-m
)))
240 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
)
243 define KernelPackage
/ipt-conntrack-extra
/description
244 Netfilter
(IPv4
) extra kernel modules for connection tracking
253 $(eval
$(call KernelPackage
,ipt-conntrack-extra
))
255 define KernelPackage
/ipt-conntrack-label
256 TITLE
:=Module for handling connection tracking labels
257 KCONFIG
:=$(KCONFIG_IPT_CONNTRACK_LABEL
)
258 FILES
:=$(foreach mod
,$(IPT_CONNTRACK_LABEL-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
259 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CONNTRACK_LABEL-m
)))
260 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
)
263 define KernelPackage
/ipt-conntrack-label
/description
264 Netfilter
(IPv4
) module for handling connection tracking labels
269 $(eval
$(call KernelPackage
,ipt-conntrack-label
))
271 define KernelPackage
/ipt-filter
272 TITLE
:=Modules for packet content inspection
273 KCONFIG
:=$(KCONFIG_IPT_FILTER
)
274 FILES
:=$(foreach mod
,$(IPT_FILTER-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
275 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_FILTER-m
)))
276 $(call AddDepends
/ipt
,+kmod-lib-textsearch
+kmod-ipt-conntrack
)
279 define KernelPackage
/ipt-filter
/description
280 Netfilter
(IPv4
) kernel modules for packet content inspection
286 $(eval
$(call KernelPackage
,ipt-filter
))
289 define KernelPackage
/ipt-offload
290 TITLE
:=Netfilter routing
/NAT offload support
291 KCONFIG
:=$(KCONFIG_IPT_FLOW
)
292 FILES
:=$(foreach mod
,$(IPT_FLOW-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
293 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_FLOW-m
)))
294 $(call AddDepends
/ipt
,+kmod-nf-flow
)
297 $(eval
$(call KernelPackage
,ipt-offload
))
300 define KernelPackage
/ipt-ipopt
301 TITLE
:=Modules for matching
/changing IP packet options
302 KCONFIG
:=$(KCONFIG_IPT_IPOPT
)
303 FILES
:=$(foreach mod
,$(IPT_IPOPT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
304 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_IPOPT-m
)))
305 $(call AddDepends
/ipt
)
308 define KernelPackage
/ipt-ipopt
/description
309 Netfilter
(IPv4
) modules for matching
/changing IP packet options
324 $(eval
$(call KernelPackage
,ipt-ipopt
))
327 define KernelPackage
/ipt-ipsec
328 TITLE
:=Modules for matching IPSec packets
329 KCONFIG
:=$(KCONFIG_IPT_IPSEC
)
330 FILES
:=$(foreach mod
,$(IPT_IPSEC-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
331 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_IPSEC-m
)))
332 $(call AddDepends
/ipt
)
335 define KernelPackage
/ipt-ipsec
/description
336 Netfilter
(IPv4
) modules for matching IPSec packets
343 $(eval
$(call KernelPackage
,ipt-ipsec
))
347 ipset
/ip_set_bitmap_ip \
348 ipset
/ip_set_bitmap_ipmac \
349 ipset
/ip_set_bitmap_port \
350 ipset
/ip_set_hash_ip \
351 ipset
/ip_set_hash_ipmac \
352 ipset
/ip_set_hash_ipmark \
353 ipset
/ip_set_hash_ipport \
354 ipset
/ip_set_hash_ipportip \
355 ipset
/ip_set_hash_ipportnet \
356 ipset
/ip_set_hash_mac \
357 ipset
/ip_set_hash_netportnet \
358 ipset
/ip_set_hash_net \
359 ipset
/ip_set_hash_netnet \
360 ipset
/ip_set_hash_netport \
361 ipset
/ip_set_hash_netiface \
362 ipset
/ip_set_list_set \
365 define KernelPackage
/ipt-ipset
366 SUBMENU
:=Netfilter Extensions
367 TITLE
:=IPset netfilter modules
368 DEPENDS
+= +kmod-ipt-core
+kmod-nfnetlink
371 CONFIG_IP_SET_MAX
=256 \
372 CONFIG_NETFILTER_XT_SET \
373 CONFIG_IP_SET_BITMAP_IP \
374 CONFIG_IP_SET_BITMAP_IPMAC \
375 CONFIG_IP_SET_BITMAP_PORT \
376 CONFIG_IP_SET_HASH_IP \
377 CONFIG_IP_SET_HASH_IPMAC \
378 CONFIG_IP_SET_HASH_IPMARK \
379 CONFIG_IP_SET_HASH_IPPORT \
380 CONFIG_IP_SET_HASH_IPPORTIP \
381 CONFIG_IP_SET_HASH_IPPORTNET \
382 CONFIG_IP_SET_HASH_MAC \
383 CONFIG_IP_SET_HASH_NET \
384 CONFIG_IP_SET_HASH_NETNET \
385 CONFIG_IP_SET_HASH_NETIFACE \
386 CONFIG_IP_SET_HASH_NETPORT \
387 CONFIG_IP_SET_HASH_NETPORTNET \
388 CONFIG_IP_SET_LIST_SET \
389 CONFIG_NET_EMATCH_IPSET
=n
390 FILES
:=$(foreach mod
,$(IPSET_MODULES
),$(LINUX_DIR
)/net
/netfilter
/$(mod
).ko
)
391 AUTOLOAD
:=$(call AutoLoad
,49,$(notdir $(IPSET_MODULES
)))
393 $(eval
$(call KernelPackage
,ipt-ipset
))
412 define KernelPackage
/nf-ipvs
413 SUBMENU
:=Netfilter Extensions
414 TITLE
:=IP Virtual Server modules
415 DEPENDS
:=@IPV6
+kmod-lib-crc32c
+kmod-ipt-conntrack
+kmod-nf-conntrack
418 CONFIG_IP_VS_IPV6
=y \
419 CONFIG_IP_VS_DEBUG
=n \
420 CONFIG_IP_VS_PROTO_TCP
=y \
421 CONFIG_IP_VS_PROTO_UDP
=y \
422 CONFIG_IP_VS_PROTO_AH_ESP
=y \
423 CONFIG_IP_VS_PROTO_ESP
=y \
424 CONFIG_IP_VS_PROTO_AH
=y \
425 CONFIG_IP_VS_PROTO_SCTP
=y \
426 CONFIG_IP_VS_TAB_BITS
=12 \
439 CONFIG_IP_VS_SH_TAB_BITS
=8 \
440 CONFIG_IP_VS_NFCT
=y \
441 CONFIG_NETFILTER_XT_MATCH_IPVS
442 FILES
:=$(foreach mod
,$(IPVS_MODULES
),$(LINUX_DIR
)/net
/netfilter
/$(mod
).ko
)
443 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
,+kmod-nf-conntrack
)
446 define KernelPackage
/nf-ipvs
/description
447 IPVS
(IP Virtual Server
) implements transport-layer load balancing inside
448 the Linux kernel so called Layer-4 switching.
451 $(eval
$(call KernelPackage
,nf-ipvs
))
454 define KernelPackage
/nf-ipvs-ftp
456 TITLE
:=Virtual Server FTP protocol support
457 KCONFIG
:=CONFIG_IP_VS_FTP
458 DEPENDS
:=kmod-nf-ipvs
+kmod-nf-nat
+kmod-nf-nathelper
459 FILES
:=$(LINUX_DIR
)/net
/netfilter
/ipvs
/ip_vs_ftp.ko
462 define KernelPackage
/nf-ipvs-ftp
/description
463 In the virtual server via Network Address Translation
,
464 the IP address and port number of real servers cannot be sent to
465 clients in ftp connections directly
, so FTP protocol helper is
466 required for tracking the connection and mangling it back to that of
470 $(eval
$(call KernelPackage
,nf-ipvs-ftp
))
473 define KernelPackage
/nf-ipvs-sip
475 TITLE
:=Virtual Server SIP protocol support
476 KCONFIG
:=CONFIG_IP_VS_PE_SIP
477 DEPENDS
:=kmod-nf-ipvs
+kmod-nf-nathelper-extra
478 FILES
:=$(LINUX_DIR
)/net
/netfilter
/ipvs
/ip_vs_pe_sip.ko
481 define KernelPackage
/nf-ipvs-sip
/description
482 Allow persistence based on the SIP Call-ID
485 $(eval
$(call KernelPackage
,nf-ipvs-sip
))
488 define KernelPackage
/ipt-nat
489 TITLE
:=Basic NAT targets
490 KCONFIG
:=$(KCONFIG_IPT_NAT
)
491 FILES
:=$(foreach mod
,$(IPT_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
492 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NAT-m
)))
493 $(call AddDepends
/ipt
,+kmod-nf-nat
)
496 define KernelPackage
/ipt-nat
/description
497 Netfilter
(IPv4
) kernel modules for basic NAT targets
502 $(eval
$(call KernelPackage
,ipt-nat
))
505 define KernelPackage
/ipt-raw
506 TITLE
:=Netfilter IPv4 raw table support
507 KCONFIG
:=CONFIG_IP_NF_RAW
508 FILES
:=$(LINUX_DIR
)/net
/ipv4
/netfilter
/iptable_raw.ko
509 AUTOLOAD
:=$(call AutoProbe
,iptable_raw
)
510 $(call AddDepends
/ipt
)
513 $(eval
$(call KernelPackage
,ipt-raw
))
516 define KernelPackage
/ipt-raw6
517 TITLE
:=Netfilter IPv6 raw table support
519 KCONFIG
:=CONFIG_IP6_NF_RAW
520 FILES
:=$(LINUX_DIR
)/net
/ipv6
/netfilter
/ip6table_raw.ko
521 AUTOLOAD
:=$(call AutoProbe
,ip6table_raw
)
522 $(call AddDepends
/ipt
,+kmod-ip6tables
)
525 $(eval
$(call KernelPackage
,ipt-raw6
))
528 define KernelPackage
/ipt-nat6
529 TITLE
:=IPv6 NAT targets
531 KCONFIG
:=$(KCONFIG_IPT_NAT6
)
532 FILES
:=$(foreach mod
,$(IPT_NAT6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
533 AUTOLOAD
:=$(call AutoLoad
,43,$(notdir $(IPT_NAT6-m
)))
534 $(call AddDepends
/ipt
,+kmod-nf-nat6
)
535 $(call AddDepends
/ipt
,+kmod-ipt-conntrack
)
536 $(call AddDepends
/ipt
,+kmod-ipt-nat
)
537 $(call AddDepends
/ipt
,+kmod-ip6tables
)
540 define KernelPackage
/ipt-nat6
/description
541 Netfilter
(IPv6
) kernel modules for NAT targets
544 $(eval
$(call KernelPackage
,ipt-nat6
))
547 define KernelPackage
/ipt-nat-extra
548 TITLE
:=Extra NAT targets
549 KCONFIG
:=$(KCONFIG_IPT_NAT_EXTRA
)
550 FILES
:=$(foreach mod
,$(IPT_NAT_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
551 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NAT_EXTRA-m
)))
552 $(call AddDepends
/ipt
,+kmod-ipt-nat
)
555 define KernelPackage
/ipt-nat-extra
/description
556 Netfilter
(IPv4
) kernel modules for extra NAT targets
562 $(eval
$(call KernelPackage
,ipt-nat-extra
))
565 define KernelPackage
/nf-nathelper
567 TITLE
:=Basic Conntrack and NAT helpers
568 KCONFIG
:=$(KCONFIG_NF_NATHELPER
)
569 FILES
:=$(foreach mod
,$(NF_NATHELPER-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
570 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NATHELPER-m
)))
571 DEPENDS
:=+kmod-nf-nat
574 define KernelPackage
/nf-nathelper
/description
575 Default Netfilter
(IPv4
) Conntrack and NAT helpers
580 $(eval
$(call KernelPackage
,nf-nathelper
))
583 define KernelPackage
/nf-nathelper-extra
585 TITLE
:=Extra Conntrack and NAT helpers
586 KCONFIG
:=$(KCONFIG_NF_NATHELPER_EXTRA
)
587 FILES
:=$(foreach mod
,$(NF_NATHELPER_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
588 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NF_NATHELPER_EXTRA-m
)))
589 DEPENDS
:=+kmod-nf-nat
+kmod-lib-textsearch
+kmod-asn1-decoder
592 define KernelPackage
/nf-nathelper-extra
/description
593 Extra Netfilter
(IPv4
) Conntrack and NAT helpers
607 $(eval
$(call KernelPackage
,nf-nathelper-extra
))
610 define KernelPackage
/ipt-nflog
611 TITLE
:=Module for user-space packet logging
612 KCONFIG
:=$(KCONFIG_IPT_NFLOG
)
613 FILES
:=$(foreach mod
,$(IPT_NFLOG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
614 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NFLOG-m
)))
615 $(call AddDepends
/ipt
,+kmod-nfnetlink-log
)
618 define KernelPackage
/ipt-nflog
/description
619 Netfilter module for user-space packet logging
624 $(eval
$(call KernelPackage
,ipt-nflog
))
627 define KernelPackage
/ipt-nfqueue
628 TITLE
:=Module for user-space packet queuing
629 KCONFIG
:=$(KCONFIG_IPT_NFQUEUE
)
630 FILES
:=$(foreach mod
,$(IPT_NFQUEUE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
631 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_NFQUEUE-m
)))
632 $(call AddDepends
/ipt
,+kmod-nfnetlink-queue
)
635 define KernelPackage
/ipt-nfqueue
/description
636 Netfilter module for user-space packet queuing
641 $(eval
$(call KernelPackage
,ipt-nfqueue
))
644 define KernelPackage
/ipt-debug
645 TITLE
:=Module for debugging
/development
646 KCONFIG
:=$(KCONFIG_IPT_DEBUG
)
647 FILES
:=$(foreach mod
,$(IPT_DEBUG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
648 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_DEBUG-m
)))
649 $(call AddDepends
/ipt
,+kmod-ipt-raw
+IPV6
:kmod-ipt-raw6
)
652 define KernelPackage
/ipt-debug
/description
653 Netfilter modules for debugging
/development of the firewall
658 $(eval
$(call KernelPackage
,ipt-debug
))
661 define KernelPackage
/ipt-led
662 TITLE
:=Module to trigger a LED with a Netfilter rule
663 KCONFIG
:=$(KCONFIG_IPT_LED
)
664 FILES
:=$(foreach mod
,$(IPT_LED-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
665 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_LED-m
)))
666 $(call AddDepends
/ipt
)
669 define KernelPackage
/ipt-led
/description
670 Netfilter target to trigger a LED when a network packet is matched.
673 $(eval
$(call KernelPackage
,ipt-led
))
675 define KernelPackage
/ipt-socket
676 TITLE
:=Iptables socket matching support
677 DEPENDS
+=+kmod-nf-socket
+kmod-nf-conntrack
678 KCONFIG
:=$(KCONFIG_IPT_SOCKET
)
679 FILES
:=$(foreach mod
,$(IPT_SOCKET-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
680 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_SOCKET-m
)))
681 $(call AddDepends
/ipt
)
684 define KernelPackage
/ipt-socket
/description
685 Kernel modules for socket matching
688 $(eval
$(call KernelPackage
,ipt-socket
))
690 define KernelPackage
/ipt-tproxy
691 TITLE
:=Transparent proxying support
692 DEPENDS
+=+kmod-nf-tproxy
+kmod-nf-conntrack
693 KCONFIG
:=$(KCONFIG_IPT_TPROXY
)
694 FILES
:=$(foreach mod
,$(IPT_TPROXY-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
695 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_TPROXY-m
)))
696 $(call AddDepends
/ipt
)
699 define KernelPackage
/ipt-tproxy
/description
700 Kernel modules for Transparent Proxying
703 $(eval
$(call KernelPackage
,ipt-tproxy
))
705 define KernelPackage
/ipt-tee
707 DEPENDS
:=+kmod-ipt-conntrack
708 KCONFIG
:=$(KCONFIG_IPT_TEE
)
709 FILES
:=$(foreach mod
,$(IPT_TEE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
710 AUTOLOAD
:=$(call AutoProbe
,$(notdir nf_tee
$(IPT_TEE-m
)))
711 $(call AddDepends
/ipt
)
714 define KernelPackage
/ipt-tee
/description
715 Kernel modules for TEE
718 $(eval
$(call KernelPackage
,ipt-tee
))
721 define KernelPackage
/ipt-u32
723 KCONFIG
:=$(KCONFIG_IPT_U32
)
724 FILES
:=$(foreach mod
,$(IPT_U32-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
725 AUTOLOAD
:=$(call AutoProbe
,$(notdir nf_tee
$(IPT_U32-m
)))
726 $(call AddDepends
/ipt
)
729 define KernelPackage
/ipt-u32
/description
730 Kernel modules for U32
733 $(eval
$(call KernelPackage
,ipt-u32
))
735 define KernelPackage
/ipt-checksum
736 TITLE
:=CHECKSUM support
737 KCONFIG
:=$(KCONFIG_IPT_CHECKSUM
)
738 FILES
:=$(foreach mod
,$(IPT_CHECKSUM-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
739 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CHECKSUM-m
)))
740 $(call AddDepends
/ipt
)
743 define KernelPackage
/ipt-checksum
/description
744 Kernel modules for CHECKSUM fillin target
747 $(eval
$(call KernelPackage
,ipt-checksum
))
750 define KernelPackage
/ipt-iprange
751 TITLE
:=Module for matching ip ranges
752 KCONFIG
:=$(KCONFIG_IPT_IPRANGE
)
753 FILES
:=$(foreach mod
,$(IPT_IPRANGE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
754 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_IPRANGE-m
)))
755 $(call AddDepends
/ipt
)
758 define KernelPackage
/ipt-iprange
/description
759 Netfilter
(IPv4
) module for matching ip ranges
764 $(eval
$(call KernelPackage
,ipt-iprange
))
766 define KernelPackage
/ipt-cluster
767 TITLE
:=Module for matching cluster
768 KCONFIG
:=$(KCONFIG_IPT_CLUSTER
)
769 FILES
:=$(foreach mod
,$(IPT_CLUSTER-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
770 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CLUSTER-m
)))
771 $(call AddDepends
/ipt
,+kmod-nf-conntrack
)
774 define KernelPackage
/ipt-cluster
/description
775 Netfilter
(IPv4
/IPv6
) module for matching cluster
776 This option allows you to build work-load-sharing clusters of
777 network servers
/stateful firewalls without having a dedicated
778 load-balancing router
/server
/switch. Basically
, this match returns
779 true when the packet must be handled by this cluster node. Thus
,
780 all nodes see
all packets and this match decides which node handles
781 what packets. The work-load sharing algorithm is based on source
784 This module is usable for ipv4 and ipv6.
786 To use it also enable iptables-mod-cluster
788 see
`iptables -m cluster --help` for more information.
791 $(eval
$(call KernelPackage
,ipt-cluster
))
793 define KernelPackage
/ipt-clusterip
794 TITLE
:=Module for CLUSTERIP
795 KCONFIG
:=$(KCONFIG_IPT_CLUSTERIP
)
796 FILES
:=$(foreach mod
,$(IPT_CLUSTERIP-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
797 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_CLUSTERIP-m
)))
798 $(call AddDepends
/ipt
,+kmod-nf-conntrack
)
801 define KernelPackage
/ipt-clusterip
/description
802 Netfilter
(IPv4-only
) module for CLUSTERIP
803 The CLUSTERIP target allows you to build load-balancing clusters of
804 network servers without having a dedicated load-balancing
805 router
/server
/switch.
807 To use it also enable iptables-mod-clusterip
809 see
`iptables -j CLUSTERIP --help` for more information.
812 $(eval
$(call KernelPackage
,ipt-clusterip
))
815 define KernelPackage
/ipt-extra
817 KCONFIG
:=$(KCONFIG_IPT_EXTRA
)
818 FILES
:=$(foreach mod
,$(IPT_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
819 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_EXTRA-m
)))
820 $(call AddDepends
/ipt
)
823 define KernelPackage
/ipt-extra
/description
824 Other Netfilter
(IPv4
) kernel modules
832 $(eval
$(call KernelPackage
,ipt-extra
))
835 define KernelPackage
/ipt-physdev
836 TITLE
:=physdev module
837 KCONFIG
:=$(KCONFIG_IPT_PHYSDEV
)
838 FILES
:=$(foreach mod
,$(IPT_PHYSDEV-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
839 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(IPT_PHYSDEV-m
)))
840 $(call AddDepends
/ipt
,+kmod-br-netfilter
)
843 define KernelPackage
/ipt-physdev
/description
844 The iptables physdev kernel module
847 $(eval
$(call KernelPackage
,ipt-physdev
))
850 define KernelPackage
/ip6tables
853 DEPENDS
:=@IPV6
+kmod-nf-reject6
+kmod-nf-ipt6
+kmod-ipt-core
854 KCONFIG
:=$(KCONFIG_IPT_IPV6
)
855 FILES
:=$(foreach mod
,$(IPT_IPV6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
856 AUTOLOAD
:=$(call AutoLoad
,42,$(notdir $(IPT_IPV6-m
)))
859 define KernelPackage
/ip6tables
/description
860 Netfilter IPv6 firewalling support
863 $(eval
$(call KernelPackage
,ip6tables
))
865 define KernelPackage
/ip6tables-extra
867 TITLE
:=Extra IPv6 modules
868 DEPENDS
:=@IPV6
+kmod-ip6tables
869 KCONFIG
:=$(KCONFIG_IPT_IPV6_EXTRA
)
870 FILES
:=$(foreach mod
,$(IPT_IPV6_EXTRA-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
871 AUTOLOAD
:=$(call AutoLoad
,43,$(notdir $(IPT_IPV6_EXTRA-m
)))
874 define KernelPackage
/ip6tables-extra
/description
875 Netfilter IPv6 extra header matching modules
878 $(eval
$(call KernelPackage
,ip6tables-extra
))
880 ARP_MODULES
= arp_tables arpt_mangle arptable_filter
881 define KernelPackage
/arptables
883 TITLE
:=ARP firewalling modules
884 DEPENDS
:=+kmod-ipt-core
885 FILES
:=$(LINUX_DIR
)/net
/ipv4
/netfilter
/arp
*.ko
886 KCONFIG
:=CONFIG_IP_NF_ARPTABLES \
887 CONFIG_IP_NF_ARPFILTER \
888 CONFIG_IP_NF_ARP_MANGLE
889 AUTOLOAD
:=$(call AutoProbe
,$(ARP_MODULES
))
892 define KernelPackage
/arptables
/description
893 Kernel modules for ARP firewalling
896 $(eval
$(call KernelPackage
,arptables
))
899 define KernelPackage
/br-netfilter
901 TITLE
:=Bridge netfilter support modules
902 DEPENDS
:=+kmod-ipt-core
903 FILES
:=$(LINUX_DIR
)/net
/bridge
/br_netfilter.ko
904 KCONFIG
:=CONFIG_BRIDGE_NETFILTER
905 AUTOLOAD
:=$(call AutoProbe
,br_netfilter
)
908 define KernelPackage
/br-netfilter
/install
909 $(INSTALL_DIR
) $(1)/etc
/sysctl.d
910 $(INSTALL_DATA
) .
/files
/sysctl-br-netfilter.conf
$(1)/etc
/sysctl.d
/11-br-netfilter.conf
913 $(eval
$(call KernelPackage
,br-netfilter
))
916 define KernelPackage
/ebtables
918 TITLE
:=Bridge firewalling modules
919 DEPENDS
:=+kmod-ipt-core
920 FILES
:=$(foreach mod
,$(EBTABLES-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
921 KCONFIG
:=$(KCONFIG_EBTABLES
)
922 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES-m
)))
925 define KernelPackage
/ebtables
/description
926 ebtables is a general
, extensible frame
/packet identification
927 framework. It provides you to do Ethernet
928 filtering
/NAT
/brouting on the Ethernet bridge.
931 $(eval
$(call KernelPackage
,ebtables
))
934 define AddDepends
/ebtables
936 DEPENDS
+= +kmod-ebtables
$(1)
940 define KernelPackage
/ebtables-ipv4
941 TITLE
:=ebtables
: IPv4 support
942 FILES
:=$(foreach mod
,$(EBTABLES_IP4-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
943 KCONFIG
:=$(KCONFIG_EBTABLES_IP4
)
944 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES_IP4-m
)))
945 $(call AddDepends
/ebtables
)
948 define KernelPackage
/ebtables-ipv4
/description
949 This option adds the IPv4 support to ebtables
, which allows basic
950 IPv4 header field filtering
, ARP filtering
as well
as SNAT
, DNAT targets.
953 $(eval
$(call KernelPackage
,ebtables-ipv4
))
956 define KernelPackage
/ebtables-ipv6
957 TITLE
:=ebtables
: IPv6 support
959 FILES
:=$(foreach mod
,$(EBTABLES_IP6-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
960 KCONFIG
:=$(KCONFIG_EBTABLES_IP6
)
961 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES_IP6-m
)))
962 $(call AddDepends
/ebtables
)
965 define KernelPackage
/ebtables-ipv6
/description
966 This option adds the IPv6 support to ebtables
, which allows basic
967 IPv6 header field filtering and target support.
970 $(eval
$(call KernelPackage
,ebtables-ipv6
))
973 define KernelPackage
/ebtables-watchers
974 TITLE
:=ebtables
: watchers support
975 FILES
:=$(foreach mod
,$(EBTABLES_WATCHERS-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
976 KCONFIG
:=$(KCONFIG_EBTABLES_WATCHERS
)
977 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(EBTABLES_WATCHERS-m
)))
978 $(call AddDepends
/ebtables
)
981 define KernelPackage
/ebtables-watchers
/description
982 This option adds the log watchers
, that you can use in any rule
983 in any ebtables table.
986 $(eval
$(call KernelPackage
,ebtables-watchers
))
989 define KernelPackage
/nfnetlink
991 TITLE
:=Netlink-based userspace interface
992 FILES
:=$(foreach mod
,$(NFNETLINK-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
993 KCONFIG
:=$(KCONFIG_NFNETLINK
)
994 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFNETLINK-m
)))
997 define KernelPackage
/nfnetlink
/description
998 Kernel modules support for a netlink-based userspace interface
1001 $(eval
$(call KernelPackage
,nfnetlink
))
1004 define AddDepends
/nfnetlink
1006 DEPENDS
+=+kmod-nfnetlink
$(1)
1010 define KernelPackage
/nfnetlink-log
1011 TITLE
:=Netfilter LOG over NFNETLINK interface
1012 FILES
:=$(foreach mod
,$(NFNETLINK_LOG-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1013 KCONFIG
:=$(KCONFIG_NFNETLINK_LOG
)
1014 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFNETLINK_LOG-m
)))
1015 $(call AddDepends
/nfnetlink
)
1018 define KernelPackage
/nfnetlink-log
/description
1019 Kernel modules support for logging packets via NFNETLINK
1024 $(eval
$(call KernelPackage
,nfnetlink-log
))
1027 define KernelPackage
/nfnetlink-queue
1028 TITLE
:=Netfilter QUEUE over NFNETLINK interface
1029 FILES
:=$(foreach mod
,$(NFNETLINK_QUEUE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1030 KCONFIG
:=$(KCONFIG_NFNETLINK_QUEUE
)
1031 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFNETLINK_QUEUE-m
)))
1032 $(call AddDepends
/nfnetlink
)
1035 define KernelPackage
/nfnetlink-queue
/description
1036 Kernel modules support for queueing packets via NFNETLINK
1041 $(eval
$(call KernelPackage
,nfnetlink-queue
))
1044 define KernelPackage
/nf-conntrack-netlink
1045 TITLE
:=Connection tracking netlink interface
1046 FILES
:=$(LINUX_DIR
)/net
/netfilter
/nf_conntrack_netlink.ko
1047 KCONFIG
:=CONFIG_NF_CT_NETLINK CONFIG_NF_CONNTRACK_EVENTS
=y CONFIG_NETFILTER_NETLINK_GLUE_CT
=y
1048 AUTOLOAD
:=$(call AutoProbe
,nf_conntrack_netlink
)
1049 $(call AddDepends
/nfnetlink
,+kmod-nf-conntrack
)
1052 define KernelPackage
/nf-conntrack-netlink
/description
1053 Kernel modules support for a netlink-based connection tracking
1057 $(eval
$(call KernelPackage
,nf-conntrack-netlink
))
1059 define KernelPackage
/ipt-hashlimit
1061 TITLE
:=Netfilter hashlimit match
1062 DEPENDS
:=+kmod-ipt-core
1063 KCONFIG
:=$(KCONFIG_IPT_HASHLIMIT
)
1064 FILES
:=$(LINUX_DIR
)/net
/netfilter
/xt_hashlimit.ko
1065 AUTOLOAD
:=$(call AutoProbe
,xt_hashlimit
)
1066 $(call KernelPackage
/ipt
)
1069 define KernelPackage
/ipt-hashlimit
/description
1070 Kernel modules support for the hashlimit bucket match module
1073 $(eval
$(call KernelPackage
,ipt-hashlimit
))
1075 define KernelPackage
/ipt-rpfilter
1077 TITLE
:=Netfilter rpfilter match
1078 DEPENDS
:=+kmod-ipt-core
1079 KCONFIG
:=$(KCONFIG_IPT_RPFILTER
)
1081 $(LINUX_DIR
)/net
/ipv4
/netfilter
/ipt_rpfilter.ko \
1082 $(LINUX_DIR
)/net
/ipv6
/netfilter
/ip6t_rpfilter.ko
)
1083 AUTOLOAD
:=$(call AutoProbe
,ipt_rpfilter ip6t_rpfilter
)
1084 $(call KernelPackage
/ipt
)
1087 define KernelPackage
/ipt-rpfilter
/description
1088 Kernel modules support for the Netfilter rpfilter match
1091 $(eval
$(call KernelPackage
,ipt-rpfilter
))
1094 define KernelPackage
/nft-core
1096 TITLE
:=Netfilter nf_tables support
1097 DEPENDS
:=+kmod-nfnetlink
+kmod-nf-reject
+IPV6
:kmod-nf-reject6
+IPV6
:kmod-nf-conntrack6
+kmod-nf-nat
+kmod-nf-log
+IPV6
:kmod-nf-log6
+kmod-lib-crc32c
1098 FILES
:=$(foreach mod
,$(NFT_CORE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1099 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_CORE-m
)))
1101 CONFIG_NFT_COMPAT
=n \
1102 CONFIG_NFT_QUEUE
=n \
1106 define KernelPackage
/nft-core
/description
1107 Kernel module support for nftables
1110 $(eval
$(call KernelPackage
,nft-core
))
1113 define KernelPackage
/nft-arp
1115 TITLE
:=Netfilter nf_tables ARP table support
1116 DEPENDS
:=+kmod-nft-core
1117 FILES
:=$(foreach mod
,$(NFT_ARP-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1118 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_ARP-m
)))
1119 KCONFIG
:=$(KCONFIG_NFT_ARP
)
1122 $(eval
$(call KernelPackage
,nft-arp
))
1125 define KernelPackage
/nft-bridge
1127 TITLE
:=Netfilter nf_tables bridge table support
1128 DEPENDS
:=+kmod-nft-core
1129 FILES
:=$(foreach mod
,$(NFT_BRIDGE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1130 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_BRIDGE-m
)))
1132 CONFIG_NF_LOG_BRIDGE
=n@lt5.13 \
1133 $(KCONFIG_NFT_BRIDGE
)
1136 $(eval
$(call KernelPackage
,nft-bridge
))
1139 define KernelPackage
/nft-nat
1141 TITLE
:=Netfilter nf_tables NAT support
1142 DEPENDS
:=+kmod-nft-core
+kmod-nf-nat
1143 FILES
:=$(foreach mod
,$(NFT_NAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1144 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_NAT-m
)))
1145 KCONFIG
:=$(KCONFIG_NFT_NAT
)
1148 $(eval
$(call KernelPackage
,nft-nat
))
1151 define KernelPackage
/nft-offload
1153 TITLE
:=Netfilter nf_tables routing
/NAT offload support
1154 DEPENDS
:=@IPV6
+kmod-nf-flow
+kmod-nft-nat
1156 CONFIG_NF_FLOW_TABLE_INET \
1157 CONFIG_NF_FLOW_TABLE_IPV4 \
1158 CONFIG_NF_FLOW_TABLE_IPV6 \
1159 CONFIG_NFT_FLOW_OFFLOAD
1161 $(LINUX_DIR
)/net
/netfilter
/nf_flow_table_inet.ko \
1162 $(LINUX_DIR
)/net
/ipv4
/netfilter
/nf_flow_table_ipv4.ko \
1163 $(LINUX_DIR
)/net
/ipv6
/netfilter
/nf_flow_table_ipv6.ko \
1164 $(LINUX_DIR
)/net
/netfilter
/nft_flow_offload.ko
1165 AUTOLOAD
:=$(call AutoProbe
,nf_flow_table_inet nf_flow_table_ipv4 nf_flow_table_ipv6 nft_flow_offload
)
1168 $(eval
$(call KernelPackage
,nft-offload
))
1171 define KernelPackage
/nft-netdev
1173 TITLE
:=Netfilter nf_tables netdev support
1174 DEPENDS
:=+kmod-nft-core
1176 CONFIG_NETFILTER_INGRESS
=y \
1177 CONFIG_NF_TABLES_NETDEV \
1178 CONFIG_NF_DUP_NETDEV \
1179 CONFIG_NFT_DUP_NETDEV \
1180 CONFIG_NFT_FWD_NETDEV
1182 $(LINUX_DIR
)/net
/netfilter
/nf_dup_netdev.ko \
1183 $(LINUX_DIR
)/net
/netfilter
/nft_dup_netdev.ko \
1184 $(LINUX_DIR
)/net
/netfilter
/nft_fwd_netdev.ko
1185 AUTOLOAD
:=$(call AutoProbe
,nf_tables_netdev nf_dup_netdev nft_dup_netdev nft_fwd_netdev
)
1188 $(eval
$(call KernelPackage
,nft-netdev
))
1191 define KernelPackage
/nft-fib
1193 TITLE
:=Netfilter nf_tables fib support
1194 DEPENDS
:=+kmod-nft-core
1195 FILES
:=$(foreach mod
,$(NFT_FIB-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1196 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_FIB-m
)))
1197 KCONFIG
:=$(KCONFIG_NFT_FIB
)
1200 $(eval
$(call KernelPackage
,nft-fib
))
1203 define KernelPackage
/nft-queue
1205 TITLE
:=Netfilter nf_tables queue support
1206 DEPENDS
:=+kmod-nft-core
+kmod-nfnetlink-queue
1207 FILES
:=$(foreach mod
,$(NFT_QUEUE-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1208 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_QUEUE-m
)))
1209 KCONFIG
:=$(KCONFIG_NFT_QUEUE
)
1212 $(eval
$(call KernelPackage
,nft-queue
))
1214 define KernelPackage
/nft-socket
1216 TITLE
:=Netfilter nf_tables socket support
1217 DEPENDS
:=+kmod-nft-core
+kmod-nf-socket
1218 FILES
:=$(foreach mod
,$(NFT_SOCKET-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1219 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_SOCKET-m
)))
1220 KCONFIG
:=$(KCONFIG_NFT_SOCKET
)
1223 $(eval
$(call KernelPackage
,nft-socket
))
1225 define KernelPackage
/nft-tproxy
1227 TITLE
:=Netfilter nf_tables tproxy support
1228 DEPENDS
:=+kmod-nft-core
+kmod-nf-tproxy
+kmod-nf-conntrack
1229 FILES
:=$(foreach mod
,$(NFT_TPROXY-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1230 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_TPROXY-m
)))
1231 KCONFIG
:=$(KCONFIG_NFT_TPROXY
)
1234 $(eval
$(call KernelPackage
,nft-tproxy
))
1236 define KernelPackage
/nft-compat
1238 TITLE
:=Netfilter nf_tables compat support
1239 DEPENDS
:=+kmod-nft-core
+kmod-nf-ipt
1240 FILES
:=$(foreach mod
,$(NFT_COMPAT-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1241 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_COMPAT-m
)))
1242 KCONFIG
:=$(KCONFIG_NFT_COMPAT
)
1245 $(eval
$(call KernelPackage
,nft-compat
))
1247 define KernelPackage
/nft-xfrm
1249 TITLE
:=Netfilter nf_tables xfrm support
(ipsec
)
1250 DEPENDS
:=+kmod-nft-core
1251 FILES
:=$(foreach mod
,$(NFT_XFRM-m
),$(LINUX_DIR
)/net
/$(mod
).ko
)
1252 AUTOLOAD
:=$(call AutoProbe
,$(notdir $(NFT_XFRM-m
)))
1253 KCONFIG
:=$(KCONFIG_NFT_XFRM
)
1256 $(eval
$(call KernelPackage
,nft-xfrm
))