1 menu "Core Netfilter Configuration"
2 depends on NET && INET && NETFILTER
4 config NETFILTER_INGRESS
5 bool "Netfilter ingress support"
9 This allows you to classify packets from ingress using the Netfilter
12 config NETFILTER_NETLINK
15 config NETFILTER_NETLINK_ACCT
16 tristate "Netfilter NFACCT over NFNETLINK interface"
17 depends on NETFILTER_ADVANCED
18 select NETFILTER_NETLINK
20 If this option is enabled, the kernel will include support
21 for extended accounting via NFNETLINK.
23 config NETFILTER_NETLINK_QUEUE
24 tristate "Netfilter NFQUEUE over NFNETLINK interface"
25 depends on NETFILTER_ADVANCED
26 select NETFILTER_NETLINK
28 If this option is enabled, the kernel will include support
29 for queueing packets via NFNETLINK.
31 config NETFILTER_NETLINK_LOG
32 tristate "Netfilter LOG over NFNETLINK interface"
33 default m if NETFILTER_ADVANCED=n
34 select NETFILTER_NETLINK
36 If this option is enabled, the kernel will include support
37 for logging packets via NFNETLINK.
39 This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms,
40 and is also scheduled to replace the old syslog-based ipt_LOG
44 tristate "Netfilter connection tracking support"
45 default m if NETFILTER_ADVANCED=n
47 Connection tracking keeps a record of what packets have passed
48 through your machine, in order to figure out how they are related
51 This is required to do Masquerading or other kinds of Network
52 Address Translation. It can also be used to enhance packet
53 filtering (see `Connection state match support' below).
55 To compile it as a module, choose M here. If unsure, say N.
62 config NF_CONNTRACK_MARK
63 bool 'Connection mark tracking support'
64 depends on NETFILTER_ADVANCED
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.
71 config NF_CONNTRACK_SECMARK
72 bool 'Connection tracking security mark support'
73 depends on NETWORK_SECMARK
74 default m if NETFILTER_ADVANCED=n
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.
84 config NF_CONNTRACK_ZONES
85 bool 'Connection tracking zones'
86 depends on NETFILTER_ADVANCED
87 depends on NETFILTER_XT_TARGET_CT
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.
97 config NF_CONNTRACK_PROCFS
98 bool "Supply CT list in procfs (OBSOLETE)"
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.
107 config NF_CONNTRACK_EVENTS
108 bool "Connection tracking events"
109 depends on NETFILTER_ADVANCED
111 If this option is enabled, the connection tracking code will
112 provide a notifier chain that can be used by other kernel code
113 to get notified about changes in the connection tracking state.
117 config NF_CONNTRACK_TIMEOUT
118 bool 'Connection tracking timeout'
119 depends on NETFILTER_ADVANCED
121 This option enables support for connection tracking timeout
122 extension. This allows you to attach timeout policies to flow
127 config NF_CONNTRACK_TIMESTAMP
128 bool 'Connection tracking timestamping'
129 depends on NETFILTER_ADVANCED
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
138 config NF_CONNTRACK_LABELS
141 This option enables support for assigning user-defined flag bits
142 to connection tracking entries. It selected by the connlabel match.
144 config NF_CT_PROTO_DCCP
145 tristate 'DCCP protocol connection tracking support'
146 depends on NETFILTER_ADVANCED
149 With this option enabled, the layer 3 independent connection
150 tracking code will be able to do state tracking on DCCP connections.
154 config NF_CT_PROTO_GRE
157 config NF_CT_PROTO_SCTP
158 tristate 'SCTP protocol connection tracking support'
159 depends on NETFILTER_ADVANCED
162 With this option enabled, the layer 3 independent connection
163 tracking code will be able to do state tracking on SCTP connections.
165 If you want to compile it as a module, say M here and read
166 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
168 config NF_CT_PROTO_UDPLITE
169 tristate 'UDP-Lite protocol connection tracking support'
170 depends on NETFILTER_ADVANCED
172 With this option enabled, the layer 3 independent connection
173 tracking code will be able to do state tracking on UDP-Lite
176 To compile it as a module, choose M here. If unsure, say N.
178 config NF_CONNTRACK_AMANDA
179 tristate "Amanda backup protocol support"
180 depends on NETFILTER_ADVANCED
182 select TEXTSEARCH_KMP
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
191 To compile it as a module, choose M here. If unsure, say N.
193 config NF_CONNTRACK_FTP
194 tristate "FTP protocol support"
195 default m if NETFILTER_ADVANCED=n
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.
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.
205 To compile it as a module, choose M here. If unsure, say N.
207 config NF_CONNTRACK_H323
208 tristate "H.323 protocol support"
209 depends on IPV6 || IPV6=n
210 depends on NETFILTER_ADVANCED
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,
217 With this module you can support H.323 on a connection tracking/NAT
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/.
225 To compile it as a module, choose M here. If unsure, say N.
227 config NF_CONNTRACK_IRC
228 tristate "IRC protocol support"
229 default m if NETFILTER_ADVANCED=n
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.
240 To compile it as a module, choose M here. If unsure, say N.
242 config NF_CONNTRACK_BROADCAST
245 config NF_CONNTRACK_NETBIOS_NS
246 tristate "NetBIOS name service protocol support"
247 select NF_CONNTRACK_BROADCAST
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:
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
262 To compile it as a module, choose M here. If unsure, say N.
264 config NF_CONNTRACK_SNMP
265 tristate "SNMP service protocol support"
266 depends on NETFILTER_ADVANCED
267 select NF_CONNTRACK_BROADCAST
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.
277 To compile it as a module, choose M here. If unsure, say N.
279 config NF_CONNTRACK_PPTP
280 tristate "PPtP protocol support"
281 depends on NETFILTER_ADVANCED
282 select NF_CT_PROTO_GRE
284 This module adds support for PPTP (Point to Point Tunnelling
285 Protocol, RFC2637) connection tracking and NAT.
287 If you are running PPTP sessions over a stateful firewall or NAT
288 box, you may want to enable this feature.
290 Please note that not all PPTP modes of operation are supported yet.
291 Specifically these limitations exist:
292 - Blindly assumes that control connections are always established
293 in PNS->PAC direction. This is a violation of RFC2637.
294 - Only supports a single call within each session
296 To compile it as a module, choose M here. If unsure, say N.
298 config NF_CONNTRACK_SANE
299 tristate "SANE protocol support"
300 depends on NETFILTER_ADVANCED
302 SANE is a protocol for remote access to scanners as implemented
303 by the 'saned' daemon. Like FTP, it uses separate control and
306 With this module you can support SANE on a connection tracking
309 To compile it as a module, choose M here. If unsure, say N.
311 config NF_CONNTRACK_SIP
312 tristate "SIP protocol support"
313 default m if NETFILTER_ADVANCED=n
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.
321 To compile it as a module, choose M here. If unsure, say N.
323 config NF_CONNTRACK_TFTP
324 tristate "TFTP protocol support"
325 depends on NETFILTER_ADVANCED
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
332 To compile it as a module, choose M here. If unsure, say N.
335 tristate 'Connection tracking netlink interface'
336 select NETFILTER_NETLINK
337 default m if NETFILTER_ADVANCED=n
339 This option enables support for a netlink-based userspace interface
341 config NF_CT_NETLINK_TIMEOUT
342 tristate 'Connection tracking timeout tuning via Netlink'
343 select NETFILTER_NETLINK
344 depends on NETFILTER_ADVANCED
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.
352 config 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
357 depends on NETFILTER_NETLINK_QUEUE_CT
358 depends on NETFILTER_ADVANCED
360 This option enables the user-space connection tracking helpers
365 config NETFILTER_NETLINK_QUEUE_CT
366 bool "NFQUEUE integration with Connection Tracking"
368 depends on NETFILTER_NETLINK_QUEUE
370 If this option is enabled, NFQUEUE can include Connection Tracking
371 information together with the packet is the enqueued via NFNETLINK.
381 config NF_NAT_PROTO_DCCP
383 depends on NF_NAT && NF_CT_PROTO_DCCP
384 default NF_NAT && NF_CT_PROTO_DCCP
386 config NF_NAT_PROTO_UDPLITE
388 depends on NF_NAT && NF_CT_PROTO_UDPLITE
389 default NF_NAT && NF_CT_PROTO_UDPLITE
391 config NF_NAT_PROTO_SCTP
393 default NF_NAT && NF_CT_PROTO_SCTP
394 depends on NF_NAT && NF_CT_PROTO_SCTP
399 depends on NF_CONNTRACK && NF_NAT
400 default NF_NAT && NF_CONNTRACK_AMANDA
404 depends on NF_CONNTRACK && NF_NAT
405 default NF_NAT && NF_CONNTRACK_FTP
409 depends on NF_CONNTRACK && NF_NAT
410 default NF_NAT && NF_CONNTRACK_IRC
414 depends on NF_CONNTRACK && NF_NAT
415 default NF_NAT && NF_CONNTRACK_SIP
419 depends on NF_CONNTRACK && NF_NAT
420 default NF_NAT && NF_CONNTRACK_TFTP
422 config NF_NAT_REDIRECT
423 tristate "IPv4/IPv6 redirect support"
426 This is the kernel functionality to redirect packets to local
429 config NETFILTER_SYNPROXY
435 select NETFILTER_NETLINK
436 tristate "Netfilter nf_tables support"
438 nftables is the new packet classification framework that intends to
439 replace the existing {ip,ip6,arp,eb}_tables infrastructure. It
440 provides a pseudo-state machine with an extensible instruction-set
441 (also known as expressions) that the userspace 'nft' utility
442 (http://www.netfilter.org/projects/nftables) uses to build the
443 rule-set. It also comes with the generic set infrastructure that
444 allows you to construct mappings between matchings and actions
445 for performance lookups.
447 To compile it as a module, choose M here.
451 config NF_TABLES_INET
453 select NF_TABLES_IPV4
454 select NF_TABLES_IPV6
455 tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"
457 This option enables support for a mixed IPv4/IPv6 "inet" table.
459 config NF_TABLES_NETDEV
460 tristate "Netfilter nf_tables netdev tables support"
462 This option enables support for the "netdev" table.
465 tristate "Netfilter nf_tables IPv6 exthdr module"
467 This option adds the "exthdr" expression that you can use to match
468 IPv6 extension headers.
471 tristate "Netfilter nf_tables meta module"
473 This option adds the "meta" expression that you can use to match and
474 to set packet metainformation such as the packet mark.
477 depends on NF_CONNTRACK
478 tristate "Netfilter nf_tables conntrack module"
480 This option adds the "meta" expression that you can use to match
481 connection tracking information such as the flow state.
484 tristate "Netfilter nf_tables rbtree set module"
486 This option adds the "rbtree" set type (Red Black tree) that is used
487 to build interval-based sets.
490 tristate "Netfilter nf_tables hash set module"
492 This option adds the "hash" set type that is used to build one-way
493 mappings between matchings and actions.
496 tristate "Netfilter nf_tables counter module"
498 This option adds the "counter" expression that you can use to
499 include packet and byte counters in a rule.
502 tristate "Netfilter nf_tables log module"
504 This option adds the "log" expression that you can use to log
505 packets matching some criteria.
508 tristate "Netfilter nf_tables limit module"
510 This option adds the "limit" expression that you can use to
511 ratelimit rule matchings.
514 depends on NF_CONNTRACK
516 tristate "Netfilter nf_tables masquerade support"
518 This option adds the "masquerade" expression that you can use
519 to perform NAT in the masquerade flavour.
522 depends on NF_CONNTRACK
524 tristate "Netfilter nf_tables redirect support"
526 This options adds the "redirect" expression that you can use
527 to perform NAT in the redirect flavour.
530 depends on NF_CONNTRACK
532 tristate "Netfilter nf_tables nat module"
534 This option adds the "nat" expression that you can use to perform
535 typical Network Address Translation (NAT) packet transformations.
538 depends on NETFILTER_NETLINK_QUEUE
539 tristate "Netfilter nf_tables queue module"
541 This is required if you intend to use the userspace queueing
542 infrastructure (also known as NFQUEUE) from nftables.
545 default m if NETFILTER_ADVANCED=n
546 tristate "Netfilter nf_tables reject support"
548 This option adds the "reject" expression that you can use to
549 explicitly deny and notify via TCP reset/ICMP informational errors
552 config NFT_REJECT_INET
553 depends on NF_TABLES_INET
558 depends on NETFILTER_XTABLES
559 tristate "Netfilter x_tables over nf_tables module"
561 This is required if you intend to use any of existing
562 x_tables match/target extensions over the nf_tables
567 config NETFILTER_XTABLES
568 tristate "Netfilter Xtables support (required for ip_tables)"
569 default m if NETFILTER_ADVANCED=n
571 This is required if you intend to use any of ip_tables,
572 ip6_tables or arp_tables.
576 comment "Xtables combined modules"
578 config NETFILTER_XT_MARK
579 tristate 'nfmark target and match support'
580 default m if NETFILTER_ADVANCED=n
582 This option adds the "MARK" target and "mark" match.
584 Netfilter mark matching allows you to match packets based on the
585 "nfmark" value in the packet.
586 The target allows you to create rules in the "mangle" table which alter
587 the netfilter mark (nfmark) field associated with the packet.
589 Prior to routing, the nfmark can influence the routing method (see
590 "Use netfilter MARK value as routing key") and can also be used by
591 other subsystems to change their behavior.
593 config NETFILTER_XT_CONNMARK
594 tristate 'ctmark target and match support'
595 depends on NF_CONNTRACK
596 depends on NETFILTER_ADVANCED
597 select NF_CONNTRACK_MARK
599 This option adds the "CONNMARK" target and "connmark" match.
601 Netfilter allows you to store a mark value per connection (a.k.a.
602 ctmark), similarly to the packet mark (nfmark). Using this
603 target and match, you can set and match on this mark.
605 config NETFILTER_XT_SET
606 tristate 'set target and match support'
608 depends on NETFILTER_ADVANCED
610 This option adds the "SET" target and "set" match.
612 Using this target and match, you can add/delete and match
613 elements in the sets created by ipset(8).
615 To compile it as a module, choose M here. If unsure, say N.
617 # alphabetically ordered list of targets
619 comment "Xtables targets"
621 config NETFILTER_XT_TARGET_AUDIT
622 tristate "AUDIT target support"
624 depends on NETFILTER_ADVANCED
626 This option adds a 'AUDIT' target, which can be used to create
627 audit records for packets dropped/accepted.
629 To compileit as a module, choose M here. If unsure, say N.
631 config NETFILTER_XT_TARGET_CHECKSUM
632 tristate "CHECKSUM target support"
633 depends on IP_NF_MANGLE || IP6_NF_MANGLE
634 depends on NETFILTER_ADVANCED
636 This option adds a `CHECKSUM' target, which can be used in the iptables mangle
639 You can use this target to compute and fill in the checksum in
640 a packet that lacks a checksum. This is particularly useful,
641 if you need to work around old applications such as dhcp clients,
642 that do not work well with checksum offloads, but don't want to disable
643 checksum offload in your device.
645 To compile it as a module, choose M here. If unsure, say N.
647 config NETFILTER_XT_TARGET_CLASSIFY
648 tristate '"CLASSIFY" target support'
649 depends on NETFILTER_ADVANCED
651 This option adds a `CLASSIFY' target, which enables the user to set
652 the priority of a packet. Some qdiscs can use this value for
653 classification, among these are:
655 atm, cbq, dsmark, pfifo_fast, htb, prio
657 To compile it as a module, choose M here. If unsure, say N.
659 config NETFILTER_XT_TARGET_CONNMARK
660 tristate '"CONNMARK" target support'
661 depends on NF_CONNTRACK
662 depends on NETFILTER_ADVANCED
663 select NETFILTER_XT_CONNMARK
665 This is a backwards-compat option for the user's convenience
666 (e.g. when running oldconfig). It selects
667 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
669 config NETFILTER_XT_TARGET_CONNSECMARK
670 tristate '"CONNSECMARK" target support'
671 depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
672 default m if NETFILTER_ADVANCED=n
674 The CONNSECMARK target copies security markings from packets
675 to connections, and restores security markings from connections
676 to packets (if the packets are not already marked). This would
677 normally be used in conjunction with the SECMARK target.
679 To compile it as a module, choose M here. If unsure, say N.
681 config NETFILTER_XT_TARGET_CT
682 tristate '"CT" target support'
683 depends on NF_CONNTRACK
684 depends on IP_NF_RAW || IP6_NF_RAW
685 depends on NETFILTER_ADVANCED
687 This options adds a `CT' target, which allows to specify initial
688 connection tracking parameters like events to be delivered and
689 the helper to be used.
691 To compile it as a module, choose M here. If unsure, say N.
693 config NETFILTER_XT_TARGET_DSCP
694 tristate '"DSCP" and "TOS" target support'
695 depends on IP_NF_MANGLE || IP6_NF_MANGLE
696 depends on NETFILTER_ADVANCED
698 This option adds a `DSCP' target, which allows you to manipulate
699 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
701 The DSCP field can have any value between 0x0 and 0x3f inclusive.
703 It also adds the "TOS" target, which allows you to create rules in
704 the "mangle" table which alter the Type Of Service field of an IPv4
705 or the Priority field of an IPv6 packet, prior to routing.
707 To compile it as a module, choose M here. If unsure, say N.
709 config NETFILTER_XT_TARGET_HL
710 tristate '"HL" hoplimit target support'
711 depends on IP_NF_MANGLE || IP6_NF_MANGLE
712 depends on NETFILTER_ADVANCED
714 This option adds the "HL" (for IPv6) and "TTL" (for IPv4)
715 targets, which enable the user to change the
716 hoplimit/time-to-live value of the IP header.
718 While it is safe to decrement the hoplimit/TTL value, the
719 modules also allow to increment and set the hoplimit value of
720 the header to arbitrary values. This is EXTREMELY DANGEROUS
721 since you can easily create immortal packets that loop
722 forever on the network.
724 config NETFILTER_XT_TARGET_HMARK
725 tristate '"HMARK" target support'
726 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
727 depends on NETFILTER_ADVANCED
729 This option adds the "HMARK" target.
731 The target allows you to create rules in the "raw" and "mangle" tables
732 which set the skbuff mark by means of hash calculation within a given
733 range. The nfmark can influence the routing method (see "Use netfilter
734 MARK value as routing key") and can also be used by other subsystems to
735 change their behaviour.
737 To compile it as a module, choose M here. If unsure, say N.
739 config NETFILTER_XT_TARGET_IDLETIMER
740 tristate "IDLETIMER target support"
741 depends on NETFILTER_ADVANCED
744 This option adds the `IDLETIMER' target. Each matching packet
745 resets the timer associated with label specified when the rule is
746 added. When the timer expires, it triggers a sysfs notification.
747 The remaining time for expiration can be read via sysfs.
749 To compile it as a module, choose M here. If unsure, say N.
751 config NETFILTER_XT_TARGET_LED
752 tristate '"LED" target support'
753 depends on LEDS_CLASS && LEDS_TRIGGERS
754 depends on NETFILTER_ADVANCED
756 This option adds a `LED' target, which allows you to blink LEDs in
757 response to particular packets passing through your machine.
759 This can be used to turn a spare LED into a network activity LED,
760 which only flashes in response to FTP transfers, for example. Or
761 you could have an LED which lights up for a minute or two every time
762 somebody connects to your machine via SSH.
764 You will need support for the "led" class to make this work.
766 To create an LED trigger for incoming SSH traffic:
767 iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000
769 Then attach the new trigger to an LED on your system:
770 echo netfilter-ssh > /sys/class/leds/<ledname>/trigger
772 For more information on the LEDs available on your system, see
773 Documentation/leds/leds-class.txt
775 config NETFILTER_XT_TARGET_LOG
776 tristate "LOG target support"
779 select NF_LOG_IPV6 if IPV6
780 default m if NETFILTER_ADVANCED=n
782 This option adds a `LOG' target, which allows you to create rules in
783 any iptables table which records the packet header to the syslog.
785 To compile it as a module, choose M here. If unsure, say N.
787 config NETFILTER_XT_TARGET_MARK
788 tristate '"MARK" target support'
789 depends on NETFILTER_ADVANCED
790 select NETFILTER_XT_MARK
792 This is a backwards-compat option for the user's convenience
793 (e.g. when running oldconfig). It selects
794 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
796 config NETFILTER_XT_NAT
797 tristate '"SNAT and DNAT" targets support'
800 This option enables the SNAT and DNAT targets.
802 To compile it as a module, choose M here. If unsure, say N.
804 config NETFILTER_XT_TARGET_NETMAP
805 tristate '"NETMAP" target support'
808 NETMAP is an implementation of static 1:1 NAT mapping of network
809 addresses. It maps the network address part, while keeping the host
812 To compile it as a module, choose M here. If unsure, say N.
814 config NETFILTER_XT_TARGET_NFLOG
815 tristate '"NFLOG" target support'
816 default m if NETFILTER_ADVANCED=n
817 select NETFILTER_NETLINK_LOG
819 This option enables the NFLOG target, which allows to LOG
820 messages through nfnetlink_log.
822 To compile it as a module, choose M here. If unsure, say N.
824 config NETFILTER_XT_TARGET_NFQUEUE
825 tristate '"NFQUEUE" target Support'
826 depends on NETFILTER_ADVANCED
827 select NETFILTER_NETLINK_QUEUE
829 This target replaced the old obsolete QUEUE target.
831 As opposed to QUEUE, it supports 65535 different queues,
834 To compile it as a module, choose M here. If unsure, say N.
836 config NETFILTER_XT_TARGET_NOTRACK
837 tristate '"NOTRACK" target support (DEPRECATED)'
838 depends on NF_CONNTRACK
839 depends on IP_NF_RAW || IP6_NF_RAW
840 depends on NETFILTER_ADVANCED
841 select NETFILTER_XT_TARGET_CT
843 config NETFILTER_XT_TARGET_RATEEST
844 tristate '"RATEEST" target support'
845 depends on NETFILTER_ADVANCED
847 This option adds a `RATEEST' target, which allows to measure
848 rates similar to TC estimators. The `rateest' match can be
849 used to match on the measured rates.
851 To compile it as a module, choose M here. If unsure, say N.
853 config NETFILTER_XT_TARGET_REDIRECT
854 tristate "REDIRECT target support"
856 select NF_NAT_REDIRECT
858 REDIRECT is a special case of NAT: all incoming connections are
859 mapped onto the incoming interface's address, causing the packets to
860 come to the local machine instead of passing through. This is
861 useful for transparent proxies.
863 To compile it as a module, choose M here. If unsure, say N.
865 config NETFILTER_XT_TARGET_TEE
866 tristate '"TEE" - packet cloning to alternate destination'
867 depends on NETFILTER_ADVANCED
868 depends on IPV6 || IPV6=n
869 depends on !NF_CONNTRACK || NF_CONNTRACK
871 select NF_DUP_IPV6 if IP6_NF_IPTABLES
873 This option adds a "TEE" target with which a packet can be cloned and
874 this clone be rerouted to another nexthop.
876 config NETFILTER_XT_TARGET_TPROXY
877 tristate '"TPROXY" target transparent proxying support'
878 depends on NETFILTER_XTABLES
879 depends on NETFILTER_ADVANCED
880 depends on IPV6 || IPV6=n
881 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
882 depends on IP_NF_MANGLE
883 select NF_DEFRAG_IPV4
884 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
886 This option adds a `TPROXY' target, which is somewhat similar to
887 REDIRECT. It can only be used in the mangle table and is useful
888 to redirect traffic to a transparent proxy. It does _not_ depend
889 on Netfilter connection tracking and NAT, unlike REDIRECT.
890 For it to work you will have to configure certain iptables rules
891 and use policy routing. For more information on how to set it up
892 see Documentation/networking/tproxy.txt.
894 To compile it as a module, choose M here. If unsure, say N.
896 config NETFILTER_XT_TARGET_TRACE
897 tristate '"TRACE" target support'
898 depends on IP_NF_RAW || IP6_NF_RAW
899 depends on NETFILTER_ADVANCED
901 The TRACE target allows you to mark packets so that the kernel
902 will log every rule which match the packets as those traverse
903 the tables, chains, rules.
905 If you want to compile it as a module, say M here and read
906 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
908 config NETFILTER_XT_TARGET_SECMARK
909 tristate '"SECMARK" target support'
910 depends on NETWORK_SECMARK
911 default m if NETFILTER_ADVANCED=n
913 The SECMARK target allows security marking of network
914 packets, for use with security subsystems.
916 To compile it as a module, choose M here. If unsure, say N.
918 config NETFILTER_XT_TARGET_TCPMSS
919 tristate '"TCPMSS" target support'
920 depends on IPV6 || IPV6=n
921 default m if NETFILTER_ADVANCED=n
923 This option adds a `TCPMSS' target, which allows you to alter the
924 MSS value of TCP SYN packets, to control the maximum size for that
925 connection (usually limiting it to your outgoing interface's MTU
928 This is used to overcome criminally braindead ISPs or servers which
929 block ICMP Fragmentation Needed packets. The symptoms of this
930 problem are that everything works fine from your Linux
931 firewall/router, but machines behind it can never exchange large
933 1) Web browsers connect, then hang with no data received.
934 2) Small mail works fine, but large emails hang.
935 3) ssh works fine, but scp hangs after initial handshaking.
937 Workaround: activate this option and add a rule to your firewall
940 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \
941 -j TCPMSS --clamp-mss-to-pmtu
943 To compile it as a module, choose M here. If unsure, say N.
945 config NETFILTER_XT_TARGET_TCPOPTSTRIP
946 tristate '"TCPOPTSTRIP" target support'
947 depends on IP_NF_MANGLE || IP6_NF_MANGLE
948 depends on NETFILTER_ADVANCED
950 This option adds a "TCPOPTSTRIP" target, which allows you to strip
951 TCP options from TCP packets.
953 # alphabetically ordered list of matches
955 comment "Xtables matches"
957 config NETFILTER_XT_MATCH_ADDRTYPE
958 tristate '"addrtype" address type match support'
959 default m if NETFILTER_ADVANCED=n
961 This option allows you to match what routing thinks of an address,
962 eg. UNICAST, LOCAL, BROADCAST, ...
964 If you want to compile it as a module, say M here and read
965 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
967 config NETFILTER_XT_MATCH_BPF
968 tristate '"bpf" match support'
969 depends on NETFILTER_ADVANCED
971 BPF matching applies a linux socket filter to each packet and
972 accepts those for which the filter returns non-zero.
974 To compile it as a module, choose M here. If unsure, say N.
976 config NETFILTER_XT_MATCH_CGROUP
977 tristate '"control group" match support'
978 depends on NETFILTER_ADVANCED
980 select CGROUP_NET_CLASSID
982 Socket/process control group matching allows you to match locally
983 generated packets based on which net_cls control group processes
986 config NETFILTER_XT_MATCH_CLUSTER
987 tristate '"cluster" match support'
988 depends on NF_CONNTRACK
989 depends on NETFILTER_ADVANCED
991 This option allows you to build work-load-sharing clusters of
992 network servers/stateful firewalls without having a dedicated
993 load-balancing router/server/switch. Basically, this match returns
994 true when the packet must be handled by this cluster node. Thus,
995 all nodes see all packets and this match decides which node handles
996 what packets. The work-load sharing algorithm is based on source
999 If you say Y or M here, try `iptables -m cluster --help` for
1002 config NETFILTER_XT_MATCH_COMMENT
1003 tristate '"comment" match support'
1004 depends on NETFILTER_ADVANCED
1006 This option adds a `comment' dummy-match, which allows you to put
1007 comments in your iptables ruleset.
1009 If you want to compile it as a module, say M here and read
1010 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1012 config NETFILTER_XT_MATCH_CONNBYTES
1013 tristate '"connbytes" per-connection counter match support'
1014 depends on NF_CONNTRACK
1015 depends on NETFILTER_ADVANCED
1017 This option adds a `connbytes' match, which allows you to match the
1018 number of bytes and/or packets for each direction within a connection.
1020 If you want to compile it as a module, say M here and read
1021 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1023 config NETFILTER_XT_MATCH_CONNLABEL
1024 tristate '"connlabel" match support'
1025 select NF_CONNTRACK_LABELS
1026 depends on NF_CONNTRACK
1027 depends on NETFILTER_ADVANCED
1029 This match allows you to test and assign userspace-defined labels names
1030 to a connection. The kernel only stores bit values - mapping
1031 names to bits is done by userspace.
1033 Unlike connmark, more than 32 flag bits may be assigned to a
1034 connection simultaneously.
1036 config NETFILTER_XT_MATCH_CONNLIMIT
1037 tristate '"connlimit" match support'
1038 depends on NF_CONNTRACK
1039 depends on NETFILTER_ADVANCED
1041 This match allows you to match against the number of parallel
1042 connections to a server per client IP address (or address block).
1044 config NETFILTER_XT_MATCH_CONNMARK
1045 tristate '"connmark" connection mark match support'
1046 depends on NF_CONNTRACK
1047 depends on NETFILTER_ADVANCED
1048 select NETFILTER_XT_CONNMARK
1050 This is a backwards-compat option for the user's convenience
1051 (e.g. when running oldconfig). It selects
1052 CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module).
1054 config NETFILTER_XT_MATCH_CONNTRACK
1055 tristate '"conntrack" connection tracking match support'
1056 depends on NF_CONNTRACK
1057 default m if NETFILTER_ADVANCED=n
1059 This is a general conntrack match module, a superset of the state match.
1061 It allows matching on additional conntrack information, which is
1062 useful in complex configurations, such as NAT gateways with multiple
1063 internet links or tunnels.
1065 To compile it as a module, choose M here. If unsure, say N.
1067 config NETFILTER_XT_MATCH_CPU
1068 tristate '"cpu" match support'
1069 depends on NETFILTER_ADVANCED
1071 CPU matching allows you to match packets based on the CPU
1072 currently handling the packet.
1074 To compile it as a module, choose M here. If unsure, say N.
1076 config NETFILTER_XT_MATCH_DCCP
1077 tristate '"dccp" protocol match support'
1078 depends on NETFILTER_ADVANCED
1081 With this option enabled, you will be able to use the iptables
1082 `dccp' match in order to match on DCCP source/destination ports
1085 If you want to compile it as a module, say M here and read
1086 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1088 config NETFILTER_XT_MATCH_DEVGROUP
1089 tristate '"devgroup" match support'
1090 depends on NETFILTER_ADVANCED
1092 This options adds a `devgroup' match, which allows to match on the
1093 device group a network device is assigned to.
1095 To compile it as a module, choose M here. If unsure, say N.
1097 config NETFILTER_XT_MATCH_DSCP
1098 tristate '"dscp" and "tos" match support'
1099 depends on NETFILTER_ADVANCED
1101 This option adds a `DSCP' match, which allows you to match against
1102 the IPv4/IPv6 header DSCP field (differentiated services codepoint).
1104 The DSCP field can have any value between 0x0 and 0x3f inclusive.
1106 It will also add a "tos" match, which allows you to match packets
1107 based on the Type Of Service fields of the IPv4 packet (which share
1108 the same bits as DSCP).
1110 To compile it as a module, choose M here. If unsure, say N.
1112 config NETFILTER_XT_MATCH_ECN
1113 tristate '"ecn" match support'
1114 depends on NETFILTER_ADVANCED
1116 This option adds an "ECN" match, which allows you to match against
1117 the IPv4 and TCP header ECN fields.
1119 To compile it as a module, choose M here. If unsure, say N.
1121 config NETFILTER_XT_MATCH_ESP
1122 tristate '"esp" match support'
1123 depends on NETFILTER_ADVANCED
1125 This match extension allows you to match a range of SPIs
1126 inside ESP header of IPSec packets.
1128 To compile it as a module, choose M here. If unsure, say N.
1130 config NETFILTER_XT_MATCH_HASHLIMIT
1131 tristate '"hashlimit" match support'
1132 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
1133 depends on NETFILTER_ADVANCED
1135 This option adds a `hashlimit' match.
1137 As opposed to `limit', this match dynamically creates a hash table
1138 of limit buckets, based on your selection of source/destination
1139 addresses and/or ports.
1141 It enables you to express policies like `10kpps for any given
1142 destination address' or `500pps from any given source address'
1145 config NETFILTER_XT_MATCH_HELPER
1146 tristate '"helper" match support'
1147 depends on NF_CONNTRACK
1148 depends on NETFILTER_ADVANCED
1150 Helper matching allows you to match packets in dynamic connections
1151 tracked by a conntrack-helper, ie. ip_conntrack_ftp
1153 To compile it as a module, choose M here. If unsure, say Y.
1155 config NETFILTER_XT_MATCH_HL
1156 tristate '"hl" hoplimit/TTL match support'
1157 depends on NETFILTER_ADVANCED
1159 HL matching allows you to match packets based on the hoplimit
1160 in the IPv6 header, or the time-to-live field in the IPv4
1161 header of the packet.
1163 config NETFILTER_XT_MATCH_IPCOMP
1164 tristate '"ipcomp" match support'
1165 depends on NETFILTER_ADVANCED
1167 This match extension allows you to match a range of CPIs(16 bits)
1168 inside IPComp header of IPSec packets.
1170 To compile it as a module, choose M here. If unsure, say N.
1172 config NETFILTER_XT_MATCH_IPRANGE
1173 tristate '"iprange" address range match support'
1174 depends on NETFILTER_ADVANCED
1176 This option adds a "iprange" match, which allows you to match based on
1177 an IP address range. (Normal iptables only matches on single addresses
1178 with an optional mask.)
1182 config NETFILTER_XT_MATCH_IPVS
1183 tristate '"ipvs" match support'
1185 depends on NETFILTER_ADVANCED
1186 depends on NF_CONNTRACK
1188 This option allows you to match against IPVS properties of a packet.
1192 config NETFILTER_XT_MATCH_L2TP
1193 tristate '"l2tp" match support'
1194 depends on NETFILTER_ADVANCED
1197 This option adds an "L2TP" match, which allows you to match against
1198 L2TP protocol header fields.
1200 To compile it as a module, choose M here. If unsure, say N.
1202 config NETFILTER_XT_MATCH_LENGTH
1203 tristate '"length" match support'
1204 depends on NETFILTER_ADVANCED
1206 This option allows you to match the length of a packet against a
1207 specific value or range of values.
1209 To compile it as a module, choose M here. If unsure, say N.
1211 config NETFILTER_XT_MATCH_LIMIT
1212 tristate '"limit" match support'
1213 depends on NETFILTER_ADVANCED
1215 limit matching allows you to control the rate at which a rule can be
1216 matched: mainly useful in combination with the LOG target ("LOG
1217 target support", below) and to avoid some Denial of Service attacks.
1219 To compile it as a module, choose M here. If unsure, say N.
1221 config NETFILTER_XT_MATCH_MAC
1222 tristate '"mac" address match support'
1223 depends on NETFILTER_ADVANCED
1225 MAC matching allows you to match packets based on the source
1226 Ethernet address of the packet.
1228 To compile it as a module, choose M here. If unsure, say N.
1230 config NETFILTER_XT_MATCH_MARK
1231 tristate '"mark" match support'
1232 depends on NETFILTER_ADVANCED
1233 select NETFILTER_XT_MARK
1235 This is a backwards-compat option for the user's convenience
1236 (e.g. when running oldconfig). It selects
1237 CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
1239 config NETFILTER_XT_MATCH_MULTIPORT
1240 tristate '"multiport" Multiple port match support'
1241 depends on NETFILTER_ADVANCED
1243 Multiport matching allows you to match TCP or UDP packets based on
1244 a series of source or destination ports: normally a rule can only
1245 match a single range of ports.
1247 To compile it as a module, choose M here. If unsure, say N.
1249 config NETFILTER_XT_MATCH_NFACCT
1250 tristate '"nfacct" match support'
1251 depends on NETFILTER_ADVANCED
1252 select NETFILTER_NETLINK_ACCT
1254 This option allows you to use the extended accounting through
1257 To compile it as a module, choose M here. If unsure, say N.
1259 config NETFILTER_XT_MATCH_OSF
1260 tristate '"osf" Passive OS fingerprint match'
1261 depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
1263 This option selects the Passive OS Fingerprinting match module
1264 that allows to passively match the remote operating system by
1265 analyzing incoming TCP SYN packets.
1267 Rules and loading software can be downloaded from
1268 http://www.ioremap.net/projects/osf
1270 To compile it as a module, choose M here. If unsure, say N.
1272 config NETFILTER_XT_MATCH_OWNER
1273 tristate '"owner" match support'
1274 depends on NETFILTER_ADVANCED
1276 Socket owner matching allows you to match locally-generated packets
1277 based on who created the socket: the user or group. It is also
1278 possible to check whether a socket actually exists.
1280 config NETFILTER_XT_MATCH_POLICY
1281 tristate 'IPsec "policy" match support'
1283 default m if NETFILTER_ADVANCED=n
1285 Policy matching allows you to match packets based on the
1286 IPsec policy that was used during decapsulation/will
1287 be used during encapsulation.
1289 To compile it as a module, choose M here. If unsure, say N.
1291 config NETFILTER_XT_MATCH_PHYSDEV
1292 tristate '"physdev" match support'
1293 depends on BRIDGE && BRIDGE_NETFILTER
1294 depends on NETFILTER_ADVANCED
1296 Physdev packet matching matches against the physical bridge ports
1297 the IP packet arrived on or will leave by.
1299 To compile it as a module, choose M here. If unsure, say N.
1301 config NETFILTER_XT_MATCH_PKTTYPE
1302 tristate '"pkttype" packet type match support'
1303 depends on NETFILTER_ADVANCED
1305 Packet type matching allows you to match a packet by
1306 its "class", eg. BROADCAST, MULTICAST, ...
1309 iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG
1311 To compile it as a module, choose M here. If unsure, say N.
1313 config NETFILTER_XT_MATCH_QUOTA
1314 tristate '"quota" match support'
1315 depends on NETFILTER_ADVANCED
1317 This option adds a `quota' match, which allows to match on a
1320 If you want to compile it as a module, say M here and read
1321 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1323 config NETFILTER_XT_MATCH_RATEEST
1324 tristate '"rateest" match support'
1325 depends on NETFILTER_ADVANCED
1326 select NETFILTER_XT_TARGET_RATEEST
1328 This option adds a `rateest' match, which allows to match on the
1329 rate estimated by the RATEEST target.
1331 To compile it as a module, choose M here. If unsure, say N.
1333 config NETFILTER_XT_MATCH_REALM
1334 tristate '"realm" match support'
1335 depends on NETFILTER_ADVANCED
1336 select IP_ROUTE_CLASSID
1338 This option adds a `realm' match, which allows you to use the realm
1339 key from the routing subsystem inside iptables.
1341 This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option
1344 If you want to compile it as a module, say M here and read
1345 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1347 config NETFILTER_XT_MATCH_RECENT
1348 tristate '"recent" match support'
1349 depends on NETFILTER_ADVANCED
1351 This match is used for creating one or many lists of recently
1352 used addresses and then matching against that/those list(s).
1354 Short options are available by using 'iptables -m recent -h'
1355 Official Website: <http://snowman.net/projects/ipt_recent/>
1357 config NETFILTER_XT_MATCH_SCTP
1358 tristate '"sctp" protocol match support'
1359 depends on NETFILTER_ADVANCED
1362 With this option enabled, you will be able to use the
1363 `sctp' match in order to match on SCTP source/destination ports
1364 and SCTP chunk types.
1366 If you want to compile it as a module, say M here and read
1367 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
1369 config NETFILTER_XT_MATCH_SOCKET
1370 tristate '"socket" match support'
1371 depends on NETFILTER_XTABLES
1372 depends on NETFILTER_ADVANCED
1373 depends on !NF_CONNTRACK || NF_CONNTRACK
1374 depends on IPV6 || IPV6=n
1375 depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n
1376 select NF_DEFRAG_IPV4
1377 select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES
1379 This option adds a `socket' match, which can be used to match
1380 packets for which a TCP or UDP socket lookup finds a valid socket.
1381 It can be used in combination with the MARK target and policy
1382 routing to implement full featured non-locally bound sockets.
1384 To compile it as a module, choose M here. If unsure, say N.
1386 config NETFILTER_XT_MATCH_STATE
1387 tristate '"state" match support'
1388 depends on NF_CONNTRACK
1389 default m if NETFILTER_ADVANCED=n
1391 Connection state matching allows you to match packets based on their
1392 relationship to a tracked connection (ie. previous packets). This
1393 is a powerful tool for packet classification.
1395 To compile it as a module, choose M here. If unsure, say N.
1397 config NETFILTER_XT_MATCH_STATISTIC
1398 tristate '"statistic" match support'
1399 depends on NETFILTER_ADVANCED
1401 This option adds a `statistic' match, which allows you to match
1402 on packets periodically or randomly with a given percentage.
1404 To compile it as a module, choose M here. If unsure, say N.
1406 config NETFILTER_XT_MATCH_STRING
1407 tristate '"string" match support'
1408 depends on NETFILTER_ADVANCED
1410 select TEXTSEARCH_KMP
1411 select TEXTSEARCH_BM
1412 select TEXTSEARCH_FSM
1414 This option adds a `string' match, which allows you to look for
1415 pattern matchings in packets.
1417 To compile it as a module, choose M here. If unsure, say N.
1419 config NETFILTER_XT_MATCH_TCPMSS
1420 tristate '"tcpmss" match support'
1421 depends on NETFILTER_ADVANCED
1423 This option adds a `tcpmss' match, which allows you to examine the
1424 MSS value of TCP SYN packets, which control the maximum packet size
1425 for that connection.
1427 To compile it as a module, choose M here. If unsure, say N.
1429 config NETFILTER_XT_MATCH_TIME
1430 tristate '"time" match support'
1431 depends on NETFILTER_ADVANCED
1433 This option adds a "time" match, which allows you to match based on
1434 the packet arrival time (at the machine which netfilter is running)
1435 on) or departure time/date (for locally generated packets).
1437 If you say Y here, try `iptables -m time --help` for
1440 If you want to compile it as a module, say M here.
1443 config NETFILTER_XT_MATCH_U32
1444 tristate '"u32" match support'
1445 depends on NETFILTER_ADVANCED
1447 u32 allows you to extract quantities of up to 4 bytes from a packet,
1448 AND them with specified masks, shift them by specified amounts and
1449 test whether the results are in any of a set of specified ranges.
1450 The specification of what to extract is general enough to skip over
1451 headers with lengths stored in the packet, as in IP or TCP header
1454 Details and examples are in the kernel module source.
1456 endif # NETFILTER_XTABLES
1460 source "net/netfilter/ipset/Kconfig"
1462 source "net/netfilter/ipvs/Kconfig"