Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # IP netfilter configuration | |
3 | # | |
4 | ||
5 | menu "IP: Netfilter Configuration" | |
6 | depends on INET && NETFILTER | |
7 | ||
73e4022f KK |
8 | config NF_DEFRAG_IPV4 |
9 | tristate | |
10 | default n | |
11 | ||
9fb9cbb1 | 12 | config NF_CONNTRACK_IPV4 |
c9386cfd PM |
13 | tristate "IPv4 connection tracking support (required for NAT)" |
14 | depends on NF_CONNTRACK | |
33b8e776 | 15 | default m if NETFILTER_ADVANCED=n |
73e4022f | 16 | select NF_DEFRAG_IPV4 |
9fb9cbb1 YK |
17 | ---help--- |
18 | Connection tracking keeps a record of what packets have passed | |
19 | through your machine, in order to figure out how they are related | |
20 | into connections. | |
21 | ||
22 | This is IPv4 support on Layer 3 independent connection tracking. | |
23 | Layer 3 independent connection tracking is experimental scheme | |
24 | which generalize ip_conntrack to support other layer 3 protocols. | |
25 | ||
26 | To compile it as a module, choose M here. If unsure, say N. | |
27 | ||
f04e599e | 28 | if NF_TABLES |
c1878869 | 29 | |
96518518 | 30 | config NF_TABLES_IPV4 |
96518518 | 31 | tristate "IPv4 nf_tables support" |
d497c635 PNA |
32 | help |
33 | This option enables the IPv4 support for nf_tables. | |
96518518 | 34 | |
f04e599e PNA |
35 | if NF_TABLES_IPV4 |
36 | ||
9370761c | 37 | config NFT_CHAIN_ROUTE_IPV4 |
9370761c | 38 | tristate "IPv4 nf_tables route chain support" |
d497c635 PNA |
39 | help |
40 | This option enables the "route" chain for IPv4 in nf_tables. This | |
41 | chain type is used to force packet re-routing after mangling header | |
42 | fields such as the source, destination, type of service and | |
43 | the packet mark. | |
96518518 | 44 | |
cc4723ca | 45 | config NFT_REJECT_IPV4 |
c8d7b98b | 46 | select NF_REJECT_IPV4 |
cc4723ca PM |
47 | default NFT_REJECT |
48 | tristate | |
49 | ||
d877f071 PNA |
50 | config NFT_DUP_IPV4 |
51 | tristate "IPv4 nf_tables packet duplication support" | |
d3340b79 | 52 | depends on !NF_CONNTRACK || NF_CONNTRACK |
d877f071 PNA |
53 | select NF_DUP_IPV4 |
54 | help | |
55 | This module enables IPv4 packet duplication support for nf_tables. | |
56 | ||
f04e599e PNA |
57 | endif # NF_TABLES_IPV4 |
58 | ||
ed683f13 | 59 | config NF_TABLES_ARP |
ed683f13 | 60 | tristate "ARP nf_tables support" |
d497c635 PNA |
61 | help |
62 | This option enables the ARP support for nf_tables. | |
ed683f13 | 63 | |
f04e599e PNA |
64 | endif # NF_TABLES |
65 | ||
bbde9fc1 PNA |
66 | config NF_DUP_IPV4 |
67 | tristate "Netfilter IPv4 packet duplication to alternate destination" | |
6ece90f9 | 68 | depends on !NF_CONNTRACK || NF_CONNTRACK |
bbde9fc1 PNA |
69 | help |
70 | This option enables the nf_dup_ipv4 core, which duplicates an IPv4 | |
71 | packet to be rerouted to another destination. | |
72 | ||
f04e599e PNA |
73 | config NF_LOG_ARP |
74 | tristate "ARP packet logging" | |
75 | default m if NETFILTER_ADVANCED=n | |
76 | select NF_LOG_COMMON | |
77 | ||
78 | config NF_LOG_IPV4 | |
79 | tristate "IPv4 packet logging" | |
80 | default m if NETFILTER_ADVANCED=n | |
81 | select NF_LOG_COMMON | |
82 | ||
83 | config NF_REJECT_IPV4 | |
84 | tristate "IPv4 packet rejection" | |
85 | default m if NETFILTER_ADVANCED=n | |
86 | ||
8993cf8e PNA |
87 | config NF_NAT_IPV4 |
88 | tristate "IPv4 NAT" | |
89 | depends on NF_CONNTRACK_IPV4 | |
90 | default m if NETFILTER_ADVANCED=n | |
91 | select NF_NAT | |
92 | help | |
93 | The IPv4 NAT option allows masquerading, port forwarding and other | |
94 | forms of full Network Address Port Translation. This can be | |
95 | controlled by iptables or nft. | |
96 | ||
97 | if NF_NAT_IPV4 | |
98 | ||
3e8dc212 PNA |
99 | config NFT_CHAIN_NAT_IPV4 |
100 | depends on NF_TABLES_IPV4 | |
101 | tristate "IPv4 nf_tables nat chain support" | |
102 | help | |
103 | This option enables the "nat" chain for IPv4 in nf_tables. This | |
104 | chain type is used to perform Network Address Translation (NAT) | |
105 | packet transformations such as the source, destination address and | |
106 | source and destination ports. | |
107 | ||
0bbe80e5 PNA |
108 | config NF_NAT_MASQUERADE_IPV4 |
109 | tristate "IPv4 masquerade support" | |
110 | help | |
111 | This is the kernel functionality to provide NAT in the masquerade | |
112 | flavour (automatic source address selection). | |
113 | ||
114 | config NFT_MASQ_IPV4 | |
115 | tristate "IPv4 masquerading support for nf_tables" | |
116 | depends on NF_TABLES_IPV4 | |
117 | depends on NFT_MASQ | |
118 | select NF_NAT_MASQUERADE_IPV4 | |
119 | help | |
120 | This is the expression that provides IPv4 masquerading support for | |
121 | nf_tables. | |
122 | ||
e9105f1b AB |
123 | config NFT_REDIR_IPV4 |
124 | tristate "IPv4 redirect support for nf_tables" | |
125 | depends on NF_TABLES_IPV4 | |
126 | depends on NFT_REDIR | |
b59eaf9e | 127 | select NF_NAT_REDIRECT |
e9105f1b AB |
128 | help |
129 | This is the expression that provides IPv4 redirect support for | |
130 | nf_tables. | |
131 | ||
8993cf8e PNA |
132 | config NF_NAT_SNMP_BASIC |
133 | tristate "Basic SNMP-ALG support" | |
134 | depends on NF_CONNTRACK_SNMP | |
135 | depends on NETFILTER_ADVANCED | |
136 | default NF_NAT && NF_CONNTRACK_SNMP | |
137 | ---help--- | |
138 | ||
139 | This module implements an Application Layer Gateway (ALG) for | |
140 | SNMP payloads. In conjunction with NAT, it allows a network | |
141 | management system to access multiple private networks with | |
142 | conflicting addresses. It works by modifying IP addresses | |
143 | inside SNMP payloads to match IP-layer NAT mapping. | |
144 | ||
145 | This is the "basic" form of SNMP-ALG, as described in RFC 2962 | |
146 | ||
147 | To compile it as a module, choose M here. If unsure, say N. | |
148 | ||
149 | config NF_NAT_PROTO_GRE | |
150 | tristate | |
151 | depends on NF_CT_PROTO_GRE | |
152 | ||
153 | config NF_NAT_PPTP | |
154 | tristate | |
155 | depends on NF_CONNTRACK | |
156 | default NF_CONNTRACK_PPTP | |
157 | select NF_NAT_PROTO_GRE | |
158 | ||
159 | config NF_NAT_H323 | |
160 | tristate | |
161 | depends on NF_CONNTRACK | |
162 | default NF_CONNTRACK_H323 | |
163 | ||
164 | endif # NF_NAT_IPV4 | |
165 | ||
1da177e4 LT |
166 | config IP_NF_IPTABLES |
167 | tristate "IP tables support (required for filtering/masq/NAT)" | |
33b8e776 | 168 | default m if NETFILTER_ADVANCED=n |
a3c941b0 | 169 | select NETFILTER_XTABLES |
1da177e4 LT |
170 | help |
171 | iptables is a general, extensible packet identification framework. | |
172 | The packet filtering and full NAT (masquerading, port forwarding, | |
173 | etc) subsystems now use this: say `Y' or `M' here if you want to use | |
174 | either of those. | |
175 | ||
176 | To compile it as a module, choose M here. If unsure, say N. | |
177 | ||
c2df73de JE |
178 | if IP_NF_IPTABLES |
179 | ||
1da177e4 | 180 | # The matches. |
dc5ab2fa | 181 | config IP_NF_MATCH_AH |
4c37799c | 182 | tristate '"ah" match support' |
33b8e776 | 183 | depends on NETFILTER_ADVANCED |
1da177e4 | 184 | help |
dc5ab2fa YK |
185 | This match extension allows you to match a range of SPIs |
186 | inside AH header of IPSec packets. | |
1da177e4 LT |
187 | |
188 | To compile it as a module, choose M here. If unsure, say N. | |
189 | ||
aba0d348 JE |
190 | config IP_NF_MATCH_ECN |
191 | tristate '"ecn" match support' | |
33b8e776 | 192 | depends on NETFILTER_ADVANCED |
d446a820 JE |
193 | select NETFILTER_XT_MATCH_ECN |
194 | ---help--- | |
195 | This is a backwards-compat option for the user's convenience | |
196 | (e.g. when running oldconfig). It selects | |
197 | CONFIG_NETFILTER_XT_MATCH_ECN. | |
1da177e4 | 198 | |
8f97339d FW |
199 | config IP_NF_MATCH_RPFILTER |
200 | tristate '"rpfilter" reverse path filter match support' | |
f09becc7 PNA |
201 | depends on NETFILTER_ADVANCED |
202 | depends on IP_NF_MANGLE || IP_NF_RAW | |
8f97339d FW |
203 | ---help--- |
204 | This option allows you to match packets whose replies would | |
205 | go out via the interface the packet came in. | |
206 | ||
207 | To compile it as a module, choose M here. If unsure, say N. | |
208 | The module will be called ipt_rpfilter. | |
209 | ||
4323362e JE |
210 | config IP_NF_MATCH_TTL |
211 | tristate '"ttl" match support' | |
212 | depends on NETFILTER_ADVANCED | |
213 | select NETFILTER_XT_MATCH_HL | |
214 | ---help--- | |
215 | This is a backwards-compat option for the user's convenience | |
216 | (e.g. when running oldconfig). It selects | |
67c0d579 | 217 | CONFIG_NETFILTER_XT_MATCH_HL. |
4323362e | 218 | |
1da177e4 LT |
219 | # `filter', generic and specific targets |
220 | config IP_NF_FILTER | |
221 | tristate "Packet filtering" | |
33b8e776 | 222 | default m if NETFILTER_ADVANCED=n |
1da177e4 LT |
223 | help |
224 | Packet filtering defines a table `filter', which has a series of | |
225 | rules for simple packet filtering at local input, forwarding and | |
226 | local output. See the man page for iptables(8). | |
227 | ||
228 | To compile it as a module, choose M here. If unsure, say N. | |
229 | ||
230 | config IP_NF_TARGET_REJECT | |
231 | tristate "REJECT target support" | |
232 | depends on IP_NF_FILTER | |
c8d7b98b | 233 | select NF_REJECT_IPV4 |
33b8e776 | 234 | default m if NETFILTER_ADVANCED=n |
1da177e4 LT |
235 | help |
236 | The REJECT target allows a filtering rule to specify that an ICMP | |
237 | error should be issued in response to an incoming packet, rather | |
238 | than silently being dropped. | |
239 | ||
240 | To compile it as a module, choose M here. If unsure, say N. | |
241 | ||
48b1de4c PM |
242 | config IP_NF_TARGET_SYNPROXY |
243 | tristate "SYNPROXY target support" | |
244 | depends on NF_CONNTRACK && NETFILTER_ADVANCED | |
245 | select NETFILTER_SYNPROXY | |
246 | select SYN_COOKIES | |
247 | help | |
248 | The SYNPROXY target allows you to intercept TCP connections and | |
249 | establish them using syncookies before they are passed on to the | |
250 | server. This allows to avoid conntrack and server resource usage | |
251 | during SYN-flood attacks. | |
252 | ||
253 | To compile it as a module, choose M here. If unsure, say N. | |
254 | ||
5b1158e9 | 255 | # NAT + specific targets: nf_conntrack |
8993cf8e PNA |
256 | config IP_NF_NAT |
257 | tristate "iptables NAT support" | |
c2df73de | 258 | depends on NF_CONNTRACK_IPV4 |
33b8e776 | 259 | default m if NETFILTER_ADVANCED=n |
c7232c99 | 260 | select NF_NAT |
8993cf8e PNA |
261 | select NF_NAT_IPV4 |
262 | select NETFILTER_XT_NAT | |
5b1158e9 | 263 | help |
8993cf8e PNA |
264 | This enables the `nat' table in iptables. This allows masquerading, |
265 | port forwarding and other forms of full Network Address Port | |
266 | Translation. | |
5b1158e9 JK |
267 | |
268 | To compile it as a module, choose M here. If unsure, say N. | |
269 | ||
8993cf8e | 270 | if IP_NF_NAT |
1da177e4 LT |
271 | |
272 | config IP_NF_TARGET_MASQUERADE | |
273 | tristate "MASQUERADE target support" | |
8dd33cc9 | 274 | select NF_NAT_MASQUERADE_IPV4 |
33b8e776 | 275 | default m if NETFILTER_ADVANCED=n |
1da177e4 LT |
276 | help |
277 | Masquerading is a special case of NAT: all outgoing connections are | |
278 | changed to seem to come from a particular interface's address, and | |
279 | if the interface goes down, those connections are lost. This is | |
280 | only useful for dialup accounts with dynamic IP address (ie. your IP | |
281 | address will be different on next dialup). | |
282 | ||
283 | To compile it as a module, choose M here. If unsure, say N. | |
284 | ||
aba0d348 JE |
285 | config IP_NF_TARGET_NETMAP |
286 | tristate "NETMAP target support" | |
33b8e776 | 287 | depends on NETFILTER_ADVANCED |
b3d54b3e JE |
288 | select NETFILTER_XT_TARGET_NETMAP |
289 | ---help--- | |
290 | This is a backwards-compat option for the user's convenience | |
291 | (e.g. when running oldconfig). It selects | |
292 | CONFIG_NETFILTER_XT_TARGET_NETMAP. | |
1da177e4 | 293 | |
aba0d348 JE |
294 | config IP_NF_TARGET_REDIRECT |
295 | tristate "REDIRECT target support" | |
33b8e776 | 296 | depends on NETFILTER_ADVANCED |
2cbc78a2 JE |
297 | select NETFILTER_XT_TARGET_REDIRECT |
298 | ---help--- | |
299 | This is a backwards-compat option for the user's convenience | |
300 | (e.g. when running oldconfig). It selects | |
301 | CONFIG_NETFILTER_XT_TARGET_REDIRECT. | |
1da177e4 | 302 | |
8993cf8e | 303 | endif # IP_NF_NAT |
f587de0e | 304 | |
1da177e4 LT |
305 | # mangle + specific targets |
306 | config IP_NF_MANGLE | |
307 | tristate "Packet mangling" | |
33b8e776 | 308 | default m if NETFILTER_ADVANCED=n |
1da177e4 LT |
309 | help |
310 | This option adds a `mangle' table to iptables: see the man page for | |
311 | iptables(8). This table is used for various packet alterations | |
312 | which can effect how the packet is routed. | |
313 | ||
314 | To compile it as a module, choose M here. If unsure, say N. | |
315 | ||
aba0d348 | 316 | config IP_NF_TARGET_CLUSTERIP |
aec9a0eb KC |
317 | tristate "CLUSTERIP target support" |
318 | depends on IP_NF_MANGLE | |
aba0d348 JE |
319 | depends on NF_CONNTRACK_IPV4 |
320 | depends on NETFILTER_ADVANCED | |
321 | select NF_CONNTRACK_MARK | |
322 | help | |
323 | The CLUSTERIP target allows you to build load-balancing clusters of | |
324 | network servers without having a dedicated load-balancing | |
325 | router/server/switch. | |
326 | ||
327 | To compile it as a module, choose M here. If unsure, say N. | |
328 | ||
1da177e4 LT |
329 | config IP_NF_TARGET_ECN |
330 | tristate "ECN target support" | |
331 | depends on IP_NF_MANGLE | |
33b8e776 | 332 | depends on NETFILTER_ADVANCED |
1da177e4 LT |
333 | ---help--- |
334 | This option adds a `ECN' target, which can be used in the iptables mangle | |
335 | table. | |
336 | ||
337 | You can use this target to remove the ECN bits from the IPv4 header of | |
338 | an IP packet. This is particularly useful, if you need to work around | |
339 | existing ECN blackholes on the internet, but don't want to disable | |
340 | ECN support in general. | |
341 | ||
342 | To compile it as a module, choose M here. If unsure, say N. | |
343 | ||
4323362e JE |
344 | config IP_NF_TARGET_TTL |
345 | tristate '"TTL" target support' | |
76b6717b | 346 | depends on NETFILTER_ADVANCED && IP_NF_MANGLE |
4323362e JE |
347 | select NETFILTER_XT_TARGET_HL |
348 | ---help--- | |
76b6717b | 349 | This is a backwards-compatible option for the user's convenience |
4323362e | 350 | (e.g. when running oldconfig). It selects |
67c0d579 | 351 | CONFIG_NETFILTER_XT_TARGET_HL. |
4323362e | 352 | |
1da177e4 LT |
353 | # raw + specific targets |
354 | config IP_NF_RAW | |
355 | tristate 'raw table support (required for NOTRACK/TRACE)' | |
1da177e4 LT |
356 | help |
357 | This option adds a `raw' table to iptables. This table is the very | |
358 | first in the netfilter framework and hooks in at the PREROUTING | |
359 | and OUTPUT chains. | |
360 | ||
361 | If you want to compile it as a module, say M here and read | |
e403149c | 362 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
560ee653 JM |
363 | |
364 | # security table for MAC policy | |
365 | config IP_NF_SECURITY | |
366 | tristate "Security table" | |
560ee653 | 367 | depends on SECURITY |
70eed75d | 368 | depends on NETFILTER_ADVANCED |
560ee653 JM |
369 | help |
370 | This option adds a `security' table to iptables, for use | |
371 | with Mandatory Access Control (MAC) policy. | |
372 | ||
373 | If unsure, say N. | |
1da177e4 | 374 | |
c2df73de JE |
375 | endif # IP_NF_IPTABLES |
376 | ||
1da177e4 LT |
377 | # ARP tables |
378 | config IP_NF_ARPTABLES | |
379 | tristate "ARP tables support" | |
a3c941b0 | 380 | select NETFILTER_XTABLES |
33b8e776 | 381 | depends on NETFILTER_ADVANCED |
1da177e4 LT |
382 | help |
383 | arptables is a general, extensible packet identification framework. | |
384 | The ARP packet filtering and mangling (manipulation)subsystems | |
385 | use this: say Y or M here if you want to use either of those. | |
386 | ||
387 | To compile it as a module, choose M here. If unsure, say N. | |
388 | ||
c2df73de JE |
389 | if IP_NF_ARPTABLES |
390 | ||
1da177e4 LT |
391 | config IP_NF_ARPFILTER |
392 | tristate "ARP packet filtering" | |
1da177e4 LT |
393 | help |
394 | ARP packet filtering defines a table `filter', which has a series of | |
395 | rules for simple ARP packet filtering at local input and | |
396 | local output. On a bridge, you can also specify filtering rules | |
397 | for forwarded ARP packets. See the man page for arptables(8). | |
398 | ||
399 | To compile it as a module, choose M here. If unsure, say N. | |
400 | ||
401 | config IP_NF_ARP_MANGLE | |
402 | tristate "ARP payload mangling" | |
1da177e4 LT |
403 | help |
404 | Allows altering the ARP packet payload: source and destination | |
405 | hardware and network addresses. | |
406 | ||
c2df73de JE |
407 | endif # IP_NF_ARPTABLES |
408 | ||
1da177e4 LT |
409 | endmenu |
410 |