1 # SPDX-License-Identifier: GPL-2.0-only
3 # IP netfilter configuration
6 menu "IPv6: Netfilter Configuration"
7 depends on INET && IPV6 && NETFILTER
9 # old sockopt interface and eval loop
10 config IP6_NF_IPTABLES_LEGACY
11 tristate "Legacy IP6 tables support"
12 depends on INET && IPV6
13 select NETFILTER_XTABLES
16 ip6tables is a legacy packet classifier.
17 This is not needed if you are using iptables over nftables
21 tristate "IPv6 socket lookup support"
23 This option enables the IPv6 socket lookup infrastructure. This
24 is used by the {ip6,nf}tables socket match.
27 tristate "IPv6 tproxy support"
32 bool "IPv6 nf_tables support"
34 This option enables the IPv6 support for nf_tables.
38 config NFT_REJECT_IPV6
44 tristate "IPv6 nf_tables packet duplication support"
45 depends on !NF_CONNTRACK || NF_CONNTRACK
48 This module enables IPv6 packet duplication support for nf_tables.
51 tristate "nf_tables fib / ipv6 route lookup support"
54 This module enables IPv6 FIB lookups, e.g. for reverse path filtering.
55 It also allows query of the FIB for the route type, e.g. local, unicast,
56 multicast or blackhole.
58 endif # NF_TABLES_IPV6
62 tristate "Netfilter IPv6 packet duplication to alternate destination"
63 depends on !NF_CONNTRACK || NF_CONNTRACK
65 This option enables the nf_dup_ipv6 core, which duplicates an IPv6
66 packet to be rerouted to another destination.
69 tristate "IPv6 packet rejection"
70 default m if NETFILTER_ADVANCED=n
73 tristate "IPv6 packet logging"
74 default m if NETFILTER_ADVANCED=n
77 This is a backwards-compat option for the user's convenience
78 (e.g. when running oldconfig). It selects CONFIG_NF_LOG_SYSLOG.
80 config IP6_NF_IPTABLES
81 tristate "IP6 tables support (required for filtering)"
82 depends on INET && IPV6
83 select NETFILTER_XTABLES
84 default m if NETFILTER_ADVANCED=n
86 ip6tables is a general, extensible packet identification framework.
87 Currently only the packet filtering and packet mangling subsystem
88 for IPv6 use this, but connection tracking is going to follow.
89 Say 'Y' or 'M' here if you want to use either of those.
91 To compile it as a module, choose M here. If unsure, say N.
96 config IP6_NF_MATCH_AH
97 tristate '"ah" match support'
98 depends on NETFILTER_ADVANCED
100 This module allows one to match AH packets.
102 To compile it as a module, choose M here. If unsure, say N.
104 config IP6_NF_MATCH_EUI64
105 tristate '"eui64" address check'
106 depends on NETFILTER_ADVANCED
108 This module performs checking on the IPv6 source address
109 Compares the last 64 bits with the EUI64 (delivered
110 from the MAC address) address
112 To compile it as a module, choose M here. If unsure, say N.
114 config IP6_NF_MATCH_FRAG
115 tristate '"frag" Fragmentation header match support'
116 depends on NETFILTER_ADVANCED
118 frag matching allows you to match packets based on the fragmentation
119 header of the packet.
121 To compile it as a module, choose M here. If unsure, say N.
123 config IP6_NF_MATCH_OPTS
124 tristate '"hbh" hop-by-hop and "dst" opts header match support'
125 depends on NETFILTER_ADVANCED
127 This allows one to match packets based on the hop-by-hop
128 and destination options headers of a packet.
130 To compile it as a module, choose M here. If unsure, say N.
132 config IP6_NF_MATCH_HL
133 tristate '"hl" hoplimit match support'
134 depends on NETFILTER_ADVANCED
135 select NETFILTER_XT_MATCH_HL
137 This is a backwards-compat option for the user's convenience
138 (e.g. when running oldconfig). It selects
139 CONFIG_NETFILTER_XT_MATCH_HL.
141 config IP6_NF_MATCH_IPV6HEADER
142 tristate '"ipv6header" IPv6 Extension Headers Match'
143 default m if NETFILTER_ADVANCED=n
145 This module allows one to match packets based upon
146 the ipv6 extension headers.
148 To compile it as a module, choose M here. If unsure, say N.
150 config IP6_NF_MATCH_MH
151 tristate '"mh" match support'
152 depends on NETFILTER_ADVANCED
154 This module allows one to match MH packets.
156 To compile it as a module, choose M here. If unsure, say N.
158 config IP6_NF_MATCH_RPFILTER
159 tristate '"rpfilter" reverse path filter match support'
160 depends on NETFILTER_ADVANCED
161 depends on IP6_NF_MANGLE || IP6_NF_RAW || NFT_COMPAT
163 This option allows you to match packets whose replies would
164 go out via the interface the packet came in.
166 To compile it as a module, choose M here. If unsure, say N.
167 The module will be called ip6t_rpfilter.
169 config IP6_NF_MATCH_RT
170 tristate '"rt" Routing header match support'
171 depends on NETFILTER_ADVANCED
173 rt matching allows you to match packets based on the routing
174 header of the packet.
176 To compile it as a module, choose M here. If unsure, say N.
178 config IP6_NF_MATCH_SRH
179 tristate '"srh" Segment Routing header match support'
180 depends on NETFILTER_ADVANCED
182 srh matching allows you to match packets based on the segment
183 routing header of the packet.
185 To compile it as a module, choose M here. If unsure, say N.
188 config IP6_NF_TARGET_HL
189 tristate '"HL" hoplimit target support'
190 depends on NETFILTER_ADVANCED && IP6_NF_MANGLE
191 select NETFILTER_XT_TARGET_HL
193 This is a backwards-compatible option for the user's convenience
194 (e.g. when running oldconfig). It selects
195 CONFIG_NETFILTER_XT_TARGET_HL.
198 tristate "Packet filtering"
199 default m if NETFILTER_ADVANCED=n
200 select IP6_NF_IPTABLES_LEGACY
203 Packet filtering defines a table `filter', which has a series of
204 rules for simple packet filtering at local input, forwarding and
205 local output. See the man page for iptables(8).
207 To compile it as a module, choose M here. If unsure, say N.
209 config IP6_NF_TARGET_REJECT
210 tristate "REJECT target support"
211 depends on IP6_NF_FILTER || NFT_COMPAT
212 select NF_REJECT_IPV6
213 default m if NETFILTER_ADVANCED=n
215 The REJECT target allows a filtering rule to specify that an ICMPv6
216 error should be issued in response to an incoming packet, rather
217 than silently being dropped.
219 To compile it as a module, choose M here. If unsure, say N.
221 config IP6_NF_TARGET_SYNPROXY
222 tristate "SYNPROXY target support"
223 depends on NF_CONNTRACK && NETFILTER_ADVANCED
224 select NETFILTER_SYNPROXY
227 The SYNPROXY target allows you to intercept TCP connections and
228 establish them using syncookies before they are passed on to the
229 server. This allows to avoid conntrack and server resource usage
230 during SYN-flood attacks.
232 To compile it as a module, choose M here. If unsure, say N.
235 tristate "Packet mangling"
236 default m if NETFILTER_ADVANCED=n
237 select IP6_NF_IPTABLES_LEGACY
239 This option adds a `mangle' table to iptables: see the man page for
240 iptables(8). This table is used for various packet alterations
241 which can effect how the packet is routed.
243 To compile it as a module, choose M here. If unsure, say N.
246 tristate 'raw table support (required for TRACE)'
247 select IP6_NF_IPTABLES_LEGACY
249 This option adds a `raw' table to ip6tables. This table is the very
250 first in the netfilter framework and hooks in at the PREROUTING
253 If you want to compile it as a module, say M here and read
254 <file:Documentation/kbuild/modules.rst>. If unsure, say `N'.
256 # security table for MAC policy
257 config IP6_NF_SECURITY
258 tristate "Security table"
260 depends on NETFILTER_ADVANCED
261 select IP6_NF_IPTABLES_LEGACY
263 This option adds a `security' table to iptables, for use
264 with Mandatory Access Control (MAC) policy.
269 tristate "ip6tables NAT support"
270 depends on NF_CONNTRACK
271 depends on NETFILTER_ADVANCED
273 select IP6_NF_IPTABLES_LEGACY
274 select NETFILTER_XT_NAT
276 This enables the `nat' table in ip6tables. This allows masquerading,
277 port forwarding and other forms of full Network Address Port
280 To compile it as a module, choose M here. If unsure, say N.
282 config IP6_NF_TARGET_MASQUERADE
283 tristate "MASQUERADE target support"
284 select NETFILTER_XT_TARGET_MASQUERADE
285 depends on IP6_NF_NAT
287 This is a backwards-compat option for the user's convenience
288 (e.g. when running oldconfig). It selects NETFILTER_XT_TARGET_MASQUERADE.
290 config IP6_NF_TARGET_NPT
291 tristate "NPT (Network Prefix translation) target support"
292 depends on IP6_NF_NAT || NFT_COMPAT
294 This option adds the `SNPT' and `DNPT' target, which perform
295 stateless IPv6-to-IPv6 Network Prefix Translation per RFC 6296.
297 To compile it as a module, choose M here. If unsure, say N.
299 endif # IP6_NF_IPTABLES
302 config NF_DEFRAG_IPV6