blob: 77326acd1f571f0a67b2ebb4c5a99aec13d18c79 [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
Pablo Neira Ayuso94139022011-12-23 14:19:50 +01007config NETFILTER_NETLINK_ACCT
8tristate "Netfilter NFACCT over NFNETLINK interface"
9 depends on NETFILTER_ADVANCED
10 select NETFILTER_NETLINK
11 help
12 If this option is enabled, the kernel will include support
13 for extended accounting via NFNETLINK.
14
Harald Welte7af4cc32005-08-09 19:44:15 -070015config NETFILTER_NETLINK_QUEUE
16 tristate "Netfilter NFQUEUE over NFNETLINK interface"
Patrick McHardy33b8e772007-12-17 22:47:05 -080017 depends on NETFILTER_ADVANCED
Patrick McHardy2eeeba32007-12-05 01:31:52 -080018 select NETFILTER_NETLINK
Harald Welte7af4cc32005-08-09 19:44:15 -070019 help
Thomas Vögtle50b521a2006-03-22 13:53:48 -080020 If this option is enabled, the kernel will include support
Harald Welte7af4cc32005-08-09 19:44:15 -070021 for queueing packets via NFNETLINK.
22
Harald Welte0597f262005-08-09 19:58:39 -070023config NETFILTER_NETLINK_LOG
24 tristate "Netfilter LOG over NFNETLINK interface"
Patrick McHardy33b8e772007-12-17 22:47:05 -080025 default m if NETFILTER_ADVANCED=n
Patrick McHardy2eeeba32007-12-05 01:31:52 -080026 select NETFILTER_NETLINK
Harald Welte0597f262005-08-09 19:58:39 -070027 help
28 If this option is enabled, the kernel will include support
29 for logging packets via NFNETLINK.
30
31 This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
32 and is also scheduled to replace the old syslog-based ipt_LOG
33 and ip6t_LOG modules.
34
Patrick McHardyab4f58c2007-12-05 01:31:37 -080035config NF_CONNTRACK
Patrick McHardyb321e142006-12-02 22:05:46 -080036 tristate "Netfilter connection tracking support"
Patrick McHardy33b8e772007-12-17 22:47:05 -080037 default m if NETFILTER_ADVANCED=n
Patrick McHardyb321e142006-12-02 22:05:46 -080038 help
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080039 Connection tracking keeps a record of what packets have passed
40 through your machine, in order to figure out how they are related
41 into connections.
42
Patrick McHardyb321e142006-12-02 22:05:46 -080043 This is required to do Masquerading or other kinds of Network
Russ Dillb11c16b2008-07-08 02:35:27 -070044 Address Translation. It can also be used to enhance packet
45 filtering (see `Connection state match support' below).
Patrick McHardyb321e142006-12-02 22:05:46 -080046
47 To compile it as a module, choose M here. If unsure, say N.
48
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020049if NF_CONNTRACK
50
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080051config NF_CONNTRACK_MARK
52 bool 'Connection mark tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080053 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080054 help
55 This option enables support for connection marks, used by the
56 `CONNMARK' target and `connmark' match. Similar to the mark value
57 of packets, but this mark value is kept in the conntrack session
58 instead of the individual packets.
59
James Morris7c9728c2006-06-09 00:31:46 -070060config NF_CONNTRACK_SECMARK
61 bool 'Connection tracking security mark support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020062 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -080063 default m if NETFILTER_ADVANCED=n
James Morris7c9728c2006-06-09 00:31:46 -070064 help
65 This option enables security markings to be applied to
66 connections. Typically they are copied to connections from
67 packets using the CONNSECMARK target and copied back from
68 connections to packets with the same target, with the packets
69 being originally labeled via SECMARK.
70
71 If unsure, say 'N'.
72
Patrick McHardy5d0aa2c2010-02-15 18:13:33 +010073config NF_CONNTRACK_ZONES
74 bool 'Connection tracking zones'
75 depends on NETFILTER_ADVANCED
76 depends on NETFILTER_XT_TARGET_CT
77 help
78 This option enables support for connection tracking zones.
79 Normally, each connection needs to have a unique system wide
80 identity. Connection tracking zones allow to have multiple
81 connections using the same identity, as long as they are
82 contained in different zones.
83
84 If unsure, say `N'.
85
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080086config NF_CONNTRACK_EVENTS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -080087 bool "Connection tracking events"
Patrick McHardy33b8e772007-12-17 22:47:05 -080088 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080089 help
90 If this option is enabled, the connection tracking code will
91 provide a notifier chain that can be used by other kernel code
Thomas Vögtle50b521a2006-03-22 13:53:48 -080092 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080093
94 If unsure, say `N'.
95
Pablo Neira Ayusoa992ca22011-01-19 16:00:07 +010096config NF_CONNTRACK_TIMESTAMP
97 bool 'Connection tracking timestamping'
98 depends on NETFILTER_ADVANCED
99 help
100 This option enables support for connection tracking timestamping.
101 This allows you to store the flow start-time and to obtain
102 the flow-stop time (once it has been destroyed) via Connection
103 tracking events.
104
105 If unsure, say `N'.
106
Patrick McHardy2bc78042008-03-20 15:15:55 +0100107config NF_CT_PROTO_DCCP
108 tristate 'DCCP protocol connection tracking support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200109 depends on EXPERIMENTAL
Patrick McHardy2bc78042008-03-20 15:15:55 +0100110 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700111 default IP_DCCP
Patrick McHardy2bc78042008-03-20 15:15:55 +0100112 help
113 With this option enabled, the layer 3 independent connection
114 tracking code will be able to do state tracking on DCCP connections.
115
116 If unsure, say 'N'.
117
Patrick McHardyf09943f2006-12-02 22:09:41 -0800118config NF_CT_PROTO_GRE
119 tristate
Patrick McHardyf09943f2006-12-02 22:09:41 -0800120
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800121config NF_CT_PROTO_SCTP
Patrick McHardya3c47972006-12-02 22:11:01 -0800122 tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200123 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800124 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700125 default IP_SCTP
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800126 help
127 With this option enabled, the layer 3 independent connection
128 tracking code will be able to do state tracking on SCTP connections.
129
130 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500131 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800132
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700133config NF_CT_PROTO_UDPLITE
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800134 tristate 'UDP-Lite protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800135 depends on NETFILTER_ADVANCED
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700136 help
137 With this option enabled, the layer 3 independent connection
138 tracking code will be able to do state tracking on UDP-Lite
139 connections.
140
141 To compile it as a module, choose M here. If unsure, say N.
142
Patrick McHardy16958902006-12-02 22:08:26 -0800143config NF_CONNTRACK_AMANDA
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800144 tristate "Amanda backup protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800145 depends on NETFILTER_ADVANCED
Patrick McHardy16958902006-12-02 22:08:26 -0800146 select TEXTSEARCH
147 select TEXTSEARCH_KMP
148 help
149 If you are running the Amanda backup package <http://www.amanda.org/>
150 on this machine or machines that will be MASQUERADED through this
151 machine, then you may want to enable this feature. This allows the
152 connection tracking and natting code to allow the sub-channels that
153 Amanda requires for communication of the backup data, messages and
154 index.
155
156 To compile it as a module, choose M here. If unsure, say N.
157
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800158config NF_CONNTRACK_FTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800159 tristate "FTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800160 default m if NETFILTER_ADVANCED=n
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800161 help
162 Tracking FTP connections is problematic: special helpers are
163 required for tracking them, and doing masquerading and other forms
164 of Network Address Translation on them.
165
166 This is FTP support on Layer 3 independent connection tracking.
167 Layer 3 independent connection tracking is experimental scheme
168 which generalize ip_conntrack to support other layer 3 protocols.
169
170 To compile it as a module, choose M here. If unsure, say N.
171
Patrick McHardyf587de02006-12-02 22:08:46 -0800172config NF_CONNTRACK_H323
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800173 tristate "H.323 protocol support"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200174 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800175 depends on NETFILTER_ADVANCED
Patrick McHardyf587de02006-12-02 22:08:46 -0800176 help
177 H.323 is a VoIP signalling protocol from ITU-T. As one of the most
178 important VoIP protocols, it is widely used by voice hardware and
179 software including voice gateways, IP phones, Netmeeting, OpenPhone,
180 Gnomemeeting, etc.
181
182 With this module you can support H.323 on a connection tracking/NAT
183 firewall.
184
185 This module supports RAS, Fast Start, H.245 Tunnelling, Call
186 Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
187 whiteboard, file transfer, etc. For more information, please
188 visit http://nath323.sourceforge.net/.
189
190 To compile it as a module, choose M here. If unsure, say N.
191
Patrick McHardy869f37d2006-12-02 22:09:06 -0800192config NF_CONNTRACK_IRC
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800193 tristate "IRC protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800194 default m if NETFILTER_ADVANCED=n
Patrick McHardy869f37d2006-12-02 22:09:06 -0800195 help
196 There is a commonly-used extension to IRC called
197 Direct Client-to-Client Protocol (DCC). This enables users to send
198 files to each other, and also chat to each other without the need
199 of a server. DCC Sending is used anywhere you send files over IRC,
200 and DCC Chat is most commonly used by Eggdrop bots. If you are
201 using NAT, this extension will enable you to send files and initiate
202 chats. Note that you do NOT need this extension to get files or
203 have others initiate chats, or everything else in IRC.
204
205 To compile it as a module, choose M here. If unsure, say N.
206
Jiri Olsa93557f52011-01-18 18:12:24 +0100207config NF_CONNTRACK_BROADCAST
208 tristate
209
Patrick McHardy92703ee2006-12-02 22:09:24 -0800210config NF_CONNTRACK_NETBIOS_NS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800211 tristate "NetBIOS name service protocol support"
Jiri Olsa93557f52011-01-18 18:12:24 +0100212 select NF_CONNTRACK_BROADCAST
Patrick McHardy92703ee2006-12-02 22:09:24 -0800213 help
214 NetBIOS name service requests are sent as broadcast messages from an
215 unprivileged port and responded to with unicast messages to the
216 same port. This make them hard to firewall properly because connection
217 tracking doesn't deal with broadcasts. This helper tracks locally
218 originating NetBIOS name service requests and the corresponding
219 responses. It relies on correct IP address configuration, specifically
220 netmask and broadcast address. When properly configured, the output
221 of "ip address show" should look similar to this:
222
223 $ ip -4 address show eth0
224 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
225 inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
226
227 To compile it as a module, choose M here. If unsure, say N.
228
Jiri Olsa93557f52011-01-18 18:12:24 +0100229config NF_CONNTRACK_SNMP
230 tristate "SNMP service protocol support"
231 depends on NETFILTER_ADVANCED
232 select NF_CONNTRACK_BROADCAST
233 help
234 SNMP service requests are sent as broadcast messages from an
235 unprivileged port and responded to with unicast messages to the
236 same port. This make them hard to firewall properly because connection
237 tracking doesn't deal with broadcasts. This helper tracks locally
238 originating SNMP service requests and the corresponding
239 responses. It relies on correct IP address configuration, specifically
240 netmask and broadcast address.
241
242 To compile it as a module, choose M here. If unsure, say N.
243
Patrick McHardyf09943f2006-12-02 22:09:41 -0800244config NF_CONNTRACK_PPTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800245 tristate "PPtP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800246 depends on NETFILTER_ADVANCED
Patrick McHardyf09943f2006-12-02 22:09:41 -0800247 select NF_CT_PROTO_GRE
248 help
249 This module adds support for PPTP (Point to Point Tunnelling
250 Protocol, RFC2637) connection tracking and NAT.
251
252 If you are running PPTP sessions over a stateful firewall or NAT
253 box, you may want to enable this feature.
254
255 Please note that not all PPTP modes of operation are supported yet.
256 Specifically these limitations exist:
David Sterba3dde6ad2007-05-09 07:12:20 +0200257 - Blindly assumes that control connections are always established
Patrick McHardyf09943f2006-12-02 22:09:41 -0800258 in PNS->PAC direction. This is a violation of RFC2637.
259 - Only supports a single call within each session
260
261 To compile it as a module, choose M here. If unsure, say N.
262
Michal Schmidt6fecd192007-02-07 15:05:12 -0800263config NF_CONNTRACK_SANE
264 tristate "SANE protocol support (EXPERIMENTAL)"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200265 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800266 depends on NETFILTER_ADVANCED
Michal Schmidt6fecd192007-02-07 15:05:12 -0800267 help
268 SANE is a protocol for remote access to scanners as implemented
269 by the 'saned' daemon. Like FTP, it uses separate control and
270 data connections.
271
272 With this module you can support SANE on a connection tracking
273 firewall.
274
275 To compile it as a module, choose M here. If unsure, say N.
276
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800277config NF_CONNTRACK_SIP
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800278 tristate "SIP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800279 default m if NETFILTER_ADVANCED=n
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800280 help
281 SIP is an application-layer control protocol that can establish,
282 modify, and terminate multimedia sessions (conferences) such as
283 Internet telephony calls. With the ip_conntrack_sip and
284 the nf_nat_sip modules you can support the protocol on a connection
285 tracking/NATing firewall.
286
287 To compile it as a module, choose M here. If unsure, say N.
288
Patrick McHardya536df32006-12-02 22:10:18 -0800289config NF_CONNTRACK_TFTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800290 tristate "TFTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800291 depends on NETFILTER_ADVANCED
Patrick McHardya536df32006-12-02 22:10:18 -0800292 help
293 TFTP connection tracking helper, this is required depending
294 on how restrictive your ruleset is.
295 If you are using a tftp client behind -j SNAT or -j MASQUERADING
296 you will need this.
297
298 To compile it as a module, choose M here. If unsure, say N.
299
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800300config NF_CT_NETLINK
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800301 tristate 'Connection tracking netlink interface'
Patrick McHardy2eeeba32007-12-05 01:31:52 -0800302 select NETFILTER_NETLINK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800303 default m if NETFILTER_ADVANCED=n
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800304 help
305 This option enables support for a netlink-based userspace interface
306
Laszlo Attila Toth4b070662009-04-24 16:55:25 +0200307endif # NF_CONNTRACK
308
KOVACS Krisztian9ad2d742008-10-08 11:35:12 +0200309# transparent proxy support
310config NETFILTER_TPROXY
311 tristate "Transparent proxying support (EXPERIMENTAL)"
312 depends on EXPERIMENTAL
313 depends on IP_NF_MANGLE
314 depends on NETFILTER_ADVANCED
315 help
316 This option enables transparent proxying support, that is,
317 support for handling non-locally bound IPv4 TCP and UDP sockets.
318 For it to work you will have to configure certain iptables rules
319 and use policy routing. For more information on how to set it up
320 see Documentation/networking/tproxy.txt.
321
322 To compile it as a module, choose M here. If unsure, say N.
323
Harald Welte2e4e6a12006-01-12 13:30:04 -0800324config NETFILTER_XTABLES
325 tristate "Netfilter Xtables support (required for ip_tables)"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800326 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800327 help
328 This is required if you intend to use any of ip_tables,
329 ip6_tables or arp_tables.
330
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200331if NETFILTER_XTABLES
332
Jan Engelhardt28b94982009-02-28 03:23:57 +0100333comment "Xtables combined modules"
334
335config NETFILTER_XT_MARK
336 tristate 'nfmark target and match support'
337 default m if NETFILTER_ADVANCED=n
338 ---help---
339 This option adds the "MARK" target and "mark" match.
340
341 Netfilter mark matching allows you to match packets based on the
342 "nfmark" value in the packet.
343 The target allows you to create rules in the "mangle" table which alter
344 the netfilter mark (nfmark) field associated with the packet.
345
346 Prior to routing, the nfmark can influence the routing method (see
347 "Use netfilter MARK value as routing key") and can also be used by
348 other subsystems to change their behavior.
349
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100350config NETFILTER_XT_CONNMARK
351 tristate 'ctmark target and match support'
352 depends on NF_CONNTRACK
353 depends on NETFILTER_ADVANCED
354 select NF_CONNTRACK_MARK
355 ---help---
356 This option adds the "CONNMARK" target and "connmark" match.
357
358 Netfilter allows you to store a mark value per connection (a.k.a.
359 ctmark), similarly to the packet mark (nfmark). Using this
360 target and match, you can set and match on this mark.
361
Jozsef Kadlecsikd9567982011-02-01 15:56:00 +0100362config NETFILTER_XT_SET
363 tristate 'set target and match support'
364 depends on IP_SET
365 depends on NETFILTER_ADVANCED
366 help
367 This option adds the "SET" target and "set" match.
368
369 Using this target and match, you can add/delete and match
370 elements in the sets created by ipset(8).
371
372 To compile it as a module, choose M here. If unsure, say N.
373
Harald Welte2e4e6a12006-01-12 13:30:04 -0800374# alphabetically ordered list of targets
375
Jan Engelhardt44c58732010-02-26 14:14:22 +0100376comment "Xtables targets"
377
Thomas Graf43f393c2011-01-16 18:10:28 +0100378config NETFILTER_XT_TARGET_AUDIT
379 tristate "AUDIT target support"
380 depends on AUDIT
381 depends on NETFILTER_ADVANCED
382 ---help---
383 This option adds a 'AUDIT' target, which can be used to create
384 audit records for packets dropped/accepted.
385
386 To compileit as a module, choose M here. If unsure, say N.
387
Michael S. Tsirkinedf0e1f2010-07-15 17:20:46 +0200388config NETFILTER_XT_TARGET_CHECKSUM
389 tristate "CHECKSUM target support"
390 depends on IP_NF_MANGLE || IP6_NF_MANGLE
391 depends on NETFILTER_ADVANCED
392 ---help---
393 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
394 table.
395
396 You can use this target to compute and fill in the checksum in
397 a packet that lacks a checksum. This is particularly useful,
398 if you need to work around old applications such as dhcp clients,
399 that do not work well with checksum offloads, but don't want to disable
400 checksum offload in your device.
401
402 To compile it as a module, choose M here. If unsure, say N.
403
Harald Welte2e4e6a12006-01-12 13:30:04 -0800404config NETFILTER_XT_TARGET_CLASSIFY
405 tristate '"CLASSIFY" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800406 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800407 help
408 This option adds a `CLASSIFY' target, which enables the user to set
409 the priority of a packet. Some qdiscs can use this value for
410 classification, among these are:
411
412 atm, cbq, dsmark, pfifo_fast, htb, prio
413
414 To compile it as a module, choose M here. If unsure, say N.
415
416config NETFILTER_XT_TARGET_CONNMARK
417 tristate '"CONNMARK" target support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700418 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800419 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100420 select NETFILTER_XT_CONNMARK
421 ---help---
422 This is a backwards-compat option for the user's convenience
423 (e.g. when running oldconfig). It selects
424 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800425
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200426config NETFILTER_XT_TARGET_CONNSECMARK
427 tristate '"CONNSECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200428 depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200429 default m if NETFILTER_ADVANCED=n
430 help
431 The CONNSECMARK target copies security markings from packets
432 to connections, and restores security markings from connections
433 to packets (if the packets are not already marked). This would
434 normally be used in conjunction with the SECMARK target.
435
436 To compile it as a module, choose M here. If unsure, say N.
437
Patrick McHardy84f3bb92010-02-03 17:17:06 +0100438config NETFILTER_XT_TARGET_CT
439 tristate '"CT" target support'
440 depends on NF_CONNTRACK
441 depends on IP_NF_RAW || IP6_NF_RAW
442 depends on NETFILTER_ADVANCED
443 help
444 This options adds a `CT' target, which allows to specify initial
445 connection tracking parameters like events to be delivered and
446 the helper to be used.
447
448 To compile it as a module, choose M here. If unsure, say N.
449
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700450config NETFILTER_XT_TARGET_DSCP
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800451 tristate '"DSCP" and "TOS" target support'
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700452 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800453 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700454 help
455 This option adds a `DSCP' target, which allows you to manipulate
456 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
457
458 The DSCP field can have any value between 0x0 and 0x3f inclusive.
459
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800460 It also adds the "TOS" target, which allows you to create rules in
461 the "mangle" table which alter the Type Of Service field of an IPv4
Jan Engelhardt5c350e52007-12-04 23:39:09 -0800462 or the Priority field of an IPv6 packet, prior to routing.
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800463
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700464 To compile it as a module, choose M here. If unsure, say N.
465
Jan Engelhardt563d36e2009-02-18 18:38:40 +0100466config NETFILTER_XT_TARGET_HL
467 tristate '"HL" hoplimit target support'
468 depends on IP_NF_MANGLE || IP6_NF_MANGLE
469 depends on NETFILTER_ADVANCED
470 ---help---
471 This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
472 targets, which enable the user to change the
473 hoplimit/time-to-live value of the IP header.
474
475 While it is safe to decrement the hoplimit/TTL value, the
476 modules also allow to increment and set the hoplimit value of
477 the header to arbitrary values. This is EXTREMELY DANGEROUS
478 since you can easily create immortal packets that loop
479 forever on the network.
480
Luciano Coelho0902b462010-06-15 15:04:00 +0200481config NETFILTER_XT_TARGET_IDLETIMER
482 tristate "IDLETIMER target support"
483 depends on NETFILTER_ADVANCED
484 help
485
486 This option adds the `IDLETIMER' target. Each matching packet
487 resets the timer associated with label specified when the rule is
488 added. When the timer expires, it triggers a sysfs notification.
489 The remaining time for expiration can be read via sysfs.
490
491 To compile it as a module, choose M here. If unsure, say N.
492
Adam Nielsen268cb382009-02-20 10:55:14 +0100493config NETFILTER_XT_TARGET_LED
494 tristate '"LED" target support'
Alex Riesen3ae16f12009-04-06 17:09:43 +0200495 depends on LEDS_CLASS && LEDS_TRIGGERS
Adam Nielsen268cb382009-02-20 10:55:14 +0100496 depends on NETFILTER_ADVANCED
497 help
498 This option adds a `LED' target, which allows you to blink LEDs in
499 response to particular packets passing through your machine.
500
501 This can be used to turn a spare LED into a network activity LED,
502 which only flashes in response to FTP transfers, for example. Or
503 you could have an LED which lights up for a minute or two every time
504 somebody connects to your machine via SSH.
505
506 You will need support for the "led" class to make this work.
507
508 To create an LED trigger for incoming SSH traffic:
509 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
510
511 Then attach the new trigger to an LED on your system:
512 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
513
514 For more information on the LEDs available on your system, see
Paul Bolle395cf962011-08-15 02:02:26 +0200515 Documentation/leds/leds-class.txt
Adam Nielsen268cb382009-02-20 10:55:14 +0100516
Harald Welte2e4e6a12006-01-12 13:30:04 -0800517config NETFILTER_XT_TARGET_MARK
518 tristate '"MARK" target support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100519 depends on NETFILTER_ADVANCED
520 select NETFILTER_XT_MARK
521 ---help---
522 This is a backwards-compat option for the user's convenience
523 (e.g. when running oldconfig). It selects
524 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800525
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100526config NETFILTER_XT_TARGET_NFLOG
527 tristate '"NFLOG" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800528 default m if NETFILTER_ADVANCED=n
Eric Leblond293a4f22008-12-10 17:24:33 -0800529 select NETFILTER_NETLINK_LOG
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100530 help
531 This option enables the NFLOG target, which allows to LOG
Eric Leblond293a4f22008-12-10 17:24:33 -0800532 messages through nfnetlink_log.
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100533
534 To compile it as a module, choose M here. If unsure, say N.
535
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200536config NETFILTER_XT_TARGET_NFQUEUE
537 tristate '"NFQUEUE" target Support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200538 depends on NETFILTER_ADVANCED
Florian Westphal5f2cafe2011-01-18 15:18:08 +0100539 select NETFILTER_NETLINK_QUEUE
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200540 help
541 This target replaced the old obsolete QUEUE target.
542
543 As opposed to QUEUE, it supports 65535 different queues,
544 not just one.
545
546 To compile it as a module, choose M here. If unsure, say N.
547
Harald Welte2e4e6a12006-01-12 13:30:04 -0800548config NETFILTER_XT_TARGET_NOTRACK
549 tristate '"NOTRACK" target support'
Harald Welte2e4e6a12006-01-12 13:30:04 -0800550 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy587aa642007-03-14 16:37:25 -0700551 depends on NF_CONNTRACK
Harald Welte2e4e6a12006-01-12 13:30:04 -0800552 help
553 The NOTRACK target allows a select rule to specify
554 which packets *not* to enter the conntrack/NAT
555 subsystem with all the consequences (no ICMP error tracking,
556 no protocol helpers for the selected packets).
Patrick McHardy33b8e772007-12-17 22:47:05 -0800557
Harald Welte2e4e6a12006-01-12 13:30:04 -0800558 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500559 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800560
Patrick McHardy58590342007-12-04 23:40:05 -0800561config NETFILTER_XT_TARGET_RATEEST
562 tristate '"RATEEST" target support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800563 depends on NETFILTER_ADVANCED
Patrick McHardy58590342007-12-04 23:40:05 -0800564 help
565 This option adds a `RATEEST' target, which allows to measure
566 rates similar to TC estimators. The `rateest' match can be
567 used to match on the measured rates.
568
569 To compile it as a module, choose M here. If unsure, say N.
570
Jan Engelhardte281b192010-04-19 14:17:47 +0200571config NETFILTER_XT_TARGET_TEE
Arnd Hannemannfe6fb552010-06-22 08:22:21 +0200572 tristate '"TEE" - packet cloning to alternate destination'
Jan Engelhardte281b192010-04-19 14:17:47 +0200573 depends on NETFILTER_ADVANCED
Jan Engelhardt9b7ce2b2010-05-12 10:11:35 +0000574 depends on (IPV6 || IPV6=n)
Randy Dunlap83827f62010-05-14 13:52:30 -0700575 depends on !NF_CONNTRACK || NF_CONNTRACK
Jan Engelhardte281b192010-04-19 14:17:47 +0200576 ---help---
577 This option adds a "TEE" target with which a packet can be cloned and
578 this clone be rerouted to another nexthop.
579
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200580config NETFILTER_XT_TARGET_TPROXY
581 tristate '"TPROXY" target support (EXPERIMENTAL)'
582 depends on EXPERIMENTAL
583 depends on NETFILTER_TPROXY
584 depends on NETFILTER_XTABLES
585 depends on NETFILTER_ADVANCED
586 select NF_DEFRAG_IPV4
KOVACS Krisztianf6318e52010-10-24 23:38:32 +0000587 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200588 help
589 This option adds a `TPROXY' target, which is somewhat similar to
590 REDIRECT. It can only be used in the mangle table and is useful
591 to redirect traffic to a transparent proxy. It does _not_ depend
592 on Netfilter connection tracking and NAT, unlike REDIRECT.
593
594 To compile it as a module, choose M here. If unsure, say N.
595
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700596config NETFILTER_XT_TARGET_TRACE
597 tristate '"TRACE" target support'
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700598 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy33b8e772007-12-17 22:47:05 -0800599 depends on NETFILTER_ADVANCED
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700600 help
601 The TRACE target allows you to mark packets so that the kernel
602 will log every rule which match the packets as those traverse
603 the tables, chains, rules.
604
605 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700606 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700607
James Morris5e6874cd2006-06-09 00:30:57 -0700608config NETFILTER_XT_TARGET_SECMARK
609 tristate '"SECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200610 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800611 default m if NETFILTER_ADVANCED=n
James Morris5e6874cd2006-06-09 00:30:57 -0700612 help
613 The SECMARK target allows security marking of network
614 packets, for use with security subsystems.
615
616 To compile it as a module, choose M here. If unsure, say N.
617
Patrick McHardycdd289a2007-02-07 15:09:46 -0800618config NETFILTER_XT_TARGET_TCPMSS
619 tristate '"TCPMSS" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200620 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800621 default m if NETFILTER_ADVANCED=n
Patrick McHardycdd289a2007-02-07 15:09:46 -0800622 ---help---
623 This option adds a `TCPMSS' target, which allows you to alter the
624 MSS value of TCP SYN packets, to control the maximum size for that
625 connection (usually limiting it to your outgoing interface's MTU
626 minus 40).
627
628 This is used to overcome criminally braindead ISPs or servers which
629 block ICMP Fragmentation Needed packets. The symptoms of this
630 problem are that everything works fine from your Linux
631 firewall/router, but machines behind it can never exchange large
632 packets:
633 1) Web browsers connect, then hang with no data received.
634 2) Small mail works fine, but large emails hang.
635 3) ssh works fine, but scp hangs after initial handshaking.
636
637 Workaround: activate this option and add a rule to your firewall
638 configuration like:
639
640 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
641 -j TCPMSS --clamp-mss-to-pmtu
642
643 To compile it as a module, choose M here. If unsure, say N.
644
Sven Schnelle338e8a72007-12-04 23:21:50 -0800645config NETFILTER_XT_TARGET_TCPOPTSTRIP
646 tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200647 depends on EXPERIMENTAL
Sven Schnelle338e8a72007-12-04 23:21:50 -0800648 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800649 depends on NETFILTER_ADVANCED
Sven Schnelle338e8a72007-12-04 23:21:50 -0800650 help
651 This option adds a "TCPOPTSTRIP" target, which allows you to strip
652 TCP options from TCP packets.
653
Jan Engelhardt44c58732010-02-26 14:14:22 +0100654# alphabetically ordered list of matches
655
656comment "Xtables matches"
657
Florian Westphalde81bbe2011-03-15 20:16:20 +0100658config NETFILTER_XT_MATCH_ADDRTYPE
659 tristate '"addrtype" address type match support'
660 depends on NETFILTER_ADVANCED
661 ---help---
662 This option allows you to match what routing thinks of an address,
663 eg. UNICAST, LOCAL, BROADCAST, ...
664
665 If you want to compile it as a module, say M here and read
666 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
667
Pablo Neira Ayuso0269ea42009-03-16 17:10:36 +0100668config NETFILTER_XT_MATCH_CLUSTER
669 tristate '"cluster" match support'
670 depends on NF_CONNTRACK
671 depends on NETFILTER_ADVANCED
672 ---help---
673 This option allows you to build work-load-sharing clusters of
674 network servers/stateful firewalls without having a dedicated
675 load-balancing router/server/switch. Basically, this match returns
676 true when the packet must be handled by this cluster node. Thus,
677 all nodes see all packets and this match decides which node handles
678 what packets. The work-load sharing algorithm is based on source
679 address hashing.
680
681 If you say Y or M here, try `iptables -m cluster --help` for
682 more information.
683
Harald Welte2e4e6a12006-01-12 13:30:04 -0800684config NETFILTER_XT_MATCH_COMMENT
685 tristate '"comment" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800686 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800687 help
688 This option adds a `comment' dummy-match, which allows you to put
689 comments in your iptables ruleset.
690
691 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500692 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800693
694config NETFILTER_XT_MATCH_CONNBYTES
695 tristate '"connbytes" per-connection counter match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700696 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800697 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800698 help
699 This option adds a `connbytes' match, which allows you to match the
700 number of bytes and/or packets for each direction within a connection.
701
702 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500703 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800704
Jan Engelhardt370786f2007-07-14 20:47:26 -0700705config NETFILTER_XT_MATCH_CONNLIMIT
706 tristate '"connlimit" match support"'
Cornelia Huck3fd8f9e2007-07-18 02:38:32 -0700707 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800708 depends on NETFILTER_ADVANCED
Jan Engelhardt370786f2007-07-14 20:47:26 -0700709 ---help---
710 This match allows you to match against the number of parallel
711 connections to a server per client IP address (or address block).
712
Harald Welte2e4e6a12006-01-12 13:30:04 -0800713config NETFILTER_XT_MATCH_CONNMARK
714 tristate '"connmark" connection mark match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700715 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800716 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100717 select NETFILTER_XT_CONNMARK
718 ---help---
719 This is a backwards-compat option for the user's convenience
720 (e.g. when running oldconfig). It selects
721 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800722
723config NETFILTER_XT_MATCH_CONNTRACK
724 tristate '"conntrack" connection tracking match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700725 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800726 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800727 help
728 This is a general conntrack match module, a superset of the state match.
729
730 It allows matching on additional conntrack information, which is
731 useful in complex configurations, such as NAT gateways with multiple
732 internet links or tunnels.
733
734 To compile it as a module, choose M here. If unsure, say N.
735
Eric Dumazete8648a12010-07-23 12:59:36 +0200736config NETFILTER_XT_MATCH_CPU
737 tristate '"cpu" match support'
738 depends on NETFILTER_ADVANCED
739 help
740 CPU matching allows you to match packets based on the CPU
741 currently handling the packet.
742
743 To compile it as a module, choose M here. If unsure, say N.
744
Harald Welte2e4e6a12006-01-12 13:30:04 -0800745config NETFILTER_XT_MATCH_DCCP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800746 tristate '"dccp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800747 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700748 default IP_DCCP
Harald Welte2e4e6a12006-01-12 13:30:04 -0800749 help
750 With this option enabled, you will be able to use the iptables
751 `dccp' match in order to match on DCCP source/destination ports
752 and DCCP flags.
753
754 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500755 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800756
Patrick McHardy92917472011-02-03 00:05:43 +0100757config NETFILTER_XT_MATCH_DEVGROUP
758 tristate '"devgroup" match support'
759 depends on NETFILTER_ADVANCED
760 help
761 This options adds a `devgroup' match, which allows to match on the
762 device group a network device is assigned to.
763
764 To compile it as a module, choose M here. If unsure, say N.
765
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700766config NETFILTER_XT_MATCH_DSCP
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800767 tristate '"dscp" and "tos" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800768 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700769 help
770 This option adds a `DSCP' match, which allows you to match against
771 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
772
773 The DSCP field can have any value between 0x0 and 0x3f inclusive.
774
Jan Engelhardtc3b33e62007-12-04 23:37:54 -0800775 It will also add a "tos" match, which allows you to match packets
776 based on the Type Of Service fields of the IPv4 packet (which share
777 the same bits as DSCP).
778
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -0700779 To compile it as a module, choose M here. If unsure, say N.
780
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800781config NETFILTER_XT_MATCH_ESP
Jan Engelhardt4c377992007-12-04 23:31:59 -0800782 tristate '"esp" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800783 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -0800784 help
785 This match extension allows you to match a range of SPIs
786 inside ESP header of IPSec packets.
787
788 To compile it as a module, choose M here. If unsure, say N.
789
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200790config NETFILTER_XT_MATCH_HASHLIMIT
791 tristate '"hashlimit" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200792 depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200793 depends on NETFILTER_ADVANCED
794 help
795 This option adds a `hashlimit' match.
796
797 As opposed to `limit', this match dynamically creates a hash table
798 of limit buckets, based on your selection of source/destination
799 addresses and/or ports.
800
801 It enables you to express policies like `10kpps for any given
802 destination address' or `500pps from any given source address'
803 with a single rule.
804
Harald Welte2e4e6a12006-01-12 13:30:04 -0800805config NETFILTER_XT_MATCH_HELPER
806 tristate '"helper" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700807 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800808 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800809 help
810 Helper matching allows you to match packets in dynamic connections
811 tracked by a conntrack-helper, ie. ip_conntrack_ftp
812
813 To compile it as a module, choose M here. If unsure, say Y.
814
Jan Engelhardtcfac5ef2009-02-18 18:39:31 +0100815config NETFILTER_XT_MATCH_HL
816 tristate '"hl" hoplimit/TTL match support'
817 depends on NETFILTER_ADVANCED
818 ---help---
819 HL matching allows you to match packets based on the hoplimit
820 in the IPv6 header, or the time-to-live field in the IPv4
821 header of the packet.
822
Jan Engelhardtf72e25a2008-01-14 23:42:47 -0800823config NETFILTER_XT_MATCH_IPRANGE
824 tristate '"iprange" address range match support'
Jan Engelhardtf72e25a2008-01-14 23:42:47 -0800825 depends on NETFILTER_ADVANCED
826 ---help---
827 This option adds a "iprange" match, which allows you to match based on
828 an IP address range. (Normal iptables only matches on single addresses
829 with an optional mask.)
830
831 If unsure, say M.
832
Hannes Eder9c3e1c32010-07-23 12:42:58 +0200833config NETFILTER_XT_MATCH_IPVS
834 tristate '"ipvs" match support'
835 depends on IP_VS
836 depends on NETFILTER_ADVANCED
837 depends on NF_CONNTRACK
838 help
839 This option allows you to match against IPVS properties of a packet.
840
841 If unsure, say N.
842
Harald Welte2e4e6a12006-01-12 13:30:04 -0800843config NETFILTER_XT_MATCH_LENGTH
844 tristate '"length" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800845 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800846 help
847 This option allows you to match the length of a packet against a
848 specific value or range of values.
849
850 To compile it as a module, choose M here. If unsure, say N.
851
852config NETFILTER_XT_MATCH_LIMIT
853 tristate '"limit" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800854 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800855 help
856 limit matching allows you to control the rate at which a rule can be
857 matched: mainly useful in combination with the LOG target ("LOG
858 target support", below) and to avoid some Denial of Service attacks.
859
860 To compile it as a module, choose M here. If unsure, say N.
861
862config NETFILTER_XT_MATCH_MAC
863 tristate '"mac" address match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800864 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800865 help
866 MAC matching allows you to match packets based on the source
867 Ethernet address of the packet.
868
869 To compile it as a module, choose M here. If unsure, say N.
870
871config NETFILTER_XT_MATCH_MARK
872 tristate '"mark" match support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100873 depends on NETFILTER_ADVANCED
874 select NETFILTER_XT_MARK
875 ---help---
876 This is a backwards-compat option for the user's convenience
877 (e.g. when running oldconfig). It selects
878 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800879
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200880config NETFILTER_XT_MATCH_MULTIPORT
881 tristate '"multiport" Multiple port match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200882 depends on NETFILTER_ADVANCED
883 help
884 Multiport matching allows you to match TCP or UDP packets based on
885 a series of source or destination ports: normally a rule can only
886 match a single range of ports.
887
888 To compile it as a module, choose M here. If unsure, say N.
889
Jan Engelhardt115bc8f2010-03-16 20:06:55 +0100890config NETFILTER_XT_MATCH_OSF
891 tristate '"osf" Passive OS fingerprint match'
892 depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
893 help
894 This option selects the Passive OS Fingerprinting match module
895 that allows to passively match the remote operating system by
896 analyzing incoming TCP SYN packets.
897
898 Rules and loading software can be downloaded from
899 http://www.ioremap.net/projects/osf
900
901 To compile it as a module, choose M here. If unsure, say N.
902
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800903config NETFILTER_XT_MATCH_OWNER
904 tristate '"owner" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800905 depends on NETFILTER_ADVANCED
Jan Engelhardt0265ab42007-12-04 23:27:38 -0800906 ---help---
907 Socket owner matching allows you to match locally-generated packets
908 based on who created the socket: the user or group. It is also
909 possible to check whether a socket actually exists.
910
Patrick McHardyc4b88512006-03-20 18:03:40 -0800911config NETFILTER_XT_MATCH_POLICY
912 tristate 'IPsec "policy" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200913 depends on XFRM
Patrick McHardy33b8e772007-12-17 22:47:05 -0800914 default m if NETFILTER_ADVANCED=n
Patrick McHardyc4b88512006-03-20 18:03:40 -0800915 help
916 Policy matching allows you to match packets based on the
917 IPsec policy that was used during decapsulation/will
918 be used during encapsulation.
919
920 To compile it as a module, choose M here. If unsure, say N.
921
Harald Welte2e4e6a12006-01-12 13:30:04 -0800922config NETFILTER_XT_MATCH_PHYSDEV
923 tristate '"physdev" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200924 depends on BRIDGE && BRIDGE_NETFILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -0800925 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800926 help
927 Physdev packet matching matches against the physical bridge ports
928 the IP packet arrived on or will leave by.
929
930 To compile it as a module, choose M here. If unsure, say N.
931
932config NETFILTER_XT_MATCH_PKTTYPE
933 tristate '"pkttype" packet type match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800934 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800935 help
936 Packet type matching allows you to match a packet by
937 its "class", eg. BROADCAST, MULTICAST, ...
938
939 Typical usage:
940 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
941
942 To compile it as a module, choose M here. If unsure, say N.
943
Patrick McHardy62b77432006-05-29 18:20:32 -0700944config NETFILTER_XT_MATCH_QUOTA
945 tristate '"quota" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800946 depends on NETFILTER_ADVANCED
Patrick McHardy62b77432006-05-29 18:20:32 -0700947 help
948 This option adds a `quota' match, which allows to match on a
949 byte counter.
950
951 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500952 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Patrick McHardy62b77432006-05-29 18:20:32 -0700953
Patrick McHardy50c164a2007-12-04 13:02:19 +0100954config NETFILTER_XT_MATCH_RATEEST
955 tristate '"rateest" match support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800956 depends on NETFILTER_ADVANCED
Patrick McHardy50c164a2007-12-04 13:02:19 +0100957 select NETFILTER_XT_TARGET_RATEEST
958 help
959 This option adds a `rateest' match, which allows to match on the
960 rate estimated by the RATEEST target.
961
962 To compile it as a module, choose M here. If unsure, say N.
963
Harald Welte2e4e6a12006-01-12 13:30:04 -0800964config NETFILTER_XT_MATCH_REALM
965 tristate '"realm" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800966 depends on NETFILTER_ADVANCED
Patrick McHardyc7066f72011-01-14 13:36:42 +0100967 select IP_ROUTE_CLASSID
Harald Welte2e4e6a12006-01-12 13:30:04 -0800968 help
969 This option adds a `realm' match, which allows you to use the realm
970 key from the routing subsystem inside iptables.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800971
Harald Welte2e4e6a12006-01-12 13:30:04 -0800972 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
973 in tc world.
Patrick McHardy33b8e772007-12-17 22:47:05 -0800974
Harald Welte2e4e6a12006-01-12 13:30:04 -0800975 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500976 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -0800977
Jan Engelhardte948b202008-10-08 11:35:00 +0200978config NETFILTER_XT_MATCH_RECENT
979 tristate '"recent" match support'
Jan Engelhardte948b202008-10-08 11:35:00 +0200980 depends on NETFILTER_ADVANCED
981 ---help---
982 This match is used for creating one or many lists of recently
983 used addresses and then matching against that/those list(s).
984
985 Short options are available by using 'iptables -m recent -h'
986 Official Website: <http://snowman.net/projects/ipt_recent/>
987
Harald Welte2e4e6a12006-01-12 13:30:04 -0800988config NETFILTER_XT_MATCH_SCTP
Patrick McHardyd5af9812006-07-24 22:55:29 -0700989 tristate '"sctp" protocol match support (EXPERIMENTAL)'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200990 depends on EXPERIMENTAL
Patrick McHardy33b8e772007-12-17 22:47:05 -0800991 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700992 default IP_SCTP
Harald Welte2e4e6a12006-01-12 13:30:04 -0800993 help
994 With this option enabled, you will be able to use the
995 `sctp' match in order to match on SCTP source/destination ports
996 and SCTP chunk types.
997
998 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500999 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001000
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001001config NETFILTER_XT_MATCH_SOCKET
1002 tristate '"socket" match support (EXPERIMENTAL)'
1003 depends on EXPERIMENTAL
1004 depends on NETFILTER_TPROXY
1005 depends on NETFILTER_XTABLES
1006 depends on NETFILTER_ADVANCED
Laszlo Attila Tothacda0742009-05-01 15:23:10 -07001007 depends on !NF_CONNTRACK || NF_CONNTRACK
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001008 select NF_DEFRAG_IPV4
KOVACS Krisztianf6318e52010-10-24 23:38:32 +00001009 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001010 help
1011 This option adds a `socket' match, which can be used to match
1012 packets for which a TCP or UDP socket lookup finds a valid socket.
1013 It can be used in combination with the MARK target and policy
1014 routing to implement full featured non-locally bound sockets.
1015
1016 To compile it as a module, choose M here. If unsure, say N.
1017
Harald Welte2e4e6a12006-01-12 13:30:04 -08001018config NETFILTER_XT_MATCH_STATE
1019 tristate '"state" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001020 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001021 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -08001022 help
1023 Connection state matching allows you to match packets based on their
1024 relationship to a tracked connection (ie. previous packets). This
1025 is a powerful tool for packet classification.
1026
1027 To compile it as a module, choose M here. If unsure, say N.
1028
Patrick McHardyf3389802006-05-29 18:21:00 -07001029config NETFILTER_XT_MATCH_STATISTIC
1030 tristate '"statistic" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001031 depends on NETFILTER_ADVANCED
Patrick McHardyf3389802006-05-29 18:21:00 -07001032 help
Patrick McHardy68c16922006-06-27 03:02:14 -07001033 This option adds a `statistic' match, which allows you to match
1034 on packets periodically or randomly with a given percentage.
1035
1036 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -07001037
Harald Welte2e4e6a12006-01-12 13:30:04 -08001038config NETFILTER_XT_MATCH_STRING
1039 tristate '"string" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001040 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001041 select TEXTSEARCH
1042 select TEXTSEARCH_KMP
1043 select TEXTSEARCH_BM
1044 select TEXTSEARCH_FSM
1045 help
1046 This option adds a `string' match, which allows you to look for
1047 pattern matchings in packets.
1048
1049 To compile it as a module, choose M here. If unsure, say N.
1050
1051config NETFILTER_XT_MATCH_TCPMSS
1052 tristate '"tcpmss" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001053 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001054 help
1055 This option adds a `tcpmss' match, which allows you to examine the
1056 MSS value of TCP SYN packets, which control the maximum packet size
1057 for that connection.
1058
1059 To compile it as a module, choose M here. If unsure, say N.
1060
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001061config NETFILTER_XT_MATCH_TIME
1062 tristate '"time" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001063 depends on NETFILTER_ADVANCED
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001064 ---help---
1065 This option adds a "time" match, which allows you to match based on
1066 the packet arrival time (at the machine which netfilter is running)
1067 on) or departure time/date (for locally generated packets).
1068
1069 If you say Y here, try `iptables -m time --help` for
1070 more information.
1071
1072 If you want to compile it as a module, say M here.
1073 If unsure, say N.
1074
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001075config NETFILTER_XT_MATCH_U32
1076 tristate '"u32" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001077 depends on NETFILTER_ADVANCED
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001078 ---help---
1079 u32 allows you to extract quantities of up to 4 bytes from a packet,
1080 AND them with specified masks, shift them by specified amounts and
1081 test whether the results are in any of a set of specified ranges.
1082 The specification of what to extract is general enough to skip over
1083 headers with lengths stored in the packet, as in IP or TCP header
1084 lengths.
1085
1086 Details and examples are in the kernel module source.
1087
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001088endif # NETFILTER_XTABLES
Harald Weltea6c1cd572006-02-13 15:42:48 -08001089
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001090endmenu
Harald Weltef9e815b2005-08-09 19:30:24 -07001091
Jozsef Kadlecsika7b4f982011-02-01 15:28:35 +01001092source "net/netfilter/ipset/Kconfig"
1093
Julius Volzcb7f6a72008-09-19 12:32:57 +02001094source "net/netfilter/ipvs/Kconfig"