blob: e223f47b8bae1a457779fed1a4c1e2509b707328 [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
Patrick McHardy2eeeba32007-12-05 01:31:52 -08005 tristate
Harald Welte7af4cc32005-08-09 19:44:15 -07006
7config NETFILTER_NETLINK_QUEUE
8 tristate "Netfilter NFQUEUE over NFNETLINK interface"
Patrick McHardy33b8e772007-12-17 22:47:05 -08009 depends on NETFILTER_ADVANCED
Patrick McHardy2eeeba32007-12-05 01:31:52 -080010 select NETFILTER_NETLINK
Harald Welte7af4cc32005-08-09 19:44:15 -070011 help
Thomas Vögtle50b521a2006-03-22 13:53:48 -080012 If this option is enabled, the kernel will include support
Harald Welte7af4cc32005-08-09 19:44:15 -070013 for queueing packets via NFNETLINK.
14
Harald Welte0597f262005-08-09 19:58:39 -070015config NETFILTER_NETLINK_LOG
16 tristate "Netfilter LOG over NFNETLINK interface"
Patrick McHardy33b8e772007-12-17 22:47:05 -080017 default m if NETFILTER_ADVANCED=n
Patrick McHardy2eeeba32007-12-05 01:31:52 -080018 select NETFILTER_NETLINK
Harald Welte0597f262005-08-09 19:58:39 -070019 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
Patrick McHardyab4f58c2007-12-05 01:31:37 -080027config NF_CONNTRACK
Patrick McHardyb321e142006-12-02 22:05:46 -080028 tristate "Netfilter connection tracking support"
Patrick McHardy33b8e772007-12-17 22:47:05 -080029 default m if NETFILTER_ADVANCED=n
Patrick McHardyb321e142006-12-02 22:05:46 -080030 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
Russ Dillb11c16b2008-07-08 02:35:27 -070036 Address Translation. It can also be used to enhance packet
37 filtering (see `Connection state match support' below).
Patrick McHardyb321e142006-12-02 22:05:46 -080038
39 To compile it as a module, choose M here. If unsure, say N.
40
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020041if NF_CONNTRACK
42
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080043config NF_CT_ACCT
44 bool "Connection tracking flow accounting"
Patrick McHardy33b8e772007-12-17 22:47:05 -080045 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080046 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
Krzysztof Piotr Oledzki58401572008-07-21 10:01:34 -070053 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
Matt LaPlante692105b2009-01-26 11:12:25 +010055 parameter or by loading the nf_conntrack module with acct=0/1.
Krzysztof Piotr Oledzki58401572008-07-21 10:01:34 -070056
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
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080062 If unsure, say `N'.
63
64config NF_CONNTRACK_MARK
65 bool 'Connection mark tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080066 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080067 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
James Morris7c9728c2006-06-09 00:31:46 -070073config NF_CONNTRACK_SECMARK
74 bool 'Connection tracking security mark support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020075 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -080076 default m if NETFILTER_ADVANCED=n
James Morris7c9728c2006-06-09 00:31:46 -070077 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
Patrick McHardy5d0aa2c2010-02-15 18:13:33 +010086config 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
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080099config NF_CONNTRACK_EVENTS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800100 bool "Connection tracking events"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800101 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800102 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
Thomas Vögtle50b521a2006-03-22 13:53:48 -0800105 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800106
107 If unsure, say `N'.
108
Patrick McHardy2bc78042008-03-20 15:15:55 +0100109config NF_CT_PROTO_DCCP
110 tristate 'DCCP protocol connection tracking support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200111 depends on EXPERIMENTAL
Patrick McHardy2bc78042008-03-20 15:15:55 +0100112 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700113 default IP_DCCP
Patrick McHardy2bc78042008-03-20 15:15:55 +0100114 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
Patrick McHardyf09943f2006-12-02 22:09:41 -0800120config NF_CT_PROTO_GRE
121 tristate
Patrick McHardyf09943f2006-12-02 22:09:41 -0800122
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800123config NF_CT_PROTO_SCTP
Patrick McHardya3c47972006-12-02 22:11:01 -0800124 tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200125 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800126 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700127 default IP_SCTP
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800128 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
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500133 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800134
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700135config NF_CT_PROTO_UDPLITE
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800136 tristate 'UDP-Lite protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800137 depends on NETFILTER_ADVANCED
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700138 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
Patrick McHardy16958902006-12-02 22:08:26 -0800145config NF_CONNTRACK_AMANDA
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800146 tristate "Amanda backup protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800147 depends on NETFILTER_ADVANCED
Patrick McHardy16958902006-12-02 22:08:26 -0800148 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
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800160config NF_CONNTRACK_FTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800161 tristate "FTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800162 default m if NETFILTER_ADVANCED=n
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800163 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
Patrick McHardyf587de02006-12-02 22:08:46 -0800174config NF_CONNTRACK_H323
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800175 tristate "H.323 protocol support"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200176 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800177 depends on NETFILTER_ADVANCED
Patrick McHardyf587de02006-12-02 22:08:46 -0800178 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
Patrick McHardy869f37d2006-12-02 22:09:06 -0800194config NF_CONNTRACK_IRC
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800195 tristate "IRC protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800196 default m if NETFILTER_ADVANCED=n
Patrick McHardy869f37d2006-12-02 22:09:06 -0800197 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
Patrick McHardy92703ee2006-12-02 22:09:24 -0800209config NF_CONNTRACK_NETBIOS_NS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800210 tristate "NetBIOS name service protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800211 depends on NETFILTER_ADVANCED
Patrick McHardy92703ee2006-12-02 22:09:24 -0800212 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
Patrick McHardyf09943f2006-12-02 22:09:41 -0800228config NF_CONNTRACK_PPTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800229 tristate "PPtP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800230 depends on NETFILTER_ADVANCED
Patrick McHardyf09943f2006-12-02 22:09:41 -0800231 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:
David Sterba3dde6ad2007-05-09 07:12:20 +0200241 - Blindly assumes that control connections are always established
Patrick McHardyf09943f2006-12-02 22:09:41 -0800242 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
Michal Schmidt6fecd192007-02-07 15:05:12 -0800247config NF_CONNTRACK_SANE
248 tristate "SANE protocol support (EXPERIMENTAL)"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200249 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800250 depends on NETFILTER_ADVANCED
Michal Schmidt6fecd192007-02-07 15:05:12 -0800251 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
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800261config NF_CONNTRACK_SIP
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800262 tristate "SIP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800263 default m if NETFILTER_ADVANCED=n
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800264 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
Patrick McHardya536df32006-12-02 22:10:18 -0800273config NF_CONNTRACK_TFTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800274 tristate "TFTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800275 depends on NETFILTER_ADVANCED
Patrick McHardya536df32006-12-02 22:10:18 -0800276 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
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800284config NF_CT_NETLINK
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800285 tristate 'Connection tracking netlink interface'
Patrick McHardy2eeeba32007-12-05 01:31:52 -0800286 select NETFILTER_NETLINK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800287 default m if NETFILTER_ADVANCED=n
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800288 help
289 This option enables support for a netlink-based userspace interface
290
Laszlo Attila Toth4b070662009-04-24 16:55:25 +0200291endif # NF_CONNTRACK
292
KOVACS Krisztian9ad2d742008-10-08 11:35:12 +0200293# transparent proxy support
294config 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
Harald Welte2e4e6a12006-01-12 13:30:04 -0800308config NETFILTER_XTABLES
309 tristate "Netfilter Xtables support (required for ip_tables)"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800310 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800311 help
312 This is required if you intend to use any of ip_tables,
313 ip6_tables or arp_tables.
314
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200315if NETFILTER_XTABLES
316
Jan Engelhardt28b94982009-02-28 03:23:57 +0100317comment "Xtables combined modules"
318
319config 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
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100334config 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
Harald Welte2e4e6a12006-01-12 13:30:04 -0800346# alphabetically ordered list of targets
347
Jan Engelhardt44c58732010-02-26 14:14:22 +0100348comment "Xtables targets"
349
Harald Welte2e4e6a12006-01-12 13:30:04 -0800350config NETFILTER_XT_TARGET_CLASSIFY
351 tristate '"CLASSIFY" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800352 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800353 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
362config NETFILTER_XT_TARGET_CONNMARK
363 tristate '"CONNMARK" target support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700364 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800365 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100366 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).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800371
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200372config NETFILTER_XT_TARGET_CONNSECMARK
373 tristate '"CONNSECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200374 depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200375 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
Patrick McHardy84f3bb92010-02-03 17:17:06 +0100384config 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
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700396config NETFILTER_XT_TARGET_DSCP
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800397 tristate '"DSCP" and "TOS" target support'
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700398 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800399 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700400 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
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800406 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
Jan Engelhardt5c350e52007-12-04 23:39:09 -0800408 or the Priority field of an IPv6 packet, prior to routing.
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800409
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700410 To compile it as a module, choose M here. If unsure, say N.
411
Jan Engelhardt563d36e2009-02-18 18:38:40 +0100412config 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
Adam Nielsen268cb382009-02-20 10:55:14 +0100427config NETFILTER_XT_TARGET_LED
428 tristate '"LED" target support'
Alex Riesen3ae16f12009-04-06 17:09:43 +0200429 depends on LEDS_CLASS && LEDS_TRIGGERS
Adam Nielsen268cb382009-02-20 10:55:14 +0100430 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
Harald Welte2e4e6a12006-01-12 13:30:04 -0800451config NETFILTER_XT_TARGET_MARK
452 tristate '"MARK" target support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100453 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).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800459
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100460config NETFILTER_XT_TARGET_NFLOG
461 tristate '"NFLOG" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800462 default m if NETFILTER_ADVANCED=n
Eric Leblond293a4f22008-12-10 17:24:33 -0800463 select NETFILTER_NETLINK_LOG
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100464 help
465 This option enables the NFLOG target, which allows to LOG
Eric Leblond293a4f22008-12-10 17:24:33 -0800466 messages through nfnetlink_log.
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100467
468 To compile it as a module, choose M here. If unsure, say N.
469
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200470config NETFILTER_XT_TARGET_NFQUEUE
471 tristate '"NFQUEUE" target Support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200472 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
Harald Welte2e4e6a12006-01-12 13:30:04 -0800481config NETFILTER_XT_TARGET_NOTRACK
482 tristate '"NOTRACK" target support'
Harald Welte2e4e6a12006-01-12 13:30:04 -0800483 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy587aa642007-03-14 16:37:25 -0700484 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800485 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800486 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).
Patrick McHardy33b8e772007-12-17 22:47:05 -0800491
Harald Welte2e4e6a12006-01-12 13:30:04 -0800492 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500493 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800494
Patrick McHardy58590342007-12-04 23:40:05 -0800495config NETFILTER_XT_TARGET_RATEEST
496 tristate '"RATEEST" target support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800497 depends on NETFILTER_ADVANCED
Patrick McHardy58590342007-12-04 23:40:05 -0800498 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
Jan Engelhardte281b192010-04-19 14:17:47 +0200505config NETFILTER_XT_TARGET_TEE
506 tristate '"TEE" - packet cloning to alternate destiantion'
507 depends on NETFILTER_ADVANCED
Jan Engelhardt9b7ce2b2010-05-12 10:11:35 +0000508 depends on (IPV6 || IPV6=n)
Jan Engelhardte281b192010-04-19 14:17:47 +0200509 ---help---
510 This option adds a "TEE" target with which a packet can be cloned and
511 this clone be rerouted to another nexthop.
512
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200513config NETFILTER_XT_TARGET_TPROXY
514 tristate '"TPROXY" target support (EXPERIMENTAL)'
515 depends on EXPERIMENTAL
516 depends on NETFILTER_TPROXY
517 depends on NETFILTER_XTABLES
518 depends on NETFILTER_ADVANCED
519 select NF_DEFRAG_IPV4
520 help
521 This option adds a `TPROXY' target, which is somewhat similar to
522 REDIRECT. It can only be used in the mangle table and is useful
523 to redirect traffic to a transparent proxy. It does _not_ depend
524 on Netfilter connection tracking and NAT, unlike REDIRECT.
525
526 To compile it as a module, choose M here. If unsure, say N.
527
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700528config NETFILTER_XT_TARGET_TRACE
529 tristate '"TRACE" target support'
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700530 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy33b8e772007-12-17 22:47:05 -0800531 depends on NETFILTER_ADVANCED
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700532 help
533 The TRACE target allows you to mark packets so that the kernel
534 will log every rule which match the packets as those traverse
535 the tables, chains, rules.
536
537 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700538 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700539
James Morris5e6874cd2006-06-09 00:30:57 -0700540config NETFILTER_XT_TARGET_SECMARK
541 tristate '"SECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200542 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800543 default m if NETFILTER_ADVANCED=n
James Morris5e6874cd2006-06-09 00:30:57 -0700544 help
545 The SECMARK target allows security marking of network
546 packets, for use with security subsystems.
547
548 To compile it as a module, choose M here. If unsure, say N.
549
Patrick McHardycdd289a2007-02-07 15:09:46 -0800550config NETFILTER_XT_TARGET_TCPMSS
551 tristate '"TCPMSS" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200552 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800553 default m if NETFILTER_ADVANCED=n
Patrick McHardycdd289a2007-02-07 15:09:46 -0800554 ---help---
555 This option adds a `TCPMSS' target, which allows you to alter the
556 MSS value of TCP SYN packets, to control the maximum size for that
557 connection (usually limiting it to your outgoing interface's MTU
558 minus 40).
559
560 This is used to overcome criminally braindead ISPs or servers which
561 block ICMP Fragmentation Needed packets. The symptoms of this
562 problem are that everything works fine from your Linux
563 firewall/router, but machines behind it can never exchange large
564 packets:
565 1) Web browsers connect, then hang with no data received.
566 2) Small mail works fine, but large emails hang.
567 3) ssh works fine, but scp hangs after initial handshaking.
568
569 Workaround: activate this option and add a rule to your firewall
570 configuration like:
571
572 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
573 -j TCPMSS --clamp-mss-to-pmtu
574
575 To compile it as a module, choose M here. If unsure, say N.
576
Sven Schnelle338e8a72007-12-04 23:21:50 -0800577config NETFILTER_XT_TARGET_TCPOPTSTRIP
578 tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200579 depends on EXPERIMENTAL
Sven Schnelle338e8a72007-12-04 23:21:50 -0800580 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800581 depends on NETFILTER_ADVANCED
Sven Schnelle338e8a72007-12-04 23:21:50 -0800582 help
583 This option adds a "TCPOPTSTRIP" target, which allows you to strip
584 TCP options from TCP packets.
585
Jan Engelhardt44c58732010-02-26 14:14:22 +0100586# alphabetically ordered list of matches
587
588comment "Xtables matches"
589
Pablo Neira Ayuso0269ea42009-03-16 17:10:36 +0100590config NETFILTER_XT_MATCH_CLUSTER
591 tristate '"cluster" match support'
592 depends on NF_CONNTRACK
593 depends on NETFILTER_ADVANCED
594 ---help---
595 This option allows you to build work-load-sharing clusters of
596 network servers/stateful firewalls without having a dedicated
597 load-balancing router/server/switch. Basically, this match returns
598 true when the packet must be handled by this cluster node. Thus,
599 all nodes see all packets and this match decides which node handles
600 what packets. The work-load sharing algorithm is based on source
601 address hashing.
602
603 If you say Y or M here, try `iptables -m cluster --help` for
604 more information.
605
Harald Welte2e4e6a12006-01-12 13:30:04 -0800606config NETFILTER_XT_MATCH_COMMENT
607 tristate '"comment" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800608 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800609 help
610 This option adds a `comment' dummy-match, which allows you to put
611 comments in your iptables ruleset.
612
613 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500614 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800615
616config NETFILTER_XT_MATCH_CONNBYTES
617 tristate '"connbytes" per-connection counter match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700618 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800619 depends on NETFILTER_ADVANCED
Patrick McHardy587aa642007-03-14 16:37:25 -0700620 select NF_CT_ACCT
Harald Welte2e4e6a12006-01-12 13:30:04 -0800621 help
622 This option adds a `connbytes' match, which allows you to match the
623 number of bytes and/or packets for each direction within a connection.
624
625 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500626 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800627
Jan Engelhardt370786f2007-07-14 20:47:26 -0700628config NETFILTER_XT_MATCH_CONNLIMIT
629 tristate '"connlimit" match support"'
Cornelia Huck3fd8f9e2007-07-18 02:38:32 -0700630 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800631 depends on NETFILTER_ADVANCED
Jan Engelhardt370786f2007-07-14 20:47:26 -0700632 ---help---
633 This match allows you to match against the number of parallel
634 connections to a server per client IP address (or address block).
635
Harald Welte2e4e6a12006-01-12 13:30:04 -0800636config NETFILTER_XT_MATCH_CONNMARK
637 tristate '"connmark" connection mark match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700638 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800639 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100640 select NETFILTER_XT_CONNMARK
641 ---help---
642 This is a backwards-compat option for the user's convenience
643 (e.g. when running oldconfig). It selects
644 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800645
646config NETFILTER_XT_MATCH_CONNTRACK
647 tristate '"conntrack" connection tracking match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700648 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800649 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800650 help
651 This is a general conntrack match module, a superset of the state match.
652
653 It allows matching on additional conntrack information, which is
654 useful in complex configurations, such as NAT gateways with multiple
655 internet links or tunnels.
656
657 To compile it as a module, choose M here. If unsure, say N.
658
659config NETFILTER_XT_MATCH_DCCP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800660 tristate '"dccp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800661 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700662 default IP_DCCP
Harald Welte2e4e6a12006-01-12 13:30:04 -0800663 help
664 With this option enabled, you will be able to use the iptables
665 `dccp' match in order to match on DCCP source/destination ports
666 and DCCP flags.
667
668 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500669 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800670
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700671config NETFILTER_XT_MATCH_DSCP
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800672 tristate '"dscp" and "tos" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800673 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700674 help
675 This option adds a `DSCP' match, which allows you to match against
676 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
677
678 The DSCP field can have any value between 0x0 and 0x3f inclusive.
679
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800680 It will also add a "tos" match, which allows you to match packets
681 based on the Type Of Service fields of the IPv4 packet (which share
682 the same bits as DSCP).
683
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700684 To compile it as a module, choose M here. If unsure, say N.
685
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800686config NETFILTER_XT_MATCH_ESP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800687 tristate '"esp" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800688 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800689 help
690 This match extension allows you to match a range of SPIs
691 inside ESP header of IPSec packets.
692
693 To compile it as a module, choose M here. If unsure, say N.
694
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200695config NETFILTER_XT_MATCH_HASHLIMIT
696 tristate '"hashlimit" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200697 depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200698 depends on NETFILTER_ADVANCED
699 help
700 This option adds a `hashlimit' match.
701
702 As opposed to `limit', this match dynamically creates a hash table
703 of limit buckets, based on your selection of source/destination
704 addresses and/or ports.
705
706 It enables you to express policies like `10kpps for any given
707 destination address' or `500pps from any given source address'
708 with a single rule.
709
Harald Welte2e4e6a12006-01-12 13:30:04 -0800710config NETFILTER_XT_MATCH_HELPER
711 tristate '"helper" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700712 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800713 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800714 help
715 Helper matching allows you to match packets in dynamic connections
716 tracked by a conntrack-helper, ie. ip_conntrack_ftp
717
718 To compile it as a module, choose M here. If unsure, say Y.
719
Jan Engelhardtcfac5ef2009-02-18 18:39:31 +0100720config NETFILTER_XT_MATCH_HL
721 tristate '"hl" hoplimit/TTL match support'
722 depends on NETFILTER_ADVANCED
723 ---help---
724 HL matching allows you to match packets based on the hoplimit
725 in the IPv6 header, or the time-to-live field in the IPv4
726 header of the packet.
727
Jan Engelhardtf72e25a2008-01-14 23:42:47 -0800728config NETFILTER_XT_MATCH_IPRANGE
729 tristate '"iprange" address range match support'
Jan Engelhardtf72e25a2008-01-14 23:42:47 -0800730 depends on NETFILTER_ADVANCED
731 ---help---
732 This option adds a "iprange" match, which allows you to match based on
733 an IP address range. (Normal iptables only matches on single addresses
734 with an optional mask.)
735
736 If unsure, say M.
737
Harald Welte2e4e6a12006-01-12 13:30:04 -0800738config NETFILTER_XT_MATCH_LENGTH
739 tristate '"length" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800740 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800741 help
742 This option allows you to match the length of a packet against a
743 specific value or range of values.
744
745 To compile it as a module, choose M here. If unsure, say N.
746
747config NETFILTER_XT_MATCH_LIMIT
748 tristate '"limit" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800749 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800750 help
751 limit matching allows you to control the rate at which a rule can be
752 matched: mainly useful in combination with the LOG target ("LOG
753 target support", below) and to avoid some Denial of Service attacks.
754
755 To compile it as a module, choose M here. If unsure, say N.
756
757config NETFILTER_XT_MATCH_MAC
758 tristate '"mac" address match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800759 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800760 help
761 MAC matching allows you to match packets based on the source
762 Ethernet address of the packet.
763
764 To compile it as a module, choose M here. If unsure, say N.
765
766config NETFILTER_XT_MATCH_MARK
767 tristate '"mark" match support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100768 depends on NETFILTER_ADVANCED
769 select NETFILTER_XT_MARK
770 ---help---
771 This is a backwards-compat option for the user's convenience
772 (e.g. when running oldconfig). It selects
773 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800774
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200775config NETFILTER_XT_MATCH_MULTIPORT
776 tristate '"multiport" Multiple port match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200777 depends on NETFILTER_ADVANCED
778 help
779 Multiport matching allows you to match TCP or UDP packets based on
780 a series of source or destination ports: normally a rule can only
781 match a single range of ports.
782
783 To compile it as a module, choose M here. If unsure, say N.
784
Jan Engelhardt115bc8f2010-03-16 20:06:55 +0100785config NETFILTER_XT_MATCH_OSF
786 tristate '"osf" Passive OS fingerprint match'
787 depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
788 help
789 This option selects the Passive OS Fingerprinting match module
790 that allows to passively match the remote operating system by
791 analyzing incoming TCP SYN packets.
792
793 Rules and loading software can be downloaded from
794 http://www.ioremap.net/projects/osf
795
796 To compile it as a module, choose M here. If unsure, say N.
797
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800798config NETFILTER_XT_MATCH_OWNER
799 tristate '"owner" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800800 depends on NETFILTER_ADVANCED
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800801 ---help---
802 Socket owner matching allows you to match locally-generated packets
803 based on who created the socket: the user or group. It is also
804 possible to check whether a socket actually exists.
805
Patrick McHardyc4b88512006-03-20 18:03:40 -0800806config NETFILTER_XT_MATCH_POLICY
807 tristate 'IPsec "policy" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200808 depends on XFRM
Patrick McHardy33b8e772007-12-17 22:47:05 -0800809 default m if NETFILTER_ADVANCED=n
Patrick McHardyc4b88512006-03-20 18:03:40 -0800810 help
811 Policy matching allows you to match packets based on the
812 IPsec policy that was used during decapsulation/will
813 be used during encapsulation.
814
815 To compile it as a module, choose M here. If unsure, say N.
816
Harald Welte2e4e6a12006-01-12 13:30:04 -0800817config NETFILTER_XT_MATCH_PHYSDEV
818 tristate '"physdev" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200819 depends on BRIDGE && BRIDGE_NETFILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -0800820 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800821 help
822 Physdev packet matching matches against the physical bridge ports
823 the IP packet arrived on or will leave by.
824
825 To compile it as a module, choose M here. If unsure, say N.
826
827config NETFILTER_XT_MATCH_PKTTYPE
828 tristate '"pkttype" packet type match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800829 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800830 help
831 Packet type matching allows you to match a packet by
832 its "class", eg. BROADCAST, MULTICAST, ...
833
834 Typical usage:
835 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
836
837 To compile it as a module, choose M here. If unsure, say N.
838
Patrick McHardy62b77432006-05-29 18:20:32 -0700839config NETFILTER_XT_MATCH_QUOTA
840 tristate '"quota" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800841 depends on NETFILTER_ADVANCED
Patrick McHardy62b77432006-05-29 18:20:32 -0700842 help
843 This option adds a `quota' match, which allows to match on a
844 byte counter.
845
846 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500847 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Patrick McHardy62b77432006-05-29 18:20:32 -0700848
Patrick McHardy50c164a2007-12-04 13:02:19 +0100849config NETFILTER_XT_MATCH_RATEEST
850 tristate '"rateest" match support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800851 depends on NETFILTER_ADVANCED
Patrick McHardy50c164a2007-12-04 13:02:19 +0100852 select NETFILTER_XT_TARGET_RATEEST
853 help
854 This option adds a `rateest' match, which allows to match on the
855 rate estimated by the RATEEST target.
856
857 To compile it as a module, choose M here. If unsure, say N.
858
Harald Welte2e4e6a12006-01-12 13:30:04 -0800859config NETFILTER_XT_MATCH_REALM
860 tristate '"realm" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800861 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800862 select NET_CLS_ROUTE
863 help
864 This option adds a `realm' match, which allows you to use the realm
865 key from the routing subsystem inside iptables.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800866
Harald Welte2e4e6a12006-01-12 13:30:04 -0800867 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
868 in tc world.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800869
Harald Welte2e4e6a12006-01-12 13:30:04 -0800870 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500871 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800872
Jan Engelhardte948b202008-10-08 11:35:00 +0200873config NETFILTER_XT_MATCH_RECENT
874 tristate '"recent" match support'
Jan Engelhardte948b202008-10-08 11:35:00 +0200875 depends on NETFILTER_ADVANCED
876 ---help---
877 This match is used for creating one or many lists of recently
878 used addresses and then matching against that/those list(s).
879
880 Short options are available by using 'iptables -m recent -h'
881 Official Website: <http://snowman.net/projects/ipt_recent/>
882
Harald Welte2e4e6a12006-01-12 13:30:04 -0800883config NETFILTER_XT_MATCH_SCTP
Patrick McHardyd5af9812006-07-24 22:55:29 -0700884 tristate '"sctp" protocol match support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200885 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800886 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700887 default IP_SCTP
Harald Welte2e4e6a12006-01-12 13:30:04 -0800888 help
889 With this option enabled, you will be able to use the
890 `sctp' match in order to match on SCTP source/destination ports
891 and SCTP chunk types.
892
893 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500894 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800895
KOVACS Krisztian136cdc72008-10-08 11:35:12 +0200896config NETFILTER_XT_MATCH_SOCKET
897 tristate '"socket" match support (EXPERIMENTAL)'
898 depends on EXPERIMENTAL
899 depends on NETFILTER_TPROXY
900 depends on NETFILTER_XTABLES
901 depends on NETFILTER_ADVANCED
Laszlo Attila Tothacda0742009-05-01 15:23:10 -0700902 depends on !NF_CONNTRACK || NF_CONNTRACK
KOVACS Krisztian136cdc72008-10-08 11:35:12 +0200903 select NF_DEFRAG_IPV4
904 help
905 This option adds a `socket' match, which can be used to match
906 packets for which a TCP or UDP socket lookup finds a valid socket.
907 It can be used in combination with the MARK target and policy
908 routing to implement full featured non-locally bound sockets.
909
910 To compile it as a module, choose M here. If unsure, say N.
911
Harald Welte2e4e6a12006-01-12 13:30:04 -0800912config NETFILTER_XT_MATCH_STATE
913 tristate '"state" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700914 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800915 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800916 help
917 Connection state matching allows you to match packets based on their
918 relationship to a tracked connection (ie. previous packets). This
919 is a powerful tool for packet classification.
920
921 To compile it as a module, choose M here. If unsure, say N.
922
Patrick McHardyf3389802006-05-29 18:21:00 -0700923config NETFILTER_XT_MATCH_STATISTIC
924 tristate '"statistic" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800925 depends on NETFILTER_ADVANCED
Patrick McHardyf3389802006-05-29 18:21:00 -0700926 help
Patrick McHardy68c16922006-06-27 03:02:14 -0700927 This option adds a `statistic' match, which allows you to match
928 on packets periodically or randomly with a given percentage.
929
930 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -0700931
Harald Welte2e4e6a12006-01-12 13:30:04 -0800932config NETFILTER_XT_MATCH_STRING
933 tristate '"string" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800934 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800935 select TEXTSEARCH
936 select TEXTSEARCH_KMP
937 select TEXTSEARCH_BM
938 select TEXTSEARCH_FSM
939 help
940 This option adds a `string' match, which allows you to look for
941 pattern matchings in packets.
942
943 To compile it as a module, choose M here. If unsure, say N.
944
945config NETFILTER_XT_MATCH_TCPMSS
946 tristate '"tcpmss" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800947 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800948 help
949 This option adds a `tcpmss' match, which allows you to examine the
950 MSS value of TCP SYN packets, which control the maximum packet size
951 for that connection.
952
953 To compile it as a module, choose M here. If unsure, say N.
954
Jan Engelhardtee4411a2007-09-28 14:46:43 -0700955config NETFILTER_XT_MATCH_TIME
956 tristate '"time" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800957 depends on NETFILTER_ADVANCED
Jan Engelhardtee4411a2007-09-28 14:46:43 -0700958 ---help---
959 This option adds a "time" match, which allows you to match based on
960 the packet arrival time (at the machine which netfilter is running)
961 on) or departure time/date (for locally generated packets).
962
963 If you say Y here, try `iptables -m time --help` for
964 more information.
965
966 If you want to compile it as a module, say M here.
967 If unsure, say N.
968
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -0700969config NETFILTER_XT_MATCH_U32
970 tristate '"u32" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800971 depends on NETFILTER_ADVANCED
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -0700972 ---help---
973 u32 allows you to extract quantities of up to 4 bytes from a packet,
974 AND them with specified masks, shift them by specified amounts and
975 test whether the results are in any of a set of specified ranges.
976 The specification of what to extract is general enough to skip over
977 headers with lengths stored in the packet, as in IP or TCP header
978 lengths.
979
980 Details and examples are in the kernel module source.
981
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200982endif # NETFILTER_XTABLES
Harald Weltea6c1cd572006-02-13 15:42:48 -0800983
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200984endmenu
Harald Weltef9e815b2005-08-09 19:30:24 -0700985
Julius Volzcb7f6a72008-09-19 12:32:57 +0200986source "net/netfilter/ipvs/Kconfig"