blob: c1c978e7bc6280b5f2b052fa912a5b2b80ad28d1 [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
Pablo Neirae687ad62015-05-13 18:19:38 +02004config NETFILTER_INGRESS
5 bool "Netfilter ingress support"
Pablo Neira Ayuso529985d2015-05-26 18:41:12 +02006 default y
Pablo Neirae687ad62015-05-13 18:19:38 +02007 select NET_INGRESS
8 help
9 This allows you to classify packets from ingress using the Netfilter
10 infrastructure.
11
Harald Weltef9e815b2005-08-09 19:30:24 -070012config NETFILTER_NETLINK
Patrick McHardy2eeeba32007-12-05 01:31:52 -080013 tristate
Harald Welte7af4cc32005-08-09 19:44:15 -070014
Pablo Neira Ayuso94139022011-12-23 14:19:50 +010015config NETFILTER_NETLINK_ACCT
16tristate "Netfilter NFACCT over NFNETLINK interface"
17 depends on NETFILTER_ADVANCED
18 select NETFILTER_NETLINK
19 help
20 If this option is enabled, the kernel will include support
21 for extended accounting via NFNETLINK.
22
Harald Welte7af4cc32005-08-09 19:44:15 -070023config NETFILTER_NETLINK_QUEUE
24 tristate "Netfilter NFQUEUE over NFNETLINK interface"
Patrick McHardy33b8e772007-12-17 22:47:05 -080025 depends on NETFILTER_ADVANCED
Patrick McHardy2eeeba32007-12-05 01:31:52 -080026 select NETFILTER_NETLINK
Harald Welte7af4cc32005-08-09 19:44:15 -070027 help
Thomas Vögtle50b521a2006-03-22 13:53:48 -080028 If this option is enabled, the kernel will include support
Harald Welte7af4cc32005-08-09 19:44:15 -070029 for queueing packets via NFNETLINK.
30
Harald Welte0597f262005-08-09 19:58:39 -070031config NETFILTER_NETLINK_LOG
32 tristate "Netfilter LOG over NFNETLINK interface"
Patrick McHardy33b8e772007-12-17 22:47:05 -080033 default m if NETFILTER_ADVANCED=n
Patrick McHardy2eeeba32007-12-05 01:31:52 -080034 select NETFILTER_NETLINK
Harald Welte0597f262005-08-09 19:58:39 -070035 help
36 If this option is enabled, the kernel will include support
37 for logging packets via NFNETLINK.
38
39 This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
40 and is also scheduled to replace the old syslog-based ipt_LOG
41 and ip6t_LOG modules.
42
Patrick McHardyab4f58c2007-12-05 01:31:37 -080043config NF_CONNTRACK
Patrick McHardyb321e142006-12-02 22:05:46 -080044 tristate "Netfilter connection tracking support"
Patrick McHardy33b8e772007-12-17 22:47:05 -080045 default m if NETFILTER_ADVANCED=n
Patrick McHardyb321e142006-12-02 22:05:46 -080046 help
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080047 Connection tracking keeps a record of what packets have passed
48 through your machine, in order to figure out how they are related
49 into connections.
50
Patrick McHardyb321e142006-12-02 22:05:46 -080051 This is required to do Masquerading or other kinds of Network
Russ Dillb11c16b2008-07-08 02:35:27 -070052 Address Translation. It can also be used to enhance packet
53 filtering (see `Connection state match support' below).
Patrick McHardyb321e142006-12-02 22:05:46 -080054
55 To compile it as a module, choose M here. If unsure, say N.
56
Pablo Neira Ayusoc1878862014-06-28 18:39:01 +020057config NF_LOG_COMMON
58 tristate
59
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020060if NF_CONNTRACK
61
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080062config NF_CONNTRACK_MARK
63 bool 'Connection mark tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080064 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080065 help
66 This option enables support for connection marks, used by the
67 `CONNMARK' target and `connmark' match. Similar to the mark value
68 of packets, but this mark value is kept in the conntrack session
69 instead of the individual packets.
70
James Morris7c9728c2006-06-09 00:31:46 -070071config NF_CONNTRACK_SECMARK
72 bool 'Connection tracking security mark support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020073 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -080074 default m if NETFILTER_ADVANCED=n
James Morris7c9728c2006-06-09 00:31:46 -070075 help
76 This option enables security markings to be applied to
77 connections. Typically they are copied to connections from
78 packets using the CONNSECMARK target and copied back from
79 connections to packets with the same target, with the packets
80 being originally labeled via SECMARK.
81
82 If unsure, say 'N'.
83
Patrick McHardy5d0aa2c2010-02-15 18:13:33 +010084config NF_CONNTRACK_ZONES
85 bool 'Connection tracking zones'
86 depends on NETFILTER_ADVANCED
87 depends on NETFILTER_XT_TARGET_CT
88 help
89 This option enables support for connection tracking zones.
90 Normally, each connection needs to have a unique system wide
91 identity. Connection tracking zones allow to have multiple
92 connections using the same identity, as long as they are
93 contained in different zones.
94
95 If unsure, say `N'.
96
Jan Engelhardt54b07dc2011-04-21 09:32:45 +020097config NF_CONNTRACK_PROCFS
98 bool "Supply CT list in procfs (OBSOLETE)"
99 default y
100 depends on PROC_FS
101 ---help---
102 This option enables for the list of known conntrack entries
103 to be shown in procfs under net/netfilter/nf_conntrack. This
104 is considered obsolete in favor of using the conntrack(8)
105 tool which uses Netlink.
106
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800107config NF_CONNTRACK_EVENTS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800108 bool "Connection tracking events"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800109 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800110 help
111 If this option is enabled, the connection tracking code will
112 provide a notifier chain that can be used by other kernel code
Thomas Vögtle50b521a2006-03-22 13:53:48 -0800113 to get notified about changes in the connection tracking state.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800114
115 If unsure, say `N'.
116
Pablo Neira Ayusodd705072012-02-28 23:36:48 +0100117config NF_CONNTRACK_TIMEOUT
118 bool 'Connection tracking timeout'
119 depends on NETFILTER_ADVANCED
120 help
121 This option enables support for connection tracking timeout
122 extension. This allows you to attach timeout policies to flow
123 via the CT target.
124
125 If unsure, say `N'.
126
Pablo Neira Ayusoa992ca22011-01-19 16:00:07 +0100127config NF_CONNTRACK_TIMESTAMP
128 bool 'Connection tracking timestamping'
129 depends on NETFILTER_ADVANCED
130 help
131 This option enables support for connection tracking timestamping.
132 This allows you to store the flow start-time and to obtain
133 the flow-stop time (once it has been destroyed) via Connection
134 tracking events.
135
136 If unsure, say `N'.
137
Florian Westphalc539f012013-01-11 06:30:44 +0000138config NF_CONNTRACK_LABELS
139 bool
140 help
141 This option enables support for assigning user-defined flag bits
142 to connection tracking entries. It selected by the connlabel match.
143
Patrick McHardy2bc78042008-03-20 15:15:55 +0100144config NF_CT_PROTO_DCCP
Kees Cook663ef0d2012-10-02 11:19:54 -0700145 tristate 'DCCP protocol connection tracking support'
Patrick McHardy2bc78042008-03-20 15:15:55 +0100146 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700147 default IP_DCCP
Patrick McHardy2bc78042008-03-20 15:15:55 +0100148 help
149 With this option enabled, the layer 3 independent connection
150 tracking code will be able to do state tracking on DCCP connections.
151
152 If unsure, say 'N'.
153
Patrick McHardyf09943f2006-12-02 22:09:41 -0800154config NF_CT_PROTO_GRE
155 tristate
Patrick McHardyf09943f2006-12-02 22:09:41 -0800156
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800157config NF_CT_PROTO_SCTP
Kees Cook663ef0d2012-10-02 11:19:54 -0700158 tristate 'SCTP protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800159 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -0700160 default IP_SCTP
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800161 help
162 With this option enabled, the layer 3 independent connection
163 tracking code will be able to do state tracking on SCTP connections.
164
165 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +0500166 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800167
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700168config NF_CT_PROTO_UDPLITE
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800169 tristate 'UDP-Lite protocol connection tracking support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800170 depends on NETFILTER_ADVANCED
Patrick McHardy59eecdf2007-07-14 20:48:44 -0700171 help
172 With this option enabled, the layer 3 independent connection
173 tracking code will be able to do state tracking on UDP-Lite
174 connections.
175
176 To compile it as a module, choose M here. If unsure, say N.
177
Patrick McHardy16958902006-12-02 22:08:26 -0800178config NF_CONNTRACK_AMANDA
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800179 tristate "Amanda backup protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800180 depends on NETFILTER_ADVANCED
Patrick McHardy16958902006-12-02 22:08:26 -0800181 select TEXTSEARCH
182 select TEXTSEARCH_KMP
183 help
184 If you are running the Amanda backup package <http://www.amanda.org/>
185 on this machine or machines that will be MASQUERADED through this
186 machine, then you may want to enable this feature. This allows the
187 connection tracking and natting code to allow the sub-channels that
188 Amanda requires for communication of the backup data, messages and
189 index.
190
191 To compile it as a module, choose M here. If unsure, say N.
192
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800193config NF_CONNTRACK_FTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800194 tristate "FTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800195 default m if NETFILTER_ADVANCED=n
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800196 help
197 Tracking FTP connections is problematic: special helpers are
198 required for tracking them, and doing masquerading and other forms
199 of Network Address Translation on them.
200
201 This is FTP support on Layer 3 independent connection tracking.
202 Layer 3 independent connection tracking is experimental scheme
203 which generalize ip_conntrack to support other layer 3 protocols.
204
205 To compile it as a module, choose M here. If unsure, say N.
206
Patrick McHardyf587de02006-12-02 22:08:46 -0800207config NF_CONNTRACK_H323
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800208 tristate "H.323 protocol support"
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +0200209 depends on IPV6 || IPV6=n
Patrick McHardy33b8e772007-12-17 22:47:05 -0800210 depends on NETFILTER_ADVANCED
Patrick McHardyf587de02006-12-02 22:08:46 -0800211 help
212 H.323 is a VoIP signalling protocol from ITU-T. As one of the most
213 important VoIP protocols, it is widely used by voice hardware and
214 software including voice gateways, IP phones, Netmeeting, OpenPhone,
215 Gnomemeeting, etc.
216
217 With this module you can support H.323 on a connection tracking/NAT
218 firewall.
219
220 This module supports RAS, Fast Start, H.245 Tunnelling, Call
221 Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat,
222 whiteboard, file transfer, etc. For more information, please
223 visit http://nath323.sourceforge.net/.
224
225 To compile it as a module, choose M here. If unsure, say N.
226
Patrick McHardy869f37d2006-12-02 22:09:06 -0800227config NF_CONNTRACK_IRC
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800228 tristate "IRC protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800229 default m if NETFILTER_ADVANCED=n
Patrick McHardy869f37d2006-12-02 22:09:06 -0800230 help
231 There is a commonly-used extension to IRC called
232 Direct Client-to-Client Protocol (DCC). This enables users to send
233 files to each other, and also chat to each other without the need
234 of a server. DCC Sending is used anywhere you send files over IRC,
235 and DCC Chat is most commonly used by Eggdrop bots. If you are
236 using NAT, this extension will enable you to send files and initiate
237 chats. Note that you do NOT need this extension to get files or
238 have others initiate chats, or everything else in IRC.
239
240 To compile it as a module, choose M here. If unsure, say N.
241
Jiri Olsa93557f52011-01-18 18:12:24 +0100242config NF_CONNTRACK_BROADCAST
243 tristate
244
Patrick McHardy92703ee2006-12-02 22:09:24 -0800245config NF_CONNTRACK_NETBIOS_NS
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800246 tristate "NetBIOS name service protocol support"
Jiri Olsa93557f52011-01-18 18:12:24 +0100247 select NF_CONNTRACK_BROADCAST
Patrick McHardy92703ee2006-12-02 22:09:24 -0800248 help
249 NetBIOS name service requests are sent as broadcast messages from an
250 unprivileged port and responded to with unicast messages to the
251 same port. This make them hard to firewall properly because connection
252 tracking doesn't deal with broadcasts. This helper tracks locally
253 originating NetBIOS name service requests and the corresponding
254 responses. It relies on correct IP address configuration, specifically
255 netmask and broadcast address. When properly configured, the output
256 of "ip address show" should look similar to this:
257
258 $ ip -4 address show eth0
259 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
260 inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0
261
262 To compile it as a module, choose M here. If unsure, say N.
263
Jiri Olsa93557f52011-01-18 18:12:24 +0100264config NF_CONNTRACK_SNMP
265 tristate "SNMP service protocol support"
266 depends on NETFILTER_ADVANCED
267 select NF_CONNTRACK_BROADCAST
268 help
269 SNMP service requests are sent as broadcast messages from an
270 unprivileged port and responded to with unicast messages to the
271 same port. This make them hard to firewall properly because connection
272 tracking doesn't deal with broadcasts. This helper tracks locally
273 originating SNMP service requests and the corresponding
274 responses. It relies on correct IP address configuration, specifically
275 netmask and broadcast address.
276
277 To compile it as a module, choose M here. If unsure, say N.
278
Patrick McHardyf09943f2006-12-02 22:09:41 -0800279config NF_CONNTRACK_PPTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800280 tristate "PPtP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800281 depends on NETFILTER_ADVANCED
Patrick McHardyf09943f2006-12-02 22:09:41 -0800282 select NF_CT_PROTO_GRE
283 help
284 This module adds support for PPTP (Point to Point Tunnelling
285 Protocol, RFC2637) connection tracking and NAT.
286
287 If you are running PPTP sessions over a stateful firewall or NAT
288 box, you may want to enable this feature.
289
290 Please note that not all PPTP modes of operation are supported yet.
291 Specifically these limitations exist:
David Sterba3dde6ad2007-05-09 07:12:20 +0200292 - Blindly assumes that control connections are always established
Patrick McHardyf09943f2006-12-02 22:09:41 -0800293 in PNS->PAC direction. This is a violation of RFC2637.
294 - Only supports a single call within each session
295
296 To compile it as a module, choose M here. If unsure, say N.
297
Michal Schmidt6fecd192007-02-07 15:05:12 -0800298config NF_CONNTRACK_SANE
Kees Cook663ef0d2012-10-02 11:19:54 -0700299 tristate "SANE protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800300 depends on NETFILTER_ADVANCED
Michal Schmidt6fecd192007-02-07 15:05:12 -0800301 help
302 SANE is a protocol for remote access to scanners as implemented
303 by the 'saned' daemon. Like FTP, it uses separate control and
304 data connections.
305
306 With this module you can support SANE on a connection tracking
307 firewall.
308
309 To compile it as a module, choose M here. If unsure, say N.
310
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800311config NF_CONNTRACK_SIP
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800312 tristate "SIP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800313 default m if NETFILTER_ADVANCED=n
Patrick McHardy9fafcd72006-12-02 22:09:57 -0800314 help
315 SIP is an application-layer control protocol that can establish,
316 modify, and terminate multimedia sessions (conferences) such as
317 Internet telephony calls. With the ip_conntrack_sip and
318 the nf_nat_sip modules you can support the protocol on a connection
319 tracking/NATing firewall.
320
321 To compile it as a module, choose M here. If unsure, say N.
322
Patrick McHardya536df32006-12-02 22:10:18 -0800323config NF_CONNTRACK_TFTP
Patrick McHardyc9386cf2007-01-04 12:16:06 -0800324 tristate "TFTP protocol support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800325 depends on NETFILTER_ADVANCED
Patrick McHardya536df32006-12-02 22:10:18 -0800326 help
327 TFTP connection tracking helper, this is required depending
328 on how restrictive your ruleset is.
329 If you are using a tftp client behind -j SNAT or -j MASQUERADING
330 you will need this.
331
332 To compile it as a module, choose M here. If unsure, say N.
333
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800334config NF_CT_NETLINK
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800335 tristate 'Connection tracking netlink interface'
Patrick McHardy2eeeba32007-12-05 01:31:52 -0800336 select NETFILTER_NETLINK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800337 default m if NETFILTER_ADVANCED=n
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800338 help
339 This option enables support for a netlink-based userspace interface
340
Pablo Neira Ayuso50978462012-02-28 19:13:48 +0100341config NF_CT_NETLINK_TIMEOUT
342 tristate 'Connection tracking timeout tuning via Netlink'
343 select NETFILTER_NETLINK
344 depends on NETFILTER_ADVANCED
345 help
346 This option enables support for connection tracking timeout
347 fine-grain tuning. This allows you to attach specific timeout
348 policies to flows, instead of using the global timeout policy.
349
350 If unsure, say `N'.
351
Pablo Neira Ayuso6e9c2db2012-06-18 21:14:30 +0200352config NF_CT_NETLINK_HELPER
353 tristate 'Connection tracking helpers in user-space via Netlink'
354 select NETFILTER_NETLINK
355 depends on NF_CT_NETLINK
356 depends on NETFILTER_NETLINK_QUEUE
Ken-ichirou MATSUZAWA83f3e942015-10-05 11:48:47 +0900357 depends on NETFILTER_NETLINK_GLUE_CT
Pablo Neira Ayuso6e9c2db2012-06-18 21:14:30 +0200358 depends on NETFILTER_ADVANCED
359 help
360 This option enables the user-space connection tracking helpers
361 infrastructure.
362
363 If unsure, say `N'.
364
Ken-ichirou MATSUZAWA83f3e942015-10-05 11:48:47 +0900365config NETFILTER_NETLINK_GLUE_CT
Ken-ichirou MATSUZAWAa29a9a52015-10-05 11:50:46 +0900366 bool "NFQUEUE and NFLOG integration with Connection Tracking"
Ken-ichirou MATSUZAWA83f3e942015-10-05 11:48:47 +0900367 default n
Ken-ichirou MATSUZAWAa29a9a52015-10-05 11:50:46 +0900368 depends on (NETFILTER_NETLINK_QUEUE || NETFILTER_NETLINK_LOG) && NF_CT_NETLINK
Pablo Neira Ayuso7c622342012-06-19 02:10:57 +0200369 help
Ken-ichirou MATSUZAWAa29a9a52015-10-05 11:50:46 +0900370 If this option is enabled, NFQUEUE and NFLOG can include
371 Connection Tracking information together with the packet is
372 the enqueued via NFNETLINK.
Pablo Neira Ayuso7c622342012-06-19 02:10:57 +0200373
Patrick McHardyc7232c92012-08-26 19:14:06 +0200374config NF_NAT
375 tristate
376
377config NF_NAT_NEEDED
378 bool
379 depends on NF_NAT
380 default y
381
382config NF_NAT_PROTO_DCCP
383 tristate
384 depends on NF_NAT && NF_CT_PROTO_DCCP
385 default NF_NAT && NF_CT_PROTO_DCCP
386
387config NF_NAT_PROTO_UDPLITE
388 tristate
389 depends on NF_NAT && NF_CT_PROTO_UDPLITE
390 default NF_NAT && NF_CT_PROTO_UDPLITE
391
392config NF_NAT_PROTO_SCTP
393 tristate
394 default NF_NAT && NF_CT_PROTO_SCTP
395 depends on NF_NAT && NF_CT_PROTO_SCTP
396 select LIBCRC32C
397
Patrick McHardyee6eb962012-08-26 19:14:22 +0200398config NF_NAT_AMANDA
399 tristate
400 depends on NF_CONNTRACK && NF_NAT
401 default NF_NAT && NF_CONNTRACK_AMANDA
402
Patrick McHardyd33cbee2012-08-26 19:14:20 +0200403config NF_NAT_FTP
404 tristate
405 depends on NF_CONNTRACK && NF_NAT
406 default NF_NAT && NF_CONNTRACK_FTP
407
Pablo Neira Ayuso5901b6b2012-08-26 19:14:27 +0200408config NF_NAT_IRC
409 tristate
410 depends on NF_CONNTRACK && NF_NAT
411 default NF_NAT && NF_CONNTRACK_IRC
412
Patrick McHardy9a664822012-08-26 19:14:25 +0200413config NF_NAT_SIP
414 tristate
415 depends on NF_CONNTRACK && NF_NAT
416 default NF_NAT && NF_CONNTRACK_SIP
417
Pablo Neira Ayuso320ff562012-08-26 19:14:29 +0200418config NF_NAT_TFTP
419 tristate
420 depends on NF_CONNTRACK && NF_NAT
421 default NF_NAT && NF_CONNTRACK_TFTP
422
Pablo Neira Ayusob59eaf92014-11-26 12:46:50 +0100423config NF_NAT_REDIRECT
424 tristate "IPv4/IPv6 redirect support"
425 depends on NF_NAT
426 help
427 This is the kernel functionality to redirect packets to local
428 machine through NAT.
429
Patrick McHardy48b1de42013-08-27 08:50:14 +0200430config NETFILTER_SYNPROXY
431 tristate
432
Laszlo Attila Toth4b070662009-04-24 16:55:25 +0200433endif # NF_CONNTRACK
434
Patrick McHardy96518512013-10-14 11:00:02 +0200435config NF_TABLES
Eric Leblond5f291c22013-12-29 11:01:29 +0100436 select NETFILTER_NETLINK
Patrick McHardy96518512013-10-14 11:00:02 +0200437 tristate "Netfilter nf_tables support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100438 help
439 nftables is the new packet classification framework that intends to
440 replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
441 provides a pseudo-state machine with an extensible instruction-set
442 (also known as expressions) that the userspace 'nft' utility
443 (http://www.netfilter.org/projects/nftables) uses to build the
444 rule-set. It also comes with the generic set infrastructure that
445 allows you to construct mappings between matchings and actions
446 for performance lookups.
447
448 To compile it as a module, choose M here.
Patrick McHardy96518512013-10-14 11:00:02 +0200449
Pablo Neira Ayusof04e5992015-03-05 14:56:15 +0100450if NF_TABLES
451
Patrick McHardy1d491442014-01-03 12:16:16 +0000452config NF_TABLES_INET
Pablo Neira Ayusof04e5992015-03-05 14:56:15 +0100453 depends on IPV6
Patrick McHardy1d491442014-01-03 12:16:16 +0000454 select NF_TABLES_IPV4
455 select NF_TABLES_IPV6
456 tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"
457 help
458 This option enables support for a mixed IPv4/IPv6 "inet" table.
459
Pablo Neira Ayusoed6c4132015-05-26 18:41:40 +0200460config NF_TABLES_NETDEV
461 tristate "Netfilter nf_tables netdev tables support"
462 help
463 This option enables support for the "netdev" table.
464
Patrick McHardy96518512013-10-14 11:00:02 +0200465config NFT_EXTHDR
Patrick McHardy96518512013-10-14 11:00:02 +0200466 tristate "Netfilter nf_tables IPv6 exthdr module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100467 help
468 This option adds the "exthdr" expression that you can use to match
469 IPv6 extension headers.
Patrick McHardy96518512013-10-14 11:00:02 +0200470
471config NFT_META
Patrick McHardy96518512013-10-14 11:00:02 +0200472 tristate "Netfilter nf_tables meta module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100473 help
474 This option adds the "meta" expression that you can use to match and
475 to set packet metainformation such as the packet mark.
Patrick McHardy96518512013-10-14 11:00:02 +0200476
Laura Garcia Liebana91dbc6b2016-08-18 12:13:13 +0200477config NFT_NUMGEN
478 tristate "Netfilter nf_tables number generator module"
479 help
480 This option adds the number generator expression used to perform
481 incremental counting and random numbers bound to a upper limit.
482
Patrick McHardy96518512013-10-14 11:00:02 +0200483config NFT_CT
Patrick McHardy96518512013-10-14 11:00:02 +0200484 depends on NF_CONNTRACK
485 tristate "Netfilter nf_tables conntrack module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100486 help
487 This option adds the "meta" expression that you can use to match
488 connection tracking information such as the flow state.
Patrick McHardy96518512013-10-14 11:00:02 +0200489
Pablo Neira Ayuso0ed63892016-08-09 16:11:46 +0200490config NFT_SET_RBTREE
Patrick McHardy20a69342013-10-11 12:06:22 +0200491 tristate "Netfilter nf_tables rbtree set module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100492 help
493 This option adds the "rbtree" set type (Red Black tree) that is used
494 to build interval-based sets.
Patrick McHardy96518512013-10-14 11:00:02 +0200495
Pablo Neira Ayuso0ed63892016-08-09 16:11:46 +0200496config NFT_SET_HASH
Patrick McHardy20a69342013-10-11 12:06:22 +0200497 tristate "Netfilter nf_tables hash set module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100498 help
499 This option adds the "hash" set type that is used to build one-way
500 mappings between matchings and actions.
Patrick McHardy96518512013-10-14 11:00:02 +0200501
502config NFT_COUNTER
Patrick McHardy96518512013-10-14 11:00:02 +0200503 tristate "Netfilter nf_tables counter module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100504 help
505 This option adds the "counter" expression that you can use to
506 include packet and byte counters in a rule.
Patrick McHardy96518512013-10-14 11:00:02 +0200507
508config NFT_LOG
Patrick McHardy96518512013-10-14 11:00:02 +0200509 tristate "Netfilter nf_tables log module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100510 help
511 This option adds the "log" expression that you can use to log
512 packets matching some criteria.
Patrick McHardy96518512013-10-14 11:00:02 +0200513
514config NFT_LIMIT
Patrick McHardy96518512013-10-14 11:00:02 +0200515 tristate "Netfilter nf_tables limit module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100516 help
517 This option adds the "limit" expression that you can use to
518 ratelimit rule matchings.
Patrick McHardy96518512013-10-14 11:00:02 +0200519
Arturo Borrero9ba1f7262014-09-08 13:45:00 +0200520config NFT_MASQ
Arturo Borrero9ba1f7262014-09-08 13:45:00 +0200521 depends on NF_CONNTRACK
522 depends on NF_NAT
523 tristate "Netfilter nf_tables masquerade support"
524 help
525 This option adds the "masquerade" expression that you can use
526 to perform NAT in the masquerade flavour.
527
Arturo Borreroe9105f12014-10-17 12:39:09 +0200528config NFT_REDIR
Arturo Borreroe9105f12014-10-17 12:39:09 +0200529 depends on NF_CONNTRACK
530 depends on NF_NAT
531 tristate "Netfilter nf_tables redirect support"
532 help
533 This options adds the "redirect" expression that you can use
534 to perform NAT in the redirect flavour.
535
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200536config NFT_NAT
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200537 depends on NF_CONNTRACK
Pablo Neira Ayuso1e8430f2014-08-11 18:21:50 +0200538 select NF_NAT
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200539 tristate "Netfilter nf_tables nat module"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100540 help
541 This option adds the "nat" expression that you can use to perform
542 typical Network Address Translation (NAT) packet transformations.
Tomasz Bursztykaeb316282013-10-10 13:39:19 +0200543
Eric Leblond0aff0782013-12-06 00:24:13 +0100544config NFT_QUEUE
Eric Leblond0aff0782013-12-06 00:24:13 +0100545 depends on NETFILTER_NETLINK_QUEUE
546 tristate "Netfilter nf_tables queue module"
547 help
548 This is required if you intend to use the userspace queueing
549 infrastructure (also known as NFQUEUE) from nftables.
550
Pablo Neira Ayuso3d2f30a2016-08-18 01:46:06 +0200551config NFT_QUOTA
552 tristate "Netfilter nf_tables quota module"
553 help
554 This option adds the "quota" expression that you can use to match
555 enforce bytes quotas.
556
Eric Leblondbee11dc2013-12-29 12:28:14 +0100557config NFT_REJECT
Eric Leblondbee11dc2013-12-29 12:28:14 +0100558 default m if NETFILTER_ADVANCED=n
559 tristate "Netfilter nf_tables reject support"
Pablo Neira Ayusod497c632013-12-30 15:09:18 +0100560 help
561 This option adds the "reject" expression that you can use to
562 explicitly deny and notify via TCP reset/ICMP informational errors
563 unallowed traffic.
Pablo Neira Ayuso0ca743a2013-10-14 00:06:06 +0200564
Patrick McHardy05513e92014-02-05 15:03:39 +0000565config NFT_REJECT_INET
566 depends on NF_TABLES_INET
567 default NFT_REJECT
568 tristate
569
Pablo Neira Ayuso0ca743a2013-10-14 00:06:06 +0200570config NFT_COMPAT
Pablo Neira Ayuso0ca743a2013-10-14 00:06:06 +0200571 depends on NETFILTER_XTABLES
572 tristate "Netfilter x_tables over nf_tables module"
573 help
574 This is required if you intend to use any of existing
575 x_tables match/target extensions over the nf_tables
576 framework.
577
Laura Garcia Liebanacb1b69b2016-08-11 18:02:07 +0200578config NFT_HASH
579 tristate "Netfilter nf_tables hash module"
580 help
581 This option adds the "hash" expression that you can use to perform
582 a hash operation on registers.
583
Pablo Neira Ayuso502061f2016-01-03 21:02:18 +0100584if NF_TABLES_NETDEV
585
586config NF_DUP_NETDEV
587 tristate "Netfilter packet duplication support"
588 help
589 This option enables the generic packet duplication infrastructure
590 for Netfilter.
591
592config NFT_DUP_NETDEV
593 tristate "Netfilter nf_tables netdev packet duplication support"
594 select NF_DUP_NETDEV
595 help
596 This option enables packet duplication for the "netdev" family.
597
Pablo Neira Ayuso39e6dea2015-11-25 13:39:38 +0100598config NFT_FWD_NETDEV
599 tristate "Netfilter nf_tables netdev packet forwarding support"
600 select NF_DUP_NETDEV
601 help
602 This option enables packet forwarding for the "netdev" family.
603
Pablo Neira Ayuso502061f2016-01-03 21:02:18 +0100604endif # NF_TABLES_NETDEV
605
Pablo Neira Ayusof04e5992015-03-05 14:56:15 +0100606endif # NF_TABLES
607
Harald Welte2e4e6a12006-01-12 13:30:04 -0800608config NETFILTER_XTABLES
609 tristate "Netfilter Xtables support (required for ip_tables)"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800610 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -0800611 help
612 This is required if you intend to use any of ip_tables,
613 ip6_tables or arp_tables.
614
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200615if NETFILTER_XTABLES
616
Jan Engelhardt28b94982009-02-28 03:23:57 +0100617comment "Xtables combined modules"
618
619config NETFILTER_XT_MARK
620 tristate 'nfmark target and match support'
621 default m if NETFILTER_ADVANCED=n
622 ---help---
623 This option adds the "MARK" target and "mark" match.
624
625 Netfilter mark matching allows you to match packets based on the
626 "nfmark" value in the packet.
627 The target allows you to create rules in the "mangle" table which alter
628 the netfilter mark (nfmark) field associated with the packet.
629
Moritz Sichertf1504302016-06-30 11:46:28 +0200630 Prior to routing, the nfmark can influence the routing method and can
631 also be used by other subsystems to change their behavior.
Jan Engelhardt28b94982009-02-28 03:23:57 +0100632
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100633config NETFILTER_XT_CONNMARK
634 tristate 'ctmark target and match support'
635 depends on NF_CONNTRACK
636 depends on NETFILTER_ADVANCED
637 select NF_CONNTRACK_MARK
638 ---help---
639 This option adds the "CONNMARK" target and "connmark" match.
640
641 Netfilter allows you to store a mark value per connection (a.k.a.
642 ctmark), similarly to the packet mark (nfmark). Using this
643 target and match, you can set and match on this mark.
644
Jozsef Kadlecsikd9567982011-02-01 15:56:00 +0100645config NETFILTER_XT_SET
646 tristate 'set target and match support'
647 depends on IP_SET
648 depends on NETFILTER_ADVANCED
649 help
650 This option adds the "SET" target and "set" match.
651
652 Using this target and match, you can add/delete and match
653 elements in the sets created by ipset(8).
654
655 To compile it as a module, choose M here. If unsure, say N.
656
Harald Welte2e4e6a12006-01-12 13:30:04 -0800657# alphabetically ordered list of targets
658
Jan Engelhardt44c58732010-02-26 14:14:22 +0100659comment "Xtables targets"
660
Thomas Graf43f393c2011-01-16 18:10:28 +0100661config NETFILTER_XT_TARGET_AUDIT
662 tristate "AUDIT target support"
663 depends on AUDIT
664 depends on NETFILTER_ADVANCED
665 ---help---
666 This option adds a 'AUDIT' target, which can be used to create
667 audit records for packets dropped/accepted.
668
669 To compileit as a module, choose M here. If unsure, say N.
670
Michael S. Tsirkinedf0e1f2010-07-15 17:20:46 +0200671config NETFILTER_XT_TARGET_CHECKSUM
672 tristate "CHECKSUM target support"
673 depends on IP_NF_MANGLE || IP6_NF_MANGLE
674 depends on NETFILTER_ADVANCED
675 ---help---
676 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
677 table.
678
679 You can use this target to compute and fill in the checksum in
680 a packet that lacks a checksum. This is particularly useful,
681 if you need to work around old applications such as dhcp clients,
682 that do not work well with checksum offloads, but don't want to disable
683 checksum offload in your device.
684
685 To compile it as a module, choose M here. If unsure, say N.
686
Harald Welte2e4e6a12006-01-12 13:30:04 -0800687config NETFILTER_XT_TARGET_CLASSIFY
688 tristate '"CLASSIFY" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800689 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -0800690 help
691 This option adds a `CLASSIFY' target, which enables the user to set
692 the priority of a packet. Some qdiscs can use this value for
693 classification, among these are:
694
695 atm, cbq, dsmark, pfifo_fast, htb, prio
696
697 To compile it as a module, choose M here. If unsure, say N.
698
699config NETFILTER_XT_TARGET_CONNMARK
700 tristate '"CONNMARK" target support'
Patrick McHardy587aa642007-03-14 16:37:25 -0700701 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800702 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +0100703 select NETFILTER_XT_CONNMARK
704 ---help---
705 This is a backwards-compat option for the user's convenience
706 (e.g. when running oldconfig). It selects
707 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800708
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200709config NETFILTER_XT_TARGET_CONNSECMARK
710 tristate '"CONNSECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200711 depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200712 default m if NETFILTER_ADVANCED=n
713 help
714 The CONNSECMARK target copies security markings from packets
715 to connections, and restores security markings from connections
716 to packets (if the packets are not already marked). This would
717 normally be used in conjunction with the SECMARK target.
718
719 To compile it as a module, choose M here. If unsure, say N.
720
Patrick McHardy84f3bb92010-02-03 17:17:06 +0100721config NETFILTER_XT_TARGET_CT
722 tristate '"CT" target support'
723 depends on NF_CONNTRACK
724 depends on IP_NF_RAW || IP6_NF_RAW
725 depends on NETFILTER_ADVANCED
726 help
727 This options adds a `CT' target, which allows to specify initial
728 connection tracking parameters like events to be delivered and
729 the helper to be used.
730
731 To compile it as a module, choose M here. If unsure, say N.
732
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700733config NETFILTER_XT_TARGET_DSCP
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800734 tristate '"DSCP" and "TOS" target support'
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700735 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800736 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700737 help
738 This option adds a `DSCP' target, which allows you to manipulate
739 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
740
741 The DSCP field can have any value between 0x0 and 0x3f inclusive.
742
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800743 It also adds the "TOS" target, which allows you to create rules in
744 the "mangle" table which alter the Type Of Service field of an IPv4
Jan Engelhardt5c350e52007-12-04 23:39:09 -0800745 or the Priority field of an IPv6 packet, prior to routing.
Jan Engelhardtc9fd4962007-12-04 23:38:13 -0800746
Yasuyuki Kozakaia4687012006-08-22 00:30:26 -0700747 To compile it as a module, choose M here. If unsure, say N.
748
Jan Engelhardt563d36e2009-02-18 18:38:40 +0100749config NETFILTER_XT_TARGET_HL
750 tristate '"HL" hoplimit target support'
751 depends on IP_NF_MANGLE || IP6_NF_MANGLE
752 depends on NETFILTER_ADVANCED
753 ---help---
754 This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
755 targets, which enable the user to change the
756 hoplimit/time-to-live value of the IP header.
757
758 While it is safe to decrement the hoplimit/TTL value, the
759 modules also allow to increment and set the hoplimit value of
760 the header to arbitrary values. This is EXTREMELY DANGEROUS
761 since you can easily create immortal packets that loop
762 forever on the network.
763
Hans Schillstromcf308a12012-05-02 07:49:47 +0000764config NETFILTER_XT_TARGET_HMARK
765 tristate '"HMARK" target support'
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +0200766 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
Hans Schillstromcf308a12012-05-02 07:49:47 +0000767 depends on NETFILTER_ADVANCED
768 ---help---
769 This option adds the "HMARK" target.
770
771 The target allows you to create rules in the "raw" and "mangle" tables
772 which set the skbuff mark by means of hash calculation within a given
Moritz Sichertf1504302016-06-30 11:46:28 +0200773 range. The nfmark can influence the routing method and can also be used
774 by other subsystems to change their behaviour.
Hans Schillstromcf308a12012-05-02 07:49:47 +0000775
776 To compile it as a module, choose M here. If unsure, say N.
777
Luciano Coelho0902b462010-06-15 15:04:00 +0200778config NETFILTER_XT_TARGET_IDLETIMER
779 tristate "IDLETIMER target support"
780 depends on NETFILTER_ADVANCED
781 help
782
783 This option adds the `IDLETIMER' target. Each matching packet
784 resets the timer associated with label specified when the rule is
785 added. When the timer expires, it triggers a sysfs notification.
786 The remaining time for expiration can be read via sysfs.
787
788 To compile it as a module, choose M here. If unsure, say N.
789
Subash Abhinov Kasiviswanathaneb5c1542017-02-13 12:00:42 -0700790config NETFILTER_XT_TARGET_HARDIDLETIMER
791 tristate "HARDIDLETIMER target support"
792 depends on NETFILTER_ADVANCED
793 help
794
795 This option adds the `HARDIDLETIMER' target. Each matching packet
796 resets the timer associated with label specified when the rule is
797 added. When the timer expires, it triggers a sysfs notification.
798 The remaining time for expiration can be read via sysfs.
799 Compared to IDLETIMER HARDIDLETIMER will send notification when
800 CPU in suspend too.
801
802 To compile it as a module, choose M here. If unsure, say N.
803
Adam Nielsen268cb382009-02-20 10:55:14 +0100804config NETFILTER_XT_TARGET_LED
805 tristate '"LED" target support'
Alex Riesen3ae16f12009-04-06 17:09:43 +0200806 depends on LEDS_CLASS && LEDS_TRIGGERS
Adam Nielsen268cb382009-02-20 10:55:14 +0100807 depends on NETFILTER_ADVANCED
808 help
809 This option adds a `LED' target, which allows you to blink LEDs in
810 response to particular packets passing through your machine.
811
812 This can be used to turn a spare LED into a network activity LED,
813 which only flashes in response to FTP transfers, for example. Or
814 you could have an LED which lights up for a minute or two every time
815 somebody connects to your machine via SSH.
816
817 You will need support for the "led" class to make this work.
818
819 To create an LED trigger for incoming SSH traffic:
820 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
821
822 Then attach the new trigger to an LED on your system:
823 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
824
825 For more information on the LEDs available on your system, see
Paul Bolle395cf962011-08-15 02:02:26 +0200826 Documentation/leds/leds-class.txt
Adam Nielsen268cb382009-02-20 10:55:14 +0100827
Richard Weinberger6939c332012-02-10 23:10:52 +0100828config NETFILTER_XT_TARGET_LOG
829 tristate "LOG target support"
Pablo Neira Ayusod79a61d2014-08-29 09:34:49 +0200830 select NF_LOG_COMMON
831 select NF_LOG_IPV4
832 select NF_LOG_IPV6 if IPV6
Richard Weinberger6939c332012-02-10 23:10:52 +0100833 default m if NETFILTER_ADVANCED=n
834 help
835 This option adds a `LOG' target, which allows you to create rules in
836 any iptables table which records the packet header to the syslog.
837
838 To compile it as a module, choose M here. If unsure, say N.
839
Harald Welte2e4e6a12006-01-12 13:30:04 -0800840config NETFILTER_XT_TARGET_MARK
841 tristate '"MARK" target support'
Jan Engelhardt28b94982009-02-28 03:23:57 +0100842 depends on NETFILTER_ADVANCED
843 select NETFILTER_XT_MARK
844 ---help---
845 This is a backwards-compat option for the user's convenience
846 (e.g. when running oldconfig). It selects
847 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -0800848
Pablo Neira Ayuso84a59ca2014-09-04 09:47:21 +0200849config NETFILTER_XT_NAT
850 tristate '"SNAT and DNAT" targets support'
851 depends on NF_NAT
852 ---help---
853 This option enables the SNAT and DNAT targets.
854
855 To compile it as a module, choose M here. If unsure, say N.
856
Jan Engelhardtb3d54b32012-09-21 11:37:59 +0200857config NETFILTER_XT_TARGET_NETMAP
858 tristate '"NETMAP" target support'
859 depends on NF_NAT
860 ---help---
861 NETMAP is an implementation of static 1:1 NAT mapping of network
862 addresses. It maps the network address part, while keeping the host
863 address part intact.
864
865 To compile it as a module, choose M here. If unsure, say N.
866
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100867config NETFILTER_XT_TARGET_NFLOG
868 tristate '"NFLOG" target support'
Patrick McHardy33b8e772007-12-17 22:47:05 -0800869 default m if NETFILTER_ADVANCED=n
Eric Leblond293a4f22008-12-10 17:24:33 -0800870 select NETFILTER_NETLINK_LOG
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100871 help
872 This option enables the NFLOG target, which allows to LOG
Eric Leblond293a4f22008-12-10 17:24:33 -0800873 messages through nfnetlink_log.
Patrick McHardybaf7b1e2006-11-29 02:35:38 +0100874
875 To compile it as a module, choose M here. If unsure, say N.
876
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200877config NETFILTER_XT_TARGET_NFQUEUE
878 tristate '"NFQUEUE" target Support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200879 depends on NETFILTER_ADVANCED
Florian Westphal5f2cafe2011-01-18 15:18:08 +0100880 select NETFILTER_NETLINK_QUEUE
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200881 help
882 This target replaced the old obsolete QUEUE target.
883
884 As opposed to QUEUE, it supports 65535 different queues,
885 not just one.
886
887 To compile it as a module, choose M here. If unsure, say N.
888
Pablo Neira Ayuso10db9062012-12-20 01:54:51 +0000889config NETFILTER_XT_TARGET_NOTRACK
890 tristate '"NOTRACK" target support (DEPRECATED)'
Pablo Neira Ayuso757ae312013-01-02 16:30:01 +0000891 depends on NF_CONNTRACK
892 depends on IP_NF_RAW || IP6_NF_RAW
893 depends on NETFILTER_ADVANCED
Pablo Neira Ayuso10db9062012-12-20 01:54:51 +0000894 select NETFILTER_XT_TARGET_CT
895
Patrick McHardy58590342007-12-04 23:40:05 -0800896config NETFILTER_XT_TARGET_RATEEST
897 tristate '"RATEEST" target support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -0800898 depends on NETFILTER_ADVANCED
Patrick McHardy58590342007-12-04 23:40:05 -0800899 help
900 This option adds a `RATEEST' target, which allows to measure
901 rates similar to TC estimators. The `rateest' match can be
902 used to match on the measured rates.
903
904 To compile it as a module, choose M here. If unsure, say N.
905
Jan Engelhardt2cbc78a2012-09-21 11:41:34 +0200906config NETFILTER_XT_TARGET_REDIRECT
907 tristate "REDIRECT target support"
908 depends on NF_NAT
Pablo Neira Ayusob59eaf92014-11-26 12:46:50 +0100909 select NF_NAT_REDIRECT
Jan Engelhardt2cbc78a2012-09-21 11:41:34 +0200910 ---help---
911 REDIRECT is a special case of NAT: all incoming connections are
912 mapped onto the incoming interface's address, causing the packets to
913 come to the local machine instead of passing through. This is
914 useful for transparent proxies.
915
916 To compile it as a module, choose M here. If unsure, say N.
917
Jan Engelhardte281b192010-04-19 14:17:47 +0200918config NETFILTER_XT_TARGET_TEE
Arnd Hannemannfe6fb552010-06-22 08:22:21 +0200919 tristate '"TEE" - packet cloning to alternate destination'
Jan Engelhardte281b192010-04-19 14:17:47 +0200920 depends on NETFILTER_ADVANCED
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +0200921 depends on IPV6 || IPV6=n
Randy Dunlap83827f62010-05-14 13:52:30 -0700922 depends on !NF_CONNTRACK || NF_CONNTRACK
Pablo Neira Ayusobbde9fc2015-05-31 17:54:44 +0200923 select NF_DUP_IPV4
Arnd Bergmann08a7f5d2016-02-05 10:20:21 +0100924 select NF_DUP_IPV6 if IPV6
Jan Engelhardte281b192010-04-19 14:17:47 +0200925 ---help---
926 This option adds a "TEE" target with which a packet can be cloned and
927 this clone be rerouted to another nexthop.
928
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200929config NETFILTER_XT_TARGET_TPROXY
Florian Westphalfd158d72013-07-29 15:41:52 +0200930 tristate '"TPROXY" target transparent proxying support'
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200931 depends on NETFILTER_XTABLES
932 depends on NETFILTER_ADVANCED
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +0200933 depends on IPV6 || IPV6=n
934 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
Florian Westphalfd158d72013-07-29 15:41:52 +0200935 depends on IP_NF_MANGLE
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200936 select NF_DEFRAG_IPV4
Arnd Bergmann74ec4d52015-11-10 13:22:15 +0100937 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200938 help
939 This option adds a `TPROXY' target, which is somewhat similar to
940 REDIRECT. It can only be used in the mangle table and is useful
941 to redirect traffic to a transparent proxy. It does _not_ depend
942 on Netfilter connection tracking and NAT, unlike REDIRECT.
Florian Westphalfd158d72013-07-29 15:41:52 +0200943 For it to work you will have to configure certain iptables rules
944 and use policy routing. For more information on how to set it up
945 see Documentation/networking/tproxy.txt.
KOVACS Krisztiane8439272008-10-08 11:35:12 +0200946
947 To compile it as a module, choose M here. If unsure, say N.
948
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700949config NETFILTER_XT_TARGET_TRACE
950 tristate '"TRACE" target support'
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700951 depends on IP_NF_RAW || IP6_NF_RAW
Patrick McHardy33b8e772007-12-17 22:47:05 -0800952 depends on NETFILTER_ADVANCED
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700953 help
954 The TRACE target allows you to mark packets so that the kernel
955 will log every rule which match the packets as those traverse
956 the tables, chains, rules.
957
958 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700959 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Jozsef Kadlecsikba9dda32007-07-07 22:21:23 -0700960
James Morris5e6874cd2006-06-09 00:30:57 -0700961config NETFILTER_XT_TARGET_SECMARK
962 tristate '"SECMARK" target support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200963 depends on NETWORK_SECMARK
Patrick McHardy33b8e772007-12-17 22:47:05 -0800964 default m if NETFILTER_ADVANCED=n
James Morris5e6874cd2006-06-09 00:30:57 -0700965 help
966 The SECMARK target allows security marking of network
967 packets, for use with security subsystems.
968
969 To compile it as a module, choose M here. If unsure, say N.
970
Patrick McHardycdd289a2007-02-07 15:09:46 -0800971config NETFILTER_XT_TARGET_TCPMSS
972 tristate '"TCPMSS" target support'
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +0200973 depends on IPV6 || IPV6=n
Patrick McHardy33b8e772007-12-17 22:47:05 -0800974 default m if NETFILTER_ADVANCED=n
Patrick McHardycdd289a2007-02-07 15:09:46 -0800975 ---help---
976 This option adds a `TCPMSS' target, which allows you to alter the
977 MSS value of TCP SYN packets, to control the maximum size for that
978 connection (usually limiting it to your outgoing interface's MTU
979 minus 40).
980
981 This is used to overcome criminally braindead ISPs or servers which
982 block ICMP Fragmentation Needed packets. The symptoms of this
983 problem are that everything works fine from your Linux
984 firewall/router, but machines behind it can never exchange large
985 packets:
986 1) Web browsers connect, then hang with no data received.
987 2) Small mail works fine, but large emails hang.
988 3) ssh works fine, but scp hangs after initial handshaking.
989
990 Workaround: activate this option and add a rule to your firewall
991 configuration like:
992
993 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
994 -j TCPMSS --clamp-mss-to-pmtu
995
996 To compile it as a module, choose M here. If unsure, say N.
997
Sven Schnelle338e8a72007-12-04 23:21:50 -0800998config NETFILTER_XT_TARGET_TCPOPTSTRIP
Kees Cook663ef0d2012-10-02 11:19:54 -0700999 tristate '"TCPOPTSTRIP" target support'
Sven Schnelle338e8a72007-12-04 23:21:50 -08001000 depends on IP_NF_MANGLE || IP6_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -08001001 depends on NETFILTER_ADVANCED
Sven Schnelle338e8a72007-12-04 23:21:50 -08001002 help
1003 This option adds a "TCPOPTSTRIP" target, which allows you to strip
1004 TCP options from TCP packets.
1005
Jan Engelhardt44c58732010-02-26 14:14:22 +01001006# alphabetically ordered list of matches
1007
1008comment "Xtables matches"
1009
Florian Westphalde81bbe2011-03-15 20:16:20 +01001010config NETFILTER_XT_MATCH_ADDRTYPE
1011 tristate '"addrtype" address type match support'
Anton Blanchard5cca4ac2015-01-21 10:53:50 +11001012 default m if NETFILTER_ADVANCED=n
Florian Westphalde81bbe2011-03-15 20:16:20 +01001013 ---help---
1014 This option allows you to match what routing thinks of an address,
1015 eg. UNICAST, LOCAL, BROADCAST, ...
1016
1017 If you want to compile it as a module, say M here and read
1018 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1019
Willem de Bruijne6f30c72013-01-18 07:17:30 +00001020config NETFILTER_XT_MATCH_BPF
1021 tristate '"bpf" match support'
1022 depends on NETFILTER_ADVANCED
1023 help
1024 BPF matching applies a linux socket filter to each packet and
1025 accepts those for which the filter returns non-zero.
1026
1027 To compile it as a module, choose M here. If unsure, say N.
1028
Daniel Borkmann82a37132013-12-29 18:27:12 +01001029config NETFILTER_XT_MATCH_CGROUP
1030 tristate '"control group" match support'
1031 depends on NETFILTER_ADVANCED
1032 depends on CGROUPS
1033 select CGROUP_NET_CLASSID
1034 ---help---
1035 Socket/process control group matching allows you to match locally
1036 generated packets based on which net_cls control group processes
1037 belong to.
1038
Pablo Neira Ayuso0269ea42009-03-16 17:10:36 +01001039config NETFILTER_XT_MATCH_CLUSTER
1040 tristate '"cluster" match support'
1041 depends on NF_CONNTRACK
1042 depends on NETFILTER_ADVANCED
1043 ---help---
1044 This option allows you to build work-load-sharing clusters of
1045 network servers/stateful firewalls without having a dedicated
1046 load-balancing router/server/switch. Basically, this match returns
1047 true when the packet must be handled by this cluster node. Thus,
1048 all nodes see all packets and this match decides which node handles
1049 what packets. The work-load sharing algorithm is based on source
1050 address hashing.
1051
1052 If you say Y or M here, try `iptables -m cluster --help` for
1053 more information.
1054
Harald Welte2e4e6a12006-01-12 13:30:04 -08001055config NETFILTER_XT_MATCH_COMMENT
1056 tristate '"comment" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001057 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001058 help
1059 This option adds a `comment' dummy-match, which allows you to put
1060 comments in your iptables ruleset.
1061
1062 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001063 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001064
1065config NETFILTER_XT_MATCH_CONNBYTES
1066 tristate '"connbytes" per-connection counter match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001067 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001068 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001069 help
1070 This option adds a `connbytes' match, which allows you to match the
1071 number of bytes and/or packets for each direction within a connection.
1072
1073 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001074 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001075
Florian Westphalc539f012013-01-11 06:30:44 +00001076config NETFILTER_XT_MATCH_CONNLABEL
1077 tristate '"connlabel" match support'
1078 select NF_CONNTRACK_LABELS
Florian Westphal35612a22013-02-03 01:24:07 +00001079 depends on NF_CONNTRACK
Florian Westphalc539f012013-01-11 06:30:44 +00001080 depends on NETFILTER_ADVANCED
1081 ---help---
1082 This match allows you to test and assign userspace-defined labels names
1083 to a connection. The kernel only stores bit values - mapping
1084 names to bits is done by userspace.
1085
1086 Unlike connmark, more than 32 flag bits may be assigned to a
1087 connection simultaneously.
1088
Jan Engelhardt370786f2007-07-14 20:47:26 -07001089config NETFILTER_XT_MATCH_CONNLIMIT
Randy Dunlap48192242013-11-06 21:48:22 -08001090 tristate '"connlimit" match support'
Cornelia Huck3fd8f9e2007-07-18 02:38:32 -07001091 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001092 depends on NETFILTER_ADVANCED
Jan Engelhardt370786f2007-07-14 20:47:26 -07001093 ---help---
1094 This match allows you to match against the number of parallel
1095 connections to a server per client IP address (or address block).
1096
Harald Welte2e4e6a12006-01-12 13:30:04 -08001097config NETFILTER_XT_MATCH_CONNMARK
1098 tristate '"connmark" connection mark match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001099 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001100 depends on NETFILTER_ADVANCED
Jan Engelhardtb8f00ba2010-02-26 14:20:32 +01001101 select NETFILTER_XT_CONNMARK
1102 ---help---
1103 This is a backwards-compat option for the user's convenience
1104 (e.g. when running oldconfig). It selects
1105 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -08001106
1107config NETFILTER_XT_MATCH_CONNTRACK
1108 tristate '"conntrack" connection tracking match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001109 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001110 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -08001111 help
1112 This is a general conntrack match module, a superset of the state match.
1113
1114 It allows matching on additional conntrack information, which is
1115 useful in complex configurations, such as NAT gateways with multiple
1116 internet links or tunnels.
1117
1118 To compile it as a module, choose M here. If unsure, say N.
1119
Eric Dumazete8648a12010-07-23 12:59:36 +02001120config NETFILTER_XT_MATCH_CPU
1121 tristate '"cpu" match support'
1122 depends on NETFILTER_ADVANCED
1123 help
1124 CPU matching allows you to match packets based on the CPU
1125 currently handling the packet.
1126
1127 To compile it as a module, choose M here. If unsure, say N.
1128
Harald Welte2e4e6a12006-01-12 13:30:04 -08001129config NETFILTER_XT_MATCH_DCCP
Jan Engelhardt4c377992007-12-04 23:31:59 -08001130 tristate '"dccp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001131 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -07001132 default IP_DCCP
Harald Welte2e4e6a12006-01-12 13:30:04 -08001133 help
1134 With this option enabled, you will be able to use the iptables
1135 `dccp' match in order to match on DCCP source/destination ports
1136 and DCCP flags.
1137
1138 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001139 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001140
Patrick McHardy92917472011-02-03 00:05:43 +01001141config NETFILTER_XT_MATCH_DEVGROUP
1142 tristate '"devgroup" match support'
1143 depends on NETFILTER_ADVANCED
1144 help
1145 This options adds a `devgroup' match, which allows to match on the
1146 device group a network device is assigned to.
1147
1148 To compile it as a module, choose M here. If unsure, say N.
1149
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001150config NETFILTER_XT_MATCH_DSCP
Jan Engelhardtc3b33e62007-12-04 23:37:54 -08001151 tristate '"dscp" and "tos" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001152 depends on NETFILTER_ADVANCED
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001153 help
1154 This option adds a `DSCP' match, which allows you to match against
1155 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
1156
1157 The DSCP field can have any value between 0x0 and 0x3f inclusive.
1158
Jan Engelhardtc3b33e62007-12-04 23:37:54 -08001159 It will also add a "tos" match, which allows you to match packets
1160 based on the Type Of Service fields of the IPv4 packet (which share
1161 the same bits as DSCP).
1162
Yasuyuki Kozakai9ba16272006-08-22 00:29:37 -07001163 To compile it as a module, choose M here. If unsure, say N.
1164
Jan Engelhardtd446a8202011-06-09 21:03:07 +02001165config NETFILTER_XT_MATCH_ECN
1166 tristate '"ecn" match support'
1167 depends on NETFILTER_ADVANCED
1168 ---help---
1169 This option adds an "ECN" match, which allows you to match against
1170 the IPv4 and TCP header ECN fields.
1171
1172 To compile it as a module, choose M here. If unsure, say N.
1173
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -08001174config NETFILTER_XT_MATCH_ESP
Jan Engelhardt4c377992007-12-04 23:31:59 -08001175 tristate '"esp" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001176 depends on NETFILTER_ADVANCED
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -08001177 help
1178 This match extension allows you to match a range of SPIs
1179 inside ESP header of IPSec packets.
1180
1181 To compile it as a module, choose M here. If unsure, say N.
1182
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001183config NETFILTER_XT_MATCH_HASHLIMIT
1184 tristate '"hashlimit" match support'
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +02001185 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001186 depends on NETFILTER_ADVANCED
1187 help
1188 This option adds a `hashlimit' match.
1189
1190 As opposed to `limit', this match dynamically creates a hash table
1191 of limit buckets, based on your selection of source/destination
1192 addresses and/or ports.
1193
1194 It enables you to express policies like `10kpps for any given
1195 destination address' or `500pps from any given source address'
1196 with a single rule.
1197
Harald Welte2e4e6a12006-01-12 13:30:04 -08001198config NETFILTER_XT_MATCH_HELPER
1199 tristate '"helper" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001200 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001201 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001202 help
1203 Helper matching allows you to match packets in dynamic connections
1204 tracked by a conntrack-helper, ie. ip_conntrack_ftp
1205
1206 To compile it as a module, choose M here. If unsure, say Y.
1207
Jan Engelhardtcfac5ef2009-02-18 18:39:31 +01001208config NETFILTER_XT_MATCH_HL
1209 tristate '"hl" hoplimit/TTL match support'
1210 depends on NETFILTER_ADVANCED
1211 ---help---
1212 HL matching allows you to match packets based on the hoplimit
1213 in the IPv6 header, or the time-to-live field in the IPv4
1214 header of the packet.
1215
fan.du6a649f32013-12-18 11:27:02 +08001216config NETFILTER_XT_MATCH_IPCOMP
1217 tristate '"ipcomp" match support'
1218 depends on NETFILTER_ADVANCED
1219 help
1220 This match extension allows you to match a range of CPIs(16 bits)
1221 inside IPComp header of IPSec packets.
1222
1223 To compile it as a module, choose M here. If unsure, say N.
1224
Jan Engelhardtf72e25a2008-01-14 23:42:47 -08001225config NETFILTER_XT_MATCH_IPRANGE
1226 tristate '"iprange" address range match support'
Jan Engelhardtf72e25a2008-01-14 23:42:47 -08001227 depends on NETFILTER_ADVANCED
1228 ---help---
1229 This option adds a "iprange" match, which allows you to match based on
1230 an IP address range. (Normal iptables only matches on single addresses
1231 with an optional mask.)
1232
1233 If unsure, say M.
1234
Hannes Eder9c3e1c32010-07-23 12:42:58 +02001235config NETFILTER_XT_MATCH_IPVS
1236 tristate '"ipvs" match support'
1237 depends on IP_VS
1238 depends on NETFILTER_ADVANCED
1239 depends on NF_CONNTRACK
1240 help
1241 This option allows you to match against IPVS properties of a packet.
1242
1243 If unsure, say N.
1244
James Chapman74f77a62014-01-06 10:17:08 +00001245config NETFILTER_XT_MATCH_L2TP
1246 tristate '"l2tp" match support'
1247 depends on NETFILTER_ADVANCED
1248 default L2TP
1249 ---help---
1250 This option adds an "L2TP" match, which allows you to match against
1251 L2TP protocol header fields.
1252
1253 To compile it as a module, choose M here. If unsure, say N.
1254
Harald Welte2e4e6a12006-01-12 13:30:04 -08001255config NETFILTER_XT_MATCH_LENGTH
1256 tristate '"length" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001257 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001258 help
1259 This option allows you to match the length of a packet against a
1260 specific value or range of values.
1261
1262 To compile it as a module, choose M here. If unsure, say N.
1263
1264config NETFILTER_XT_MATCH_LIMIT
1265 tristate '"limit" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001266 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001267 help
1268 limit matching allows you to control the rate at which a rule can be
1269 matched: mainly useful in combination with the LOG target ("LOG
1270 target support", below) and to avoid some Denial of Service attacks.
1271
1272 To compile it as a module, choose M here. If unsure, say N.
1273
1274config NETFILTER_XT_MATCH_MAC
1275 tristate '"mac" address match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001276 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001277 help
1278 MAC matching allows you to match packets based on the source
1279 Ethernet address of the packet.
1280
1281 To compile it as a module, choose M here. If unsure, say N.
1282
1283config NETFILTER_XT_MATCH_MARK
1284 tristate '"mark" match support'
Jan Engelhardt28b94982009-02-28 03:23:57 +01001285 depends on NETFILTER_ADVANCED
1286 select NETFILTER_XT_MARK
1287 ---help---
1288 This is a backwards-compat option for the user's convenience
1289 (e.g. when running oldconfig). It selects
1290 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
Harald Welte2e4e6a12006-01-12 13:30:04 -08001291
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001292config NETFILTER_XT_MATCH_MULTIPORT
1293 tristate '"multiport" Multiple port match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +02001294 depends on NETFILTER_ADVANCED
1295 help
1296 Multiport matching allows you to match TCP or UDP packets based on
1297 a series of source or destination ports: normally a rule can only
1298 match a single range of ports.
1299
1300 To compile it as a module, choose M here. If unsure, say N.
1301
Pablo Neira Ayusoceb98d02011-12-23 14:28:59 +01001302config NETFILTER_XT_MATCH_NFACCT
1303 tristate '"nfacct" match support'
Pablo Neira Ayusobc94b522011-12-28 15:03:30 +00001304 depends on NETFILTER_ADVANCED
Pablo Neira Ayusoceb98d02011-12-23 14:28:59 +01001305 select NETFILTER_NETLINK_ACCT
1306 help
1307 This option allows you to use the extended accounting through
1308 nfnetlink_acct.
1309
1310 To compile it as a module, choose M here. If unsure, say N.
1311
Jan Engelhardt115bc8f2010-03-16 20:06:55 +01001312config NETFILTER_XT_MATCH_OSF
1313 tristate '"osf" Passive OS fingerprint match'
1314 depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
1315 help
1316 This option selects the Passive OS Fingerprinting match module
1317 that allows to passively match the remote operating system by
1318 analyzing incoming TCP SYN packets.
1319
1320 Rules and loading software can be downloaded from
1321 http://www.ioremap.net/projects/osf
1322
1323 To compile it as a module, choose M here. If unsure, say N.
1324
Jan Engelhardt0265ab42007-12-04 23:27:38 -08001325config NETFILTER_XT_MATCH_OWNER
1326 tristate '"owner" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001327 depends on NETFILTER_ADVANCED
Jan Engelhardt0265ab42007-12-04 23:27:38 -08001328 ---help---
1329 Socket owner matching allows you to match locally-generated packets
1330 based on who created the socket: the user or group. It is also
1331 possible to check whether a socket actually exists.
1332
JP Abgrall053e3102011-06-20 12:41:46 -07001333 Conflicts with '"quota, tag, uid" match'
1334
Patrick McHardyc4b88512006-03-20 18:03:40 -08001335config NETFILTER_XT_MATCH_POLICY
1336 tristate 'IPsec "policy" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001337 depends on XFRM
Patrick McHardy33b8e772007-12-17 22:47:05 -08001338 default m if NETFILTER_ADVANCED=n
Patrick McHardyc4b88512006-03-20 18:03:40 -08001339 help
1340 Policy matching allows you to match packets based on the
1341 IPsec policy that was used during decapsulation/will
1342 be used during encapsulation.
1343
1344 To compile it as a module, choose M here. If unsure, say N.
1345
Harald Welte2e4e6a12006-01-12 13:30:04 -08001346config NETFILTER_XT_MATCH_PHYSDEV
1347 tristate '"physdev" match support'
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001348 depends on BRIDGE && BRIDGE_NETFILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -08001349 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001350 help
1351 Physdev packet matching matches against the physical bridge ports
1352 the IP packet arrived on or will leave by.
1353
1354 To compile it as a module, choose M here. If unsure, say N.
1355
1356config NETFILTER_XT_MATCH_PKTTYPE
1357 tristate '"pkttype" packet type match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001358 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001359 help
1360 Packet type matching allows you to match a packet by
1361 its "class", eg. BROADCAST, MULTICAST, ...
1362
1363 Typical usage:
1364 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
1365
1366 To compile it as a module, choose M here. If unsure, say N.
1367
Patrick McHardy62b77432006-05-29 18:20:32 -07001368config NETFILTER_XT_MATCH_QUOTA
1369 tristate '"quota" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001370 depends on NETFILTER_ADVANCED
Patrick McHardy62b77432006-05-29 18:20:32 -07001371 help
1372 This option adds a `quota' match, which allows to match on a
1373 byte counter.
1374
1375 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001376 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Patrick McHardy62b77432006-05-29 18:20:32 -07001377
JP Abgrall592b07a2011-07-12 12:02:59 -07001378config NETFILTER_XT_MATCH_QUOTA2
1379 tristate '"quota2" match support'
1380 depends on NETFILTER_ADVANCED
1381 help
1382 This option adds a `quota2' match, which allows to match on a
1383 byte counter correctly and not per CPU.
1384 It allows naming the quotas.
1385 This is based on http://xtables-addons.git.sourceforge.net
1386
1387 If you want to compile it as a module, say M here and read
1388 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1389
1390config NETFILTER_XT_MATCH_QUOTA2_LOG
1391 bool '"quota2" Netfilter LOG support'
1392 depends on NETFILTER_XT_MATCH_QUOTA2
JP Abgrall592b07a2011-07-12 12:02:59 -07001393 default n
1394 help
1395 This option allows `quota2' to log ONCE when a quota limit
1396 is passed. It logs via NETLINK using the NETLINK_NFLOG family.
1397 It logs similarly to how ipt_ULOG would without data.
1398
1399 If unsure, say `N'.
1400
Patrick McHardy50c164a2007-12-04 13:02:19 +01001401config NETFILTER_XT_MATCH_RATEEST
1402 tristate '"rateest" match support'
Patrick McHardyb26e76b2008-01-14 23:30:56 -08001403 depends on NETFILTER_ADVANCED
Patrick McHardy50c164a2007-12-04 13:02:19 +01001404 select NETFILTER_XT_TARGET_RATEEST
1405 help
1406 This option adds a `rateest' match, which allows to match on the
1407 rate estimated by the RATEEST target.
1408
1409 To compile it as a module, choose M here. If unsure, say N.
1410
Harald Welte2e4e6a12006-01-12 13:30:04 -08001411config NETFILTER_XT_MATCH_REALM
1412 tristate '"realm" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001413 depends on NETFILTER_ADVANCED
Patrick McHardyc7066f72011-01-14 13:36:42 +01001414 select IP_ROUTE_CLASSID
Harald Welte2e4e6a12006-01-12 13:30:04 -08001415 help
1416 This option adds a `realm' match, which allows you to use the realm
1417 key from the routing subsystem inside iptables.
Patrick McHardy33b8e772007-12-17 22:47:05 -08001418
Harald Welte2e4e6a12006-01-12 13:30:04 -08001419 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
1420 in tc world.
Patrick McHardy33b8e772007-12-17 22:47:05 -08001421
Harald Welte2e4e6a12006-01-12 13:30:04 -08001422 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001423 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001424
Jan Engelhardte948b202008-10-08 11:35:00 +02001425config NETFILTER_XT_MATCH_RECENT
1426 tristate '"recent" match support'
Jan Engelhardte948b202008-10-08 11:35:00 +02001427 depends on NETFILTER_ADVANCED
1428 ---help---
1429 This match is used for creating one or many lists of recently
1430 used addresses and then matching against that/those list(s).
1431
1432 Short options are available by using 'iptables -m recent -h'
1433 Official Website: <http://snowman.net/projects/ipt_recent/>
1434
Harald Welte2e4e6a12006-01-12 13:30:04 -08001435config NETFILTER_XT_MATCH_SCTP
Kees Cook663ef0d2012-10-02 11:19:54 -07001436 tristate '"sctp" protocol match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001437 depends on NETFILTER_ADVANCED
Patrick McHardyf3261af2008-05-08 01:16:04 -07001438 default IP_SCTP
Harald Welte2e4e6a12006-01-12 13:30:04 -08001439 help
1440 With this option enabled, you will be able to use the
1441 `sctp' match in order to match on SCTP source/destination ports
1442 and SCTP chunk types.
1443
1444 If you want to compile it as a module, say M here and read
Alexander E. Patrakov39f5fb32007-03-16 18:28:43 +05001445 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Harald Welte2e4e6a12006-01-12 13:30:04 -08001446
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001447config NETFILTER_XT_MATCH_SOCKET
Kees Cook663ef0d2012-10-02 11:19:54 -07001448 tristate '"socket" match support'
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001449 depends on NETFILTER_XTABLES
1450 depends on NETFILTER_ADVANCED
Laszlo Attila Tothacda0742009-05-01 15:23:10 -07001451 depends on !NF_CONNTRACK || NF_CONNTRACK
Pablo Neira Ayusof09becc2015-06-12 13:58:52 +02001452 depends on IPV6 || IPV6=n
1453 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001454 select NF_DEFRAG_IPV4
Arnd Bergmann74ec4d52015-11-10 13:22:15 +01001455 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n
KOVACS Krisztian136cdc72008-10-08 11:35:12 +02001456 help
1457 This option adds a `socket' match, which can be used to match
1458 packets for which a TCP or UDP socket lookup finds a valid socket.
1459 It can be used in combination with the MARK target and policy
1460 routing to implement full featured non-locally bound sockets.
1461
1462 To compile it as a module, choose M here. If unsure, say N.
1463
Harald Welte2e4e6a12006-01-12 13:30:04 -08001464config NETFILTER_XT_MATCH_STATE
1465 tristate '"state" match support'
Patrick McHardy587aa642007-03-14 16:37:25 -07001466 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -08001467 default m if NETFILTER_ADVANCED=n
Harald Welte2e4e6a12006-01-12 13:30:04 -08001468 help
1469 Connection state matching allows you to match packets based on their
1470 relationship to a tracked connection (ie. previous packets). This
1471 is a powerful tool for packet classification.
1472
1473 To compile it as a module, choose M here. If unsure, say N.
1474
Patrick McHardyf3389802006-05-29 18:21:00 -07001475config NETFILTER_XT_MATCH_STATISTIC
1476 tristate '"statistic" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001477 depends on NETFILTER_ADVANCED
Patrick McHardyf3389802006-05-29 18:21:00 -07001478 help
Patrick McHardy68c16922006-06-27 03:02:14 -07001479 This option adds a `statistic' match, which allows you to match
1480 on packets periodically or randomly with a given percentage.
1481
1482 To compile it as a module, choose M here. If unsure, say N.
Patrick McHardyf3389802006-05-29 18:21:00 -07001483
Harald Welte2e4e6a12006-01-12 13:30:04 -08001484config NETFILTER_XT_MATCH_STRING
1485 tristate '"string" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001486 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001487 select TEXTSEARCH
1488 select TEXTSEARCH_KMP
1489 select TEXTSEARCH_BM
1490 select TEXTSEARCH_FSM
1491 help
1492 This option adds a `string' match, which allows you to look for
1493 pattern matchings in packets.
1494
1495 To compile it as a module, choose M here. If unsure, say N.
1496
1497config NETFILTER_XT_MATCH_TCPMSS
1498 tristate '"tcpmss" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001499 depends on NETFILTER_ADVANCED
Harald Welte2e4e6a12006-01-12 13:30:04 -08001500 help
1501 This option adds a `tcpmss' match, which allows you to examine the
1502 MSS value of TCP SYN packets, which control the maximum packet size
1503 for that connection.
1504
1505 To compile it as a module, choose M here. If unsure, say N.
1506
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001507config NETFILTER_XT_MATCH_TIME
1508 tristate '"time" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001509 depends on NETFILTER_ADVANCED
Jan Engelhardtee4411a2007-09-28 14:46:43 -07001510 ---help---
1511 This option adds a "time" match, which allows you to match based on
1512 the packet arrival time (at the machine which netfilter is running)
1513 on) or departure time/date (for locally generated packets).
1514
1515 If you say Y here, try `iptables -m time --help` for
1516 more information.
1517
1518 If you want to compile it as a module, say M here.
1519 If unsure, say N.
1520
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001521config NETFILTER_XT_MATCH_U32
1522 tristate '"u32" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -08001523 depends on NETFILTER_ADVANCED
Jan Engelhardt1b50b8a2007-07-07 22:20:36 -07001524 ---help---
1525 u32 allows you to extract quantities of up to 4 bytes from a packet,
1526 AND them with specified masks, shift them by specified amounts and
1527 test whether the results are in any of a set of specified ranges.
1528 The specification of what to extract is general enough to skip over
1529 headers with lengths stored in the packet, as in IP or TCP header
1530 lengths.
1531
1532 Details and examples are in the kernel module source.
1533
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001534endif # NETFILTER_XTABLES
Harald Weltea6c1cd572006-02-13 15:42:48 -08001535
Jan Engelhardtc2df73d2008-10-08 11:35:18 +02001536endmenu
Harald Weltef9e815b2005-08-09 19:30:24 -07001537
Jozsef Kadlecsika7b4f982011-02-01 15:28:35 +01001538source "net/netfilter/ipset/Kconfig"
1539
Julius Volzcb7f6a72008-09-19 12:32:57 +02001540source "net/netfilter/ipvs/Kconfig"