blob: 9c82d4cc86bf8b44fe7fafcd6db8e3d701c12a08 [file] [log] [blame]
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -08001menu "Core Netfilter Configuration"
Patrick McHardy3a411352006-12-12 00:27:46 -08002 depends on NET && INET && NETFILTER
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -08003
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 McHardy587aa642007-03-14 16:37:25 -070028# Rename this to NF_CONNTRACK in a 2.6.25
Patrick McHardyb321e142006-12-02 22:05:46 -080029config NF_CONNTRACK_ENABLED
30 tristate "Netfilter connection tracking support"
31 help
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080032 Connection tracking keeps a record of what packets have passed
33 through your machine, in order to figure out how they are related
34 into connections.
35
Patrick McHardyb321e142006-12-02 22:05:46 -080036 This is required to do Masquerading or other kinds of Network
37 Address Translation (except for Fast NAT). It can also be used to
38 enhance packet filtering (see `Connection state match support'
39 below).
40
41 To compile it as a module, choose M here. If unsure, say N.
42
Patrick McHardyb321e142006-12-02 22:05:46 -080043config NF_CONNTRACK
44 tristate
Patrick McHardy587aa642007-03-14 16:37:25 -070045 default NF_CONNTRACK_ENABLED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080046
47config NF_CT_ACCT
48 bool "Connection tracking flow accounting"
49 depends on NF_CONNTRACK
50 help
51 If this option is enabled, the connection tracking code will
52 keep per-flow packet and byte counters.
53
54 Those counters can be used for flow-based accounting or the
55 `connbytes' match.
56
57 If unsure, say `N'.
58
59config NF_CONNTRACK_MARK
60 bool 'Connection mark tracking support'
61 depends on NF_CONNTRACK
62 help
63 This option enables support for connection marks, used by the
64 `CONNMARK' target and `connmark' match. Similar to the mark value
65 of packets, but this mark value is kept in the conntrack session
66 instead of the individual packets.
67
James Morris7c9728c2006-06-09 00:31:46 -070068config NF_CONNTRACK_SECMARK
69 bool 'Connection tracking security mark support'
70 depends on NF_CONNTRACK && NETWORK_SECMARK
71 help
72 This option enables security markings to be applied to
73 connections. Typically they are copied to connections from
74 packets using the CONNSECMARK target and copied back from
75 connections to packets with the same target, with the packets
76 being originally labeled via SECMARK.
77
78 If unsure, say 'N'.
79
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080080config NF_CONNTRACK_EVENTS
Patrick McHardya7957562005-12-05 13:36:25 -080081 bool "Connection tracking events (EXPERIMENTAL)"
82 depends on EXPERIMENTAL && NF_CONNTRACK
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080083 help
84 If this option is enabled, the connection tracking code will
85 provide a notifier chain that can be used by other kernel code
Thomas Vögtle50b521a2006-03-22 13:53:48 -080086 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080087
88 If unsure, say `N'.
89
Patrick McHardyf09943f2006-12-02 22:09:41 -080090config NF_CT_PROTO_GRE
91 tristate
Patrick McHardyc9386cf2007-01-04 12:16:06 -080092 depends on NF_CONNTRACK
Patrick McHardyf09943f2006-12-02 22:09:41 -080093
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080094config NF_CT_PROTO_SCTP
Patrick McHardya3c47972006-12-02 22:11:01 -080095 tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)'
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080096 depends on EXPERIMENTAL && NF_CONNTRACK
97 default n
98 help
99 With this option enabled, the layer 3 independent connection
100 tracking code will be able to do state tracking on SCTP connections.
101
102 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500103 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800104
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700105config NF_CT_PROTO_UDPLITE
106 tristate 'UDP-Lite protocol connection tracking support (EXPERIMENTAL)'
107 depends on EXPERIMENTAL && NF_CONNTRACK
108 help
109 With this option enabled, the layer 3 independent connection
110 tracking code will be able to do state tracking on UDP-Lite
111 connections.
112
113 To compile it as a module, choose M here. If unsure, say N.
114
Patrick McHardy16958902006-12-02 22:08:26 -0800115config NF_CONNTRACK_AMANDA
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800116 tristate "Amanda backup protocol support"
117 depends on NF_CONNTRACK
Patrick McHardy16958902006-12-02 22:08:26 -0800118 select TEXTSEARCH
119 select TEXTSEARCH_KMP
120 help
121 If you are running the Amanda backup package <http://www.amanda.org/>
122 on this machine or machines that will be MASQUERADED through this
123 machine, then you may want to enable this feature. This allows the
124 connection tracking and natting code to allow the sub-channels that
125 Amanda requires for communication of the backup data, messages and
126 index.
127
128 To compile it as a module, choose M here. If unsure, say N.
129
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800130config NF_CONNTRACK_FTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800131 tristate "FTP protocol support"
132 depends on NF_CONNTRACK
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800133 help
134 Tracking FTP connections is problematic: special helpers are
135 required for tracking them, and doing masquerading and other forms
136 of Network Address Translation on them.
137
138 This is FTP support on Layer 3 independent connection tracking.
139 Layer 3 independent connection tracking is experimental scheme
140 which generalize ip_conntrack to support other layer 3 protocols.
141
142 To compile it as a module, choose M here. If unsure, say N.
143
Patrick McHardyf587de02006-12-02 22:08:46 -0800144config NF_CONNTRACK_H323
145 tristate "H.323 protocol support (EXPERIMENTAL)"
Adrian Bunk3e821982007-02-02 19:33:52 -0800146 depends on EXPERIMENTAL && NF_CONNTRACK && (IPV6 || IPV6=n)
Patrick McHardyf587de02006-12-02 22:08:46 -0800147 help
148 H.323 is a VoIP signalling protocol from ITU-T. As one of the most
149 important VoIP protocols, it is widely used by voice hardware and
150 software including voice gateways, IP phones, Netmeeting, OpenPhone,
151 Gnomemeeting, etc.
152
153 With this module you can support H.323 on a connection tracking/NAT
154 firewall.
155
156 This module supports RAS, Fast Start, H.245 Tunnelling, Call
157 Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
158 whiteboard, file transfer, etc. For more information, please
159 visit http://nath323.sourceforge.net/.
160
161 To compile it as a module, choose M here. If unsure, say N.
162
Patrick McHardy869f37d2006-12-02 22:09:06 -0800163config NF_CONNTRACK_IRC
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800164 tristate "IRC protocol support"
165 depends on NF_CONNTRACK
Patrick McHardy869f37d2006-12-02 22:09:06 -0800166 help
167 There is a commonly-used extension to IRC called
168 Direct Client-to-Client Protocol (DCC). This enables users to send
169 files to each other, and also chat to each other without the need
170 of a server. DCC Sending is used anywhere you send files over IRC,
171 and DCC Chat is most commonly used by Eggdrop bots. If you are
172 using NAT, this extension will enable you to send files and initiate
173 chats. Note that you do NOT need this extension to get files or
174 have others initiate chats, or everything else in IRC.
175
176 To compile it as a module, choose M here. If unsure, say N.
177
Patrick McHardy92703ee2006-12-02 22:09:24 -0800178config NF_CONNTRACK_NETBIOS_NS
179 tristate "NetBIOS name service protocol support (EXPERIMENTAL)"
180 depends on EXPERIMENTAL && NF_CONNTRACK
181 help
182 NetBIOS name service requests are sent as broadcast messages from an
183 unprivileged port and responded to with unicast messages to the
184 same port. This make them hard to firewall properly because connection
185 tracking doesn't deal with broadcasts. This helper tracks locally
186 originating NetBIOS name service requests and the corresponding
187 responses. It relies on correct IP address configuration, specifically
188 netmask and broadcast address. When properly configured, the output
189 of "ip address show" should look similar to this:
190
191 $ ip -4 address show eth0
192 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
193 inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
194
195 To compile it as a module, choose M here. If unsure, say N.
196
Patrick McHardyf09943f2006-12-02 22:09:41 -0800197config NF_CONNTRACK_PPTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800198 tristate "PPtP protocol support"
199 depends on NF_CONNTRACK
Patrick McHardyf09943f2006-12-02 22:09:41 -0800200 select NF_CT_PROTO_GRE
201 help
202 This module adds support for PPTP (Point to Point Tunnelling
203 Protocol, RFC2637) connection tracking and NAT.
204
205 If you are running PPTP sessions over a stateful firewall or NAT
206 box, you may want to enable this feature.
207
208 Please note that not all PPTP modes of operation are supported yet.
209 Specifically these limitations exist:
David Sterba3dde6ad2007-05-09 07:12:20 +0200210 - Blindly assumes that control connections are always established
Patrick McHardyf09943f2006-12-02 22:09:41 -0800211 in PNS->PAC direction. This is a violation of RFC2637.
212 - Only supports a single call within each session
213
214 To compile it as a module, choose M here. If unsure, say N.
215
Michal Schmidt6fecd192007-02-07 15:05:12 -0800216config NF_CONNTRACK_SANE
217 tristate "SANE protocol support (EXPERIMENTAL)"
218 depends on EXPERIMENTAL && NF_CONNTRACK
219 help
220 SANE is a protocol for remote access to scanners as implemented
221 by the 'saned' daemon. Like FTP, it uses separate control and
222 data connections.
223
224 With this module you can support SANE on a connection tracking
225 firewall.
226
227 To compile it as a module, choose M here. If unsure, say N.
228
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800229config NF_CONNTRACK_SIP
230 tristate "SIP protocol support (EXPERIMENTAL)"
231 depends on EXPERIMENTAL && NF_CONNTRACK
232 help
233 SIP is an application-layer control protocol that can establish,
234 modify, and terminate multimedia sessions (conferences) such as
235 Internet telephony calls. With the ip_conntrack_sip and
236 the nf_nat_sip modules you can support the protocol on a connection
237 tracking/NATing firewall.
238
239 To compile it as a module, choose M here. If unsure, say N.
240
Patrick McHardya536df32006-12-02 22:10:18 -0800241config NF_CONNTRACK_TFTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800242 tristate "TFTP protocol support"
243 depends on NF_CONNTRACK
Patrick McHardya536df32006-12-02 22:10:18 -0800244 help
245 TFTP connection tracking helper, this is required depending
246 on how restrictive your ruleset is.
247 If you are using a tftp client behind -j SNAT or -j MASQUERADING
248 you will need this.
249
250 To compile it as a module, choose M here. If unsure, say N.
251
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800252config NF_CT_NETLINK
253 tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
254 depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
255 depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
Patrick McHardyca8fbb82007-03-22 12:29:57 -0700256 depends on NF_NAT=n || NF_NAT
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800257 help
258 This option enables support for a netlink-based userspace interface
259
Harald Welte2e4e6a12006-01-12 13:30:04 -0800260config NETFILTER_XTABLES
261 tristate "Netfilter Xtables support (required for ip_tables)"
262 help
263 This is required if you intend to use any of ip_tables,
264 ip6_tables or arp_tables.
265
266# alphabetically ordered list of targets
267
268config NETFILTER_XT_TARGET_CLASSIFY
269 tristate '"CLASSIFY" target support'
270 depends on NETFILTER_XTABLES
271 help
272 This option adds a `CLASSIFY' target, which enables the user to set
273 the priority of a packet. Some qdiscs can use this value for
274 classification, among these are:
275
276 atm, cbq, dsmark, pfifo_fast, htb, prio
277
278 To compile it as a module, choose M here. If unsure, say N.
279
280config NETFILTER_XT_TARGET_CONNMARK
281 tristate '"CONNMARK" target support'
282 depends on NETFILTER_XTABLES
283 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy587aa642007-03-14 16:37:25 -0700284 depends on NF_CONNTRACK
285 select NF_CONNTRACK_MARK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800286 help
287 This option adds a `CONNMARK' target, which allows one to manipulate
288 the connection mark value. Similar to the MARK target, but
289 affects the connection mark value rather than the packet mark value.
290
291 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500292 <file:Documentation/kbuild/modules.txt>. The module will be called
293 ipt_CONNMARK.ko. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800294
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700295config NETFILTER_XT_TARGET_DSCP
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800296 tristate '"DSCP" and "TOS" target support'
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700297 depends on NETFILTER_XTABLES
298 depends on IP_NF_MANGLE || IP6_NF_MANGLE
299 help
300 This option adds a `DSCP' target, which allows you to manipulate
301 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
302
303 The DSCP field can have any value between 0x0 and 0x3f inclusive.
304
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800305 It also adds the "TOS" target, which allows you to create rules in
306 the "mangle" table which alter the Type Of Service field of an IPv4
307 packet prior to routing.
308
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700309 To compile it as a module, choose M here. If unsure, say N.
310
Harald Welte2e4e6a12006-01-12 13:30:04 -0800311config NETFILTER_XT_TARGET_MARK
312 tristate '"MARK" target support'
313 depends on NETFILTER_XTABLES
314 help
315 This option adds a `MARK' target, which allows you to create rules
316 in the `mangle' table which alter the netfilter mark (nfmark) field
317 associated with the packet prior to routing. This can change
318 the routing method (see `Use netfilter MARK value as routing
319 key') and can also be used by other subsystems to change their
320 behavior.
321
322 To compile it as a module, choose M here. If unsure, say N.
323
324config NETFILTER_XT_TARGET_NFQUEUE
325 tristate '"NFQUEUE" target Support'
326 depends on NETFILTER_XTABLES
327 help
Thomas Vögtle50b521a2006-03-22 13:53:48 -0800328 This target replaced the old obsolete QUEUE target.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800329
330 As opposed to QUEUE, it supports 65535 different queues,
331 not just one.
332
333 To compile it as a module, choose M here. If unsure, say N.
334
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100335config NETFILTER_XT_TARGET_NFLOG
336 tristate '"NFLOG" target support'
337 depends on NETFILTER_XTABLES
338 help
339 This option enables the NFLOG target, which allows to LOG
340 messages through the netfilter logging API, which can use
341 either the old LOG target, the old ULOG target or nfnetlink_log
342 as backend.
343
344 To compile it as a module, choose M here. If unsure, say N.
345
Harald Welte2e4e6a12006-01-12 13:30:04 -0800346config NETFILTER_XT_TARGET_NOTRACK
347 tristate '"NOTRACK" target support'
348 depends on NETFILTER_XTABLES
349 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy587aa642007-03-14 16:37:25 -0700350 depends on NF_CONNTRACK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800351 help
352 The NOTRACK target allows a select rule to specify
353 which packets *not* to enter the conntrack/NAT
354 subsystem with all the consequences (no ICMP error tracking,
355 no protocol helpers for the selected packets).
356
357 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500358 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800359
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700360config NETFILTER_XT_TARGET_TRACE
361 tristate '"TRACE" target support'
362 depends on NETFILTER_XTABLES
363 depends on IP_NF_RAW || IP6_NF_RAW
364 help
365 The TRACE target allows you to mark packets so that the kernel
366 will log every rule which match the packets as those traverse
367 the tables, chains, rules.
368
369 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700370 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700371
James Morris5e6874cd2006-06-09 00:30:57 -0700372config NETFILTER_XT_TARGET_SECMARK
373 tristate '"SECMARK" target support'
374 depends on NETFILTER_XTABLES && NETWORK_SECMARK
375 help
376 The SECMARK target allows security marking of network
377 packets, for use with security subsystems.
378
379 To compile it as a module, choose M here. If unsure, say N.
380
James Morris100468e2006-06-09 00:32:39 -0700381config NETFILTER_XT_TARGET_CONNSECMARK
382 tristate '"CONNSECMARK" target support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700383 depends on NETFILTER_XTABLES && NF_CONNTRACK && NF_CONNTRACK_SECMARK
James Morris100468e2006-06-09 00:32:39 -0700384 help
385 The CONNSECMARK target copies security markings from packets
386 to connections, and restores security markings from connections
387 to packets (if the packets are not already marked). This would
388 normally be used in conjunction with the SECMARK target.
389
390 To compile it as a module, choose M here. If unsure, say N.
391
Patrick McHardycdd289a2007-02-07 15:09:46 -0800392config NETFILTER_XT_TARGET_TCPMSS
393 tristate '"TCPMSS" target support'
394 depends on NETFILTER_XTABLES && (IPV6 || IPV6=n)
395 ---help---
396 This option adds a `TCPMSS' target, which allows you to alter the
397 MSS value of TCP SYN packets, to control the maximum size for that
398 connection (usually limiting it to your outgoing interface's MTU
399 minus 40).
400
401 This is used to overcome criminally braindead ISPs or servers which
402 block ICMP Fragmentation Needed packets. The symptoms of this
403 problem are that everything works fine from your Linux
404 firewall/router, but machines behind it can never exchange large
405 packets:
406 1) Web browsers connect, then hang with no data received.
407 2) Small mail works fine, but large emails hang.
408 3) ssh works fine, but scp hangs after initial handshaking.
409
410 Workaround: activate this option and add a rule to your firewall
411 configuration like:
412
413 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
414 -j TCPMSS --clamp-mss-to-pmtu
415
416 To compile it as a module, choose M here. If unsure, say N.
417
Sven Schnelle338e8a72007-12-04 23:21:50 -0800418config NETFILTER_XT_TARGET_TCPOPTSTRIP
419 tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
420 depends on EXPERIMENTAL && NETFILTER_XTABLES
421 depends on IP_NF_MANGLE || IP6_NF_MANGLE
422 help
423 This option adds a "TCPOPTSTRIP" target, which allows you to strip
424 TCP options from TCP packets.
425
Harald Welte2e4e6a12006-01-12 13:30:04 -0800426config NETFILTER_XT_MATCH_COMMENT
427 tristate '"comment" match support'
428 depends on NETFILTER_XTABLES
429 help
430 This option adds a `comment' dummy-match, which allows you to put
431 comments in your iptables ruleset.
432
433 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500434 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800435
436config NETFILTER_XT_MATCH_CONNBYTES
437 tristate '"connbytes" per-connection counter match support'
438 depends on NETFILTER_XTABLES
Patrick McHardy587aa642007-03-14 16:37:25 -0700439 depends on NF_CONNTRACK
440 select NF_CT_ACCT
Harald Welte2e4e6a12006-01-12 13:30:04 -0800441 help
442 This option adds a `connbytes' match, which allows you to match the
443 number of bytes and/or packets for each direction within a connection.
444
445 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500446 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800447
Jan Engelhardt370786f2007-07-14 20:47:26 -0700448config NETFILTER_XT_MATCH_CONNLIMIT
449 tristate '"connlimit" match support"'
450 depends on NETFILTER_XTABLES
Cornelia Huck3fd8f9e2007-07-18 02:38:32 -0700451 depends on NF_CONNTRACK
Jan Engelhardt370786f2007-07-14 20:47:26 -0700452 ---help---
453 This match allows you to match against the number of parallel
454 connections to a server per client IP address (or address block).
455
Harald Welte2e4e6a12006-01-12 13:30:04 -0800456config NETFILTER_XT_MATCH_CONNMARK
457 tristate '"connmark" connection mark match support'
458 depends on NETFILTER_XTABLES
Patrick McHardy587aa642007-03-14 16:37:25 -0700459 depends on NF_CONNTRACK
460 select NF_CONNTRACK_MARK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800461 help
462 This option adds a `connmark' match, which allows you to match the
463 connection mark value previously set for the session by `CONNMARK'.
464
465 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500466 <file:Documentation/kbuild/modules.txt>. The module will be called
467 ipt_connmark.ko. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800468
469config NETFILTER_XT_MATCH_CONNTRACK
470 tristate '"conntrack" connection tracking match support'
471 depends on NETFILTER_XTABLES
Patrick McHardy587aa642007-03-14 16:37:25 -0700472 depends on NF_CONNTRACK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800473 help
474 This is a general conntrack match module, a superset of the state match.
475
476 It allows matching on additional conntrack information, which is
477 useful in complex configurations, such as NAT gateways with multiple
478 internet links or tunnels.
479
480 To compile it as a module, choose M here. If unsure, say N.
481
482config NETFILTER_XT_MATCH_DCCP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800483 tristate '"dccp" protocol match support'
Harald Welte2e4e6a12006-01-12 13:30:04 -0800484 depends on NETFILTER_XTABLES
485 help
486 With this option enabled, you will be able to use the iptables
487 `dccp' match in order to match on DCCP source/destination ports
488 and DCCP flags.
489
490 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500491 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800492
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700493config NETFILTER_XT_MATCH_DSCP
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800494 tristate '"dscp" and "tos" match support'
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700495 depends on NETFILTER_XTABLES
496 help
497 This option adds a `DSCP' match, which allows you to match against
498 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
499
500 The DSCP field can have any value between 0x0 and 0x3f inclusive.
501
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800502 It will also add a "tos" match, which allows you to match packets
503 based on the Type Of Service fields of the IPv4 packet (which share
504 the same bits as DSCP).
505
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700506 To compile it as a module, choose M here. If unsure, say N.
507
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800508config NETFILTER_XT_MATCH_ESP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800509 tristate '"esp" match support'
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800510 depends on NETFILTER_XTABLES
511 help
512 This match extension allows you to match a range of SPIs
513 inside ESP header of IPSec packets.
514
515 To compile it as a module, choose M here. If unsure, say N.
516
Harald Welte2e4e6a12006-01-12 13:30:04 -0800517config NETFILTER_XT_MATCH_HELPER
518 tristate '"helper" match support'
519 depends on NETFILTER_XTABLES
Patrick McHardy587aa642007-03-14 16:37:25 -0700520 depends on NF_CONNTRACK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800521 help
522 Helper matching allows you to match packets in dynamic connections
523 tracked by a conntrack-helper, ie. ip_conntrack_ftp
524
525 To compile it as a module, choose M here. If unsure, say Y.
526
527config NETFILTER_XT_MATCH_LENGTH
528 tristate '"length" match support'
529 depends on NETFILTER_XTABLES
530 help
531 This option allows you to match the length of a packet against a
532 specific value or range of values.
533
534 To compile it as a module, choose M here. If unsure, say N.
535
536config NETFILTER_XT_MATCH_LIMIT
537 tristate '"limit" match support'
538 depends on NETFILTER_XTABLES
539 help
540 limit matching allows you to control the rate at which a rule can be
541 matched: mainly useful in combination with the LOG target ("LOG
542 target support", below) and to avoid some Denial of Service attacks.
543
544 To compile it as a module, choose M here. If unsure, say N.
545
546config NETFILTER_XT_MATCH_MAC
547 tristate '"mac" address match support'
548 depends on NETFILTER_XTABLES
549 help
550 MAC matching allows you to match packets based on the source
551 Ethernet address of the packet.
552
553 To compile it as a module, choose M here. If unsure, say N.
554
555config NETFILTER_XT_MATCH_MARK
556 tristate '"mark" match support'
557 depends on NETFILTER_XTABLES
558 help
559 Netfilter mark matching allows you to match packets based on the
560 `nfmark' value in the packet. This can be set by the MARK target
561 (see below).
562
563 To compile it as a module, choose M here. If unsure, say N.
564
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800565config NETFILTER_XT_MATCH_OWNER
566 tristate '"owner" match support'
567 depends on NETFILTER_XTABLES
568 ---help---
569 Socket owner matching allows you to match locally-generated packets
570 based on who created the socket: the user or group. It is also
571 possible to check whether a socket actually exists.
572
Patrick McHardyc4b88512006-03-20 18:03:40 -0800573config NETFILTER_XT_MATCH_POLICY
574 tristate 'IPsec "policy" match support'
575 depends on NETFILTER_XTABLES && XFRM
576 help
577 Policy matching allows you to match packets based on the
578 IPsec policy that was used during decapsulation/will
579 be used during encapsulation.
580
581 To compile it as a module, choose M here. If unsure, say N.
582
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -0800583config NETFILTER_XT_MATCH_MULTIPORT
Jan Engelhardt4c377992007-12-04 23:31:59 -0800584 tristate '"multiport" Multiple port match support'
Yasuyuki Kozakaia89ecb62006-04-01 02:22:54 -0800585 depends on NETFILTER_XTABLES
586 help
587 Multiport matching allows you to match TCP or UDP packets based on
588 a series of source or destination ports: normally a rule can only
589 match a single range of ports.
590
591 To compile it as a module, choose M here. If unsure, say N.
592
Harald Welte2e4e6a12006-01-12 13:30:04 -0800593config NETFILTER_XT_MATCH_PHYSDEV
594 tristate '"physdev" match support'
Patrick McHardyf1da7062006-10-02 16:10:47 -0700595 depends on NETFILTER_XTABLES && BRIDGE && BRIDGE_NETFILTER
Harald Welte2e4e6a12006-01-12 13:30:04 -0800596 help
597 Physdev packet matching matches against the physical bridge ports
598 the IP packet arrived on or will leave by.
599
600 To compile it as a module, choose M here. If unsure, say N.
601
602config NETFILTER_XT_MATCH_PKTTYPE
603 tristate '"pkttype" packet type match support'
604 depends on NETFILTER_XTABLES
605 help
606 Packet type matching allows you to match a packet by
607 its "class", eg. BROADCAST, MULTICAST, ...
608
609 Typical usage:
610 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
611
612 To compile it as a module, choose M here. If unsure, say N.
613
Patrick McHardy62b77432006-05-29 18:20:32 -0700614config NETFILTER_XT_MATCH_QUOTA
615 tristate '"quota" match support'
616 depends on NETFILTER_XTABLES
617 help
618 This option adds a `quota' match, which allows to match on a
619 byte counter.
620
621 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500622 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Patrick McHardy62b77432006-05-29 18:20:32 -0700623
Harald Welte2e4e6a12006-01-12 13:30:04 -0800624config NETFILTER_XT_MATCH_REALM
625 tristate '"realm" match support'
626 depends on NETFILTER_XTABLES
627 select NET_CLS_ROUTE
628 help
629 This option adds a `realm' match, which allows you to use the realm
630 key from the routing subsystem inside iptables.
631
632 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
633 in tc world.
634
635 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500636 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800637
638config NETFILTER_XT_MATCH_SCTP
Patrick McHardyd5af9812006-07-24 22:55:29 -0700639 tristate '"sctp" protocol match support (EXPERIMENTAL)'
640 depends on NETFILTER_XTABLES && EXPERIMENTAL
Harald Welte2e4e6a12006-01-12 13:30:04 -0800641 help
642 With this option enabled, you will be able to use the
643 `sctp' match in order to match on SCTP source/destination ports
644 and SCTP chunk types.
645
646 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500647 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800648
649config NETFILTER_XT_MATCH_STATE
650 tristate '"state" match support'
651 depends on NETFILTER_XTABLES
Patrick McHardy587aa642007-03-14 16:37:25 -0700652 depends on NF_CONNTRACK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800653 help
654 Connection state matching allows you to match packets based on their
655 relationship to a tracked connection (ie. previous packets). This
656 is a powerful tool for packet classification.
657
658 To compile it as a module, choose M here. If unsure, say N.
659
Patrick McHardyf3389802006-05-29 18:21:00 -0700660config NETFILTER_XT_MATCH_STATISTIC
661 tristate '"statistic" match support'
662 depends on NETFILTER_XTABLES
663 help
Patrick McHardy68c16922006-06-27 03:02:14 -0700664 This option adds a `statistic' match, which allows you to match
665 on packets periodically or randomly with a given percentage.
666
667 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -0700668
Harald Welte2e4e6a12006-01-12 13:30:04 -0800669config NETFILTER_XT_MATCH_STRING
670 tristate '"string" match support'
671 depends on NETFILTER_XTABLES
672 select TEXTSEARCH
673 select TEXTSEARCH_KMP
674 select TEXTSEARCH_BM
675 select TEXTSEARCH_FSM
676 help
677 This option adds a `string' match, which allows you to look for
678 pattern matchings in packets.
679
680 To compile it as a module, choose M here. If unsure, say N.
681
682config NETFILTER_XT_MATCH_TCPMSS
683 tristate '"tcpmss" match support'
684 depends on NETFILTER_XTABLES
685 help
686 This option adds a `tcpmss' match, which allows you to examine the
687 MSS value of TCP SYN packets, which control the maximum packet size
688 for that connection.
689
690 To compile it as a module, choose M here. If unsure, say N.
691
Jan Engelhardtee4411a2007-09-28 14:46:43 -0700692config NETFILTER_XT_MATCH_TIME
693 tristate '"time" match support'
694 depends on NETFILTER_XTABLES
695 ---help---
696 This option adds a "time" match, which allows you to match based on
697 the packet arrival time (at the machine which netfilter is running)
698 on) or departure time/date (for locally generated packets).
699
700 If you say Y here, try `iptables -m time --help` for
701 more information.
702
703 If you want to compile it as a module, say M here.
704 If unsure, say N.
705
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -0700706config NETFILTER_XT_MATCH_U32
707 tristate '"u32" match support'
708 depends on NETFILTER_XTABLES
709 ---help---
710 u32 allows you to extract quantities of up to 4 bytes from a packet,
711 AND them with specified masks, shift them by specified amounts and
712 test whether the results are in any of a set of specified ranges.
713 The specification of what to extract is general enough to skip over
714 headers with lengths stored in the packet, as in IP or TCP header
715 lengths.
716
717 Details and examples are in the kernel module source.
718
Patrick McHardy39b46fc2006-11-29 02:35:36 +0100719config NETFILTER_XT_MATCH_HASHLIMIT
720 tristate '"hashlimit" match support'
Patrick McHardy2e553022007-01-30 21:36:09 -0800721 depends on NETFILTER_XTABLES && (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
Patrick McHardy39b46fc2006-11-29 02:35:36 +0100722 help
723 This option adds a `hashlimit' match.
724
725 As opposed to `limit', this match dynamically creates a hash table
726 of limit buckets, based on your selection of source/destination
727 addresses and/or ports.
728
729 It enables you to express policies like `10kpps for any given
730 destination address' or `500pps from any given source address'
731 with a single rule.
732
Harald Weltea6c1cd572006-02-13 15:42:48 -0800733endmenu
734