Merge branch 'master' of /repos/git/net-next-2.6
[linux-drm-fsl-dcu.git] / net / netfilter / Kconfig
1 menu "Core Netfilter Configuration"
2         depends on NET && INET && NETFILTER
3
4 config NETFILTER_NETLINK
5         tristate
6
7 config NETFILTER_NETLINK_QUEUE
8         tristate "Netfilter NFQUEUE over NFNETLINK interface"
9         depends on NETFILTER_ADVANCED
10         select NETFILTER_NETLINK
11         help
12           If this option is enabled, the kernel will include support
13           for queueing packets via NFNETLINK.
14           
15 config NETFILTER_NETLINK_LOG
16         tristate "Netfilter LOG over NFNETLINK interface"
17         default m if NETFILTER_ADVANCED=n
18         select NETFILTER_NETLINK
19         help
20           If this option is enabled, the kernel will include support
21           for logging packets via NFNETLINK.
22
23           This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
24           and is also scheduled to replace the old syslog-based ipt_LOG
25           and ip6t_LOG modules.
26
27 config NF_CONNTRACK
28         tristate "Netfilter connection tracking support"
29         default m if NETFILTER_ADVANCED=n
30         help
31           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
35           This is required to do Masquerading or other kinds of Network
36           Address Translation.  It can also be used to enhance packet
37           filtering (see `Connection state match support' below).
38
39           To compile it as a module, choose M here.  If unsure, say N.
40
41 if NF_CONNTRACK
42
43 config NF_CT_ACCT
44         bool "Connection tracking flow accounting"
45         depends on NETFILTER_ADVANCED
46         help
47           If this option is enabled, the connection tracking code will
48           keep per-flow packet and byte counters.
49
50           Those counters can be used for flow-based accounting or the
51           `connbytes' match.
52
53           Please note that currently this option only sets a default state.
54           You may change it at boot time with nf_conntrack.acct=0/1 kernel
55           parameter or by loading the nf_conntrack module with acct=0/1.
56
57           You may also disable/enable it on a running system with:
58            sysctl net.netfilter.nf_conntrack_acct=0/1
59
60           This option will be removed in 2.6.29.
61
62           If unsure, say `N'.
63
64 config NF_CONNTRACK_MARK
65         bool  'Connection mark tracking support'
66         depends on NETFILTER_ADVANCED
67         help
68           This option enables support for connection marks, used by the
69           `CONNMARK' target and `connmark' match. Similar to the mark value
70           of packets, but this mark value is kept in the conntrack session
71           instead of the individual packets.
72
73 config NF_CONNTRACK_SECMARK
74         bool  'Connection tracking security mark support'
75         depends on NETWORK_SECMARK
76         default m if NETFILTER_ADVANCED=n
77         help
78           This option enables security markings to be applied to
79           connections.  Typically they are copied to connections from
80           packets using the CONNSECMARK target and copied back from
81           connections to packets with the same target, with the packets
82           being originally labeled via SECMARK.
83
84           If unsure, say 'N'.
85
86 config NF_CONNTRACK_ZONES
87         bool  'Connection tracking zones'
88         depends on NETFILTER_ADVANCED
89         depends on NETFILTER_XT_TARGET_CT
90         help
91           This option enables support for connection tracking zones.
92           Normally, each connection needs to have a unique system wide
93           identity. Connection tracking zones allow to have multiple
94           connections using the same identity, as long as they are
95           contained in different zones.
96
97           If unsure, say `N'.
98
99 config NF_CONNTRACK_EVENTS
100         bool "Connection tracking events"
101         depends on NETFILTER_ADVANCED
102         help
103           If this option is enabled, the connection tracking code will
104           provide a notifier chain that can be used by other kernel code
105           to get notified about changes in the connection tracking state.
106
107           If unsure, say `N'.
108
109 config NF_CT_PROTO_DCCP
110         tristate 'DCCP protocol connection tracking support (EXPERIMENTAL)'
111         depends on EXPERIMENTAL
112         depends on NETFILTER_ADVANCED
113         default IP_DCCP
114         help
115           With this option enabled, the layer 3 independent connection
116           tracking code will be able to do state tracking on DCCP connections.
117
118           If unsure, say 'N'.
119
120 config NF_CT_PROTO_GRE
121         tristate
122
123 config NF_CT_PROTO_SCTP
124         tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)'
125         depends on EXPERIMENTAL
126         depends on NETFILTER_ADVANCED
127         default IP_SCTP
128         help
129           With this option enabled, the layer 3 independent connection
130           tracking code will be able to do state tracking on SCTP connections.
131
132           If you want to compile it as a module, say M here and read
133           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
134
135 config NF_CT_PROTO_UDPLITE
136         tristate 'UDP-Lite protocol connection tracking support'
137         depends on NETFILTER_ADVANCED
138         help
139           With this option enabled, the layer 3 independent connection
140           tracking code will be able to do state tracking on UDP-Lite
141           connections.
142
143           To compile it as a module, choose M here.  If unsure, say N.
144
145 config NF_CONNTRACK_AMANDA
146         tristate "Amanda backup protocol support"
147         depends on NETFILTER_ADVANCED
148         select TEXTSEARCH
149         select TEXTSEARCH_KMP
150         help
151           If you are running the Amanda backup package <http://www.amanda.org/>
152           on this machine or machines that will be MASQUERADED through this
153           machine, then you may want to enable this feature.  This allows the
154           connection tracking and natting code to allow the sub-channels that
155           Amanda requires for communication of the backup data, messages and
156           index.
157
158           To compile it as a module, choose M here.  If unsure, say N.
159
160 config NF_CONNTRACK_FTP
161         tristate "FTP protocol support"
162         default m if NETFILTER_ADVANCED=n
163         help
164           Tracking FTP connections is problematic: special helpers are
165           required for tracking them, and doing masquerading and other forms
166           of Network Address Translation on them.
167
168           This is FTP support on Layer 3 independent connection tracking.
169           Layer 3 independent connection tracking is experimental scheme
170           which generalize ip_conntrack to support other layer 3 protocols.
171
172           To compile it as a module, choose M here.  If unsure, say N.
173
174 config NF_CONNTRACK_H323
175         tristate "H.323 protocol support"
176         depends on (IPV6 || IPV6=n)
177         depends on NETFILTER_ADVANCED
178         help
179           H.323 is a VoIP signalling protocol from ITU-T. As one of the most
180           important VoIP protocols, it is widely used by voice hardware and
181           software including voice gateways, IP phones, Netmeeting, OpenPhone,
182           Gnomemeeting, etc.
183
184           With this module you can support H.323 on a connection tracking/NAT
185           firewall.
186
187           This module supports RAS, Fast Start, H.245 Tunnelling, Call
188           Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
189           whiteboard, file transfer, etc. For more information, please
190           visit http://nath323.sourceforge.net/.
191
192           To compile it as a module, choose M here.  If unsure, say N.
193
194 config NF_CONNTRACK_IRC
195         tristate "IRC protocol support"
196         default m if NETFILTER_ADVANCED=n
197         help
198           There is a commonly-used extension to IRC called
199           Direct Client-to-Client Protocol (DCC).  This enables users to send
200           files to each other, and also chat to each other without the need
201           of a server.  DCC Sending is used anywhere you send files over IRC,
202           and DCC Chat is most commonly used by Eggdrop bots.  If you are
203           using NAT, this extension will enable you to send files and initiate
204           chats.  Note that you do NOT need this extension to get files or
205           have others initiate chats, or everything else in IRC.
206
207           To compile it as a module, choose M here.  If unsure, say N.
208
209 config NF_CONNTRACK_NETBIOS_NS
210         tristate "NetBIOS name service protocol support"
211         depends on NETFILTER_ADVANCED
212         help
213           NetBIOS name service requests are sent as broadcast messages from an
214           unprivileged port and responded to with unicast messages to the
215           same port. This make them hard to firewall properly because connection
216           tracking doesn't deal with broadcasts. This helper tracks locally
217           originating NetBIOS name service requests and the corresponding
218           responses. It relies on correct IP address configuration, specifically
219           netmask and broadcast address. When properly configured, the output
220           of "ip address show" should look similar to this:
221
222           $ ip -4 address show eth0
223           4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
224               inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
225
226           To compile it as a module, choose M here.  If unsure, say N.
227
228 config NF_CONNTRACK_PPTP
229         tristate "PPtP protocol support"
230         depends on NETFILTER_ADVANCED
231         select NF_CT_PROTO_GRE
232         help
233           This module adds support for PPTP (Point to Point Tunnelling
234           Protocol, RFC2637) connection tracking and NAT.
235
236           If you are running PPTP sessions over a stateful firewall or NAT
237           box, you may want to enable this feature.
238
239           Please note that not all PPTP modes of operation are supported yet.
240           Specifically these limitations exist:
241             - Blindly assumes that control connections are always established
242               in PNS->PAC direction. This is a violation of RFC2637.
243             - Only supports a single call within each session
244
245           To compile it as a module, choose M here.  If unsure, say N.
246
247 config NF_CONNTRACK_SANE
248         tristate "SANE protocol support (EXPERIMENTAL)"
249         depends on EXPERIMENTAL
250         depends on NETFILTER_ADVANCED
251         help
252           SANE is a protocol for remote access to scanners as implemented
253           by the 'saned' daemon. Like FTP, it uses separate control and
254           data connections.
255
256           With this module you can support SANE on a connection tracking
257           firewall.
258
259           To compile it as a module, choose M here.  If unsure, say N.
260
261 config NF_CONNTRACK_SIP
262         tristate "SIP protocol support"
263         default m if NETFILTER_ADVANCED=n
264         help
265           SIP is an application-layer control protocol that can establish,
266           modify, and terminate multimedia sessions (conferences) such as
267           Internet telephony calls. With the ip_conntrack_sip and
268           the nf_nat_sip modules you can support the protocol on a connection
269           tracking/NATing firewall.
270
271           To compile it as a module, choose M here.  If unsure, say N.
272
273 config NF_CONNTRACK_TFTP
274         tristate "TFTP protocol support"
275         depends on NETFILTER_ADVANCED
276         help
277           TFTP connection tracking helper, this is required depending
278           on how restrictive your ruleset is.
279           If you are using a tftp client behind -j SNAT or -j MASQUERADING
280           you will need this.
281
282           To compile it as a module, choose M here.  If unsure, say N.
283
284 config NF_CT_NETLINK
285         tristate 'Connection tracking netlink interface'
286         select NETFILTER_NETLINK
287         default m if NETFILTER_ADVANCED=n
288         help
289           This option enables support for a netlink-based userspace interface
290
291 endif # NF_CONNTRACK
292
293 # transparent proxy support
294 config NETFILTER_TPROXY
295         tristate "Transparent proxying support (EXPERIMENTAL)"
296         depends on EXPERIMENTAL
297         depends on IP_NF_MANGLE
298         depends on NETFILTER_ADVANCED
299         help
300           This option enables transparent proxying support, that is,
301           support for handling non-locally bound IPv4 TCP and UDP sockets.
302           For it to work you will have to configure certain iptables rules
303           and use policy routing. For more information on how to set it up
304           see Documentation/networking/tproxy.txt.
305
306           To compile it as a module, choose M here.  If unsure, say N.
307
308 config NETFILTER_XTABLES
309         tristate "Netfilter Xtables support (required for ip_tables)"
310         default m if NETFILTER_ADVANCED=n
311         help
312           This is required if you intend to use any of ip_tables,
313           ip6_tables or arp_tables.
314
315 if NETFILTER_XTABLES
316
317 comment "Xtables combined modules"
318
319 config NETFILTER_XT_MARK
320         tristate 'nfmark target and match support'
321         default m if NETFILTER_ADVANCED=n
322         ---help---
323         This option adds the "MARK" target and "mark" match.
324
325         Netfilter mark matching allows you to match packets based on the
326         "nfmark" value in the packet.
327         The target allows you to create rules in the "mangle" table which alter
328         the netfilter mark (nfmark) field associated with the packet.
329
330         Prior to routing, the nfmark can influence the routing method (see
331         "Use netfilter MARK value as routing key") and can also be used by
332         other subsystems to change their behavior.
333
334 config NETFILTER_XT_CONNMARK
335         tristate 'ctmark target and match support'
336         depends on NF_CONNTRACK
337         depends on NETFILTER_ADVANCED
338         select NF_CONNTRACK_MARK
339         ---help---
340         This option adds the "CONNMARK" target and "connmark" match.
341
342         Netfilter allows you to store a mark value per connection (a.k.a.
343         ctmark), similarly to the packet mark (nfmark). Using this
344         target and match, you can set and match on this mark.
345
346 # alphabetically ordered list of targets
347
348 comment "Xtables targets"
349
350 config NETFILTER_XT_TARGET_CLASSIFY
351         tristate '"CLASSIFY" target support'
352         depends on NETFILTER_ADVANCED
353         help
354           This option adds a `CLASSIFY' target, which enables the user to set
355           the priority of a packet. Some qdiscs can use this value for
356           classification, among these are:
357
358           atm, cbq, dsmark, pfifo_fast, htb, prio
359
360           To compile it as a module, choose M here.  If unsure, say N.
361
362 config NETFILTER_XT_TARGET_CONNMARK
363         tristate  '"CONNMARK" target support'
364         depends on NF_CONNTRACK
365         depends on NETFILTER_ADVANCED
366         select NETFILTER_XT_CONNMARK
367         ---help---
368         This is a backwards-compat option for the user's convenience
369         (e.g. when running oldconfig). It selects
370         CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
371
372 config NETFILTER_XT_TARGET_CONNSECMARK
373         tristate '"CONNSECMARK" target support'
374         depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
375         default m if NETFILTER_ADVANCED=n
376         help
377           The CONNSECMARK target copies security markings from packets
378           to connections, and restores security markings from connections
379           to packets (if the packets are not already marked).  This would
380           normally be used in conjunction with the SECMARK target.
381
382           To compile it as a module, choose M here.  If unsure, say N.
383
384 config NETFILTER_XT_TARGET_CT
385         tristate '"CT" target support'
386         depends on NF_CONNTRACK
387         depends on IP_NF_RAW || IP6_NF_RAW
388         depends on NETFILTER_ADVANCED
389         help
390           This options adds a `CT' target, which allows to specify initial
391           connection tracking parameters like events to be delivered and
392           the helper to be used.
393
394           To compile it as a module, choose M here.  If unsure, say N.
395
396 config NETFILTER_XT_TARGET_DSCP
397         tristate '"DSCP" and "TOS" target support'
398         depends on IP_NF_MANGLE || IP6_NF_MANGLE
399         depends on NETFILTER_ADVANCED
400         help
401           This option adds a `DSCP' target, which allows you to manipulate
402           the IPv4/IPv6 header DSCP field (differentiated services codepoint).
403
404           The DSCP field can have any value between 0x0 and 0x3f inclusive.
405
406           It also adds the "TOS" target, which allows you to create rules in
407           the "mangle" table which alter the Type Of Service field of an IPv4
408           or the Priority field of an IPv6 packet, prior to routing.
409
410           To compile it as a module, choose M here.  If unsure, say N.
411
412 config NETFILTER_XT_TARGET_HL
413         tristate '"HL" hoplimit target support'
414         depends on IP_NF_MANGLE || IP6_NF_MANGLE
415         depends on NETFILTER_ADVANCED
416         ---help---
417         This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
418         targets, which enable the user to change the
419         hoplimit/time-to-live value of the IP header.
420
421         While it is safe to decrement the hoplimit/TTL value, the
422         modules also allow to increment and set the hoplimit value of
423         the header to arbitrary values. This is EXTREMELY DANGEROUS
424         since you can easily create immortal packets that loop
425         forever on the network.
426
427 config NETFILTER_XT_TARGET_LED
428         tristate '"LED" target support'
429         depends on LEDS_CLASS && LEDS_TRIGGERS
430         depends on NETFILTER_ADVANCED
431         help
432           This option adds a `LED' target, which allows you to blink LEDs in
433           response to particular packets passing through your machine.
434
435           This can be used to turn a spare LED into a network activity LED,
436           which only flashes in response to FTP transfers, for example.  Or
437           you could have an LED which lights up for a minute or two every time
438           somebody connects to your machine via SSH.
439
440           You will need support for the "led" class to make this work.
441
442           To create an LED trigger for incoming SSH traffic:
443             iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
444
445           Then attach the new trigger to an LED on your system:
446             echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
447
448           For more information on the LEDs available on your system, see
449           Documentation/leds-class.txt
450
451 config NETFILTER_XT_TARGET_MARK
452         tristate '"MARK" target support'
453         depends on NETFILTER_ADVANCED
454         select NETFILTER_XT_MARK
455         ---help---
456         This is a backwards-compat option for the user's convenience
457         (e.g. when running oldconfig). It selects
458         CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
459
460 config NETFILTER_XT_TARGET_NFLOG
461         tristate '"NFLOG" target support'
462         default m if NETFILTER_ADVANCED=n
463         select NETFILTER_NETLINK_LOG
464         help
465           This option enables the NFLOG target, which allows to LOG
466           messages through nfnetlink_log.
467
468           To compile it as a module, choose M here.  If unsure, say N.
469
470 config NETFILTER_XT_TARGET_NFQUEUE
471         tristate '"NFQUEUE" target Support'
472         depends on NETFILTER_ADVANCED
473         help
474           This target replaced the old obsolete QUEUE target.
475
476           As opposed to QUEUE, it supports 65535 different queues,
477           not just one.
478
479           To compile it as a module, choose M here.  If unsure, say N.
480
481 config NETFILTER_XT_TARGET_NOTRACK
482         tristate  '"NOTRACK" target support'
483         depends on IP_NF_RAW || IP6_NF_RAW
484         depends on NF_CONNTRACK
485         depends on NETFILTER_ADVANCED
486         help
487           The NOTRACK target allows a select rule to specify
488           which packets *not* to enter the conntrack/NAT
489           subsystem with all the consequences (no ICMP error tracking,
490           no protocol helpers for the selected packets).
491
492           If you want to compile it as a module, say M here and read
493           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
494
495 config NETFILTER_XT_TARGET_RATEEST
496         tristate '"RATEEST" target support'
497         depends on NETFILTER_ADVANCED
498         help
499           This option adds a `RATEEST' target, which allows to measure
500           rates similar to TC estimators. The `rateest' match can be
501           used to match on the measured rates.
502
503           To compile it as a module, choose M here.  If unsure, say N.
504
505 config NETFILTER_XT_TARGET_TEE
506         tristate '"TEE" - packet cloning to alternate destiantion'
507         depends on NETFILTER_ADVANCED
508         ---help---
509         This option adds a "TEE" target with which a packet can be cloned and
510         this clone be rerouted to another nexthop.
511
512 config NETFILTER_XT_TARGET_TPROXY
513         tristate '"TPROXY" target support (EXPERIMENTAL)'
514         depends on EXPERIMENTAL
515         depends on NETFILTER_TPROXY
516         depends on NETFILTER_XTABLES
517         depends on NETFILTER_ADVANCED
518         select NF_DEFRAG_IPV4
519         help
520           This option adds a `TPROXY' target, which is somewhat similar to
521           REDIRECT.  It can only be used in the mangle table and is useful
522           to redirect traffic to a transparent proxy.  It does _not_ depend
523           on Netfilter connection tracking and NAT, unlike REDIRECT.
524
525           To compile it as a module, choose M here.  If unsure, say N.
526
527 config NETFILTER_XT_TARGET_TRACE
528         tristate  '"TRACE" target support'
529         depends on IP_NF_RAW || IP6_NF_RAW
530         depends on NETFILTER_ADVANCED
531         help
532           The TRACE target allows you to mark packets so that the kernel
533           will log every rule which match the packets as those traverse
534           the tables, chains, rules.
535
536           If you want to compile it as a module, say M here and read
537           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
538
539 config NETFILTER_XT_TARGET_SECMARK
540         tristate '"SECMARK" target support'
541         depends on NETWORK_SECMARK
542         default m if NETFILTER_ADVANCED=n
543         help
544           The SECMARK target allows security marking of network
545           packets, for use with security subsystems.
546
547           To compile it as a module, choose M here.  If unsure, say N.
548
549 config NETFILTER_XT_TARGET_TCPMSS
550         tristate '"TCPMSS" target support'
551         depends on (IPV6 || IPV6=n)
552         default m if NETFILTER_ADVANCED=n
553         ---help---
554           This option adds a `TCPMSS' target, which allows you to alter the
555           MSS value of TCP SYN packets, to control the maximum size for that
556           connection (usually limiting it to your outgoing interface's MTU
557           minus 40).
558
559           This is used to overcome criminally braindead ISPs or servers which
560           block ICMP Fragmentation Needed packets.  The symptoms of this
561           problem are that everything works fine from your Linux
562           firewall/router, but machines behind it can never exchange large
563           packets:
564                 1) Web browsers connect, then hang with no data received.
565                 2) Small mail works fine, but large emails hang.
566                 3) ssh works fine, but scp hangs after initial handshaking.
567
568           Workaround: activate this option and add a rule to your firewall
569           configuration like:
570
571           iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
572                          -j TCPMSS --clamp-mss-to-pmtu
573
574           To compile it as a module, choose M here.  If unsure, say N.
575
576 config NETFILTER_XT_TARGET_TCPOPTSTRIP
577         tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
578         depends on EXPERIMENTAL
579         depends on IP_NF_MANGLE || IP6_NF_MANGLE
580         depends on NETFILTER_ADVANCED
581         help
582           This option adds a "TCPOPTSTRIP" target, which allows you to strip
583           TCP options from TCP packets.
584
585 # alphabetically ordered list of matches
586
587 comment "Xtables matches"
588
589 config NETFILTER_XT_MATCH_CLUSTER
590         tristate '"cluster" match support'
591         depends on NF_CONNTRACK
592         depends on NETFILTER_ADVANCED
593         ---help---
594           This option allows you to build work-load-sharing clusters of
595           network servers/stateful firewalls without having a dedicated
596           load-balancing router/server/switch. Basically, this match returns
597           true when the packet must be handled by this cluster node. Thus,
598           all nodes see all packets and this match decides which node handles
599           what packets. The work-load sharing algorithm is based on source
600           address hashing.
601
602           If you say Y or M here, try `iptables -m cluster --help` for
603           more information.
604
605 config NETFILTER_XT_MATCH_COMMENT
606         tristate  '"comment" match support'
607         depends on NETFILTER_ADVANCED
608         help
609           This option adds a `comment' dummy-match, which allows you to put
610           comments in your iptables ruleset.
611
612           If you want to compile it as a module, say M here and read
613           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
614
615 config NETFILTER_XT_MATCH_CONNBYTES
616         tristate  '"connbytes" per-connection counter match support'
617         depends on NF_CONNTRACK
618         depends on NETFILTER_ADVANCED
619         select NF_CT_ACCT
620         help
621           This option adds a `connbytes' match, which allows you to match the
622           number of bytes and/or packets for each direction within a connection.
623
624           If you want to compile it as a module, say M here and read
625           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
626
627 config NETFILTER_XT_MATCH_CONNLIMIT
628         tristate '"connlimit" match support"'
629         depends on NF_CONNTRACK
630         depends on NETFILTER_ADVANCED
631         ---help---
632           This match allows you to match against the number of parallel
633           connections to a server per client IP address (or address block).
634
635 config NETFILTER_XT_MATCH_CONNMARK
636         tristate  '"connmark" connection mark match support'
637         depends on NF_CONNTRACK
638         depends on NETFILTER_ADVANCED
639         select NETFILTER_XT_CONNMARK
640         ---help---
641         This is a backwards-compat option for the user's convenience
642         (e.g. when running oldconfig). It selects
643         CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
644
645 config NETFILTER_XT_MATCH_CONNTRACK
646         tristate '"conntrack" connection tracking match support'
647         depends on NF_CONNTRACK
648         default m if NETFILTER_ADVANCED=n
649         help
650           This is a general conntrack match module, a superset of the state match.
651
652           It allows matching on additional conntrack information, which is
653           useful in complex configurations, such as NAT gateways with multiple
654           internet links or tunnels.
655
656           To compile it as a module, choose M here.  If unsure, say N.
657
658 config NETFILTER_XT_MATCH_DCCP
659         tristate '"dccp" protocol match support'
660         depends on NETFILTER_ADVANCED
661         default IP_DCCP
662         help
663           With this option enabled, you will be able to use the iptables
664           `dccp' match in order to match on DCCP source/destination ports
665           and DCCP flags.
666
667           If you want to compile it as a module, say M here and read
668           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
669
670 config NETFILTER_XT_MATCH_DSCP
671         tristate '"dscp" and "tos" match support'
672         depends on NETFILTER_ADVANCED
673         help
674           This option adds a `DSCP' match, which allows you to match against
675           the IPv4/IPv6 header DSCP field (differentiated services codepoint).
676
677           The DSCP field can have any value between 0x0 and 0x3f inclusive.
678
679           It will also add a "tos" match, which allows you to match packets
680           based on the Type Of Service fields of the IPv4 packet (which share
681           the same bits as DSCP).
682
683           To compile it as a module, choose M here.  If unsure, say N.
684
685 config NETFILTER_XT_MATCH_ESP
686         tristate '"esp" match support'
687         depends on NETFILTER_ADVANCED
688         help
689           This match extension allows you to match a range of SPIs
690           inside ESP header of IPSec packets.
691
692           To compile it as a module, choose M here.  If unsure, say N.
693
694 config NETFILTER_XT_MATCH_HASHLIMIT
695         tristate '"hashlimit" match support'
696         depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
697         depends on NETFILTER_ADVANCED
698         help
699           This option adds a `hashlimit' match.
700
701           As opposed to `limit', this match dynamically creates a hash table
702           of limit buckets, based on your selection of source/destination
703           addresses and/or ports.
704
705           It enables you to express policies like `10kpps for any given
706           destination address' or `500pps from any given source address'
707           with a single rule.
708
709 config NETFILTER_XT_MATCH_HELPER
710         tristate '"helper" match support'
711         depends on NF_CONNTRACK
712         depends on NETFILTER_ADVANCED
713         help
714           Helper matching allows you to match packets in dynamic connections
715           tracked by a conntrack-helper, ie. ip_conntrack_ftp
716
717           To compile it as a module, choose M here.  If unsure, say Y.
718
719 config NETFILTER_XT_MATCH_HL
720         tristate '"hl" hoplimit/TTL match support'
721         depends on NETFILTER_ADVANCED
722         ---help---
723         HL matching allows you to match packets based on the hoplimit
724         in the IPv6 header, or the time-to-live field in the IPv4
725         header of the packet.
726
727 config NETFILTER_XT_MATCH_IPRANGE
728         tristate '"iprange" address range match support'
729         depends on NETFILTER_ADVANCED
730         ---help---
731         This option adds a "iprange" match, which allows you to match based on
732         an IP address range. (Normal iptables only matches on single addresses
733         with an optional mask.)
734
735         If unsure, say M.
736
737 config NETFILTER_XT_MATCH_LENGTH
738         tristate '"length" match support'
739         depends on NETFILTER_ADVANCED
740         help
741           This option allows you to match the length of a packet against a
742           specific value or range of values.
743
744           To compile it as a module, choose M here.  If unsure, say N.
745
746 config NETFILTER_XT_MATCH_LIMIT
747         tristate '"limit" match support'
748         depends on NETFILTER_ADVANCED
749         help
750           limit matching allows you to control the rate at which a rule can be
751           matched: mainly useful in combination with the LOG target ("LOG
752           target support", below) and to avoid some Denial of Service attacks.
753
754           To compile it as a module, choose M here.  If unsure, say N.
755
756 config NETFILTER_XT_MATCH_MAC
757         tristate '"mac" address match support'
758         depends on NETFILTER_ADVANCED
759         help
760           MAC matching allows you to match packets based on the source
761           Ethernet address of the packet.
762
763           To compile it as a module, choose M here.  If unsure, say N.
764
765 config NETFILTER_XT_MATCH_MARK
766         tristate '"mark" match support'
767         depends on NETFILTER_ADVANCED
768         select NETFILTER_XT_MARK
769         ---help---
770         This is a backwards-compat option for the user's convenience
771         (e.g. when running oldconfig). It selects
772         CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
773
774 config NETFILTER_XT_MATCH_MULTIPORT
775         tristate '"multiport" Multiple port match support'
776         depends on NETFILTER_ADVANCED
777         help
778           Multiport matching allows you to match TCP or UDP packets based on
779           a series of source or destination ports: normally a rule can only
780           match a single range of ports.
781
782           To compile it as a module, choose M here.  If unsure, say N.
783
784 config NETFILTER_XT_MATCH_OSF
785         tristate '"osf" Passive OS fingerprint match'
786         depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
787         help
788           This option selects the Passive OS Fingerprinting match module
789           that allows to passively match the remote operating system by
790           analyzing incoming TCP SYN packets.
791
792           Rules and loading software can be downloaded from
793           http://www.ioremap.net/projects/osf
794
795           To compile it as a module, choose M here.  If unsure, say N.
796
797 config NETFILTER_XT_MATCH_OWNER
798         tristate '"owner" match support'
799         depends on NETFILTER_ADVANCED
800         ---help---
801         Socket owner matching allows you to match locally-generated packets
802         based on who created the socket: the user or group. It is also
803         possible to check whether a socket actually exists.
804
805 config NETFILTER_XT_MATCH_POLICY
806         tristate 'IPsec "policy" match support'
807         depends on XFRM
808         default m if NETFILTER_ADVANCED=n
809         help
810           Policy matching allows you to match packets based on the
811           IPsec policy that was used during decapsulation/will
812           be used during encapsulation.
813
814           To compile it as a module, choose M here.  If unsure, say N.
815
816 config NETFILTER_XT_MATCH_PHYSDEV
817         tristate '"physdev" match support'
818         depends on BRIDGE && BRIDGE_NETFILTER
819         depends on NETFILTER_ADVANCED
820         help
821           Physdev packet matching matches against the physical bridge ports
822           the IP packet arrived on or will leave by.
823
824           To compile it as a module, choose M here.  If unsure, say N.
825
826 config NETFILTER_XT_MATCH_PKTTYPE
827         tristate '"pkttype" packet type match support'
828         depends on NETFILTER_ADVANCED
829         help
830           Packet type matching allows you to match a packet by
831           its "class", eg. BROADCAST, MULTICAST, ...
832
833           Typical usage:
834           iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
835
836           To compile it as a module, choose M here.  If unsure, say N.
837
838 config NETFILTER_XT_MATCH_QUOTA
839         tristate '"quota" match support'
840         depends on NETFILTER_ADVANCED
841         help
842           This option adds a `quota' match, which allows to match on a
843           byte counter.
844
845           If you want to compile it as a module, say M here and read
846           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
847
848 config NETFILTER_XT_MATCH_RATEEST
849         tristate '"rateest" match support'
850         depends on NETFILTER_ADVANCED
851         select NETFILTER_XT_TARGET_RATEEST
852         help
853           This option adds a `rateest' match, which allows to match on the
854           rate estimated by the RATEEST target.
855
856           To compile it as a module, choose M here.  If unsure, say N.
857
858 config NETFILTER_XT_MATCH_REALM
859         tristate  '"realm" match support'
860         depends on NETFILTER_ADVANCED
861         select NET_CLS_ROUTE
862         help
863           This option adds a `realm' match, which allows you to use the realm
864           key from the routing subsystem inside iptables.
865
866           This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option 
867           in tc world.
868
869           If you want to compile it as a module, say M here and read
870           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
871
872 config NETFILTER_XT_MATCH_RECENT
873         tristate '"recent" match support'
874         depends on NETFILTER_ADVANCED
875         ---help---
876         This match is used for creating one or many lists of recently
877         used addresses and then matching against that/those list(s).
878
879         Short options are available by using 'iptables -m recent -h'
880         Official Website: <http://snowman.net/projects/ipt_recent/>
881
882 config NETFILTER_XT_MATCH_SCTP
883         tristate  '"sctp" protocol match support (EXPERIMENTAL)'
884         depends on EXPERIMENTAL
885         depends on NETFILTER_ADVANCED
886         default IP_SCTP
887         help
888           With this option enabled, you will be able to use the 
889           `sctp' match in order to match on SCTP source/destination ports
890           and SCTP chunk types.
891
892           If you want to compile it as a module, say M here and read
893           <file:Documentation/kbuild/modules.txt>.  If unsure, say `N'.
894
895 config NETFILTER_XT_MATCH_SOCKET
896         tristate '"socket" match support (EXPERIMENTAL)'
897         depends on EXPERIMENTAL
898         depends on NETFILTER_TPROXY
899         depends on NETFILTER_XTABLES
900         depends on NETFILTER_ADVANCED
901         depends on !NF_CONNTRACK || NF_CONNTRACK
902         select NF_DEFRAG_IPV4
903         help
904           This option adds a `socket' match, which can be used to match
905           packets for which a TCP or UDP socket lookup finds a valid socket.
906           It can be used in combination with the MARK target and policy
907           routing to implement full featured non-locally bound sockets.
908
909           To compile it as a module, choose M here.  If unsure, say N.
910
911 config NETFILTER_XT_MATCH_STATE
912         tristate '"state" match support'
913         depends on NF_CONNTRACK
914         default m if NETFILTER_ADVANCED=n
915         help
916           Connection state matching allows you to match packets based on their
917           relationship to a tracked connection (ie. previous packets).  This
918           is a powerful tool for packet classification.
919
920           To compile it as a module, choose M here.  If unsure, say N.
921
922 config NETFILTER_XT_MATCH_STATISTIC
923         tristate '"statistic" match support'
924         depends on NETFILTER_ADVANCED
925         help
926           This option adds a `statistic' match, which allows you to match
927           on packets periodically or randomly with a given percentage.
928
929           To compile it as a module, choose M here.  If unsure, say N.
930
931 config NETFILTER_XT_MATCH_STRING
932         tristate  '"string" match support'
933         depends on NETFILTER_ADVANCED
934         select TEXTSEARCH
935         select TEXTSEARCH_KMP
936         select TEXTSEARCH_BM
937         select TEXTSEARCH_FSM
938         help
939           This option adds a `string' match, which allows you to look for
940           pattern matchings in packets.
941
942           To compile it as a module, choose M here.  If unsure, say N.
943
944 config NETFILTER_XT_MATCH_TCPMSS
945         tristate '"tcpmss" match support'
946         depends on NETFILTER_ADVANCED
947         help
948           This option adds a `tcpmss' match, which allows you to examine the
949           MSS value of TCP SYN packets, which control the maximum packet size
950           for that connection.
951
952           To compile it as a module, choose M here.  If unsure, say N.
953
954 config NETFILTER_XT_MATCH_TIME
955         tristate '"time" match support'
956         depends on NETFILTER_ADVANCED
957         ---help---
958           This option adds a "time" match, which allows you to match based on
959           the packet arrival time (at the machine which netfilter is running)
960           on) or departure time/date (for locally generated packets).
961
962           If you say Y here, try `iptables -m time --help` for
963           more information.
964
965           If you want to compile it as a module, say M here.
966           If unsure, say N.
967
968 config NETFILTER_XT_MATCH_U32
969         tristate '"u32" match support'
970         depends on NETFILTER_ADVANCED
971         ---help---
972           u32 allows you to extract quantities of up to 4 bytes from a packet,
973           AND them with specified masks, shift them by specified amounts and
974           test whether the results are in any of a set of specified ranges.
975           The specification of what to extract is general enough to skip over
976           headers with lengths stored in the packet, as in IP or TCP header
977           lengths.
978
979           Details and examples are in the kernel module source.
980
981 endif # NETFILTER_XTABLES
982
983 endmenu
984
985 source "net/netfilter/ipvs/Kconfig"