1 menu "Core Netfilter Configuration"
2 depends on NET && NETFILTER
4 config NETFILTER_NETLINK
5 tristate "Netfilter netlink interface"
7 If this option is enabled, the kernel will include support
8 for the new netfilter netlink interface.
10 config NETFILTER_NETLINK_QUEUE
11 tristate "Netfilter NFQUEUE over NFNETLINK interface"
12 depends on NETFILTER_NETLINK
14 If this option is enabled, the kernel will include support
15 for queueing packets via NFNETLINK.
17 config NETFILTER_NETLINK_LOG
18 tristate "Netfilter LOG over NFNETLINK interface"
19 depends on NETFILTER_NETLINK
21 If this option is enabled, the kernel will include support
22 for logging packets via NFNETLINK.
24 This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
25 and is also scheduled to replace the old syslog-based ipt_LOG
29 tristate "Layer 3 Independent Connection tracking (EXPERIMENTAL)"
30 depends on EXPERIMENTAL && IP_NF_CONNTRACK=n
33 Connection tracking keeps a record of what packets have passed
34 through your machine, in order to figure out how they are related
37 Layer 3 independent connection tracking is experimental scheme
38 which generalize ip_conntrack to support other layer 3 protocols.
40 To compile it as a module, choose M here. If unsure, say N.
43 bool "Connection tracking flow accounting"
44 depends on NF_CONNTRACK
46 If this option is enabled, the connection tracking code will
47 keep per-flow packet and byte counters.
49 Those counters can be used for flow-based accounting or the
54 config NF_CONNTRACK_MARK
55 bool 'Connection mark tracking support'
56 depends on NF_CONNTRACK
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.
63 config NF_CONNTRACK_SECMARK
64 bool 'Connection tracking security mark support'
65 depends on NF_CONNTRACK && NETWORK_SECMARK
67 This option enables security markings to be applied to
68 connections. Typically they are copied to connections from
69 packets using the CONNSECMARK target and copied back from
70 connections to packets with the same target, with the packets
71 being originally labeled via SECMARK.
75 config NF_CONNTRACK_EVENTS
76 bool "Connection tracking events (EXPERIMENTAL)"
77 depends on EXPERIMENTAL && NF_CONNTRACK
79 If this option is enabled, the connection tracking code will
80 provide a notifier chain that can be used by other kernel code
81 to get notified about changes in the connection tracking state.
85 config NF_CT_PROTO_SCTP
86 tristate 'SCTP protocol on new connection tracking support (EXPERIMENTAL)'
87 depends on EXPERIMENTAL && NF_CONNTRACK
90 With this option enabled, the layer 3 independent connection
91 tracking code will be able to do state tracking on SCTP connections.
93 If you want to compile it as a module, say M here and read
94 Documentation/modules.txt. If unsure, say `N'.
96 config NF_CONNTRACK_FTP
97 tristate "FTP support on new connection tracking (EXPERIMENTAL)"
98 depends on EXPERIMENTAL && NF_CONNTRACK
100 Tracking FTP connections is problematic: special helpers are
101 required for tracking them, and doing masquerading and other forms
102 of Network Address Translation on them.
104 This is FTP support on Layer 3 independent connection tracking.
105 Layer 3 independent connection tracking is experimental scheme
106 which generalize ip_conntrack to support other layer 3 protocols.
108 To compile it as a module, choose M here. If unsure, say N.
111 tristate 'Connection tracking netlink interface (EXPERIMENTAL)'
112 depends on EXPERIMENTAL && NF_CONNTRACK && NETFILTER_NETLINK
113 depends on NF_CONNTRACK!=y || NETFILTER_NETLINK!=m
115 This option enables support for a netlink-based userspace interface
117 config NETFILTER_XTABLES
118 tristate "Netfilter Xtables support (required for ip_tables)"
120 This is required if you intend to use any of ip_tables,
121 ip6_tables or arp_tables.
123 # alphabetically ordered list of targets
125 config NETFILTER_XT_TARGET_CLASSIFY
126 tristate '"CLASSIFY" target support'
127 depends on NETFILTER_XTABLES
129 This option adds a `CLASSIFY' target, which enables the user to set
130 the priority of a packet. Some qdiscs can use this value for
131 classification, among these are:
133 atm, cbq, dsmark, pfifo_fast, htb, prio
135 To compile it as a module, choose M here. If unsure, say N.
137 config NETFILTER_XT_TARGET_CONNMARK
138 tristate '"CONNMARK" target support'
139 depends on NETFILTER_XTABLES
140 depends on IP_NF_MANGLE || IP6_NF_MANGLE
141 depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
143 This option adds a `CONNMARK' target, which allows one to manipulate
144 the connection mark value. Similar to the MARK target, but
145 affects the connection mark value rather than the packet mark value.
147 If you want to compile it as a module, say M here and read
148 <file:Documentation/modules.txt>. The module will be called
149 ipt_CONNMARK.o. If unsure, say `N'.
151 config NETFILTER_XT_TARGET_DSCP
152 tristate '"DSCP" target support'
153 depends on NETFILTER_XTABLES
154 depends on IP_NF_MANGLE || IP6_NF_MANGLE
156 This option adds a `DSCP' target, which allows you to manipulate
157 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
159 The DSCP field can have any value between 0x0 and 0x3f inclusive.
161 To compile it as a module, choose M here. If unsure, say N.
163 config NETFILTER_XT_TARGET_MARK
164 tristate '"MARK" target support'
165 depends on NETFILTER_XTABLES
167 This option adds a `MARK' target, which allows you to create rules
168 in the `mangle' table which alter the netfilter mark (nfmark) field
169 associated with the packet prior to routing. This can change
170 the routing method (see `Use netfilter MARK value as routing
171 key') and can also be used by other subsystems to change their
174 To compile it as a module, choose M here. If unsure, say N.
176 config NETFILTER_XT_TARGET_NFQUEUE
177 tristate '"NFQUEUE" target Support'
178 depends on NETFILTER_XTABLES
180 This target replaced the old obsolete QUEUE target.
182 As opposed to QUEUE, it supports 65535 different queues,
185 To compile it as a module, choose M here. If unsure, say N.
187 config NETFILTER_XT_TARGET_NOTRACK
188 tristate '"NOTRACK" target support'
189 depends on NETFILTER_XTABLES
190 depends on IP_NF_RAW || IP6_NF_RAW
191 depends on IP_NF_CONNTRACK || NF_CONNTRACK
193 The NOTRACK target allows a select rule to specify
194 which packets *not* to enter the conntrack/NAT
195 subsystem with all the consequences (no ICMP error tracking,
196 no protocol helpers for the selected packets).
198 If you want to compile it as a module, say M here and read
199 <file:Documentation/modules.txt>. If unsure, say `N'.
201 config NETFILTER_XT_TARGET_SECMARK
202 tristate '"SECMARK" target support'
203 depends on NETFILTER_XTABLES && NETWORK_SECMARK
205 The SECMARK target allows security marking of network
206 packets, for use with security subsystems.
208 To compile it as a module, choose M here. If unsure, say N.
210 config NETFILTER_XT_TARGET_CONNSECMARK
211 tristate '"CONNSECMARK" target support'
212 depends on NETFILTER_XTABLES && (NF_CONNTRACK_SECMARK || IP_NF_CONNTRACK_SECMARK)
214 The CONNSECMARK target copies security markings from packets
215 to connections, and restores security markings from connections
216 to packets (if the packets are not already marked). This would
217 normally be used in conjunction with the SECMARK target.
219 To compile it as a module, choose M here. If unsure, say N.
221 config NETFILTER_XT_MATCH_COMMENT
222 tristate '"comment" match support'
223 depends on NETFILTER_XTABLES
225 This option adds a `comment' dummy-match, which allows you to put
226 comments in your iptables ruleset.
228 If you want to compile it as a module, say M here and read
229 <file:Documentation/modules.txt>. If unsure, say `N'.
231 config NETFILTER_XT_MATCH_CONNBYTES
232 tristate '"connbytes" per-connection counter match support'
233 depends on NETFILTER_XTABLES
234 depends on (IP_NF_CONNTRACK && IP_NF_CT_ACCT) || (NF_CT_ACCT && NF_CONNTRACK)
236 This option adds a `connbytes' match, which allows you to match the
237 number of bytes and/or packets for each direction within a connection.
239 If you want to compile it as a module, say M here and read
240 <file:Documentation/modules.txt>. If unsure, say `N'.
242 config NETFILTER_XT_MATCH_CONNMARK
243 tristate '"connmark" connection mark match support'
244 depends on NETFILTER_XTABLES
245 depends on (IP_NF_CONNTRACK && IP_NF_CONNTRACK_MARK) || (NF_CONNTRACK_MARK && NF_CONNTRACK)
247 This option adds a `connmark' match, which allows you to match the
248 connection mark value previously set for the session by `CONNMARK'.
250 If you want to compile it as a module, say M here and read
251 <file:Documentation/modules.txt>. The module will be called
252 ipt_connmark.o. If unsure, say `N'.
254 config NETFILTER_XT_MATCH_CONNTRACK
255 tristate '"conntrack" connection tracking match support'
256 depends on NETFILTER_XTABLES
257 depends on IP_NF_CONNTRACK || NF_CONNTRACK
259 This is a general conntrack match module, a superset of the state match.
261 It allows matching on additional conntrack information, which is
262 useful in complex configurations, such as NAT gateways with multiple
263 internet links or tunnels.
265 To compile it as a module, choose M here. If unsure, say N.
267 config NETFILTER_XT_MATCH_DCCP
268 tristate '"DCCP" protocol match support'
269 depends on NETFILTER_XTABLES
271 With this option enabled, you will be able to use the iptables
272 `dccp' match in order to match on DCCP source/destination ports
275 If you want to compile it as a module, say M here and read
276 <file:Documentation/modules.txt>. If unsure, say `N'.
278 config NETFILTER_XT_MATCH_DSCP
279 tristate '"DSCP" match support'
280 depends on NETFILTER_XTABLES
282 This option adds a `DSCP' match, which allows you to match against
283 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
285 The DSCP field can have any value between 0x0 and 0x3f inclusive.
287 To compile it as a module, choose M here. If unsure, say N.
289 config NETFILTER_XT_MATCH_ESP
290 tristate '"ESP" match support'
291 depends on NETFILTER_XTABLES
293 This match extension allows you to match a range of SPIs
294 inside ESP header of IPSec packets.
296 To compile it as a module, choose M here. If unsure, say N.
298 config NETFILTER_XT_MATCH_HELPER
299 tristate '"helper" match support'
300 depends on NETFILTER_XTABLES
301 depends on IP_NF_CONNTRACK || NF_CONNTRACK
303 Helper matching allows you to match packets in dynamic connections
304 tracked by a conntrack-helper, ie. ip_conntrack_ftp
306 To compile it as a module, choose M here. If unsure, say Y.
308 config NETFILTER_XT_MATCH_LENGTH
309 tristate '"length" match support'
310 depends on NETFILTER_XTABLES
312 This option allows you to match the length of a packet against a
313 specific value or range of values.
315 To compile it as a module, choose M here. If unsure, say N.
317 config NETFILTER_XT_MATCH_LIMIT
318 tristate '"limit" match support'
319 depends on NETFILTER_XTABLES
321 limit matching allows you to control the rate at which a rule can be
322 matched: mainly useful in combination with the LOG target ("LOG
323 target support", below) and to avoid some Denial of Service attacks.
325 To compile it as a module, choose M here. If unsure, say N.
327 config NETFILTER_XT_MATCH_MAC
328 tristate '"mac" address match support'
329 depends on NETFILTER_XTABLES
331 MAC matching allows you to match packets based on the source
332 Ethernet address of the packet.
334 To compile it as a module, choose M here. If unsure, say N.
336 config NETFILTER_XT_MATCH_MARK
337 tristate '"mark" match support'
338 depends on NETFILTER_XTABLES
340 Netfilter mark matching allows you to match packets based on the
341 `nfmark' value in the packet. This can be set by the MARK target
344 To compile it as a module, choose M here. If unsure, say N.
346 config NETFILTER_XT_MATCH_POLICY
347 tristate 'IPsec "policy" match support'
348 depends on NETFILTER_XTABLES && XFRM
350 Policy matching allows you to match packets based on the
351 IPsec policy that was used during decapsulation/will
352 be used during encapsulation.
354 To compile it as a module, choose M here. If unsure, say N.
356 config NETFILTER_XT_MATCH_MULTIPORT
357 tristate "Multiple port match support"
358 depends on NETFILTER_XTABLES
360 Multiport matching allows you to match TCP or UDP packets based on
361 a series of source or destination ports: normally a rule can only
362 match a single range of ports.
364 To compile it as a module, choose M here. If unsure, say N.
366 config NETFILTER_XT_MATCH_PHYSDEV
367 tristate '"physdev" match support'
368 depends on NETFILTER_XTABLES && BRIDGE_NETFILTER
370 Physdev packet matching matches against the physical bridge ports
371 the IP packet arrived on or will leave by.
373 To compile it as a module, choose M here. If unsure, say N.
375 config NETFILTER_XT_MATCH_PKTTYPE
376 tristate '"pkttype" packet type match support'
377 depends on NETFILTER_XTABLES
379 Packet type matching allows you to match a packet by
380 its "class", eg. BROADCAST, MULTICAST, ...
383 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
385 To compile it as a module, choose M here. If unsure, say N.
387 config NETFILTER_XT_MATCH_QUOTA
388 tristate '"quota" match support'
389 depends on NETFILTER_XTABLES
391 This option adds a `quota' match, which allows to match on a
394 If you want to compile it as a module, say M here and read
395 <file:Documentation/modules.txt>. If unsure, say `N'.
397 config NETFILTER_XT_MATCH_REALM
398 tristate '"realm" match support'
399 depends on NETFILTER_XTABLES
402 This option adds a `realm' match, which allows you to use the realm
403 key from the routing subsystem inside iptables.
405 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
408 If you want to compile it as a module, say M here and read
409 <file:Documentation/modules.txt>. If unsure, say `N'.
411 config NETFILTER_XT_MATCH_SCTP
412 tristate '"sctp" protocol match support (EXPERIMENTAL)'
413 depends on NETFILTER_XTABLES && EXPERIMENTAL
415 With this option enabled, you will be able to use the
416 `sctp' match in order to match on SCTP source/destination ports
417 and SCTP chunk types.
419 If you want to compile it as a module, say M here and read
420 <file:Documentation/modules.txt>. If unsure, say `N'.
422 config NETFILTER_XT_MATCH_STATE
423 tristate '"state" match support'
424 depends on NETFILTER_XTABLES
425 depends on IP_NF_CONNTRACK || NF_CONNTRACK
427 Connection state matching allows you to match packets based on their
428 relationship to a tracked connection (ie. previous packets). This
429 is a powerful tool for packet classification.
431 To compile it as a module, choose M here. If unsure, say N.
433 config NETFILTER_XT_MATCH_STATISTIC
434 tristate '"statistic" match support'
435 depends on NETFILTER_XTABLES
437 This option adds a `statistic' match, which allows you to match
438 on packets periodically or randomly with a given percentage.
440 To compile it as a module, choose M here. If unsure, say N.
442 config NETFILTER_XT_MATCH_STRING
443 tristate '"string" match support'
444 depends on NETFILTER_XTABLES
446 select TEXTSEARCH_KMP
448 select TEXTSEARCH_FSM
450 This option adds a `string' match, which allows you to look for
451 pattern matchings in packets.
453 To compile it as a module, choose M here. If unsure, say N.
455 config NETFILTER_XT_MATCH_TCPMSS
456 tristate '"tcpmss" match support'
457 depends on NETFILTER_XTABLES
459 This option adds a `tcpmss' match, which allows you to examine the
460 MSS value of TCP SYN packets, which control the maximum packet size
463 To compile it as a module, choose M here. If unsure, say N.