blob: efe56f768f3480150c49ea2c6815519fc7eea253 [file] [log] [blame]
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -08001menu "Core Netfilter Configuration"
2 depends on NET && NETFILTER
3
Harald Weltef9e815b2005-08-09 19:30:24 -07004config NETFILTER_NETLINK
5 tristate "Netfilter netlink interface"
6 help
7 If this option is enabled, the kernel will include support
8 for the new netfilter netlink interface.
Harald Welte7af4cc32005-08-09 19:44:15 -07009
10config NETFILTER_NETLINK_QUEUE
11 tristate "Netfilter NFQUEUE over NFNETLINK interface"
12 depends on NETFILTER_NETLINK
13 help
Thomas Vögtle50b521a2006-03-22 13:53:48 -080014 If this option is enabled, the kernel will include support
Harald Welte7af4cc32005-08-09 19:44:15 -070015 for queueing packets via NFNETLINK.
16
Harald Welte0597f262005-08-09 19:58:39 -070017config NETFILTER_NETLINK_LOG
18 tristate "Netfilter LOG over NFNETLINK interface"
19 depends on NETFILTER_NETLINK
20 help
21 If this option is enabled, the kernel will include support
22 for logging packets via NFNETLINK.
23
24 This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
25 and is also scheduled to replace the old syslog-based ipt_LOG
26 and ip6t_LOG modules.
27
Patrick McHardyb321e142006-12-02 22:05:46 -080028config NF_CONNTRACK_ENABLED
29 tristate "Netfilter connection tracking support"
30 help
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080031 Connection tracking keeps a record of what packets have passed
32 through your machine, in order to figure out how they are related
33 into connections.
34
Patrick McHardyb321e142006-12-02 22:05:46 -080035 This is required to do Masquerading or other kinds of Network
36 Address Translation (except for Fast NAT). It can also be used to
37 enhance packet filtering (see `Connection state match support'
38 below).
39
40 To compile it as a module, choose M here. If unsure, say N.
41
42choice
43 prompt "Netfilter connection tracking support"
44 depends on NF_CONNTRACK_ENABLED
45
46config NF_CONNTRACK_SUPPORT
47 bool "Layer 3 Independent Connection tracking (EXPERIMENTAL)"
48 depends on EXPERIMENTAL
49 help
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080050 Layer 3 independent connection tracking is experimental scheme
51 which generalize ip_conntrack to support other layer 3 protocols.
52
Patrick McHardyb321e142006-12-02 22:05:46 -080053 This is required to do Masquerading or other kinds of Network
54 Address Translation (except for Fast NAT). It can also be used to
55 enhance packet filtering (see `Connection state match support'
56 below).
57
58config IP_NF_CONNTRACK_SUPPORT
59 bool "Layer 3 Dependent Connection tracking"
60 help
61 The old, Layer 3 dependent ip_conntrack subsystem of netfilter.
62
63 This is required to do Masquerading or other kinds of Network
64 Address Translation (except for Fast NAT). It can also be used to
65 enhance packet filtering (see `Connection state match support'
66 below).
67
68endchoice
69
70config NF_CONNTRACK
71 tristate
72 default m if NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=m
73 default y if NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=y
74
75config IP_NF_CONNTRACK
76 tristate
77 default m if IP_NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=m
78 default y if IP_NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=y
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080079
80config NF_CT_ACCT
81 bool "Connection tracking flow accounting"
82 depends on NF_CONNTRACK
83 help
84 If this option is enabled, the connection tracking code will
85 keep per-flow packet and byte counters.
86
87 Those counters can be used for flow-based accounting or the
88 `connbytes' match.
89
90 If unsure, say `N'.
91
92config NF_CONNTRACK_MARK
93 bool 'Connection mark tracking support'
94 depends on NF_CONNTRACK
95 help
96 This option enables support for connection marks, used by the
97 `CONNMARK' target and `connmark' match. Similar to the mark value
98 of packets, but this mark value is kept in the conntrack session
99 instead of the individual packets.
100
James Morris7c9728c2006-06-09 00:31:46 -0700101config NF_CONNTRACK_SECMARK
102 bool 'Connection tracking security mark support'
103 depends on NF_CONNTRACK && NETWORK_SECMARK
104 help
105 This option enables security markings to be applied to
106 connections. Typically they are copied to connections from
107 packets using the CONNSECMARK target and copied back from
108 connections to packets with the same target, with the packets
109 being originally labeled via SECMARK.
110
111 If unsure, say 'N'.
112
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800113config NF_CONNTRACK_EVENTS
Patrick McHardya7957562005-12-05 13:36:25 -0800114 bool "Connection tracking events (EXPERIMENTAL)"
115 depends on EXPERIMENTAL && NF_CONNTRACK
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800116 help
117 If this option is enabled, the connection tracking code will
118 provide a notifier chain that can be used by other kernel code
Thomas Vögtle50b521a2006-03-22 13:53:48 -0800119 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800120
121 If unsure, say `N'.
122
123config NF_CT_PROTO_SCTP
124 tristate 'SCTP protocol on new connection tracking support (EXPERIMENTAL)'
125 depends on EXPERIMENTAL && NF_CONNTRACK
126 default n
127 help
128 With this option enabled, the layer 3 independent connection
129 tracking code will be able to do state tracking on SCTP connections.
130
131 If you want to compile it as a module, say M here and read
132 Documentation/modules.txt. If unsure, say `N'.
133
134config NF_CONNTRACK_FTP
135 tristate "FTP support on new connection tracking (EXPERIMENTAL)"
136 depends on EXPERIMENTAL && NF_CONNTRACK
137 help
138 Tracking FTP connections is problematic: special helpers are
139 required for tracking them, and doing masquerading and other forms
140 of Network Address Translation on them.
141
142 This is FTP support on Layer 3 independent connection tracking.
143 Layer 3 independent connection tracking is experimental scheme
144 which generalize ip_conntrack to support other layer 3 protocols.
145
146 To compile it as a module, choose M here. If unsure, say N.
147
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800148config NF_CT_NETLINK
149 tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
150 depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
151 depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
152 help
153 This option enables support for a netlink-based userspace interface
154
Harald Welte2e4e6a12006-01-12 13:30:04 -0800155config NETFILTER_XTABLES
156 tristate "Netfilter Xtables support (required for ip_tables)"
157 help
158 This is required if you intend to use any of ip_tables,
159 ip6_tables or arp_tables.
160
161# alphabetically ordered list of targets
162
163config NETFILTER_XT_TARGET_CLASSIFY
164 tristate '"CLASSIFY" target support'
165 depends on NETFILTER_XTABLES
166 help
167 This option adds a `CLASSIFY' target, which enables the user to set
168 the priority of a packet. Some qdiscs can use this value for
169 classification, among these are:
170
171 atm, cbq, dsmark, pfifo_fast, htb, prio
172
173 To compile it as a module, choose M here. If unsure, say N.
174
175config NETFILTER_XT_TARGET_CONNMARK
176 tristate '"CONNMARK" target support'
177 depends on NETFILTER_XTABLES
178 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Yasuyuki Kozakaideac0cc2006-02-15 15:21:31 -0800179 depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
Harald Welte2e4e6a12006-01-12 13:30:04 -0800180 help
181 This option adds a `CONNMARK' target, which allows one to manipulate
182 the connection mark value. Similar to the MARK target, but
183 affects the connection mark value rather than the packet mark value.
184
185 If you want to compile it as a module, say M here and read
186 <file:Documentation/modules.txt>. The module will be called
187 ipt_CONNMARK.o. If unsure, say `N'.
188
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700189config NETFILTER_XT_TARGET_DSCP
190 tristate '"DSCP" target support'
191 depends on NETFILTER_XTABLES
192 depends on IP_NF_MANGLE || IP6_NF_MANGLE
193 help
194 This option adds a `DSCP' target, which allows you to manipulate
195 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
196
197 The DSCP field can have any value between 0x0 and 0x3f inclusive.
198
199 To compile it as a module, choose M here. If unsure, say N.
200
Harald Welte2e4e6a12006-01-12 13:30:04 -0800201config NETFILTER_XT_TARGET_MARK
202 tristate '"MARK" target support'
203 depends on NETFILTER_XTABLES
204 help
205 This option adds a `MARK' target, which allows you to create rules
206 in the `mangle' table which alter the netfilter mark (nfmark) field
207 associated with the packet prior to routing. This can change
208 the routing method (see `Use netfilter MARK value as routing
209 key') and can also be used by other subsystems to change their
210 behavior.
211
212 To compile it as a module, choose M here. If unsure, say N.
213
214config NETFILTER_XT_TARGET_NFQUEUE
215 tristate '"NFQUEUE" target Support'
216 depends on NETFILTER_XTABLES
217 help
Thomas Vögtle50b521a2006-03-22 13:53:48 -0800218 This target replaced the old obsolete QUEUE target.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800219
220 As opposed to QUEUE, it supports 65535 different queues,
221 not just one.
222
223 To compile it as a module, choose M here. If unsure, say N.
224
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100225config NETFILTER_XT_TARGET_NFLOG
226 tristate '"NFLOG" target support'
227 depends on NETFILTER_XTABLES
228 help
229 This option enables the NFLOG target, which allows to LOG
230 messages through the netfilter logging API, which can use
231 either the old LOG target, the old ULOG target or nfnetlink_log
232 as backend.
233
234 To compile it as a module, choose M here. If unsure, say N.
235
Harald Welte2e4e6a12006-01-12 13:30:04 -0800236config NETFILTER_XT_TARGET_NOTRACK
237 tristate '"NOTRACK" target support'
238 depends on NETFILTER_XTABLES
239 depends on IP_NF_RAW || IP6_NF_RAW
240 depends on IP_NF_CONNTRACK || NF_CONNTRACK
241 help
242 The NOTRACK target allows a select rule to specify
243 which packets *not* to enter the conntrack/NAT
244 subsystem with all the consequences (no ICMP error tracking,
245 no protocol helpers for the selected packets).
246
247 If you want to compile it as a module, say M here and read
248 <file:Documentation/modules.txt>. If unsure, say `N'.
249
James Morris5e6874cd2006-06-09 00:30:57 -0700250config NETFILTER_XT_TARGET_SECMARK
251 tristate '"SECMARK" target support'
252 depends on NETFILTER_XTABLES && NETWORK_SECMARK
253 help
254 The SECMARK target allows security marking of network
255 packets, for use with security subsystems.
256
257 To compile it as a module, choose M here. If unsure, say N.
258
James Morris100468e2006-06-09 00:32:39 -0700259config NETFILTER_XT_TARGET_CONNSECMARK
260 tristate '"CONNSECMARK" target support'
Patrick McHardyc08de5d2006-10-12 14:08:41 -0700261 depends on NETFILTER_XTABLES && \
262 ((NF_CONNTRACK && NF_CONNTRACK_SECMARK) || \
263 (IP_NF_CONNTRACK && IP_NF_CONNTRACK_SECMARK))
James Morris100468e2006-06-09 00:32:39 -0700264 help
265 The CONNSECMARK target copies security markings from packets
266 to connections, and restores security markings from connections
267 to packets (if the packets are not already marked). This would
268 normally be used in conjunction with the SECMARK target.
269
270 To compile it as a module, choose M here. If unsure, say N.
271
Harald Welte2e4e6a12006-01-12 13:30:04 -0800272config NETFILTER_XT_MATCH_COMMENT
273 tristate '"comment" match support'
274 depends on NETFILTER_XTABLES
275 help
276 This option adds a `comment' dummy-match, which allows you to put
277 comments in your iptables ruleset.
278
279 If you want to compile it as a module, say M here and read
280 <file:Documentation/modules.txt>. If unsure, say `N'.
281
282config NETFILTER_XT_MATCH_CONNBYTES
283 tristate '"connbytes" per-connection counter match support'
284 depends on NETFILTER_XTABLES
Yasuyuki Kozakaideac0cc2006-02-15 15:21:31 -0800285 depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK)
Harald Welte2e4e6a12006-01-12 13:30:04 -0800286 help
287 This option adds a `connbytes' match, which allows you to match the
288 number of bytes and/or packets for each direction within a connection.
289
290 If you want to compile it as a module, say M here and read
291 <file:Documentation/modules.txt>. If unsure, say `N'.
292
293config NETFILTER_XT_MATCH_CONNMARK
294 tristate '"connmark" connection mark match support'
295 depends on NETFILTER_XTABLES
Yasuyuki Kozakaideac0cc2006-02-15 15:21:31 -0800296 depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
Harald Welte2e4e6a12006-01-12 13:30:04 -0800297 help
298 This option adds a `connmark' match, which allows you to match the
299 connection mark value previously set for the session by `CONNMARK'.
300
301 If you want to compile it as a module, say M here and read
302 <file:Documentation/modules.txt>. The module will be called
303 ipt_connmark.o. If unsure, say `N'.
304
305config NETFILTER_XT_MATCH_CONNTRACK
306 tristate '"conntrack" connection tracking match support'
307 depends on NETFILTER_XTABLES
308 depends on IP_NF_CONNTRACK || NF_CONNTRACK
309 help
310 This is a general conntrack match module, a superset of the state match.
311
312 It allows matching on additional conntrack information, which is
313 useful in complex configurations, such as NAT gateways with multiple
314 internet links or tunnels.
315
316 To compile it as a module, choose M here. If unsure, say N.
317
318config NETFILTER_XT_MATCH_DCCP
319 tristate '"DCCP" protocol match support'
320 depends on NETFILTER_XTABLES
321 help
322 With this option enabled, you will be able to use the iptables
323 `dccp' match in order to match on DCCP source/destination ports
324 and DCCP flags.
325
326 If you want to compile it as a module, say M here and read
327 <file:Documentation/modules.txt>. If unsure, say `N'.
328
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700329config NETFILTER_XT_MATCH_DSCP
330 tristate '"DSCP" match support'
331 depends on NETFILTER_XTABLES
332 help
333 This option adds a `DSCP' match, which allows you to match against
334 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
335
336 The DSCP field can have any value between 0x0 and 0x3f inclusive.
337
338 To compile it as a module, choose M here. If unsure, say N.
339
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800340config NETFILTER_XT_MATCH_ESP
341 tristate '"ESP" match support'
342 depends on NETFILTER_XTABLES
343 help
344 This match extension allows you to match a range of SPIs
345 inside ESP header of IPSec packets.
346
347 To compile it as a module, choose M here. If unsure, say N.
348
Harald Welte2e4e6a12006-01-12 13:30:04 -0800349config NETFILTER_XT_MATCH_HELPER
350 tristate '"helper" match support'
351 depends on NETFILTER_XTABLES
352 depends on IP_NF_CONNTRACK || NF_CONNTRACK
353 help
354 Helper matching allows you to match packets in dynamic connections
355 tracked by a conntrack-helper, ie. ip_conntrack_ftp
356
357 To compile it as a module, choose M here. If unsure, say Y.
358
359config NETFILTER_XT_MATCH_LENGTH
360 tristate '"length" match support'
361 depends on NETFILTER_XTABLES
362 help
363 This option allows you to match the length of a packet against a
364 specific value or range of values.
365
366 To compile it as a module, choose M here. If unsure, say N.
367
368config NETFILTER_XT_MATCH_LIMIT
369 tristate '"limit" match support'
370 depends on NETFILTER_XTABLES
371 help
372 limit matching allows you to control the rate at which a rule can be
373 matched: mainly useful in combination with the LOG target ("LOG
374 target support", below) and to avoid some Denial of Service attacks.
375
376 To compile it as a module, choose M here. If unsure, say N.
377
378config NETFILTER_XT_MATCH_MAC
379 tristate '"mac" address match support'
380 depends on NETFILTER_XTABLES
381 help
382 MAC matching allows you to match packets based on the source
383 Ethernet address of the packet.
384
385 To compile it as a module, choose M here. If unsure, say N.
386
387config NETFILTER_XT_MATCH_MARK
388 tristate '"mark" match support'
389 depends on NETFILTER_XTABLES
390 help
391 Netfilter mark matching allows you to match packets based on the
392 `nfmark' value in the packet. This can be set by the MARK target
393 (see below).
394
395 To compile it as a module, choose M here. If unsure, say N.
396
Patrick McHardyc4b88512006-03-20 18:03:40 -0800397config NETFILTER_XT_MATCH_POLICY
398 tristate 'IPsec "policy" match support'
399 depends on NETFILTER_XTABLES && XFRM
400 help
401 Policy matching allows you to match packets based on the
402 IPsec policy that was used during decapsulation/will
403 be used during encapsulation.
404
405 To compile it as a module, choose M here. If unsure, say N.
406
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -0800407config NETFILTER_XT_MATCH_MULTIPORT
408 tristate "Multiple port match support"
409 depends on NETFILTER_XTABLES
410 help
411 Multiport matching allows you to match TCP or UDP packets based on
412 a series of source or destination ports: normally a rule can only
413 match a single range of ports.
414
415 To compile it as a module, choose M here. If unsure, say N.
416
Harald Welte2e4e6a12006-01-12 13:30:04 -0800417config NETFILTER_XT_MATCH_PHYSDEV
418 tristate '"physdev" match support'
Patrick McHardyf1da7062006-10-02 16:10:47 -0700419 depends on NETFILTER_XTABLES && BRIDGE && BRIDGE_NETFILTER
Harald Welte2e4e6a12006-01-12 13:30:04 -0800420 help
421 Physdev packet matching matches against the physical bridge ports
422 the IP packet arrived on or will leave by.
423
424 To compile it as a module, choose M here. If unsure, say N.
425
426config NETFILTER_XT_MATCH_PKTTYPE
427 tristate '"pkttype" packet type match support'
428 depends on NETFILTER_XTABLES
429 help
430 Packet type matching allows you to match a packet by
431 its "class", eg. BROADCAST, MULTICAST, ...
432
433 Typical usage:
434 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
435
436 To compile it as a module, choose M here. If unsure, say N.
437
Patrick McHardy62b77432006-05-29 18:20:32 -0700438config NETFILTER_XT_MATCH_QUOTA
439 tristate '"quota" match support'
440 depends on NETFILTER_XTABLES
441 help
442 This option adds a `quota' match, which allows to match on a
443 byte counter.
444
445 If you want to compile it as a module, say M here and read
446 <file:Documentation/modules.txt>. If unsure, say `N'.
447
Harald Welte2e4e6a12006-01-12 13:30:04 -0800448config NETFILTER_XT_MATCH_REALM
449 tristate '"realm" match support'
450 depends on NETFILTER_XTABLES
451 select NET_CLS_ROUTE
452 help
453 This option adds a `realm' match, which allows you to use the realm
454 key from the routing subsystem inside iptables.
455
456 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
457 in tc world.
458
459 If you want to compile it as a module, say M here and read
460 <file:Documentation/modules.txt>. If unsure, say `N'.
461
462config NETFILTER_XT_MATCH_SCTP
Patrick McHardyd5af9812006-07-24 22:55:29 -0700463 tristate '"sctp" protocol match support (EXPERIMENTAL)'
464 depends on NETFILTER_XTABLES && EXPERIMENTAL
Harald Welte2e4e6a12006-01-12 13:30:04 -0800465 help
466 With this option enabled, you will be able to use the
467 `sctp' match in order to match on SCTP source/destination ports
468 and SCTP chunk types.
469
470 If you want to compile it as a module, say M here and read
471 <file:Documentation/modules.txt>. If unsure, say `N'.
472
473config NETFILTER_XT_MATCH_STATE
474 tristate '"state" match support'
475 depends on NETFILTER_XTABLES
476 depends on IP_NF_CONNTRACK || NF_CONNTRACK
477 help
478 Connection state matching allows you to match packets based on their
479 relationship to a tracked connection (ie. previous packets). This
480 is a powerful tool for packet classification.
481
482 To compile it as a module, choose M here. If unsure, say N.
483
Patrick McHardyf3389802006-05-29 18:21:00 -0700484config NETFILTER_XT_MATCH_STATISTIC
485 tristate '"statistic" match support'
486 depends on NETFILTER_XTABLES
487 help
Patrick McHardy68c16922006-06-27 03:02:14 -0700488 This option adds a `statistic' match, which allows you to match
489 on packets periodically or randomly with a given percentage.
490
491 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -0700492
Harald Welte2e4e6a12006-01-12 13:30:04 -0800493config NETFILTER_XT_MATCH_STRING
494 tristate '"string" match support'
495 depends on NETFILTER_XTABLES
496 select TEXTSEARCH
497 select TEXTSEARCH_KMP
498 select TEXTSEARCH_BM
499 select TEXTSEARCH_FSM
500 help
501 This option adds a `string' match, which allows you to look for
502 pattern matchings in packets.
503
504 To compile it as a module, choose M here. If unsure, say N.
505
506config NETFILTER_XT_MATCH_TCPMSS
507 tristate '"tcpmss" match support'
508 depends on NETFILTER_XTABLES
509 help
510 This option adds a `tcpmss' match, which allows you to examine the
511 MSS value of TCP SYN packets, which control the maximum packet size
512 for that connection.
513
514 To compile it as a module, choose M here. If unsure, say N.
515
Patrick McHardy39b46fc2006-11-29 02:35:36 +0100516config NETFILTER_XT_MATCH_HASHLIMIT
517 tristate '"hashlimit" match support'
518 depends on NETFILTER_XTABLES
519 help
520 This option adds a `hashlimit' match.
521
522 As opposed to `limit', this match dynamically creates a hash table
523 of limit buckets, based on your selection of source/destination
524 addresses and/or ports.
525
526 It enables you to express policies like `10kpps for any given
527 destination address' or `500pps from any given source address'
528 with a single rule.
529
Harald Weltea6c1cd572006-02-13 15:42:48 -0800530endmenu
531