blob: 351abf8ace1392eba6a64eb33751233510ec052c [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_CONNTRACK_MARK
44 bool 'Connection mark tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080045 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080046 help
47 This option enables support for connection marks, used by the
48 `CONNMARK' target and `connmark' match. Similar to the mark value
49 of packets, but this mark value is kept in the conntrack session
50 instead of the individual packets.
51
James Morris7c9728c2006-06-09 00:31:46 -070052config NF_CONNTRACK_SECMARK
53 bool 'Connection tracking security mark support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020054 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -080055 default m if NETFILTER_ADVANCED=n
James Morris7c9728c2006-06-09 00:31:46 -070056 help
57 This option enables security markings to be applied to
58 connections. Typically they are copied to connections from
59 packets using the CONNSECMARK target and copied back from
60 connections to packets with the same target, with the packets
61 being originally labeled via SECMARK.
62
63 If unsure, say 'N'.
64
Patrick McHardy5d0aa2c2010-02-15 18:13:33 +010065config NF_CONNTRACK_ZONES
66 bool 'Connection tracking zones'
67 depends on NETFILTER_ADVANCED
68 depends on NETFILTER_XT_TARGET_CT
69 help
70 This option enables support for connection tracking zones.
71 Normally, each connection needs to have a unique system wide
72 identity. Connection tracking zones allow to have multiple
73 connections using the same identity, as long as they are
74 contained in different zones.
75
76 If unsure, say `N'.
77
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080078config NF_CONNTRACK_EVENTS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -080079 bool "Connection tracking events"
Patrick McHardy33b8e772007-12-17 22:47:05 -080080 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080081 help
82 If this option is enabled, the connection tracking code will
83 provide a notifier chain that can be used by other kernel code
Thomas Vögtle50b521a2006-03-22 13:53:48 -080084 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080085
86 If unsure, say `N'.
87
Pablo Neira Ayusoa992ca22011-01-19 16:00:07 +010088config NF_CONNTRACK_TIMESTAMP
89 bool 'Connection tracking timestamping'
90 depends on NETFILTER_ADVANCED
91 help
92 This option enables support for connection tracking timestamping.
93 This allows you to store the flow start-time and to obtain
94 the flow-stop time (once it has been destroyed) via Connection
95 tracking events.
96
97 If unsure, say `N'.
98
Patrick McHardy2bc78042008-03-20 15:15:55 +010099config NF_CT_PROTO_DCCP
100 tristate 'DCCP protocol connection tracking support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200101 depends on EXPERIMENTAL
Patrick McHardy2bc78042008-03-20 15:15:55 +0100102 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700103 default IP_DCCP
Patrick McHardy2bc78042008-03-20 15:15:55 +0100104 help
105 With this option enabled, the layer 3 independent connection
106 tracking code will be able to do state tracking on DCCP connections.
107
108 If unsure, say 'N'.
109
Patrick McHardyf09943f2006-12-02 22:09:41 -0800110config NF_CT_PROTO_GRE
111 tristate
Patrick McHardyf09943f2006-12-02 22:09:41 -0800112
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800113config NF_CT_PROTO_SCTP
Patrick McHardya3c47972006-12-02 22:11:01 -0800114 tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200115 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800116 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700117 default IP_SCTP
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800118 help
119 With this option enabled, the layer 3 independent connection
120 tracking code will be able to do state tracking on SCTP connections.
121
122 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500123 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800124
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700125config NF_CT_PROTO_UDPLITE
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800126 tristate 'UDP-Lite protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800127 depends on NETFILTER_ADVANCED
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700128 help
129 With this option enabled, the layer 3 independent connection
130 tracking code will be able to do state tracking on UDP-Lite
131 connections.
132
133 To compile it as a module, choose M here. If unsure, say N.
134
Patrick McHardy16958902006-12-02 22:08:26 -0800135config NF_CONNTRACK_AMANDA
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800136 tristate "Amanda backup protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800137 depends on NETFILTER_ADVANCED
Patrick McHardy16958902006-12-02 22:08:26 -0800138 select TEXTSEARCH
139 select TEXTSEARCH_KMP
140 help
141 If you are running the Amanda backup package <http://www.amanda.org/>
142 on this machine or machines that will be MASQUERADED through this
143 machine, then you may want to enable this feature. This allows the
144 connection tracking and natting code to allow the sub-channels that
145 Amanda requires for communication of the backup data, messages and
146 index.
147
148 To compile it as a module, choose M here. If unsure, say N.
149
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800150config NF_CONNTRACK_FTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800151 tristate "FTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800152 default m if NETFILTER_ADVANCED=n
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800153 help
154 Tracking FTP connections is problematic: special helpers are
155 required for tracking them, and doing masquerading and other forms
156 of Network Address Translation on them.
157
158 This is FTP support on Layer 3 independent connection tracking.
159 Layer 3 independent connection tracking is experimental scheme
160 which generalize ip_conntrack to support other layer 3 protocols.
161
162 To compile it as a module, choose M here. If unsure, say N.
163
Patrick McHardyf587de02006-12-02 22:08:46 -0800164config NF_CONNTRACK_H323
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800165 tristate "H.323 protocol support"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200166 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800167 depends on NETFILTER_ADVANCED
Patrick McHardyf587de02006-12-02 22:08:46 -0800168 help
169 H.323 is a VoIP signalling protocol from ITU-T. As one of the most
170 important VoIP protocols, it is widely used by voice hardware and
171 software including voice gateways, IP phones, Netmeeting, OpenPhone,
172 Gnomemeeting, etc.
173
174 With this module you can support H.323 on a connection tracking/NAT
175 firewall.
176
177 This module supports RAS, Fast Start, H.245 Tunnelling, Call
178 Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
179 whiteboard, file transfer, etc. For more information, please
180 visit http://nath323.sourceforge.net/.
181
182 To compile it as a module, choose M here. If unsure, say N.
183
Patrick McHardy869f37d2006-12-02 22:09:06 -0800184config NF_CONNTRACK_IRC
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800185 tristate "IRC protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800186 default m if NETFILTER_ADVANCED=n
Patrick McHardy869f37d2006-12-02 22:09:06 -0800187 help
188 There is a commonly-used extension to IRC called
189 Direct Client-to-Client Protocol (DCC). This enables users to send
190 files to each other, and also chat to each other without the need
191 of a server. DCC Sending is used anywhere you send files over IRC,
192 and DCC Chat is most commonly used by Eggdrop bots. If you are
193 using NAT, this extension will enable you to send files and initiate
194 chats. Note that you do NOT need this extension to get files or
195 have others initiate chats, or everything else in IRC.
196
197 To compile it as a module, choose M here. If unsure, say N.
198
Jiri Olsa93557f52011-01-18 18:12:24 +0100199config NF_CONNTRACK_BROADCAST
200 tristate
201
Patrick McHardy92703ee2006-12-02 22:09:24 -0800202config NF_CONNTRACK_NETBIOS_NS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800203 tristate "NetBIOS name service protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800204 depends on NETFILTER_ADVANCED
Jiri Olsa93557f52011-01-18 18:12:24 +0100205 select NF_CONNTRACK_BROADCAST
Patrick McHardy92703ee2006-12-02 22:09:24 -0800206 help
207 NetBIOS name service requests are sent as broadcast messages from an
208 unprivileged port and responded to with unicast messages to the
209 same port. This make them hard to firewall properly because connection
210 tracking doesn't deal with broadcasts. This helper tracks locally
211 originating NetBIOS name service requests and the corresponding
212 responses. It relies on correct IP address configuration, specifically
213 netmask and broadcast address. When properly configured, the output
214 of "ip address show" should look similar to this:
215
216 $ ip -4 address show eth0
217 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
218 inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
219
220 To compile it as a module, choose M here. If unsure, say N.
221
Jiri Olsa93557f52011-01-18 18:12:24 +0100222config NF_CONNTRACK_SNMP
223 tristate "SNMP service protocol support"
224 depends on NETFILTER_ADVANCED
225 select NF_CONNTRACK_BROADCAST
226 help
227 SNMP service requests are sent as broadcast messages from an
228 unprivileged port and responded to with unicast messages to the
229 same port. This make them hard to firewall properly because connection
230 tracking doesn't deal with broadcasts. This helper tracks locally
231 originating SNMP service requests and the corresponding
232 responses. It relies on correct IP address configuration, specifically
233 netmask and broadcast address.
234
235 To compile it as a module, choose M here. If unsure, say N.
236
Patrick McHardyf09943f2006-12-02 22:09:41 -0800237config NF_CONNTRACK_PPTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800238 tristate "PPtP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800239 depends on NETFILTER_ADVANCED
Patrick McHardyf09943f2006-12-02 22:09:41 -0800240 select NF_CT_PROTO_GRE
241 help
242 This module adds support for PPTP (Point to Point Tunnelling
243 Protocol, RFC2637) connection tracking and NAT.
244
245 If you are running PPTP sessions over a stateful firewall or NAT
246 box, you may want to enable this feature.
247
248 Please note that not all PPTP modes of operation are supported yet.
249 Specifically these limitations exist:
David Sterba3dde6ad2007-05-09 07:12:20 +0200250 - Blindly assumes that control connections are always established
Patrick McHardyf09943f2006-12-02 22:09:41 -0800251 in PNS->PAC direction. This is a violation of RFC2637.
252 - Only supports a single call within each session
253
254 To compile it as a module, choose M here. If unsure, say N.
255
Michal Schmidt6fecd192007-02-07 15:05:12 -0800256config NF_CONNTRACK_SANE
257 tristate "SANE protocol support (EXPERIMENTAL)"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200258 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800259 depends on NETFILTER_ADVANCED
Michal Schmidt6fecd192007-02-07 15:05:12 -0800260 help
261 SANE is a protocol for remote access to scanners as implemented
262 by the 'saned' daemon. Like FTP, it uses separate control and
263 data connections.
264
265 With this module you can support SANE on a connection tracking
266 firewall.
267
268 To compile it as a module, choose M here. If unsure, say N.
269
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800270config NF_CONNTRACK_SIP
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800271 tristate "SIP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800272 default m if NETFILTER_ADVANCED=n
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800273 help
274 SIP is an application-layer control protocol that can establish,
275 modify, and terminate multimedia sessions (conferences) such as
276 Internet telephony calls. With the ip_conntrack_sip and
277 the nf_nat_sip modules you can support the protocol on a connection
278 tracking/NATing firewall.
279
280 To compile it as a module, choose M here. If unsure, say N.
281
Patrick McHardya536df32006-12-02 22:10:18 -0800282config NF_CONNTRACK_TFTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800283 tristate "TFTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800284 depends on NETFILTER_ADVANCED
Patrick McHardya536df32006-12-02 22:10:18 -0800285 help
286 TFTP connection tracking helper, this is required depending
287 on how restrictive your ruleset is.
288 If you are using a tftp client behind -j SNAT or -j MASQUERADING
289 you will need this.
290
291 To compile it as a module, choose M here. If unsure, say N.
292
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800293config NF_CT_NETLINK
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800294 tristate 'Connection tracking netlink interface'
Patrick McHardy2eeeba32007-12-05 01:31:52 -0800295 select NETFILTER_NETLINK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800296 default m if NETFILTER_ADVANCED=n
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800297 help
298 This option enables support for a netlink-based userspace interface
299
Laszlo Attila Toth4b070662009-04-24 16:55:25 +0200300endif # NF_CONNTRACK
301
KOVACS Krisztian9ad2d742008-10-08 11:35:12 +0200302# transparent proxy support
303config NETFILTER_TPROXY
304 tristate "Transparent proxying support (EXPERIMENTAL)"
305 depends on EXPERIMENTAL
306 depends on IP_NF_MANGLE
307 depends on NETFILTER_ADVANCED
308 help
309 This option enables transparent proxying support, that is,
310 support for handling non-locally bound IPv4 TCP and UDP sockets.
311 For it to work you will have to configure certain iptables rules
312 and use policy routing. For more information on how to set it up
313 see Documentation/networking/tproxy.txt.
314
315 To compile it as a module, choose M here. If unsure, say N.
316
Harald Welte2e4e6a12006-01-12 13:30:04 -0800317config NETFILTER_XTABLES
318 tristate "Netfilter Xtables support (required for ip_tables)"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800319 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800320 help
321 This is required if you intend to use any of ip_tables,
322 ip6_tables or arp_tables.
323
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200324if NETFILTER_XTABLES
325
Jan Engelhardt28b94982009-02-28 03:23:57 +0100326comment "Xtables combined modules"
327
328config NETFILTER_XT_MARK
329 tristate 'nfmark target and match support'
330 default m if NETFILTER_ADVANCED=n
331 ---help---
332 This option adds the "MARK" target and "mark" match.
333
334 Netfilter mark matching allows you to match packets based on the
335 "nfmark" value in the packet.
336 The target allows you to create rules in the "mangle" table which alter
337 the netfilter mark (nfmark) field associated with the packet.
338
339 Prior to routing, the nfmark can influence the routing method (see
340 "Use netfilter MARK value as routing key") and can also be used by
341 other subsystems to change their behavior.
342
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100343config NETFILTER_XT_CONNMARK
344 tristate 'ctmark target and match support'
345 depends on NF_CONNTRACK
346 depends on NETFILTER_ADVANCED
347 select NF_CONNTRACK_MARK
348 ---help---
349 This option adds the "CONNMARK" target and "connmark" match.
350
351 Netfilter allows you to store a mark value per connection (a.k.a.
352 ctmark), similarly to the packet mark (nfmark). Using this
353 target and match, you can set and match on this mark.
354
Harald Welte2e4e6a12006-01-12 13:30:04 -0800355# alphabetically ordered list of targets
356
Jan Engelhardt44c58732010-02-26 14:14:22 +0100357comment "Xtables targets"
358
Thomas Graf43f393c2011-01-16 18:10:28 +0100359config NETFILTER_XT_TARGET_AUDIT
360 tristate "AUDIT target support"
361 depends on AUDIT
362 depends on NETFILTER_ADVANCED
363 ---help---
364 This option adds a 'AUDIT' target, which can be used to create
365 audit records for packets dropped/accepted.
366
367 To compileit as a module, choose M here. If unsure, say N.
368
Michael S. Tsirkinedf0e1f2010-07-15 17:20:46 +0200369config NETFILTER_XT_TARGET_CHECKSUM
370 tristate "CHECKSUM target support"
371 depends on IP_NF_MANGLE || IP6_NF_MANGLE
372 depends on NETFILTER_ADVANCED
373 ---help---
374 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
375 table.
376
377 You can use this target to compute and fill in the checksum in
378 a packet that lacks a checksum. This is particularly useful,
379 if you need to work around old applications such as dhcp clients,
380 that do not work well with checksum offloads, but don't want to disable
381 checksum offload in your device.
382
383 To compile it as a module, choose M here. If unsure, say N.
384
Harald Welte2e4e6a12006-01-12 13:30:04 -0800385config NETFILTER_XT_TARGET_CLASSIFY
386 tristate '"CLASSIFY" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800387 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800388 help
389 This option adds a `CLASSIFY' target, which enables the user to set
390 the priority of a packet. Some qdiscs can use this value for
391 classification, among these are:
392
393 atm, cbq, dsmark, pfifo_fast, htb, prio
394
395 To compile it as a module, choose M here. If unsure, say N.
396
397config NETFILTER_XT_TARGET_CONNMARK
398 tristate '"CONNMARK" target support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700399 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800400 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100401 select NETFILTER_XT_CONNMARK
402 ---help---
403 This is a backwards-compat option for the user's convenience
404 (e.g. when running oldconfig). It selects
405 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800406
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200407config NETFILTER_XT_TARGET_CONNSECMARK
408 tristate '"CONNSECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200409 depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200410 default m if NETFILTER_ADVANCED=n
411 help
412 The CONNSECMARK target copies security markings from packets
413 to connections, and restores security markings from connections
414 to packets (if the packets are not already marked). This would
415 normally be used in conjunction with the SECMARK target.
416
417 To compile it as a module, choose M here. If unsure, say N.
418
Patrick McHardy84f3bb92010-02-03 17:17:06 +0100419config NETFILTER_XT_TARGET_CT
420 tristate '"CT" target support'
421 depends on NF_CONNTRACK
422 depends on IP_NF_RAW || IP6_NF_RAW
423 depends on NETFILTER_ADVANCED
424 help
425 This options adds a `CT' target, which allows to specify initial
426 connection tracking parameters like events to be delivered and
427 the helper to be used.
428
429 To compile it as a module, choose M here. If unsure, say N.
430
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700431config NETFILTER_XT_TARGET_DSCP
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800432 tristate '"DSCP" and "TOS" target support'
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700433 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800434 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700435 help
436 This option adds a `DSCP' target, which allows you to manipulate
437 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
438
439 The DSCP field can have any value between 0x0 and 0x3f inclusive.
440
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800441 It also adds the "TOS" target, which allows you to create rules in
442 the "mangle" table which alter the Type Of Service field of an IPv4
Jan Engelhardt5c350e52007-12-04 23:39:09 -0800443 or the Priority field of an IPv6 packet, prior to routing.
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800444
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700445 To compile it as a module, choose M here. If unsure, say N.
446
Jan Engelhardt563d36e2009-02-18 18:38:40 +0100447config NETFILTER_XT_TARGET_HL
448 tristate '"HL" hoplimit target support'
449 depends on IP_NF_MANGLE || IP6_NF_MANGLE
450 depends on NETFILTER_ADVANCED
451 ---help---
452 This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
453 targets, which enable the user to change the
454 hoplimit/time-to-live value of the IP header.
455
456 While it is safe to decrement the hoplimit/TTL value, the
457 modules also allow to increment and set the hoplimit value of
458 the header to arbitrary values. This is EXTREMELY DANGEROUS
459 since you can easily create immortal packets that loop
460 forever on the network.
461
Luciano Coelho0902b462010-06-15 15:04:00 +0200462config NETFILTER_XT_TARGET_IDLETIMER
463 tristate "IDLETIMER target support"
464 depends on NETFILTER_ADVANCED
465 help
466
467 This option adds the `IDLETIMER' target. Each matching packet
468 resets the timer associated with label specified when the rule is
469 added. When the timer expires, it triggers a sysfs notification.
470 The remaining time for expiration can be read via sysfs.
471
472 To compile it as a module, choose M here. If unsure, say N.
473
Adam Nielsen268cb382009-02-20 10:55:14 +0100474config NETFILTER_XT_TARGET_LED
475 tristate '"LED" target support'
Alex Riesen3ae16f12009-04-06 17:09:43 +0200476 depends on LEDS_CLASS && LEDS_TRIGGERS
Adam Nielsen268cb382009-02-20 10:55:14 +0100477 depends on NETFILTER_ADVANCED
478 help
479 This option adds a `LED' target, which allows you to blink LEDs in
480 response to particular packets passing through your machine.
481
482 This can be used to turn a spare LED into a network activity LED,
483 which only flashes in response to FTP transfers, for example. Or
484 you could have an LED which lights up for a minute or two every time
485 somebody connects to your machine via SSH.
486
487 You will need support for the "led" class to make this work.
488
489 To create an LED trigger for incoming SSH traffic:
490 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
491
492 Then attach the new trigger to an LED on your system:
493 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
494
495 For more information on the LEDs available on your system, see
496 Documentation/leds-class.txt
497
Harald Welte2e4e6a12006-01-12 13:30:04 -0800498config NETFILTER_XT_TARGET_MARK
499 tristate '"MARK" target support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100500 depends on NETFILTER_ADVANCED
501 select NETFILTER_XT_MARK
502 ---help---
503 This is a backwards-compat option for the user's convenience
504 (e.g. when running oldconfig). It selects
505 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800506
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100507config NETFILTER_XT_TARGET_NFLOG
508 tristate '"NFLOG" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800509 default m if NETFILTER_ADVANCED=n
Eric Leblond293a4f22008-12-10 17:24:33 -0800510 select NETFILTER_NETLINK_LOG
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100511 help
512 This option enables the NFLOG target, which allows to LOG
Eric Leblond293a4f22008-12-10 17:24:33 -0800513 messages through nfnetlink_log.
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100514
515 To compile it as a module, choose M here. If unsure, say N.
516
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200517config NETFILTER_XT_TARGET_NFQUEUE
518 tristate '"NFQUEUE" target Support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200519 depends on NETFILTER_ADVANCED
Florian Westphal5f2cafe2011-01-18 15:18:08 +0100520 select NETFILTER_NETLINK_QUEUE
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200521 help
522 This target replaced the old obsolete QUEUE target.
523
524 As opposed to QUEUE, it supports 65535 different queues,
525 not just one.
526
527 To compile it as a module, choose M here. If unsure, say N.
528
Harald Welte2e4e6a12006-01-12 13:30:04 -0800529config NETFILTER_XT_TARGET_NOTRACK
530 tristate '"NOTRACK" target support'
Harald Welte2e4e6a12006-01-12 13:30:04 -0800531 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy587aa642007-03-14 16:37:25 -0700532 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800533 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800534 help
535 The NOTRACK target allows a select rule to specify
536 which packets *not* to enter the conntrack/NAT
537 subsystem with all the consequences (no ICMP error tracking,
538 no protocol helpers for the selected packets).
Patrick McHardy33b8e772007-12-17 22:47:05 -0800539
Harald Welte2e4e6a12006-01-12 13:30:04 -0800540 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500541 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800542
Patrick McHardy58590342007-12-04 23:40:05 -0800543config NETFILTER_XT_TARGET_RATEEST
544 tristate '"RATEEST" target support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800545 depends on NETFILTER_ADVANCED
Patrick McHardy58590342007-12-04 23:40:05 -0800546 help
547 This option adds a `RATEEST' target, which allows to measure
548 rates similar to TC estimators. The `rateest' match can be
549 used to match on the measured rates.
550
551 To compile it as a module, choose M here. If unsure, say N.
552
Jan Engelhardte281b192010-04-19 14:17:47 +0200553config NETFILTER_XT_TARGET_TEE
Arnd Hannemannfe6fb552010-06-22 08:22:21 +0200554 tristate '"TEE" - packet cloning to alternate destination'
Jan Engelhardte281b192010-04-19 14:17:47 +0200555 depends on NETFILTER_ADVANCED
Jan Engelhardt9b7ce2b2010-05-12 10:11:35 +0000556 depends on (IPV6 || IPV6=n)
Randy Dunlap83827f62010-05-14 13:52:30 -0700557 depends on !NF_CONNTRACK || NF_CONNTRACK
Jan Engelhardte281b192010-04-19 14:17:47 +0200558 ---help---
559 This option adds a "TEE" target with which a packet can be cloned and
560 this clone be rerouted to another nexthop.
561
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200562config NETFILTER_XT_TARGET_TPROXY
563 tristate '"TPROXY" target support (EXPERIMENTAL)'
564 depends on EXPERIMENTAL
565 depends on NETFILTER_TPROXY
566 depends on NETFILTER_XTABLES
567 depends on NETFILTER_ADVANCED
568 select NF_DEFRAG_IPV4
KOVACS Krisztianf6318e52010-10-24 23:38:32 +0000569 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200570 help
571 This option adds a `TPROXY' target, which is somewhat similar to
572 REDIRECT. It can only be used in the mangle table and is useful
573 to redirect traffic to a transparent proxy. It does _not_ depend
574 on Netfilter connection tracking and NAT, unlike REDIRECT.
575
576 To compile it as a module, choose M here. If unsure, say N.
577
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700578config NETFILTER_XT_TARGET_TRACE
579 tristate '"TRACE" target support'
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700580 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy33b8e772007-12-17 22:47:05 -0800581 depends on NETFILTER_ADVANCED
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700582 help
583 The TRACE target allows you to mark packets so that the kernel
584 will log every rule which match the packets as those traverse
585 the tables, chains, rules.
586
587 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700588 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700589
James Morris5e6874cd2006-06-09 00:30:57 -0700590config NETFILTER_XT_TARGET_SECMARK
591 tristate '"SECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200592 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800593 default m if NETFILTER_ADVANCED=n
James Morris5e6874cd2006-06-09 00:30:57 -0700594 help
595 The SECMARK target allows security marking of network
596 packets, for use with security subsystems.
597
598 To compile it as a module, choose M here. If unsure, say N.
599
Patrick McHardycdd289a2007-02-07 15:09:46 -0800600config NETFILTER_XT_TARGET_TCPMSS
601 tristate '"TCPMSS" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200602 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800603 default m if NETFILTER_ADVANCED=n
Patrick McHardycdd289a2007-02-07 15:09:46 -0800604 ---help---
605 This option adds a `TCPMSS' target, which allows you to alter the
606 MSS value of TCP SYN packets, to control the maximum size for that
607 connection (usually limiting it to your outgoing interface's MTU
608 minus 40).
609
610 This is used to overcome criminally braindead ISPs or servers which
611 block ICMP Fragmentation Needed packets. The symptoms of this
612 problem are that everything works fine from your Linux
613 firewall/router, but machines behind it can never exchange large
614 packets:
615 1) Web browsers connect, then hang with no data received.
616 2) Small mail works fine, but large emails hang.
617 3) ssh works fine, but scp hangs after initial handshaking.
618
619 Workaround: activate this option and add a rule to your firewall
620 configuration like:
621
622 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
623 -j TCPMSS --clamp-mss-to-pmtu
624
625 To compile it as a module, choose M here. If unsure, say N.
626
Sven Schnelle338e8a72007-12-04 23:21:50 -0800627config NETFILTER_XT_TARGET_TCPOPTSTRIP
628 tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200629 depends on EXPERIMENTAL
Sven Schnelle338e8a72007-12-04 23:21:50 -0800630 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800631 depends on NETFILTER_ADVANCED
Sven Schnelle338e8a72007-12-04 23:21:50 -0800632 help
633 This option adds a "TCPOPTSTRIP" target, which allows you to strip
634 TCP options from TCP packets.
635
Jan Engelhardt44c58732010-02-26 14:14:22 +0100636# alphabetically ordered list of matches
637
638comment "Xtables matches"
639
Pablo Neira Ayuso0269ea42009-03-16 17:10:36 +0100640config NETFILTER_XT_MATCH_CLUSTER
641 tristate '"cluster" match support'
642 depends on NF_CONNTRACK
643 depends on NETFILTER_ADVANCED
644 ---help---
645 This option allows you to build work-load-sharing clusters of
646 network servers/stateful firewalls without having a dedicated
647 load-balancing router/server/switch. Basically, this match returns
648 true when the packet must be handled by this cluster node. Thus,
649 all nodes see all packets and this match decides which node handles
650 what packets. The work-load sharing algorithm is based on source
651 address hashing.
652
653 If you say Y or M here, try `iptables -m cluster --help` for
654 more information.
655
Harald Welte2e4e6a12006-01-12 13:30:04 -0800656config NETFILTER_XT_MATCH_COMMENT
657 tristate '"comment" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800658 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800659 help
660 This option adds a `comment' dummy-match, which allows you to put
661 comments in your iptables ruleset.
662
663 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500664 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800665
666config NETFILTER_XT_MATCH_CONNBYTES
667 tristate '"connbytes" per-connection counter match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700668 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800669 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800670 help
671 This option adds a `connbytes' match, which allows you to match the
672 number of bytes and/or packets for each direction within a connection.
673
674 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500675 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800676
Jan Engelhardt370786f2007-07-14 20:47:26 -0700677config NETFILTER_XT_MATCH_CONNLIMIT
678 tristate '"connlimit" match support"'
Cornelia Huck3fd8f9e2007-07-18 02:38:32 -0700679 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800680 depends on NETFILTER_ADVANCED
Jan Engelhardt370786f2007-07-14 20:47:26 -0700681 ---help---
682 This match allows you to match against the number of parallel
683 connections to a server per client IP address (or address block).
684
Harald Welte2e4e6a12006-01-12 13:30:04 -0800685config NETFILTER_XT_MATCH_CONNMARK
686 tristate '"connmark" connection mark match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700687 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800688 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100689 select NETFILTER_XT_CONNMARK
690 ---help---
691 This is a backwards-compat option for the user's convenience
692 (e.g. when running oldconfig). It selects
693 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800694
695config NETFILTER_XT_MATCH_CONNTRACK
696 tristate '"conntrack" connection tracking match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700697 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800698 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800699 help
700 This is a general conntrack match module, a superset of the state match.
701
702 It allows matching on additional conntrack information, which is
703 useful in complex configurations, such as NAT gateways with multiple
704 internet links or tunnels.
705
706 To compile it as a module, choose M here. If unsure, say N.
707
Eric Dumazete8648a12010-07-23 12:59:36 +0200708config NETFILTER_XT_MATCH_CPU
709 tristate '"cpu" match support'
710 depends on NETFILTER_ADVANCED
711 help
712 CPU matching allows you to match packets based on the CPU
713 currently handling the packet.
714
715 To compile it as a module, choose M here. If unsure, say N.
716
Harald Welte2e4e6a12006-01-12 13:30:04 -0800717config NETFILTER_XT_MATCH_DCCP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800718 tristate '"dccp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800719 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700720 default IP_DCCP
Harald Welte2e4e6a12006-01-12 13:30:04 -0800721 help
722 With this option enabled, you will be able to use the iptables
723 `dccp' match in order to match on DCCP source/destination ports
724 and DCCP flags.
725
726 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500727 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800728
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700729config NETFILTER_XT_MATCH_DSCP
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800730 tristate '"dscp" and "tos" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800731 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700732 help
733 This option adds a `DSCP' match, which allows you to match against
734 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
735
736 The DSCP field can have any value between 0x0 and 0x3f inclusive.
737
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800738 It will also add a "tos" match, which allows you to match packets
739 based on the Type Of Service fields of the IPv4 packet (which share
740 the same bits as DSCP).
741
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700742 To compile it as a module, choose M here. If unsure, say N.
743
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800744config NETFILTER_XT_MATCH_ESP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800745 tristate '"esp" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800746 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800747 help
748 This match extension allows you to match a range of SPIs
749 inside ESP header of IPSec packets.
750
751 To compile it as a module, choose M here. If unsure, say N.
752
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200753config NETFILTER_XT_MATCH_HASHLIMIT
754 tristate '"hashlimit" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200755 depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200756 depends on NETFILTER_ADVANCED
757 help
758 This option adds a `hashlimit' match.
759
760 As opposed to `limit', this match dynamically creates a hash table
761 of limit buckets, based on your selection of source/destination
762 addresses and/or ports.
763
764 It enables you to express policies like `10kpps for any given
765 destination address' or `500pps from any given source address'
766 with a single rule.
767
Harald Welte2e4e6a12006-01-12 13:30:04 -0800768config NETFILTER_XT_MATCH_HELPER
769 tristate '"helper" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700770 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800771 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800772 help
773 Helper matching allows you to match packets in dynamic connections
774 tracked by a conntrack-helper, ie. ip_conntrack_ftp
775
776 To compile it as a module, choose M here. If unsure, say Y.
777
Jan Engelhardtcfac5ef2009-02-18 18:39:31 +0100778config NETFILTER_XT_MATCH_HL
779 tristate '"hl" hoplimit/TTL match support'
780 depends on NETFILTER_ADVANCED
781 ---help---
782 HL matching allows you to match packets based on the hoplimit
783 in the IPv6 header, or the time-to-live field in the IPv4
784 header of the packet.
785
Jan Engelhardtf72e25a2008-01-14 23:42:47 -0800786config NETFILTER_XT_MATCH_IPRANGE
787 tristate '"iprange" address range match support'
Jan Engelhardtf72e25a2008-01-14 23:42:47 -0800788 depends on NETFILTER_ADVANCED
789 ---help---
790 This option adds a "iprange" match, which allows you to match based on
791 an IP address range. (Normal iptables only matches on single addresses
792 with an optional mask.)
793
794 If unsure, say M.
795
Hannes Eder9c3e1c32010-07-23 12:42:58 +0200796config NETFILTER_XT_MATCH_IPVS
797 tristate '"ipvs" match support'
798 depends on IP_VS
799 depends on NETFILTER_ADVANCED
800 depends on NF_CONNTRACK
801 help
802 This option allows you to match against IPVS properties of a packet.
803
804 If unsure, say N.
805
Harald Welte2e4e6a12006-01-12 13:30:04 -0800806config NETFILTER_XT_MATCH_LENGTH
807 tristate '"length" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800808 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800809 help
810 This option allows you to match the length of a packet against a
811 specific value or range of values.
812
813 To compile it as a module, choose M here. If unsure, say N.
814
815config NETFILTER_XT_MATCH_LIMIT
816 tristate '"limit" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800817 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800818 help
819 limit matching allows you to control the rate at which a rule can be
820 matched: mainly useful in combination with the LOG target ("LOG
821 target support", below) and to avoid some Denial of Service attacks.
822
823 To compile it as a module, choose M here. If unsure, say N.
824
825config NETFILTER_XT_MATCH_MAC
826 tristate '"mac" address match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800827 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800828 help
829 MAC matching allows you to match packets based on the source
830 Ethernet address of the packet.
831
832 To compile it as a module, choose M here. If unsure, say N.
833
834config NETFILTER_XT_MATCH_MARK
835 tristate '"mark" match support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100836 depends on NETFILTER_ADVANCED
837 select NETFILTER_XT_MARK
838 ---help---
839 This is a backwards-compat option for the user's convenience
840 (e.g. when running oldconfig). It selects
841 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800842
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200843config NETFILTER_XT_MATCH_MULTIPORT
844 tristate '"multiport" Multiple port match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200845 depends on NETFILTER_ADVANCED
846 help
847 Multiport matching allows you to match TCP or UDP packets based on
848 a series of source or destination ports: normally a rule can only
849 match a single range of ports.
850
851 To compile it as a module, choose M here. If unsure, say N.
852
Jan Engelhardt115bc8f2010-03-16 20:06:55 +0100853config NETFILTER_XT_MATCH_OSF
854 tristate '"osf" Passive OS fingerprint match'
855 depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
856 help
857 This option selects the Passive OS Fingerprinting match module
858 that allows to passively match the remote operating system by
859 analyzing incoming TCP SYN packets.
860
861 Rules and loading software can be downloaded from
862 http://www.ioremap.net/projects/osf
863
864 To compile it as a module, choose M here. If unsure, say N.
865
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800866config NETFILTER_XT_MATCH_OWNER
867 tristate '"owner" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800868 depends on NETFILTER_ADVANCED
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800869 ---help---
870 Socket owner matching allows you to match locally-generated packets
871 based on who created the socket: the user or group. It is also
872 possible to check whether a socket actually exists.
873
Patrick McHardyc4b88512006-03-20 18:03:40 -0800874config NETFILTER_XT_MATCH_POLICY
875 tristate 'IPsec "policy" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200876 depends on XFRM
Patrick McHardy33b8e772007-12-17 22:47:05 -0800877 default m if NETFILTER_ADVANCED=n
Patrick McHardyc4b88512006-03-20 18:03:40 -0800878 help
879 Policy matching allows you to match packets based on the
880 IPsec policy that was used during decapsulation/will
881 be used during encapsulation.
882
883 To compile it as a module, choose M here. If unsure, say N.
884
Harald Welte2e4e6a12006-01-12 13:30:04 -0800885config NETFILTER_XT_MATCH_PHYSDEV
886 tristate '"physdev" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200887 depends on BRIDGE && BRIDGE_NETFILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -0800888 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800889 help
890 Physdev packet matching matches against the physical bridge ports
891 the IP packet arrived on or will leave by.
892
893 To compile it as a module, choose M here. If unsure, say N.
894
895config NETFILTER_XT_MATCH_PKTTYPE
896 tristate '"pkttype" packet type match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800897 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800898 help
899 Packet type matching allows you to match a packet by
900 its "class", eg. BROADCAST, MULTICAST, ...
901
902 Typical usage:
903 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
904
905 To compile it as a module, choose M here. If unsure, say N.
906
Patrick McHardy62b77432006-05-29 18:20:32 -0700907config NETFILTER_XT_MATCH_QUOTA
908 tristate '"quota" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800909 depends on NETFILTER_ADVANCED
Patrick McHardy62b77432006-05-29 18:20:32 -0700910 help
911 This option adds a `quota' match, which allows to match on a
912 byte counter.
913
914 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500915 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Patrick McHardy62b77432006-05-29 18:20:32 -0700916
Patrick McHardy50c164a2007-12-04 13:02:19 +0100917config NETFILTER_XT_MATCH_RATEEST
918 tristate '"rateest" match support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800919 depends on NETFILTER_ADVANCED
Patrick McHardy50c164a2007-12-04 13:02:19 +0100920 select NETFILTER_XT_TARGET_RATEEST
921 help
922 This option adds a `rateest' match, which allows to match on the
923 rate estimated by the RATEEST target.
924
925 To compile it as a module, choose M here. If unsure, say N.
926
Harald Welte2e4e6a12006-01-12 13:30:04 -0800927config NETFILTER_XT_MATCH_REALM
928 tristate '"realm" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800929 depends on NETFILTER_ADVANCED
Patrick McHardyc7066f72011-01-14 13:36:42 +0100930 select IP_ROUTE_CLASSID
Harald Welte2e4e6a12006-01-12 13:30:04 -0800931 help
932 This option adds a `realm' match, which allows you to use the realm
933 key from the routing subsystem inside iptables.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800934
Harald Welte2e4e6a12006-01-12 13:30:04 -0800935 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
936 in tc world.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800937
Harald Welte2e4e6a12006-01-12 13:30:04 -0800938 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500939 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800940
Jan Engelhardte948b202008-10-08 11:35:00 +0200941config NETFILTER_XT_MATCH_RECENT
942 tristate '"recent" match support'
Jan Engelhardte948b202008-10-08 11:35:00 +0200943 depends on NETFILTER_ADVANCED
944 ---help---
945 This match is used for creating one or many lists of recently
946 used addresses and then matching against that/those list(s).
947
948 Short options are available by using 'iptables -m recent -h'
949 Official Website: <http://snowman.net/projects/ipt_recent/>
950
Harald Welte2e4e6a12006-01-12 13:30:04 -0800951config NETFILTER_XT_MATCH_SCTP
Patrick McHardyd5af9812006-07-24 22:55:29 -0700952 tristate '"sctp" protocol match support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200953 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800954 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700955 default IP_SCTP
Harald Welte2e4e6a12006-01-12 13:30:04 -0800956 help
957 With this option enabled, you will be able to use the
958 `sctp' match in order to match on SCTP source/destination ports
959 and SCTP chunk types.
960
961 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500962 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800963
KOVACS Krisztian136cdc72008-10-08 11:35:12 +0200964config NETFILTER_XT_MATCH_SOCKET
965 tristate '"socket" match support (EXPERIMENTAL)'
966 depends on EXPERIMENTAL
967 depends on NETFILTER_TPROXY
968 depends on NETFILTER_XTABLES
969 depends on NETFILTER_ADVANCED
Laszlo Attila Tothacda0742009-05-01 15:23:10 -0700970 depends on !NF_CONNTRACK || NF_CONNTRACK
KOVACS Krisztian136cdc72008-10-08 11:35:12 +0200971 select NF_DEFRAG_IPV4
KOVACS Krisztianf6318e52010-10-24 23:38:32 +0000972 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
KOVACS Krisztian136cdc72008-10-08 11:35:12 +0200973 help
974 This option adds a `socket' match, which can be used to match
975 packets for which a TCP or UDP socket lookup finds a valid socket.
976 It can be used in combination with the MARK target and policy
977 routing to implement full featured non-locally bound sockets.
978
979 To compile it as a module, choose M here. If unsure, say N.
980
Harald Welte2e4e6a12006-01-12 13:30:04 -0800981config NETFILTER_XT_MATCH_STATE
982 tristate '"state" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700983 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800984 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800985 help
986 Connection state matching allows you to match packets based on their
987 relationship to a tracked connection (ie. previous packets). This
988 is a powerful tool for packet classification.
989
990 To compile it as a module, choose M here. If unsure, say N.
991
Patrick McHardyf3389802006-05-29 18:21:00 -0700992config NETFILTER_XT_MATCH_STATISTIC
993 tristate '"statistic" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800994 depends on NETFILTER_ADVANCED
Patrick McHardyf3389802006-05-29 18:21:00 -0700995 help
Patrick McHardy68c16922006-06-27 03:02:14 -0700996 This option adds a `statistic' match, which allows you to match
997 on packets periodically or randomly with a given percentage.
998
999 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -07001000
Harald Welte2e4e6a12006-01-12 13:30:04 -08001001config NETFILTER_XT_MATCH_STRING
1002 tristate '"string" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001003 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001004 select TEXTSEARCH
1005 select TEXTSEARCH_KMP
1006 select TEXTSEARCH_BM
1007 select TEXTSEARCH_FSM
1008 help
1009 This option adds a `string' match, which allows you to look for
1010 pattern matchings in packets.
1011
1012 To compile it as a module, choose M here. If unsure, say N.
1013
1014config NETFILTER_XT_MATCH_TCPMSS
1015 tristate '"tcpmss" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001016 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001017 help
1018 This option adds a `tcpmss' match, which allows you to examine the
1019 MSS value of TCP SYN packets, which control the maximum packet size
1020 for that connection.
1021
1022 To compile it as a module, choose M here. If unsure, say N.
1023
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001024config NETFILTER_XT_MATCH_TIME
1025 tristate '"time" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001026 depends on NETFILTER_ADVANCED
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001027 ---help---
1028 This option adds a "time" match, which allows you to match based on
1029 the packet arrival time (at the machine which netfilter is running)
1030 on) or departure time/date (for locally generated packets).
1031
1032 If you say Y here, try `iptables -m time --help` for
1033 more information.
1034
1035 If you want to compile it as a module, say M here.
1036 If unsure, say N.
1037
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001038config NETFILTER_XT_MATCH_U32
1039 tristate '"u32" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001040 depends on NETFILTER_ADVANCED
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001041 ---help---
1042 u32 allows you to extract quantities of up to 4 bytes from a packet,
1043 AND them with specified masks, shift them by specified amounts and
1044 test whether the results are in any of a set of specified ranges.
1045 The specification of what to extract is general enough to skip over
1046 headers with lengths stored in the packet, as in IP or TCP header
1047 lengths.
1048
1049 Details and examples are in the kernel module source.
1050
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001051endif # NETFILTER_XTABLES
Harald Weltea6c1cd572006-02-13 15:42:48 -08001052
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001053endmenu
Harald Weltef9e815b2005-08-09 19:30:24 -07001054
Jozsef Kadlecsika7b4f982011-02-01 15:28:35 +01001055source "net/netfilter/ipset/Kconfig"
1056
Julius Volzcb7f6a72008-09-19 12:32:57 +02001057source "net/netfilter/ipvs/Kconfig"