hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/net/ipv6/netfilter/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # IP netfilter configuration
34 #
....@@ -22,42 +23,6 @@
2223 This option enables the IPv6 support for nf_tables.
2324
2425 if NF_TABLES_IPV6
25
-
26
-config NFT_CHAIN_ROUTE_IPV6
27
- tristate "IPv6 nf_tables route chain support"
28
- help
29
- This option enables the "route" chain for IPv6 in nf_tables. This
30
- chain type is used to force packet re-routing after mangling header
31
- fields such as the source, destination, flowlabel, hop-limit and
32
- the packet mark.
33
-
34
-if NF_NAT_IPV6
35
-
36
-config NFT_CHAIN_NAT_IPV6
37
- tristate "IPv6 nf_tables nat chain support"
38
- help
39
- This option enables the "nat" chain for IPv6 in nf_tables. This
40
- chain type is used to perform Network Address Translation (NAT)
41
- packet transformations such as the source, destination address and
42
- source and destination ports.
43
-
44
-config NFT_MASQ_IPV6
45
- tristate "IPv6 masquerade support for nf_tables"
46
- depends on NFT_MASQ
47
- select NF_NAT_MASQUERADE_IPV6
48
- help
49
- This is the expression that provides IPv4 masquerading support for
50
- nf_tables.
51
-
52
-config NFT_REDIR_IPV6
53
- tristate "IPv6 redirect support for nf_tables"
54
- depends on NFT_REDIR
55
- select NF_NAT_REDIRECT
56
- help
57
- This is the expression that provides IPv4 redirect support for
58
- nf_tables.
59
-
60
-endif # NF_NAT_IPV6
6126
6227 config NFT_REJECT_IPV6
6328 select NF_REJECT_IPV6
....@@ -105,23 +70,6 @@
10570 tristate "IPv6 packet logging"
10671 default m if NETFILTER_ADVANCED=n
10772 select NF_LOG_COMMON
108
-
109
-config NF_NAT_IPV6
110
- tristate "IPv6 NAT"
111
- depends on NF_CONNTRACK
112
- depends on NETFILTER_ADVANCED
113
- select NF_NAT
114
- help
115
- The IPv6 NAT option allows masquerading, port forwarding and other
116
- forms of full Network Address Port Translation. This can be
117
- controlled by iptables or nft.
118
-
119
-if NF_NAT_IPV6
120
-
121
-config NF_NAT_MASQUERADE_IPV6
122
- bool
123
-
124
-endif # NF_NAT_IPV6
12573
12674 config IP6_NF_IPTABLES
12775 tristate "IP6 tables support (required for filtering)"
....@@ -179,10 +127,10 @@
179127 tristate '"hl" hoplimit match support'
180128 depends on NETFILTER_ADVANCED
181129 select NETFILTER_XT_MATCH_HL
182
- ---help---
183
- This is a backwards-compat option for the user's convenience
184
- (e.g. when running oldconfig). It selects
185
- CONFIG_NETFILTER_XT_MATCH_HL.
130
+ help
131
+ This is a backwards-compat option for the user's convenience
132
+ (e.g. when running oldconfig). It selects
133
+ CONFIG_NETFILTER_XT_MATCH_HL.
186134
187135 config IP6_NF_MATCH_IPV6HEADER
188136 tristate '"ipv6header" IPv6 Extension Headers Match'
....@@ -205,7 +153,7 @@
205153 tristate '"rpfilter" reverse path filter match support'
206154 depends on NETFILTER_ADVANCED
207155 depends on IP6_NF_MANGLE || IP6_NF_RAW
208
- ---help---
156
+ help
209157 This option allows you to match packets whose replies would
210158 go out via the interface the packet came in.
211159
....@@ -222,23 +170,23 @@
222170 To compile it as a module, choose M here. If unsure, say N.
223171
224172 config IP6_NF_MATCH_SRH
225
- tristate '"srh" Segment Routing header match support'
226
- depends on NETFILTER_ADVANCED
227
- help
228
- srh matching allows you to match packets based on the segment
173
+ tristate '"srh" Segment Routing header match support'
174
+ depends on NETFILTER_ADVANCED
175
+ help
176
+ srh matching allows you to match packets based on the segment
229177 routing header of the packet.
230178
231
- To compile it as a module, choose M here. If unsure, say N.
179
+ To compile it as a module, choose M here. If unsure, say N.
232180
233181 # The targets
234182 config IP6_NF_TARGET_HL
235183 tristate '"HL" hoplimit target support'
236184 depends on NETFILTER_ADVANCED && IP6_NF_MANGLE
237185 select NETFILTER_XT_TARGET_HL
238
- ---help---
239
- This is a backwards-compatible option for the user's convenience
240
- (e.g. when running oldconfig). It selects
241
- CONFIG_NETFILTER_XT_TARGET_HL.
186
+ help
187
+ This is a backwards-compatible option for the user's convenience
188
+ (e.g. when running oldconfig). It selects
189
+ CONFIG_NETFILTER_XT_TARGET_HL.
242190
243191 config IP6_NF_FILTER
244192 tristate "Packet filtering"
....@@ -293,25 +241,24 @@
293241 and OUTPUT chains.
294242
295243 If you want to compile it as a module, say M here and read
296
- <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
244
+ <file:Documentation/kbuild/modules.rst>. If unsure, say `N'.
297245
298246 # security table for MAC policy
299247 config IP6_NF_SECURITY
300
- tristate "Security table"
301
- depends on SECURITY
302
- depends on NETFILTER_ADVANCED
303
- help
304
- This option adds a `security' table to iptables, for use
305
- with Mandatory Access Control (MAC) policy.
248
+ tristate "Security table"
249
+ depends on SECURITY
250
+ depends on NETFILTER_ADVANCED
251
+ help
252
+ This option adds a `security' table to iptables, for use
253
+ with Mandatory Access Control (MAC) policy.
306254
307
- If unsure, say N.
255
+ If unsure, say N.
308256
309257 config IP6_NF_NAT
310258 tristate "ip6tables NAT support"
311259 depends on NF_CONNTRACK
312260 depends on NETFILTER_ADVANCED
313261 select NF_NAT
314
- select NF_NAT_IPV6
315262 select NETFILTER_XT_NAT
316263 help
317264 This enables the `nat' table in ip6tables. This allows masquerading,
....@@ -324,15 +271,10 @@
324271
325272 config IP6_NF_TARGET_MASQUERADE
326273 tristate "MASQUERADE target support"
327
- select NF_NAT_MASQUERADE_IPV6
274
+ select NETFILTER_XT_TARGET_MASQUERADE
328275 help
329
- Masquerading is a special case of NAT: all outgoing connections are
330
- changed to seem to come from a particular interface's address, and
331
- if the interface goes down, those connections are lost. This is
332
- only useful for dialup accounts with dynamic IP address (ie. your IP
333
- address will be different on next dialup).
334
-
335
- To compile it as a module, choose M here. If unsure, say N.
276
+ This is a backwards-compat option for the user's convenience
277
+ (e.g. when running oldconfig). It selects NETFILTER_XT_TARGET_MASQUERADE.
336278
337279 config IP6_NF_TARGET_NPT
338280 tristate "NPT (Network Prefix translation) target support"