xref: /linux-6.15/net/ipv4/netfilter/Kconfig (revision 6c959fd5)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# IP netfilter configuration
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
61da177e4SLinus Torvaldsmenu "IP: Netfilter Configuration"
71da177e4SLinus Torvalds	depends on INET && NETFILTER
81da177e4SLinus Torvalds
973e4022fSKOVACS Krisztianconfig NF_DEFRAG_IPV4
1073e4022fSKOVACS Krisztian	tristate
1173e4022fSKOVACS Krisztian	default n
1273e4022fSKOVACS Krisztian
13a9525c7fSFlorian Westphal# old sockopt interface and eval loop
14a9525c7fSFlorian Westphalconfig IP_NF_IPTABLES_LEGACY
15*6c959fd5SBreno Leitao	tristate "Legacy IP tables support"
16*6c959fd5SBreno Leitao	default	n
17*6c959fd5SBreno Leitao	select NETFILTER_XTABLES
18*6c959fd5SBreno Leitao	help
19*6c959fd5SBreno Leitao	  iptables is a legacy packet classifier.
20*6c959fd5SBreno Leitao	  This is not needed if you are using iptables over nftables
21*6c959fd5SBreno Leitao	  (iptables-nft).
22a9525c7fSFlorian Westphal
238db4c5beSPablo Neira Ayusoconfig NF_SOCKET_IPV4
248db4c5beSPablo Neira Ayuso	tristate "IPv4 socket lookup support"
258db4c5beSPablo Neira Ayuso	help
268db4c5beSPablo Neira Ayuso	  This option enables the IPv4 socket lookup infrastructure. This is
2745ca4e0cSMáté Eckl	  is required by the {ip,nf}tables socket match.
2845ca4e0cSMáté Eckl
2945ca4e0cSMáté Ecklconfig NF_TPROXY_IPV4
3045ca4e0cSMáté Eckl	tristate "IPv4 tproxy support"
318db4c5beSPablo Neira Ayuso
32f04e599eSPablo Neira Ayusoif NF_TABLES
33f04e599eSPablo Neira Ayuso
34f04e599eSPablo Neira Ayusoconfig NF_TABLES_IPV4
3502c7b25eSPablo Neira Ayuso	bool "IPv4 nf_tables support"
36f04e599eSPablo Neira Ayuso	help
37f04e599eSPablo Neira Ayuso	  This option enables the IPv4 support for nf_tables.
38f04e599eSPablo Neira Ayuso
39f04e599eSPablo Neira Ayusoif NF_TABLES_IPV4
40f04e599eSPablo Neira Ayuso
41f04e599eSPablo Neira Ayusoconfig NFT_REJECT_IPV4
42f04e599eSPablo Neira Ayuso	select NF_REJECT_IPV4
43f04e599eSPablo Neira Ayuso	default NFT_REJECT
44f04e599eSPablo Neira Ayuso	tristate
45f04e599eSPablo Neira Ayuso
46d877f071SPablo Neira Ayusoconfig NFT_DUP_IPV4
47d877f071SPablo Neira Ayuso	tristate "IPv4 nf_tables packet duplication support"
48d3340b79SPablo Neira Ayuso	depends on !NF_CONNTRACK || NF_CONNTRACK
49d877f071SPablo Neira Ayuso	select NF_DUP_IPV4
50d877f071SPablo Neira Ayuso	help
51d877f071SPablo Neira Ayuso	  This module enables IPv4 packet duplication support for nf_tables.
52d877f071SPablo Neira Ayuso
53f6d0cbcfSFlorian Westphalconfig NFT_FIB_IPV4
54f6d0cbcfSFlorian Westphal	select NFT_FIB
55f6d0cbcfSFlorian Westphal	tristate "nf_tables fib / ip route lookup support"
56f6d0cbcfSFlorian Westphal	help
57f6d0cbcfSFlorian Westphal	  This module enables IPv4 FIB lookups, e.g. for reverse path filtering.
58f6d0cbcfSFlorian Westphal	  It also allows query of the FIB for the route type, e.g. local, unicast,
59f6d0cbcfSFlorian Westphal	  multicast or blackhole.
60f6d0cbcfSFlorian Westphal
61f04e599eSPablo Neira Ayusoendif # NF_TABLES_IPV4
62f04e599eSPablo Neira Ayuso
63f04e599eSPablo Neira Ayusoconfig NF_TABLES_ARP
6402c7b25eSPablo Neira Ayuso	bool "ARP nf_tables support"
652a95183aSFlorian Westphal	select NETFILTER_FAMILY_ARP
66f04e599eSPablo Neira Ayuso	help
67f04e599eSPablo Neira Ayuso	  This option enables the ARP support for nf_tables.
68f04e599eSPablo Neira Ayuso
69f04e599eSPablo Neira Ayusoendif # NF_TABLES
70f04e599eSPablo Neira Ayuso
71bbde9fc1SPablo Neira Ayusoconfig NF_DUP_IPV4
72bbde9fc1SPablo Neira Ayuso	tristate "Netfilter IPv4 packet duplication to alternate destination"
736ece90f9SPablo Neira Ayuso	depends on !NF_CONNTRACK || NF_CONNTRACK
74bbde9fc1SPablo Neira Ayuso	help
75bbde9fc1SPablo Neira Ayuso	  This option enables the nf_dup_ipv4 core, which duplicates an IPv4
76bbde9fc1SPablo Neira Ayuso	  packet to be rerouted to another destination.
77bbde9fc1SPablo Neira Ayuso
78c1878869SPablo Neira Ayusoconfig NF_LOG_ARP
79c1878869SPablo Neira Ayuso	tristate "ARP packet logging"
80c1878869SPablo Neira Ayuso	default m if NETFILTER_ADVANCED=n
81f11d61e7SFlorian Westphal	select NF_LOG_SYSLOG
82f11d61e7SFlorian Westphal	help
83f11d61e7SFlorian Westphal	This is a backwards-compat option for the user's convenience
84f11d61e7SFlorian Westphal	(e.g. when running oldconfig). It selects CONFIG_NF_LOG_SYSLOG.
85c1878869SPablo Neira Ayuso
86c1878869SPablo Neira Ayusoconfig NF_LOG_IPV4
87c1878869SPablo Neira Ayuso	tristate "IPv4 packet logging"
88c1878869SPablo Neira Ayuso	default m if NETFILTER_ADVANCED=n
89db3187aeSFlorian Westphal	select NF_LOG_SYSLOG
90db3187aeSFlorian Westphal	help
91db3187aeSFlorian Westphal	This is a backwards-compat option for the user's convenience
92db3187aeSFlorian Westphal	(e.g. when running oldconfig). It selects CONFIG_NF_LOG_SYSLOG.
93c1878869SPablo Neira Ayuso
94c8d7b98bSPablo Neira Ayusoconfig NF_REJECT_IPV4
95c8d7b98bSPablo Neira Ayuso	tristate "IPv4 packet rejection"
96c8d7b98bSPablo Neira Ayuso	default m if NETFILTER_ADVANCED=n
97c8d7b98bSPablo Neira Ayuso
983bf195aeSFlorian Westphalif NF_NAT
998993cf8eSPablo Neira Ayusoconfig NF_NAT_SNMP_BASIC
1008993cf8eSPablo Neira Ayuso	tristate "Basic SNMP-ALG support"
1018993cf8eSPablo Neira Ayuso	depends on NF_CONNTRACK_SNMP
1028993cf8eSPablo Neira Ayuso	depends on NETFILTER_ADVANCED
1038993cf8eSPablo Neira Ayuso	default NF_NAT && NF_CONNTRACK_SNMP
104cc2d5863STaehee Yoo	select ASN1
105a7f7f624SMasahiro Yamada	help
1068993cf8eSPablo Neira Ayuso
1078993cf8eSPablo Neira Ayuso	  This module implements an Application Layer Gateway (ALG) for
1088993cf8eSPablo Neira Ayuso	  SNMP payloads.  In conjunction with NAT, it allows a network
1098993cf8eSPablo Neira Ayuso	  management system to access multiple private networks with
1108993cf8eSPablo Neira Ayuso	  conflicting addresses.  It works by modifying IP addresses
1118993cf8eSPablo Neira Ayuso	  inside SNMP payloads to match IP-layer NAT mapping.
1128993cf8eSPablo Neira Ayuso
1138993cf8eSPablo Neira Ayuso	  This is the "basic" form of SNMP-ALG, as described in RFC 2962
1148993cf8eSPablo Neira Ayuso
1158993cf8eSPablo Neira Ayuso	  To compile it as a module, choose M here.  If unsure, say N.
1168993cf8eSPablo Neira Ayuso
1178993cf8eSPablo Neira Ayusoconfig NF_NAT_PPTP
1188993cf8eSPablo Neira Ayuso	tristate
1198993cf8eSPablo Neira Ayuso	depends on NF_CONNTRACK
1208993cf8eSPablo Neira Ayuso	default NF_CONNTRACK_PPTP
1218993cf8eSPablo Neira Ayuso
1228993cf8eSPablo Neira Ayusoconfig NF_NAT_H323
1238993cf8eSPablo Neira Ayuso	tristate
1248993cf8eSPablo Neira Ayuso	depends on NF_CONNTRACK
1258993cf8eSPablo Neira Ayuso	default NF_CONNTRACK_H323
1268993cf8eSPablo Neira Ayuso
1273bf195aeSFlorian Westphalendif # NF_NAT
1288993cf8eSPablo Neira Ayuso
1291da177e4SLinus Torvaldsconfig IP_NF_IPTABLES
1301da177e4SLinus Torvalds	tristate "IP tables support (required for filtering/masq/NAT)"
13133b8e776SPatrick McHardy	default m if NETFILTER_ADVANCED=n
132a3c941b0SPatrick McHardy	select NETFILTER_XTABLES
1331da177e4SLinus Torvalds	help
1341da177e4SLinus Torvalds	  iptables is a general, extensible packet identification framework.
1351da177e4SLinus Torvalds	  The packet filtering and full NAT (masquerading, port forwarding,
1361da177e4SLinus Torvalds	  etc) subsystems now use this: say `Y' or `M' here if you want to use
1371da177e4SLinus Torvalds	  either of those.
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
1401da177e4SLinus Torvalds
141c2df73deSJan Engelhardtif IP_NF_IPTABLES
142c2df73deSJan Engelhardt
1431da177e4SLinus Torvalds# The matches.
144dc5ab2faSYasuyuki Kozakaiconfig IP_NF_MATCH_AH
1454c37799cSJan Engelhardt	tristate '"ah" match support'
14633b8e776SPatrick McHardy	depends on NETFILTER_ADVANCED
1471da177e4SLinus Torvalds	help
148dc5ab2faSYasuyuki Kozakai	  This match extension allows you to match a range of SPIs
149dc5ab2faSYasuyuki Kozakai	  inside AH header of IPSec packets.
1501da177e4SLinus Torvalds
1511da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
1521da177e4SLinus Torvalds
153aba0d348SJan Engelhardtconfig IP_NF_MATCH_ECN
154aba0d348SJan Engelhardt	tristate '"ecn" match support'
155aba0d348SJan Engelhardt	depends on NETFILTER_ADVANCED
156d446a820SJan Engelhardt	select NETFILTER_XT_MATCH_ECN
157a7f7f624SMasahiro Yamada	help
158d446a820SJan Engelhardt	This is a backwards-compat option for the user's convenience
159d446a820SJan Engelhardt	(e.g. when running oldconfig). It selects
160d446a820SJan Engelhardt	CONFIG_NETFILTER_XT_MATCH_ECN.
161aba0d348SJan Engelhardt
1628f97339dSFlorian Westphalconfig IP_NF_MATCH_RPFILTER
1638f97339dSFlorian Westphal	tristate '"rpfilter" reverse path filter match support'
164f09becc7SPablo Neira Ayuso	depends on NETFILTER_ADVANCED
165a9525c7fSFlorian Westphal	depends on IP_NF_MANGLE || IP_NF_RAW || NFT_COMPAT
166a7f7f624SMasahiro Yamada	help
1678f97339dSFlorian Westphal	  This option allows you to match packets whose replies would
1688f97339dSFlorian Westphal	  go out via the interface the packet came in.
1698f97339dSFlorian Westphal
1708f97339dSFlorian Westphal	  To compile it as a module, choose M here.  If unsure, say N.
1718f97339dSFlorian Westphal	  The module will be called ipt_rpfilter.
1728f97339dSFlorian Westphal
1734323362eSJan Engelhardtconfig IP_NF_MATCH_TTL
1744323362eSJan Engelhardt	tristate '"ttl" match support'
1754323362eSJan Engelhardt	depends on NETFILTER_ADVANCED
1764323362eSJan Engelhardt	select NETFILTER_XT_MATCH_HL
177a7f7f624SMasahiro Yamada	help
1784323362eSJan Engelhardt	This is a backwards-compat option for the user's convenience
1794323362eSJan Engelhardt	(e.g. when running oldconfig). It selects
18067c0d579SStephen Hemminger	CONFIG_NETFILTER_XT_MATCH_HL.
1814323362eSJan Engelhardt
1821da177e4SLinus Torvalds# `filter', generic and specific targets
1831da177e4SLinus Torvaldsconfig IP_NF_FILTER
1841da177e4SLinus Torvalds	tristate "Packet filtering"
18533b8e776SPatrick McHardy	default m if NETFILTER_ADVANCED=n
186a9525c7fSFlorian Westphal	select IP_NF_IPTABLES_LEGACY
1871da177e4SLinus Torvalds	help
1881da177e4SLinus Torvalds	  Packet filtering defines a table `filter', which has a series of
1891da177e4SLinus Torvalds	  rules for simple packet filtering at local input, forwarding and
1901da177e4SLinus Torvalds	  local output.  See the man page for iptables(8).
1911da177e4SLinus Torvalds
1921da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
1931da177e4SLinus Torvalds
1941da177e4SLinus Torvaldsconfig IP_NF_TARGET_REJECT
1951da177e4SLinus Torvalds	tristate "REJECT target support"
196a9525c7fSFlorian Westphal	depends on IP_NF_FILTER || NFT_COMPAT
197c8d7b98bSPablo Neira Ayuso	select NF_REJECT_IPV4
19833b8e776SPatrick McHardy	default m if NETFILTER_ADVANCED=n
1991da177e4SLinus Torvalds	help
2001da177e4SLinus Torvalds	  The REJECT target allows a filtering rule to specify that an ICMP
2011da177e4SLinus Torvalds	  error should be issued in response to an incoming packet, rather
2021da177e4SLinus Torvalds	  than silently being dropped.
2031da177e4SLinus Torvalds
2041da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
2051da177e4SLinus Torvalds
20648b1de4cSPatrick McHardyconfig IP_NF_TARGET_SYNPROXY
20748b1de4cSPatrick McHardy	tristate "SYNPROXY target support"
20848b1de4cSPatrick McHardy	depends on NF_CONNTRACK && NETFILTER_ADVANCED
20948b1de4cSPatrick McHardy	select NETFILTER_SYNPROXY
21048b1de4cSPatrick McHardy	select SYN_COOKIES
21148b1de4cSPatrick McHardy	help
21248b1de4cSPatrick McHardy	  The SYNPROXY target allows you to intercept TCP connections and
21348b1de4cSPatrick McHardy	  establish them using syncookies before they are passed on to the
21448b1de4cSPatrick McHardy	  server. This allows to avoid conntrack and server resource usage
21548b1de4cSPatrick McHardy	  during SYN-flood attacks.
21648b1de4cSPatrick McHardy
21748b1de4cSPatrick McHardy	  To compile it as a module, choose M here. If unsure, say N.
21848b1de4cSPatrick McHardy
2195b1158e9SJozsef Kadlecsik# NAT + specific targets: nf_conntrack
2208993cf8eSPablo Neira Ayusoconfig IP_NF_NAT
2218993cf8eSPablo Neira Ayuso	tristate "iptables NAT support"
222a0ae2562SFlorian Westphal	depends on NF_CONNTRACK
22333b8e776SPatrick McHardy	default m if NETFILTER_ADVANCED=n
224c7232c99SPatrick McHardy	select NF_NAT
2258993cf8eSPablo Neira Ayuso	select NETFILTER_XT_NAT
226749d4ef0SFlorian Westphal	select IP_NF_IPTABLES_LEGACY
2275b1158e9SJozsef Kadlecsik	help
2288993cf8eSPablo Neira Ayuso	  This enables the `nat' table in iptables. This allows masquerading,
2298993cf8eSPablo Neira Ayuso	  port forwarding and other forms of full Network Address Port
2308993cf8eSPablo Neira Ayuso	  Translation.
2315b1158e9SJozsef Kadlecsik
2325b1158e9SJozsef Kadlecsik	  To compile it as a module, choose M here.  If unsure, say N.
2335b1158e9SJozsef Kadlecsik
2348993cf8eSPablo Neira Ayusoif IP_NF_NAT
2351da177e4SLinus Torvalds
2361da177e4SLinus Torvaldsconfig IP_NF_TARGET_MASQUERADE
2371da177e4SLinus Torvalds	tristate "MASQUERADE target support"
238adf82accSFlorian Westphal	select NETFILTER_XT_TARGET_MASQUERADE
2391da177e4SLinus Torvalds	help
240adf82accSFlorian Westphal	  This is a backwards-compat option for the user's convenience
241adf82accSFlorian Westphal	  (e.g. when running oldconfig). It selects NETFILTER_XT_TARGET_MASQUERADE.
2421da177e4SLinus Torvalds
243aba0d348SJan Engelhardtconfig IP_NF_TARGET_NETMAP
244aba0d348SJan Engelhardt	tristate "NETMAP target support"
245aba0d348SJan Engelhardt	depends on NETFILTER_ADVANCED
246b3d54b3eSJan Engelhardt	select NETFILTER_XT_TARGET_NETMAP
247a7f7f624SMasahiro Yamada	help
248b3d54b3eSJan Engelhardt	This is a backwards-compat option for the user's convenience
249b3d54b3eSJan Engelhardt	(e.g. when running oldconfig). It selects
250b3d54b3eSJan Engelhardt	CONFIG_NETFILTER_XT_TARGET_NETMAP.
251aba0d348SJan Engelhardt
2521da177e4SLinus Torvaldsconfig IP_NF_TARGET_REDIRECT
2531da177e4SLinus Torvalds	tristate "REDIRECT target support"
25433b8e776SPatrick McHardy	depends on NETFILTER_ADVANCED
2552cbc78a2SJan Engelhardt	select NETFILTER_XT_TARGET_REDIRECT
256a7f7f624SMasahiro Yamada	help
2572cbc78a2SJan Engelhardt	This is a backwards-compat option for the user's convenience
2582cbc78a2SJan Engelhardt	(e.g. when running oldconfig). It selects
2592cbc78a2SJan Engelhardt	CONFIG_NETFILTER_XT_TARGET_REDIRECT.
2601da177e4SLinus Torvalds
2618993cf8eSPablo Neira Ayusoendif # IP_NF_NAT
262f587de0eSPatrick McHardy
2631da177e4SLinus Torvalds# mangle + specific targets
2641da177e4SLinus Torvaldsconfig IP_NF_MANGLE
2651da177e4SLinus Torvalds	tristate "Packet mangling"
26633b8e776SPatrick McHardy	default m if NETFILTER_ADVANCED=n
267a9525c7fSFlorian Westphal	select IP_NF_IPTABLES_LEGACY
2681da177e4SLinus Torvalds	help
2691da177e4SLinus Torvalds	  This option adds a `mangle' table to iptables: see the man page for
2701da177e4SLinus Torvalds	  iptables(8).  This table is used for various packet alterations
2711da177e4SLinus Torvalds	  which can effect how the packet is routed.
2721da177e4SLinus Torvalds
2731da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
2741da177e4SLinus Torvalds
2751da177e4SLinus Torvaldsconfig IP_NF_TARGET_ECN
2761da177e4SLinus Torvalds	tristate "ECN target support"
277a9525c7fSFlorian Westphal	depends on IP_NF_MANGLE || NFT_COMPAT
27833b8e776SPatrick McHardy	depends on NETFILTER_ADVANCED
279a7f7f624SMasahiro Yamada	help
2801da177e4SLinus Torvalds	  This option adds a `ECN' target, which can be used in the iptables mangle
2811da177e4SLinus Torvalds	  table.
2821da177e4SLinus Torvalds
2831da177e4SLinus Torvalds	  You can use this target to remove the ECN bits from the IPv4 header of
2841da177e4SLinus Torvalds	  an IP packet.  This is particularly useful, if you need to work around
2851da177e4SLinus Torvalds	  existing ECN blackholes on the internet, but don't want to disable
2861da177e4SLinus Torvalds	  ECN support in general.
2871da177e4SLinus Torvalds
2881da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
2891da177e4SLinus Torvalds
2904323362eSJan Engelhardtconfig IP_NF_TARGET_TTL
2914323362eSJan Engelhardt	tristate '"TTL" target support'
29276b6717bSRandy Dunlap	depends on NETFILTER_ADVANCED && IP_NF_MANGLE
2934323362eSJan Engelhardt	select NETFILTER_XT_TARGET_HL
294a7f7f624SMasahiro Yamada	help
29576b6717bSRandy Dunlap	This is a backwards-compatible option for the user's convenience
2964323362eSJan Engelhardt	(e.g. when running oldconfig). It selects
29767c0d579SStephen Hemminger	CONFIG_NETFILTER_XT_TARGET_HL.
2984323362eSJan Engelhardt
2991da177e4SLinus Torvalds# raw + specific targets
3001da177e4SLinus Torvaldsconfig IP_NF_RAW
3011da177e4SLinus Torvalds	tristate  'raw table support (required for NOTRACK/TRACE)'
302a9525c7fSFlorian Westphal	select IP_NF_IPTABLES_LEGACY
3031da177e4SLinus Torvalds	help
3041da177e4SLinus Torvalds	  This option adds a `raw' table to iptables. This table is the very
3051da177e4SLinus Torvalds	  first in the netfilter framework and hooks in at the PREROUTING
3061da177e4SLinus Torvalds	  and OUTPUT chains.
3071da177e4SLinus Torvalds
3081da177e4SLinus Torvalds	  If you want to compile it as a module, say M here and read
309cd238effSMauro Carvalho Chehab	  <file:Documentation/kbuild/modules.rst>.  If unsure, say `N'.
3101da177e4SLinus Torvalds
311560ee653SJames Morris# security table for MAC policy
312560ee653SJames Morrisconfig IP_NF_SECURITY
313560ee653SJames Morris	tristate "Security table"
314560ee653SJames Morris	depends on SECURITY
31570eed75dSPatrick McHardy	depends on NETFILTER_ADVANCED
316a9525c7fSFlorian Westphal	select IP_NF_IPTABLES_LEGACY
317560ee653SJames Morris	help
318560ee653SJames Morris	  This option adds a `security' table to iptables, for use
319560ee653SJames Morris	  with Mandatory Access Control (MAC) policy.
320560ee653SJames Morris
321560ee653SJames Morris	  If unsure, say N.
322560ee653SJames Morris
323c2df73deSJan Engelhardtendif # IP_NF_IPTABLES
324c2df73deSJan Engelhardt
3251da177e4SLinus Torvalds# ARP tables
3261da177e4SLinus Torvaldsconfig IP_NF_ARPTABLES
327*6c959fd5SBreno Leitao	tristate "Legacy ARPTABLES support"
328*6c959fd5SBreno Leitao	depends on NETFILTER_XTABLES
329*6c959fd5SBreno Leitao	default n
330*6c959fd5SBreno Leitao	help
331*6c959fd5SBreno Leitao	  arptables is a legacy packet classifier.
332*6c959fd5SBreno Leitao	  This is not needed if you are using arptables over nftables
333*6c959fd5SBreno Leitao	  (iptables-nft).
3341da177e4SLinus Torvalds
3354654467dSFlorian Westphalconfig NFT_COMPAT_ARP
3364654467dSFlorian Westphal	tristate
3374654467dSFlorian Westphal	depends on NF_TABLES_ARP && NFT_COMPAT
3384654467dSFlorian Westphal	default m if NFT_COMPAT=m
3394654467dSFlorian Westphal	default y if NFT_COMPAT=y
340c2df73deSJan Engelhardt
3411da177e4SLinus Torvaldsconfig IP_NF_ARPFILTER
3424654467dSFlorian Westphal	tristate "arptables-legacy packet filtering support"
3434654467dSFlorian Westphal	select IP_NF_ARPTABLES
34415fba562SKuniyuki Iwashima	select NETFILTER_FAMILY_ARP
345749d4ef0SFlorian Westphal	depends on NETFILTER_XTABLES
3461da177e4SLinus Torvalds	help
3471da177e4SLinus Torvalds	  ARP packet filtering defines a table `filter', which has a series of
3481da177e4SLinus Torvalds	  rules for simple ARP packet filtering at local input and
3494654467dSFlorian Westphal	  local output.  This is only needed for arptables-legacy(8).
3504654467dSFlorian Westphal	  Neither arptables-nft nor nftables need this to work.
3511da177e4SLinus Torvalds
3521da177e4SLinus Torvalds	  To compile it as a module, choose M here.  If unsure, say N.
3531da177e4SLinus Torvalds
3541da177e4SLinus Torvaldsconfig IP_NF_ARP_MANGLE
3551da177e4SLinus Torvalds	tristate "ARP payload mangling"
3564654467dSFlorian Westphal	depends on IP_NF_ARPTABLES || NFT_COMPAT_ARP
3571da177e4SLinus Torvalds	help
3581da177e4SLinus Torvalds	  Allows altering the ARP packet payload: source and destination
3591da177e4SLinus Torvalds	  hardware and network addresses.
3601da177e4SLinus Torvalds
3614654467dSFlorian Westphal	  This option is needed by both arptables-legacy and arptables-nft.
3624654467dSFlorian Westphal	  It is not used by nftables.
363c2df73deSJan Engelhardt
3641da177e4SLinus Torvaldsendmenu
3651da177e4SLinus Torvalds
366