blob: 373486ae415996426a0277d472fd17aabdf28540 [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
Pablo Neira Ayusoc1878862014-06-28 18:39:01 +020049config NF_LOG_COMMON
50 tristate
51
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020052if NF_CONNTRACK
53
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080054config NF_CONNTRACK_MARK
55 bool 'Connection mark tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080056 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080057 help
58 This option enables support for connection marks, used by the
59 `CONNMARK' target and `connmark' match. Similar to the mark value
60 of packets, but this mark value is kept in the conntrack session
61 instead of the individual packets.
62
James Morris7c9728c2006-06-09 00:31:46 -070063config NF_CONNTRACK_SECMARK
64 bool 'Connection tracking security mark support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020065 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -080066 default m if NETFILTER_ADVANCED=n
James Morris7c9728c2006-06-09 00:31:46 -070067 help
68 This option enables security markings to be applied to
69 connections. Typically they are copied to connections from
70 packets using the CONNSECMARK target and copied back from
71 connections to packets with the same target, with the packets
72 being originally labeled via SECMARK.
73
74 If unsure, say 'N'.
75
Patrick McHardy5d0aa2c2010-02-15 18:13:33 +010076config NF_CONNTRACK_ZONES
77 bool 'Connection tracking zones'
78 depends on NETFILTER_ADVANCED
79 depends on NETFILTER_XT_TARGET_CT
80 help
81 This option enables support for connection tracking zones.
82 Normally, each connection needs to have a unique system wide
83 identity. Connection tracking zones allow to have multiple
84 connections using the same identity, as long as they are
85 contained in different zones.
86
87 If unsure, say `N'.
88
Jan Engelhardt54b07dc2011-04-21 09:32:45 +020089config NF_CONNTRACK_PROCFS
90 bool "Supply CT list in procfs (OBSOLETE)"
91 default y
92 depends on PROC_FS
93 ---help---
94 This option enables for the list of known conntrack entries
95 to be shown in procfs under net/netfilter/nf_conntrack. This
96 is considered obsolete in favor of using the conntrack(8)
97 tool which uses Netlink.
98
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080099config NF_CONNTRACK_EVENTS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800100 bool "Connection tracking events"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800101 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800102 help
103 If this option is enabled, the connection tracking code will
104 provide a notifier chain that can be used by other kernel code
Thomas Vögtle50b521a2006-03-22 13:53:48 -0800105 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800106
107 If unsure, say `N'.
108
Pablo Neira Ayusodd705072012-02-28 23:36:48 +0100109config NF_CONNTRACK_TIMEOUT
110 bool 'Connection tracking timeout'
111 depends on NETFILTER_ADVANCED
112 help
113 This option enables support for connection tracking timeout
114 extension. This allows you to attach timeout policies to flow
115 via the CT target.
116
117 If unsure, say `N'.
118
Pablo Neira Ayusoa992ca22011-01-19 16:00:07 +0100119config NF_CONNTRACK_TIMESTAMP
120 bool 'Connection tracking timestamping'
121 depends on NETFILTER_ADVANCED
122 help
123 This option enables support for connection tracking timestamping.
124 This allows you to store the flow start-time and to obtain
125 the flow-stop time (once it has been destroyed) via Connection
126 tracking events.
127
128 If unsure, say `N'.
129
Florian Westphalc539f012013-01-11 06:30:44 +0000130config NF_CONNTRACK_LABELS
131 bool
132 help
133 This option enables support for assigning user-defined flag bits
134 to connection tracking entries. It selected by the connlabel match.
135
Patrick McHardy2bc78042008-03-20 15:15:55 +0100136config NF_CT_PROTO_DCCP
Kees Cook663ef0d2012-10-02 11:19:54 -0700137 tristate 'DCCP protocol connection tracking support'
Patrick McHardy2bc78042008-03-20 15:15:55 +0100138 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700139 default IP_DCCP
Patrick McHardy2bc78042008-03-20 15:15:55 +0100140 help
141 With this option enabled, the layer 3 independent connection
142 tracking code will be able to do state tracking on DCCP connections.
143
144 If unsure, say 'N'.
145
Patrick McHardyf09943f2006-12-02 22:09:41 -0800146config NF_CT_PROTO_GRE
147 tristate
Patrick McHardyf09943f2006-12-02 22:09:41 -0800148
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800149config NF_CT_PROTO_SCTP
Kees Cook663ef0d2012-10-02 11:19:54 -0700150 tristate 'SCTP protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800151 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700152 default IP_SCTP
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800153 help
154 With this option enabled, the layer 3 independent connection
155 tracking code will be able to do state tracking on SCTP connections.
156
157 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500158 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800159
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700160config NF_CT_PROTO_UDPLITE
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800161 tristate 'UDP-Lite protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800162 depends on NETFILTER_ADVANCED
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700163 help
164 With this option enabled, the layer 3 independent connection
165 tracking code will be able to do state tracking on UDP-Lite
166 connections.
167
168 To compile it as a module, choose M here. If unsure, say N.
169
Patrick McHardy16958902006-12-02 22:08:26 -0800170config NF_CONNTRACK_AMANDA
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800171 tristate "Amanda backup protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800172 depends on NETFILTER_ADVANCED
Patrick McHardy16958902006-12-02 22:08:26 -0800173 select TEXTSEARCH
174 select TEXTSEARCH_KMP
175 help
176 If you are running the Amanda backup package <http://www.amanda.org/>
177 on this machine or machines that will be MASQUERADED through this
178 machine, then you may want to enable this feature. This allows the
179 connection tracking and natting code to allow the sub-channels that
180 Amanda requires for communication of the backup data, messages and
181 index.
182
183 To compile it as a module, choose M here. If unsure, say N.
184
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800185config NF_CONNTRACK_FTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800186 tristate "FTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800187 default m if NETFILTER_ADVANCED=n
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800188 help
189 Tracking FTP connections is problematic: special helpers are
190 required for tracking them, and doing masquerading and other forms
191 of Network Address Translation on them.
192
193 This is FTP support on Layer 3 independent connection tracking.
194 Layer 3 independent connection tracking is experimental scheme
195 which generalize ip_conntrack to support other layer 3 protocols.
196
197 To compile it as a module, choose M here. If unsure, say N.
198
Patrick McHardyf587de02006-12-02 22:08:46 -0800199config NF_CONNTRACK_H323
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800200 tristate "H.323 protocol support"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200201 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800202 depends on NETFILTER_ADVANCED
Patrick McHardyf587de02006-12-02 22:08:46 -0800203 help
204 H.323 is a VoIP signalling protocol from ITU-T. As one of the most
205 important VoIP protocols, it is widely used by voice hardware and
206 software including voice gateways, IP phones, Netmeeting, OpenPhone,
207 Gnomemeeting, etc.
208
209 With this module you can support H.323 on a connection tracking/NAT
210 firewall.
211
212 This module supports RAS, Fast Start, H.245 Tunnelling, Call
213 Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
214 whiteboard, file transfer, etc. For more information, please
215 visit http://nath323.sourceforge.net/.
216
217 To compile it as a module, choose M here. If unsure, say N.
218
Patrick McHardy869f37d2006-12-02 22:09:06 -0800219config NF_CONNTRACK_IRC
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800220 tristate "IRC protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800221 default m if NETFILTER_ADVANCED=n
Patrick McHardy869f37d2006-12-02 22:09:06 -0800222 help
223 There is a commonly-used extension to IRC called
224 Direct Client-to-Client Protocol (DCC). This enables users to send
225 files to each other, and also chat to each other without the need
226 of a server. DCC Sending is used anywhere you send files over IRC,
227 and DCC Chat is most commonly used by Eggdrop bots. If you are
228 using NAT, this extension will enable you to send files and initiate
229 chats. Note that you do NOT need this extension to get files or
230 have others initiate chats, or everything else in IRC.
231
232 To compile it as a module, choose M here. If unsure, say N.
233
Jiri Olsa93557f52011-01-18 18:12:24 +0100234config NF_CONNTRACK_BROADCAST
235 tristate
236
Patrick McHardy92703ee2006-12-02 22:09:24 -0800237config NF_CONNTRACK_NETBIOS_NS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800238 tristate "NetBIOS name service protocol support"
Jiri Olsa93557f52011-01-18 18:12:24 +0100239 select NF_CONNTRACK_BROADCAST
Patrick McHardy92703ee2006-12-02 22:09:24 -0800240 help
241 NetBIOS name service requests are sent as broadcast messages from an
242 unprivileged port and responded to with unicast messages to the
243 same port. This make them hard to firewall properly because connection
244 tracking doesn't deal with broadcasts. This helper tracks locally
245 originating NetBIOS name service requests and the corresponding
246 responses. It relies on correct IP address configuration, specifically
247 netmask and broadcast address. When properly configured, the output
248 of "ip address show" should look similar to this:
249
250 $ ip -4 address show eth0
251 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
252 inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
253
254 To compile it as a module, choose M here. If unsure, say N.
255
Jiri Olsa93557f52011-01-18 18:12:24 +0100256config NF_CONNTRACK_SNMP
257 tristate "SNMP service protocol support"
258 depends on NETFILTER_ADVANCED
259 select NF_CONNTRACK_BROADCAST
260 help
261 SNMP service requests are sent as broadcast messages from an
262 unprivileged port and responded to with unicast messages to the
263 same port. This make them hard to firewall properly because connection
264 tracking doesn't deal with broadcasts. This helper tracks locally
265 originating SNMP service requests and the corresponding
266 responses. It relies on correct IP address configuration, specifically
267 netmask and broadcast address.
268
269 To compile it as a module, choose M here. If unsure, say N.
270
Patrick McHardyf09943f2006-12-02 22:09:41 -0800271config NF_CONNTRACK_PPTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800272 tristate "PPtP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800273 depends on NETFILTER_ADVANCED
Patrick McHardyf09943f2006-12-02 22:09:41 -0800274 select NF_CT_PROTO_GRE
275 help
276 This module adds support for PPTP (Point to Point Tunnelling
277 Protocol, RFC2637) connection tracking and NAT.
278
279 If you are running PPTP sessions over a stateful firewall or NAT
280 box, you may want to enable this feature.
281
282 Please note that not all PPTP modes of operation are supported yet.
283 Specifically these limitations exist:
David Sterba3dde6ad2007-05-09 07:12:20 +0200284 - Blindly assumes that control connections are always established
Patrick McHardyf09943f2006-12-02 22:09:41 -0800285 in PNS->PAC direction. This is a violation of RFC2637.
286 - Only supports a single call within each session
287
288 To compile it as a module, choose M here. If unsure, say N.
289
Michal Schmidt6fecd192007-02-07 15:05:12 -0800290config NF_CONNTRACK_SANE
Kees Cook663ef0d2012-10-02 11:19:54 -0700291 tristate "SANE protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800292 depends on NETFILTER_ADVANCED
Michal Schmidt6fecd192007-02-07 15:05:12 -0800293 help
294 SANE is a protocol for remote access to scanners as implemented
295 by the 'saned' daemon. Like FTP, it uses separate control and
296 data connections.
297
298 With this module you can support SANE on a connection tracking
299 firewall.
300
301 To compile it as a module, choose M here. If unsure, say N.
302
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800303config NF_CONNTRACK_SIP
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800304 tristate "SIP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800305 default m if NETFILTER_ADVANCED=n
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800306 help
307 SIP is an application-layer control protocol that can establish,
308 modify, and terminate multimedia sessions (conferences) such as
309 Internet telephony calls. With the ip_conntrack_sip and
310 the nf_nat_sip modules you can support the protocol on a connection
311 tracking/NATing firewall.
312
313 To compile it as a module, choose M here. If unsure, say N.
314
Patrick McHardya536df32006-12-02 22:10:18 -0800315config NF_CONNTRACK_TFTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800316 tristate "TFTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800317 depends on NETFILTER_ADVANCED
Patrick McHardya536df32006-12-02 22:10:18 -0800318 help
319 TFTP connection tracking helper, this is required depending
320 on how restrictive your ruleset is.
321 If you are using a tftp client behind -j SNAT or -j MASQUERADING
322 you will need this.
323
324 To compile it as a module, choose M here. If unsure, say N.
325
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800326config NF_CT_NETLINK
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800327 tristate 'Connection tracking netlink interface'
Patrick McHardy2eeeba32007-12-05 01:31:52 -0800328 select NETFILTER_NETLINK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800329 default m if NETFILTER_ADVANCED=n
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800330 help
331 This option enables support for a netlink-based userspace interface
332
Pablo Neira Ayuso50978462012-02-28 19:13:48 +0100333config NF_CT_NETLINK_TIMEOUT
334 tristate 'Connection tracking timeout tuning via Netlink'
335 select NETFILTER_NETLINK
336 depends on NETFILTER_ADVANCED
337 help
338 This option enables support for connection tracking timeout
339 fine-grain tuning. This allows you to attach specific timeout
340 policies to flows, instead of using the global timeout policy.
341
342 If unsure, say `N'.
343
Pablo Neira Ayuso6e9c2db2012-06-18 21:14:30 +0200344config NF_CT_NETLINK_HELPER
345 tristate 'Connection tracking helpers in user-space via Netlink'
346 select NETFILTER_NETLINK
347 depends on NF_CT_NETLINK
348 depends on NETFILTER_NETLINK_QUEUE
Pablo Neira Ayuso7c622342012-06-19 02:10:57 +0200349 depends on NETFILTER_NETLINK_QUEUE_CT
Pablo Neira Ayuso6e9c2db2012-06-18 21:14:30 +0200350 depends on NETFILTER_ADVANCED
351 help
352 This option enables the user-space connection tracking helpers
353 infrastructure.
354
355 If unsure, say `N'.
356
Pablo Neira Ayuso7c622342012-06-19 02:10:57 +0200357config NETFILTER_NETLINK_QUEUE_CT
358 bool "NFQUEUE integration with Connection Tracking"
359 default n
360 depends on NETFILTER_NETLINK_QUEUE
361 help
362 If this option is enabled, NFQUEUE can include Connection Tracking
363 information together with the packet is the enqueued via NFNETLINK.
364
Patrick McHardyc7232c92012-08-26 19:14:06 +0200365config NF_NAT
366 tristate
367
368config NF_NAT_NEEDED
369 bool
370 depends on NF_NAT
371 default y
372
373config NF_NAT_PROTO_DCCP
374 tristate
375 depends on NF_NAT && NF_CT_PROTO_DCCP
376 default NF_NAT && NF_CT_PROTO_DCCP
377
378config NF_NAT_PROTO_UDPLITE
379 tristate
380 depends on NF_NAT && NF_CT_PROTO_UDPLITE
381 default NF_NAT && NF_CT_PROTO_UDPLITE
382
383config NF_NAT_PROTO_SCTP
384 tristate
385 default NF_NAT && NF_CT_PROTO_SCTP
386 depends on NF_NAT && NF_CT_PROTO_SCTP
387 select LIBCRC32C
388
Patrick McHardyee6eb962012-08-26 19:14:22 +0200389config NF_NAT_AMANDA
390 tristate
391 depends on NF_CONNTRACK && NF_NAT
392 default NF_NAT && NF_CONNTRACK_AMANDA
393
Patrick McHardyd33cbee2012-08-26 19:14:20 +0200394config NF_NAT_FTP
395 tristate
396 depends on NF_CONNTRACK && NF_NAT
397 default NF_NAT && NF_CONNTRACK_FTP
398
Pablo Neira Ayuso5901b6b2012-08-26 19:14:27 +0200399config NF_NAT_IRC
400 tristate
401 depends on NF_CONNTRACK && NF_NAT
402 default NF_NAT && NF_CONNTRACK_IRC
403
Patrick McHardy9a664822012-08-26 19:14:25 +0200404config NF_NAT_SIP
405 tristate
406 depends on NF_CONNTRACK && NF_NAT
407 default NF_NAT && NF_CONNTRACK_SIP
408
Pablo Neira Ayuso320ff562012-08-26 19:14:29 +0200409config NF_NAT_TFTP
410 tristate
411 depends on NF_CONNTRACK && NF_NAT
412 default NF_NAT && NF_CONNTRACK_TFTP
413
Patrick McHardy48b1de42013-08-27 08:50:14 +0200414config NETFILTER_SYNPROXY
415 tristate
416
Laszlo Attila Toth4b070662009-04-24 16:55:25 +0200417endif # NF_CONNTRACK
418
Patrick McHardy96518512013-10-14 11:00:02 +0200419config NF_TABLES
Eric Leblond5f291c22013-12-29 11:01:29 +0100420 select NETFILTER_NETLINK
Patrick McHardy96518512013-10-14 11:00:02 +0200421 tristate "Netfilter nf_tables support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100422 help
423 nftables is the new packet classification framework that intends to
424 replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
425 provides a pseudo-state machine with an extensible instruction-set
426 (also known as expressions) that the userspace 'nft' utility
427 (http://www.netfilter.org/projects/nftables) uses to build the
428 rule-set. It also comes with the generic set infrastructure that
429 allows you to construct mappings between matchings and actions
430 for performance lookups.
431
432 To compile it as a module, choose M here.
Patrick McHardy96518512013-10-14 11:00:02 +0200433
Patrick McHardy1d491442014-01-03 12:16:16 +0000434config NF_TABLES_INET
Paul Gortmaker419331d2014-01-13 13:01:10 -0500435 depends on NF_TABLES && IPV6
Patrick McHardy1d491442014-01-03 12:16:16 +0000436 select NF_TABLES_IPV4
437 select NF_TABLES_IPV6
438 tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"
439 help
440 This option enables support for a mixed IPv4/IPv6 "inet" table.
441
Patrick McHardy96518512013-10-14 11:00:02 +0200442config NFT_EXTHDR
443 depends on NF_TABLES
444 tristate "Netfilter nf_tables IPv6 exthdr module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100445 help
446 This option adds the "exthdr" expression that you can use to match
447 IPv6 extension headers.
Patrick McHardy96518512013-10-14 11:00:02 +0200448
449config NFT_META
450 depends on NF_TABLES
451 tristate "Netfilter nf_tables meta module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100452 help
453 This option adds the "meta" expression that you can use to match and
454 to set packet metainformation such as the packet mark.
Patrick McHardy96518512013-10-14 11:00:02 +0200455
456config NFT_CT
457 depends on NF_TABLES
458 depends on NF_CONNTRACK
459 tristate "Netfilter nf_tables conntrack module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100460 help
461 This option adds the "meta" expression that you can use to match
462 connection tracking information such as the flow state.
Patrick McHardy96518512013-10-14 11:00:02 +0200463
Patrick McHardy20a69342013-10-11 12:06:22 +0200464config NFT_RBTREE
Patrick McHardy96518512013-10-14 11:00:02 +0200465 depends on NF_TABLES
Patrick McHardy20a69342013-10-11 12:06:22 +0200466 tristate "Netfilter nf_tables rbtree set module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100467 help
468 This option adds the "rbtree" set type (Red Black tree) that is used
469 to build interval-based sets.
Patrick McHardy96518512013-10-14 11:00:02 +0200470
471config NFT_HASH
472 depends on NF_TABLES
Patrick McHardy20a69342013-10-11 12:06:22 +0200473 tristate "Netfilter nf_tables hash set module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100474 help
475 This option adds the "hash" set type that is used to build one-way
476 mappings between matchings and actions.
Patrick McHardy96518512013-10-14 11:00:02 +0200477
478config NFT_COUNTER
479 depends on NF_TABLES
480 tristate "Netfilter nf_tables counter module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100481 help
482 This option adds the "counter" expression that you can use to
483 include packet and byte counters in a rule.
Patrick McHardy96518512013-10-14 11:00:02 +0200484
485config NFT_LOG
486 depends on NF_TABLES
487 tristate "Netfilter nf_tables log module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100488 help
489 This option adds the "log" expression that you can use to log
490 packets matching some criteria.
Patrick McHardy96518512013-10-14 11:00:02 +0200491
492config NFT_LIMIT
493 depends on NF_TABLES
494 tristate "Netfilter nf_tables limit module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100495 help
496 This option adds the "limit" expression that you can use to
497 ratelimit rule matchings.
Patrick McHardy96518512013-10-14 11:00:02 +0200498
Arturo Borrero9ba1f7262014-09-08 13:45:00 +0200499config NFT_MASQ
500 depends on NF_TABLES
501 depends on NF_CONNTRACK
502 depends on NF_NAT
503 tristate "Netfilter nf_tables masquerade support"
504 help
505 This option adds the "masquerade" expression that you can use
506 to perform NAT in the masquerade flavour.
507
Arturo Borreroe9105f12014-10-17 12:39:09 +0200508config NFT_REDIR
509 depends on NF_TABLES
510 depends on NF_CONNTRACK
511 depends on NF_NAT
512 tristate "Netfilter nf_tables redirect support"
513 help
514 This options adds the "redirect" expression that you can use
515 to perform NAT in the redirect flavour.
516
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200517config NFT_NAT
518 depends on NF_TABLES
519 depends on NF_CONNTRACK
Pablo Neira Ayuso1e8430f2014-08-11 18:21:50 +0200520 select NF_NAT
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200521 tristate "Netfilter nf_tables nat module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100522 help
523 This option adds the "nat" expression that you can use to perform
524 typical Network Address Translation (NAT) packet transformations.
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200525
Eric Leblond0aff0782013-12-06 00:24:13 +0100526config NFT_QUEUE
527 depends on NF_TABLES
528 depends on NETFILTER_XTABLES
529 depends on NETFILTER_NETLINK_QUEUE
530 tristate "Netfilter nf_tables queue module"
531 help
532 This is required if you intend to use the userspace queueing
533 infrastructure (also known as NFQUEUE) from nftables.
534
Eric Leblondbee11dc2013-12-29 12:28:14 +0100535config NFT_REJECT
536 depends on NF_TABLES
Eric Leblondbee11dc2013-12-29 12:28:14 +0100537 default m if NETFILTER_ADVANCED=n
538 tristate "Netfilter nf_tables reject support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100539 help
540 This option adds the "reject" expression that you can use to
541 explicitly deny and notify via TCP reset/ICMP informational errors
542 unallowed traffic.
Pablo Neira Ayuso0ca743a2013-10-14 00:06:06 +0200543
Patrick McHardy05513e92014-02-05 15:03:39 +0000544config NFT_REJECT_INET
545 depends on NF_TABLES_INET
546 default NFT_REJECT
547 tristate
548
Pablo Neira Ayuso0ca743a2013-10-14 00:06:06 +0200549config NFT_COMPAT
550 depends on NF_TABLES
551 depends on NETFILTER_XTABLES
552 tristate "Netfilter x_tables over nf_tables module"
553 help
554 This is required if you intend to use any of existing
555 x_tables match/target extensions over the nf_tables
556 framework.
557
Harald Welte2e4e6a12006-01-12 13:30:04 -0800558config NETFILTER_XTABLES
559 tristate "Netfilter Xtables support (required for ip_tables)"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800560 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800561 help
562 This is required if you intend to use any of ip_tables,
563 ip6_tables or arp_tables.
564
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200565if NETFILTER_XTABLES
566
Jan Engelhardt28b94982009-02-28 03:23:57 +0100567comment "Xtables combined modules"
568
569config NETFILTER_XT_MARK
570 tristate 'nfmark target and match support'
571 default m if NETFILTER_ADVANCED=n
572 ---help---
573 This option adds the "MARK" target and "mark" match.
574
575 Netfilter mark matching allows you to match packets based on the
576 "nfmark" value in the packet.
577 The target allows you to create rules in the "mangle" table which alter
578 the netfilter mark (nfmark) field associated with the packet.
579
580 Prior to routing, the nfmark can influence the routing method (see
581 "Use netfilter MARK value as routing key") and can also be used by
582 other subsystems to change their behavior.
583
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100584config NETFILTER_XT_CONNMARK
585 tristate 'ctmark target and match support'
586 depends on NF_CONNTRACK
587 depends on NETFILTER_ADVANCED
588 select NF_CONNTRACK_MARK
589 ---help---
590 This option adds the "CONNMARK" target and "connmark" match.
591
592 Netfilter allows you to store a mark value per connection (a.k.a.
593 ctmark), similarly to the packet mark (nfmark). Using this
594 target and match, you can set and match on this mark.
595
Jozsef Kadlecsikd9567982011-02-01 15:56:00 +0100596config NETFILTER_XT_SET
597 tristate 'set target and match support'
598 depends on IP_SET
599 depends on NETFILTER_ADVANCED
600 help
601 This option adds the "SET" target and "set" match.
602
603 Using this target and match, you can add/delete and match
604 elements in the sets created by ipset(8).
605
606 To compile it as a module, choose M here. If unsure, say N.
607
Harald Welte2e4e6a12006-01-12 13:30:04 -0800608# alphabetically ordered list of targets
609
Jan Engelhardt44c58732010-02-26 14:14:22 +0100610comment "Xtables targets"
611
Thomas Graf43f393c2011-01-16 18:10:28 +0100612config NETFILTER_XT_TARGET_AUDIT
613 tristate "AUDIT target support"
614 depends on AUDIT
615 depends on NETFILTER_ADVANCED
616 ---help---
617 This option adds a 'AUDIT' target, which can be used to create
618 audit records for packets dropped/accepted.
619
620 To compileit as a module, choose M here. If unsure, say N.
621
Michael S. Tsirkinedf0e1f2010-07-15 17:20:46 +0200622config NETFILTER_XT_TARGET_CHECKSUM
623 tristate "CHECKSUM target support"
624 depends on IP_NF_MANGLE || IP6_NF_MANGLE
625 depends on NETFILTER_ADVANCED
626 ---help---
627 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
628 table.
629
630 You can use this target to compute and fill in the checksum in
631 a packet that lacks a checksum. This is particularly useful,
632 if you need to work around old applications such as dhcp clients,
633 that do not work well with checksum offloads, but don't want to disable
634 checksum offload in your device.
635
636 To compile it as a module, choose M here. If unsure, say N.
637
Harald Welte2e4e6a12006-01-12 13:30:04 -0800638config NETFILTER_XT_TARGET_CLASSIFY
639 tristate '"CLASSIFY" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800640 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800641 help
642 This option adds a `CLASSIFY' target, which enables the user to set
643 the priority of a packet. Some qdiscs can use this value for
644 classification, among these are:
645
646 atm, cbq, dsmark, pfifo_fast, htb, prio
647
648 To compile it as a module, choose M here. If unsure, say N.
649
650config NETFILTER_XT_TARGET_CONNMARK
651 tristate '"CONNMARK" target support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700652 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800653 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100654 select NETFILTER_XT_CONNMARK
655 ---help---
656 This is a backwards-compat option for the user's convenience
657 (e.g. when running oldconfig). It selects
658 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800659
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200660config NETFILTER_XT_TARGET_CONNSECMARK
661 tristate '"CONNSECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200662 depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200663 default m if NETFILTER_ADVANCED=n
664 help
665 The CONNSECMARK target copies security markings from packets
666 to connections, and restores security markings from connections
667 to packets (if the packets are not already marked). This would
668 normally be used in conjunction with the SECMARK target.
669
670 To compile it as a module, choose M here. If unsure, say N.
671
Patrick McHardy84f3bb92010-02-03 17:17:06 +0100672config NETFILTER_XT_TARGET_CT
673 tristate '"CT" target support'
674 depends on NF_CONNTRACK
675 depends on IP_NF_RAW || IP6_NF_RAW
676 depends on NETFILTER_ADVANCED
677 help
678 This options adds a `CT' target, which allows to specify initial
679 connection tracking parameters like events to be delivered and
680 the helper to be used.
681
682 To compile it as a module, choose M here. If unsure, say N.
683
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700684config NETFILTER_XT_TARGET_DSCP
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800685 tristate '"DSCP" and "TOS" target support'
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700686 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800687 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700688 help
689 This option adds a `DSCP' target, which allows you to manipulate
690 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
691
692 The DSCP field can have any value between 0x0 and 0x3f inclusive.
693
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800694 It also adds the "TOS" target, which allows you to create rules in
695 the "mangle" table which alter the Type Of Service field of an IPv4
Jan Engelhardt5c350e52007-12-04 23:39:09 -0800696 or the Priority field of an IPv6 packet, prior to routing.
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800697
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700698 To compile it as a module, choose M here. If unsure, say N.
699
Jan Engelhardt563d36e2009-02-18 18:38:40 +0100700config NETFILTER_XT_TARGET_HL
701 tristate '"HL" hoplimit target support'
702 depends on IP_NF_MANGLE || IP6_NF_MANGLE
703 depends on NETFILTER_ADVANCED
704 ---help---
705 This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
706 targets, which enable the user to change the
707 hoplimit/time-to-live value of the IP header.
708
709 While it is safe to decrement the hoplimit/TTL value, the
710 modules also allow to increment and set the hoplimit value of
711 the header to arbitrary values. This is EXTREMELY DANGEROUS
712 since you can easily create immortal packets that loop
713 forever on the network.
714
Hans Schillstromcf308a12012-05-02 07:49:47 +0000715config NETFILTER_XT_TARGET_HMARK
716 tristate '"HMARK" target support'
717 depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
718 depends on NETFILTER_ADVANCED
719 ---help---
720 This option adds the "HMARK" target.
721
722 The target allows you to create rules in the "raw" and "mangle" tables
723 which set the skbuff mark by means of hash calculation within a given
724 range. The nfmark can influence the routing method (see "Use netfilter
725 MARK value as routing key") and can also be used by other subsystems to
726 change their behaviour.
727
728 To compile it as a module, choose M here. If unsure, say N.
729
Luciano Coelho0902b462010-06-15 15:04:00 +0200730config NETFILTER_XT_TARGET_IDLETIMER
731 tristate "IDLETIMER target support"
732 depends on NETFILTER_ADVANCED
733 help
734
735 This option adds the `IDLETIMER' target. Each matching packet
736 resets the timer associated with label specified when the rule is
737 added. When the timer expires, it triggers a sysfs notification.
738 The remaining time for expiration can be read via sysfs.
739
740 To compile it as a module, choose M here. If unsure, say N.
741
Adam Nielsen268cb382009-02-20 10:55:14 +0100742config NETFILTER_XT_TARGET_LED
743 tristate '"LED" target support'
Alex Riesen3ae16f12009-04-06 17:09:43 +0200744 depends on LEDS_CLASS && LEDS_TRIGGERS
Adam Nielsen268cb382009-02-20 10:55:14 +0100745 depends on NETFILTER_ADVANCED
746 help
747 This option adds a `LED' target, which allows you to blink LEDs in
748 response to particular packets passing through your machine.
749
750 This can be used to turn a spare LED into a network activity LED,
751 which only flashes in response to FTP transfers, for example. Or
752 you could have an LED which lights up for a minute or two every time
753 somebody connects to your machine via SSH.
754
755 You will need support for the "led" class to make this work.
756
757 To create an LED trigger for incoming SSH traffic:
758 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
759
760 Then attach the new trigger to an LED on your system:
761 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
762
763 For more information on the LEDs available on your system, see
Paul Bolle395cf962011-08-15 02:02:26 +0200764 Documentation/leds/leds-class.txt
Adam Nielsen268cb382009-02-20 10:55:14 +0100765
Richard Weinberger6939c332012-02-10 23:10:52 +0100766config NETFILTER_XT_TARGET_LOG
767 tristate "LOG target support"
Pablo Neira Ayusod79a61d2014-08-29 09:34:49 +0200768 select NF_LOG_COMMON
769 select NF_LOG_IPV4
770 select NF_LOG_IPV6 if IPV6
Richard Weinberger6939c332012-02-10 23:10:52 +0100771 default m if NETFILTER_ADVANCED=n
772 help
773 This option adds a `LOG' target, which allows you to create rules in
774 any iptables table which records the packet header to the syslog.
775
776 To compile it as a module, choose M here. If unsure, say N.
777
Harald Welte2e4e6a12006-01-12 13:30:04 -0800778config NETFILTER_XT_TARGET_MARK
779 tristate '"MARK" target support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100780 depends on NETFILTER_ADVANCED
781 select NETFILTER_XT_MARK
782 ---help---
783 This is a backwards-compat option for the user's convenience
784 (e.g. when running oldconfig). It selects
785 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800786
Pablo Neira Ayuso84a59ca2014-09-04 09:47:21 +0200787config NETFILTER_XT_NAT
788 tristate '"SNAT and DNAT" targets support'
789 depends on NF_NAT
790 ---help---
791 This option enables the SNAT and DNAT targets.
792
793 To compile it as a module, choose M here. If unsure, say N.
794
Jan Engelhardtb3d54b32012-09-21 11:37:59 +0200795config NETFILTER_XT_TARGET_NETMAP
796 tristate '"NETMAP" target support'
797 depends on NF_NAT
798 ---help---
799 NETMAP is an implementation of static 1:1 NAT mapping of network
800 addresses. It maps the network address part, while keeping the host
801 address part intact.
802
803 To compile it as a module, choose M here. If unsure, say N.
804
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100805config NETFILTER_XT_TARGET_NFLOG
806 tristate '"NFLOG" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800807 default m if NETFILTER_ADVANCED=n
Eric Leblond293a4f22008-12-10 17:24:33 -0800808 select NETFILTER_NETLINK_LOG
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100809 help
810 This option enables the NFLOG target, which allows to LOG
Eric Leblond293a4f22008-12-10 17:24:33 -0800811 messages through nfnetlink_log.
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100812
813 To compile it as a module, choose M here. If unsure, say N.
814
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200815config NETFILTER_XT_TARGET_NFQUEUE
816 tristate '"NFQUEUE" target Support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200817 depends on NETFILTER_ADVANCED
Florian Westphal5f2cafe2011-01-18 15:18:08 +0100818 select NETFILTER_NETLINK_QUEUE
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200819 help
820 This target replaced the old obsolete QUEUE target.
821
822 As opposed to QUEUE, it supports 65535 different queues,
823 not just one.
824
825 To compile it as a module, choose M here. If unsure, say N.
826
Pablo Neira Ayuso10db9062012-12-20 01:54:51 +0000827config NETFILTER_XT_TARGET_NOTRACK
828 tristate '"NOTRACK" target support (DEPRECATED)'
Pablo Neira Ayuso757ae312013-01-02 16:30:01 +0000829 depends on NF_CONNTRACK
830 depends on IP_NF_RAW || IP6_NF_RAW
831 depends on NETFILTER_ADVANCED
Pablo Neira Ayuso10db9062012-12-20 01:54:51 +0000832 select NETFILTER_XT_TARGET_CT
833
Patrick McHardy58590342007-12-04 23:40:05 -0800834config NETFILTER_XT_TARGET_RATEEST
835 tristate '"RATEEST" target support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800836 depends on NETFILTER_ADVANCED
Patrick McHardy58590342007-12-04 23:40:05 -0800837 help
838 This option adds a `RATEEST' target, which allows to measure
839 rates similar to TC estimators. The `rateest' match can be
840 used to match on the measured rates.
841
842 To compile it as a module, choose M here. If unsure, say N.
843
Jan Engelhardt2cbc78a2012-09-21 11:41:34 +0200844config NETFILTER_XT_TARGET_REDIRECT
845 tristate "REDIRECT target support"
846 depends on NF_NAT
Arturo Borrero8b13edd2014-10-16 12:23:29 +0200847 select NF_NAT_REDIRECT_IPV4
Arturo Borrero9de920e2014-10-17 12:37:52 +0200848 select NF_NAT_REDIRECT_IPV6 if IP6_NF_IPTABLES
Jan Engelhardt2cbc78a2012-09-21 11:41:34 +0200849 ---help---
850 REDIRECT is a special case of NAT: all incoming connections are
851 mapped onto the incoming interface's address, causing the packets to
852 come to the local machine instead of passing through. This is
853 useful for transparent proxies.
854
855 To compile it as a module, choose M here. If unsure, say N.
856
Jan Engelhardte281b192010-04-19 14:17:47 +0200857config NETFILTER_XT_TARGET_TEE
Arnd Hannemannfe6fb552010-06-22 08:22:21 +0200858 tristate '"TEE" - packet cloning to alternate destination'
Jan Engelhardte281b192010-04-19 14:17:47 +0200859 depends on NETFILTER_ADVANCED
Jan Engelhardt9b7ce2b2010-05-12 10:11:35 +0000860 depends on (IPV6 || IPV6=n)
Randy Dunlap83827f62010-05-14 13:52:30 -0700861 depends on !NF_CONNTRACK || NF_CONNTRACK
Jan Engelhardte281b192010-04-19 14:17:47 +0200862 ---help---
863 This option adds a "TEE" target with which a packet can be cloned and
864 this clone be rerouted to another nexthop.
865
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200866config NETFILTER_XT_TARGET_TPROXY
Florian Westphalfd158d72013-07-29 15:41:52 +0200867 tristate '"TPROXY" target transparent proxying support'
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200868 depends on NETFILTER_XTABLES
869 depends on NETFILTER_ADVANCED
Pablo Neira Ayuso679ab4dd2014-09-07 17:20:27 +0200870 depends on (IPV6 || IPV6=n)
Florian Westphalfd158d72013-07-29 15:41:52 +0200871 depends on IP_NF_MANGLE
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200872 select NF_DEFRAG_IPV4
KOVACS Krisztianf6318e52010-10-24 23:38:32 +0000873 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200874 help
875 This option adds a `TPROXY' target, which is somewhat similar to
876 REDIRECT. It can only be used in the mangle table and is useful
877 to redirect traffic to a transparent proxy. It does _not_ depend
878 on Netfilter connection tracking and NAT, unlike REDIRECT.
Florian Westphalfd158d72013-07-29 15:41:52 +0200879 For it to work you will have to configure certain iptables rules
880 and use policy routing. For more information on how to set it up
881 see Documentation/networking/tproxy.txt.
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200882
883 To compile it as a module, choose M here. If unsure, say N.
884
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700885config NETFILTER_XT_TARGET_TRACE
886 tristate '"TRACE" target support'
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700887 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy33b8e772007-12-17 22:47:05 -0800888 depends on NETFILTER_ADVANCED
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700889 help
890 The TRACE target allows you to mark packets so that the kernel
891 will log every rule which match the packets as those traverse
892 the tables, chains, rules.
893
894 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700895 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700896
James Morris5e6874cd2006-06-09 00:30:57 -0700897config NETFILTER_XT_TARGET_SECMARK
898 tristate '"SECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200899 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800900 default m if NETFILTER_ADVANCED=n
James Morris5e6874cd2006-06-09 00:30:57 -0700901 help
902 The SECMARK target allows security marking of network
903 packets, for use with security subsystems.
904
905 To compile it as a module, choose M here. If unsure, say N.
906
Patrick McHardycdd289a2007-02-07 15:09:46 -0800907config NETFILTER_XT_TARGET_TCPMSS
908 tristate '"TCPMSS" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200909 depends on (IPV6 || IPV6=n)
Patrick McHardy33b8e772007-12-17 22:47:05 -0800910 default m if NETFILTER_ADVANCED=n
Patrick McHardycdd289a2007-02-07 15:09:46 -0800911 ---help---
912 This option adds a `TCPMSS' target, which allows you to alter the
913 MSS value of TCP SYN packets, to control the maximum size for that
914 connection (usually limiting it to your outgoing interface's MTU
915 minus 40).
916
917 This is used to overcome criminally braindead ISPs or servers which
918 block ICMP Fragmentation Needed packets. The symptoms of this
919 problem are that everything works fine from your Linux
920 firewall/router, but machines behind it can never exchange large
921 packets:
922 1) Web browsers connect, then hang with no data received.
923 2) Small mail works fine, but large emails hang.
924 3) ssh works fine, but scp hangs after initial handshaking.
925
926 Workaround: activate this option and add a rule to your firewall
927 configuration like:
928
929 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
930 -j TCPMSS --clamp-mss-to-pmtu
931
932 To compile it as a module, choose M here. If unsure, say N.
933
Sven Schnelle338e8a72007-12-04 23:21:50 -0800934config NETFILTER_XT_TARGET_TCPOPTSTRIP
Kees Cook663ef0d2012-10-02 11:19:54 -0700935 tristate '"TCPOPTSTRIP" target support'
Sven Schnelle338e8a72007-12-04 23:21:50 -0800936 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800937 depends on NETFILTER_ADVANCED
Sven Schnelle338e8a72007-12-04 23:21:50 -0800938 help
939 This option adds a "TCPOPTSTRIP" target, which allows you to strip
940 TCP options from TCP packets.
941
Jan Engelhardt44c58732010-02-26 14:14:22 +0100942# alphabetically ordered list of matches
943
944comment "Xtables matches"
945
Florian Westphalde81bbe2011-03-15 20:16:20 +0100946config NETFILTER_XT_MATCH_ADDRTYPE
947 tristate '"addrtype" address type match support'
948 depends on NETFILTER_ADVANCED
949 ---help---
950 This option allows you to match what routing thinks of an address,
951 eg. UNICAST, LOCAL, BROADCAST, ...
952
953 If you want to compile it as a module, say M here and read
954 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
955
Willem de Bruijne6f30c72013-01-18 07:17:30 +0000956config NETFILTER_XT_MATCH_BPF
957 tristate '"bpf" match support'
958 depends on NETFILTER_ADVANCED
959 help
960 BPF matching applies a linux socket filter to each packet and
961 accepts those for which the filter returns non-zero.
962
963 To compile it as a module, choose M here. If unsure, say N.
964
Daniel Borkmann82a37132013-12-29 18:27:12 +0100965config NETFILTER_XT_MATCH_CGROUP
966 tristate '"control group" match support'
967 depends on NETFILTER_ADVANCED
968 depends on CGROUPS
969 select CGROUP_NET_CLASSID
970 ---help---
971 Socket/process control group matching allows you to match locally
972 generated packets based on which net_cls control group processes
973 belong to.
974
Pablo Neira Ayuso0269ea42009-03-16 17:10:36 +0100975config NETFILTER_XT_MATCH_CLUSTER
976 tristate '"cluster" match support'
977 depends on NF_CONNTRACK
978 depends on NETFILTER_ADVANCED
979 ---help---
980 This option allows you to build work-load-sharing clusters of
981 network servers/stateful firewalls without having a dedicated
982 load-balancing router/server/switch. Basically, this match returns
983 true when the packet must be handled by this cluster node. Thus,
984 all nodes see all packets and this match decides which node handles
985 what packets. The work-load sharing algorithm is based on source
986 address hashing.
987
988 If you say Y or M here, try `iptables -m cluster --help` for
989 more information.
990
Harald Welte2e4e6a12006-01-12 13:30:04 -0800991config NETFILTER_XT_MATCH_COMMENT
992 tristate '"comment" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800993 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800994 help
995 This option adds a `comment' dummy-match, which allows you to put
996 comments in your iptables ruleset.
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
1001config NETFILTER_XT_MATCH_CONNBYTES
1002 tristate '"connbytes" per-connection counter match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001003 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001004 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001005 help
1006 This option adds a `connbytes' match, which allows you to match the
1007 number of bytes and/or packets for each direction within a connection.
1008
1009 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001010 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001011
Florian Westphalc539f012013-01-11 06:30:44 +00001012config NETFILTER_XT_MATCH_CONNLABEL
1013 tristate '"connlabel" match support'
1014 select NF_CONNTRACK_LABELS
Florian Westphal35612a22013-02-03 01:24:07 +00001015 depends on NF_CONNTRACK
Florian Westphalc539f012013-01-11 06:30:44 +00001016 depends on NETFILTER_ADVANCED
1017 ---help---
1018 This match allows you to test and assign userspace-defined labels names
1019 to a connection. The kernel only stores bit values - mapping
1020 names to bits is done by userspace.
1021
1022 Unlike connmark, more than 32 flag bits may be assigned to a
1023 connection simultaneously.
1024
Jan Engelhardt370786f2007-07-14 20:47:26 -07001025config NETFILTER_XT_MATCH_CONNLIMIT
Randy Dunlap48192242013-11-06 21:48:22 -08001026 tristate '"connlimit" match support'
Cornelia Huck3fd8f9e2007-07-18 02:38:32 -07001027 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001028 depends on NETFILTER_ADVANCED
Jan Engelhardt370786f2007-07-14 20:47:26 -07001029 ---help---
1030 This match allows you to match against the number of parallel
1031 connections to a server per client IP address (or address block).
1032
Harald Welte2e4e6a12006-01-12 13:30:04 -08001033config NETFILTER_XT_MATCH_CONNMARK
1034 tristate '"connmark" connection mark match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001035 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001036 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +01001037 select NETFILTER_XT_CONNMARK
1038 ---help---
1039 This is a backwards-compat option for the user's convenience
1040 (e.g. when running oldconfig). It selects
1041 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -08001042
1043config NETFILTER_XT_MATCH_CONNTRACK
1044 tristate '"conntrack" connection tracking match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001045 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001046 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -08001047 help
1048 This is a general conntrack match module, a superset of the state match.
1049
1050 It allows matching on additional conntrack information, which is
1051 useful in complex configurations, such as NAT gateways with multiple
1052 internet links or tunnels.
1053
1054 To compile it as a module, choose M here. If unsure, say N.
1055
Eric Dumazete8648a12010-07-23 12:59:36 +02001056config NETFILTER_XT_MATCH_CPU
1057 tristate '"cpu" match support'
1058 depends on NETFILTER_ADVANCED
1059 help
1060 CPU matching allows you to match packets based on the CPU
1061 currently handling the packet.
1062
1063 To compile it as a module, choose M here. If unsure, say N.
1064
Harald Welte2e4e6a12006-01-12 13:30:04 -08001065config NETFILTER_XT_MATCH_DCCP
Jan Engelhardt4c377992007-12-04 23:31:59 -08001066 tristate '"dccp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001067 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -07001068 default IP_DCCP
Harald Welte2e4e6a12006-01-12 13:30:04 -08001069 help
1070 With this option enabled, you will be able to use the iptables
1071 `dccp' match in order to match on DCCP source/destination ports
1072 and DCCP flags.
1073
1074 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001075 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001076
Patrick McHardy92917472011-02-03 00:05:43 +01001077config NETFILTER_XT_MATCH_DEVGROUP
1078 tristate '"devgroup" match support'
1079 depends on NETFILTER_ADVANCED
1080 help
1081 This options adds a `devgroup' match, which allows to match on the
1082 device group a network device is assigned to.
1083
1084 To compile it as a module, choose M here. If unsure, say N.
1085
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001086config NETFILTER_XT_MATCH_DSCP
Jan Engelhardtc3b33e62007-12-04 23:37:54 -08001087 tristate '"dscp" and "tos" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001088 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001089 help
1090 This option adds a `DSCP' match, which allows you to match against
1091 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
1092
1093 The DSCP field can have any value between 0x0 and 0x3f inclusive.
1094
Jan Engelhardtc3b33e62007-12-04 23:37:54 -08001095 It will also add a "tos" match, which allows you to match packets
1096 based on the Type Of Service fields of the IPv4 packet (which share
1097 the same bits as DSCP).
1098
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001099 To compile it as a module, choose M here. If unsure, say N.
1100
Jan Engelhardtd446a8202011-06-09 21:03:07 +02001101config NETFILTER_XT_MATCH_ECN
1102 tristate '"ecn" match support'
1103 depends on NETFILTER_ADVANCED
1104 ---help---
1105 This option adds an "ECN" match, which allows you to match against
1106 the IPv4 and TCP header ECN fields.
1107
1108 To compile it as a module, choose M here. If unsure, say N.
1109
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -08001110config NETFILTER_XT_MATCH_ESP
Jan Engelhardt4c377992007-12-04 23:31:59 -08001111 tristate '"esp" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001112 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -08001113 help
1114 This match extension allows you to match a range of SPIs
1115 inside ESP header of IPSec packets.
1116
1117 To compile it as a module, choose M here. If unsure, say N.
1118
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001119config NETFILTER_XT_MATCH_HASHLIMIT
1120 tristate '"hashlimit" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001121 depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001122 depends on NETFILTER_ADVANCED
1123 help
1124 This option adds a `hashlimit' match.
1125
1126 As opposed to `limit', this match dynamically creates a hash table
1127 of limit buckets, based on your selection of source/destination
1128 addresses and/or ports.
1129
1130 It enables you to express policies like `10kpps for any given
1131 destination address' or `500pps from any given source address'
1132 with a single rule.
1133
Harald Welte2e4e6a12006-01-12 13:30:04 -08001134config NETFILTER_XT_MATCH_HELPER
1135 tristate '"helper" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001136 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001137 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001138 help
1139 Helper matching allows you to match packets in dynamic connections
1140 tracked by a conntrack-helper, ie. ip_conntrack_ftp
1141
1142 To compile it as a module, choose M here. If unsure, say Y.
1143
Jan Engelhardtcfac5ef2009-02-18 18:39:31 +01001144config NETFILTER_XT_MATCH_HL
1145 tristate '"hl" hoplimit/TTL match support'
1146 depends on NETFILTER_ADVANCED
1147 ---help---
1148 HL matching allows you to match packets based on the hoplimit
1149 in the IPv6 header, or the time-to-live field in the IPv4
1150 header of the packet.
1151
fan.du6a649f32013-12-18 11:27:02 +08001152config NETFILTER_XT_MATCH_IPCOMP
1153 tristate '"ipcomp" match support'
1154 depends on NETFILTER_ADVANCED
1155 help
1156 This match extension allows you to match a range of CPIs(16 bits)
1157 inside IPComp header of IPSec packets.
1158
1159 To compile it as a module, choose M here. If unsure, say N.
1160
Jan Engelhardtf72e25a2008-01-14 23:42:47 -08001161config NETFILTER_XT_MATCH_IPRANGE
1162 tristate '"iprange" address range match support'
Jan Engelhardtf72e25a2008-01-14 23:42:47 -08001163 depends on NETFILTER_ADVANCED
1164 ---help---
1165 This option adds a "iprange" match, which allows you to match based on
1166 an IP address range. (Normal iptables only matches on single addresses
1167 with an optional mask.)
1168
1169 If unsure, say M.
1170
Hannes Eder9c3e1c32010-07-23 12:42:58 +02001171config NETFILTER_XT_MATCH_IPVS
1172 tristate '"ipvs" match support'
1173 depends on IP_VS
1174 depends on NETFILTER_ADVANCED
1175 depends on NF_CONNTRACK
1176 help
1177 This option allows you to match against IPVS properties of a packet.
1178
1179 If unsure, say N.
1180
James Chapman74f77a62014-01-06 10:17:08 +00001181config NETFILTER_XT_MATCH_L2TP
1182 tristate '"l2tp" match support'
1183 depends on NETFILTER_ADVANCED
1184 default L2TP
1185 ---help---
1186 This option adds an "L2TP" match, which allows you to match against
1187 L2TP protocol header fields.
1188
1189 To compile it as a module, choose M here. If unsure, say N.
1190
Harald Welte2e4e6a12006-01-12 13:30:04 -08001191config NETFILTER_XT_MATCH_LENGTH
1192 tristate '"length" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001193 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001194 help
1195 This option allows you to match the length of a packet against a
1196 specific value or range of values.
1197
1198 To compile it as a module, choose M here. If unsure, say N.
1199
1200config NETFILTER_XT_MATCH_LIMIT
1201 tristate '"limit" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001202 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001203 help
1204 limit matching allows you to control the rate at which a rule can be
1205 matched: mainly useful in combination with the LOG target ("LOG
1206 target support", below) and to avoid some Denial of Service attacks.
1207
1208 To compile it as a module, choose M here. If unsure, say N.
1209
1210config NETFILTER_XT_MATCH_MAC
1211 tristate '"mac" address match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001212 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001213 help
1214 MAC matching allows you to match packets based on the source
1215 Ethernet address of the packet.
1216
1217 To compile it as a module, choose M here. If unsure, say N.
1218
1219config NETFILTER_XT_MATCH_MARK
1220 tristate '"mark" match support'
Jan Engelhardt28b94982009-02-28 03:23:57 +01001221 depends on NETFILTER_ADVANCED
1222 select NETFILTER_XT_MARK
1223 ---help---
1224 This is a backwards-compat option for the user's convenience
1225 (e.g. when running oldconfig). It selects
1226 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -08001227
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001228config NETFILTER_XT_MATCH_MULTIPORT
1229 tristate '"multiport" Multiple port match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001230 depends on NETFILTER_ADVANCED
1231 help
1232 Multiport matching allows you to match TCP or UDP packets based on
1233 a series of source or destination ports: normally a rule can only
1234 match a single range of ports.
1235
1236 To compile it as a module, choose M here. If unsure, say N.
1237
Pablo Neira Ayusoceb98d02011-12-23 14:28:59 +01001238config NETFILTER_XT_MATCH_NFACCT
1239 tristate '"nfacct" match support'
Pablo Neira Ayusobc94b522011-12-28 15:03:30 +00001240 depends on NETFILTER_ADVANCED
Pablo Neira Ayusoceb98d02011-12-23 14:28:59 +01001241 select NETFILTER_NETLINK_ACCT
1242 help
1243 This option allows you to use the extended accounting through
1244 nfnetlink_acct.
1245
1246 To compile it as a module, choose M here. If unsure, say N.
1247
Jan Engelhardt115bc8f2010-03-16 20:06:55 +01001248config NETFILTER_XT_MATCH_OSF
1249 tristate '"osf" Passive OS fingerprint match'
1250 depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
1251 help
1252 This option selects the Passive OS Fingerprinting match module
1253 that allows to passively match the remote operating system by
1254 analyzing incoming TCP SYN packets.
1255
1256 Rules and loading software can be downloaded from
1257 http://www.ioremap.net/projects/osf
1258
1259 To compile it as a module, choose M here. If unsure, say N.
1260
Jan Engelhardt0265ab42007-12-04 23:27:38 -08001261config NETFILTER_XT_MATCH_OWNER
1262 tristate '"owner" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001263 depends on NETFILTER_ADVANCED
Jan Engelhardt0265ab42007-12-04 23:27:38 -08001264 ---help---
1265 Socket owner matching allows you to match locally-generated packets
1266 based on who created the socket: the user or group. It is also
1267 possible to check whether a socket actually exists.
1268
Patrick McHardyc4b88512006-03-20 18:03:40 -08001269config NETFILTER_XT_MATCH_POLICY
1270 tristate 'IPsec "policy" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001271 depends on XFRM
Patrick McHardy33b8e772007-12-17 22:47:05 -08001272 default m if NETFILTER_ADVANCED=n
Patrick McHardyc4b88512006-03-20 18:03:40 -08001273 help
1274 Policy matching allows you to match packets based on the
1275 IPsec policy that was used during decapsulation/will
1276 be used during encapsulation.
1277
1278 To compile it as a module, choose M here. If unsure, say N.
1279
Harald Welte2e4e6a12006-01-12 13:30:04 -08001280config NETFILTER_XT_MATCH_PHYSDEV
1281 tristate '"physdev" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001282 depends on BRIDGE && BRIDGE_NETFILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -08001283 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001284 help
1285 Physdev packet matching matches against the physical bridge ports
1286 the IP packet arrived on or will leave by.
1287
1288 To compile it as a module, choose M here. If unsure, say N.
1289
1290config NETFILTER_XT_MATCH_PKTTYPE
1291 tristate '"pkttype" packet type match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001292 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001293 help
1294 Packet type matching allows you to match a packet by
1295 its "class", eg. BROADCAST, MULTICAST, ...
1296
1297 Typical usage:
1298 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
1299
1300 To compile it as a module, choose M here. If unsure, say N.
1301
Patrick McHardy62b77432006-05-29 18:20:32 -07001302config NETFILTER_XT_MATCH_QUOTA
1303 tristate '"quota" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001304 depends on NETFILTER_ADVANCED
Patrick McHardy62b77432006-05-29 18:20:32 -07001305 help
1306 This option adds a `quota' match, which allows to match on a
1307 byte counter.
1308
1309 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001310 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Patrick McHardy62b77432006-05-29 18:20:32 -07001311
Patrick McHardy50c164a2007-12-04 13:02:19 +01001312config NETFILTER_XT_MATCH_RATEEST
1313 tristate '"rateest" match support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -08001314 depends on NETFILTER_ADVANCED
Patrick McHardy50c164a2007-12-04 13:02:19 +01001315 select NETFILTER_XT_TARGET_RATEEST
1316 help
1317 This option adds a `rateest' match, which allows to match on the
1318 rate estimated by the RATEEST target.
1319
1320 To compile it as a module, choose M here. If unsure, say N.
1321
Harald Welte2e4e6a12006-01-12 13:30:04 -08001322config NETFILTER_XT_MATCH_REALM
1323 tristate '"realm" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001324 depends on NETFILTER_ADVANCED
Patrick McHardyc7066f72011-01-14 13:36:42 +01001325 select IP_ROUTE_CLASSID
Harald Welte2e4e6a12006-01-12 13:30:04 -08001326 help
1327 This option adds a `realm' match, which allows you to use the realm
1328 key from the routing subsystem inside iptables.
Patrick McHardy33b8e772007-12-17 22:47:05 -08001329
Harald Welte2e4e6a12006-01-12 13:30:04 -08001330 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
1331 in tc world.
Patrick McHardy33b8e772007-12-17 22:47:05 -08001332
Harald Welte2e4e6a12006-01-12 13:30:04 -08001333 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001334 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001335
Jan Engelhardte948b202008-10-08 11:35:00 +02001336config NETFILTER_XT_MATCH_RECENT
1337 tristate '"recent" match support'
Jan Engelhardte948b202008-10-08 11:35:00 +02001338 depends on NETFILTER_ADVANCED
1339 ---help---
1340 This match is used for creating one or many lists of recently
1341 used addresses and then matching against that/those list(s).
1342
1343 Short options are available by using 'iptables -m recent -h'
1344 Official Website: <http://snowman.net/projects/ipt_recent/>
1345
Harald Welte2e4e6a12006-01-12 13:30:04 -08001346config NETFILTER_XT_MATCH_SCTP
Kees Cook663ef0d2012-10-02 11:19:54 -07001347 tristate '"sctp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001348 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -07001349 default IP_SCTP
Harald Welte2e4e6a12006-01-12 13:30:04 -08001350 help
1351 With this option enabled, you will be able to use the
1352 `sctp' match in order to match on SCTP source/destination ports
1353 and SCTP chunk types.
1354
1355 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001356 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001357
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001358config NETFILTER_XT_MATCH_SOCKET
Kees Cook663ef0d2012-10-02 11:19:54 -07001359 tristate '"socket" match support'
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001360 depends on NETFILTER_XTABLES
1361 depends on NETFILTER_ADVANCED
Laszlo Attila Tothacda0742009-05-01 15:23:10 -07001362 depends on !NF_CONNTRACK || NF_CONNTRACK
David S. Miller1a5bbfc2013-09-05 14:38:03 -04001363 depends on (IPV6 || IPV6=n)
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001364 select NF_DEFRAG_IPV4
KOVACS Krisztianf6318e52010-10-24 23:38:32 +00001365 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001366 help
1367 This option adds a `socket' match, which can be used to match
1368 packets for which a TCP or UDP socket lookup finds a valid socket.
1369 It can be used in combination with the MARK target and policy
1370 routing to implement full featured non-locally bound sockets.
1371
1372 To compile it as a module, choose M here. If unsure, say N.
1373
Harald Welte2e4e6a12006-01-12 13:30:04 -08001374config NETFILTER_XT_MATCH_STATE
1375 tristate '"state" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001376 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001377 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -08001378 help
1379 Connection state matching allows you to match packets based on their
1380 relationship to a tracked connection (ie. previous packets). This
1381 is a powerful tool for packet classification.
1382
1383 To compile it as a module, choose M here. If unsure, say N.
1384
Patrick McHardyf3389802006-05-29 18:21:00 -07001385config NETFILTER_XT_MATCH_STATISTIC
1386 tristate '"statistic" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001387 depends on NETFILTER_ADVANCED
Patrick McHardyf3389802006-05-29 18:21:00 -07001388 help
Patrick McHardy68c16922006-06-27 03:02:14 -07001389 This option adds a `statistic' match, which allows you to match
1390 on packets periodically or randomly with a given percentage.
1391
1392 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -07001393
Harald Welte2e4e6a12006-01-12 13:30:04 -08001394config NETFILTER_XT_MATCH_STRING
1395 tristate '"string" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001396 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001397 select TEXTSEARCH
1398 select TEXTSEARCH_KMP
1399 select TEXTSEARCH_BM
1400 select TEXTSEARCH_FSM
1401 help
1402 This option adds a `string' match, which allows you to look for
1403 pattern matchings in packets.
1404
1405 To compile it as a module, choose M here. If unsure, say N.
1406
1407config NETFILTER_XT_MATCH_TCPMSS
1408 tristate '"tcpmss" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001409 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001410 help
1411 This option adds a `tcpmss' match, which allows you to examine the
1412 MSS value of TCP SYN packets, which control the maximum packet size
1413 for that connection.
1414
1415 To compile it as a module, choose M here. If unsure, say N.
1416
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001417config NETFILTER_XT_MATCH_TIME
1418 tristate '"time" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001419 depends on NETFILTER_ADVANCED
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001420 ---help---
1421 This option adds a "time" match, which allows you to match based on
1422 the packet arrival time (at the machine which netfilter is running)
1423 on) or departure time/date (for locally generated packets).
1424
1425 If you say Y here, try `iptables -m time --help` for
1426 more information.
1427
1428 If you want to compile it as a module, say M here.
1429 If unsure, say N.
1430
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001431config NETFILTER_XT_MATCH_U32
1432 tristate '"u32" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001433 depends on NETFILTER_ADVANCED
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001434 ---help---
1435 u32 allows you to extract quantities of up to 4 bytes from a packet,
1436 AND them with specified masks, shift them by specified amounts and
1437 test whether the results are in any of a set of specified ranges.
1438 The specification of what to extract is general enough to skip over
1439 headers with lengths stored in the packet, as in IP or TCP header
1440 lengths.
1441
1442 Details and examples are in the kernel module source.
1443
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001444endif # NETFILTER_XTABLES
Harald Weltea6c1cd572006-02-13 15:42:48 -08001445
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001446endmenu
Harald Weltef9e815b2005-08-09 19:30:24 -07001447
Jozsef Kadlecsika7b4f982011-02-01 15:28:35 +01001448source "net/netfilter/ipset/Kconfig"
1449
Julius Volzcb7f6a72008-09-19 12:32:57 +02001450source "net/netfilter/ipvs/Kconfig"