Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 1 | menu "Core Netfilter Configuration" |
Patrick McHardy | 3a41135 | 2006-12-12 00:27:46 -0800 | [diff] [blame] | 2 | depends on NET && INET && NETFILTER |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 3 | |
Harald Welte | f9e815b | 2005-08-09 19:30:24 -0700 | [diff] [blame] | 4 | config NETFILTER_NETLINK |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 5 | tristate |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 6 | |
| 7 | config NETFILTER_NETLINK_QUEUE |
| 8 | tristate "Netfilter NFQUEUE over NFNETLINK interface" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 9 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 10 | select NETFILTER_NETLINK |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 11 | help |
Thomas Vögtle | 50b521a | 2006-03-22 13:53:48 -0800 | [diff] [blame] | 12 | If this option is enabled, the kernel will include support |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 13 | for queueing packets via NFNETLINK. |
| 14 | |
Harald Welte | 0597f26 | 2005-08-09 19:58:39 -0700 | [diff] [blame] | 15 | config NETFILTER_NETLINK_LOG |
| 16 | tristate "Netfilter LOG over NFNETLINK interface" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 17 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 18 | select NETFILTER_NETLINK |
Harald Welte | 0597f26 | 2005-08-09 19:58:39 -0700 | [diff] [blame] | 19 | help |
| 20 | If this option is enabled, the kernel will include support |
| 21 | for logging packets via NFNETLINK. |
| 22 | |
| 23 | This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms, |
| 24 | and is also scheduled to replace the old syslog-based ipt_LOG |
| 25 | and ip6t_LOG modules. |
| 26 | |
Patrick McHardy | ab4f58c | 2007-12-05 01:31:37 -0800 | [diff] [blame] | 27 | config NF_CONNTRACK |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 28 | tristate "Netfilter connection tracking support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 29 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 30 | help |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 31 | Connection tracking keeps a record of what packets have passed |
| 32 | through your machine, in order to figure out how they are related |
| 33 | into connections. |
| 34 | |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 35 | This is required to do Masquerading or other kinds of Network |
Russ Dill | b11c16b | 2008-07-08 02:35:27 -0700 | [diff] [blame] | 36 | Address Translation. It can also be used to enhance packet |
| 37 | filtering (see `Connection state match support' below). |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 38 | |
| 39 | To compile it as a module, choose M here. If unsure, say N. |
| 40 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 41 | if NF_CONNTRACK |
| 42 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 43 | config NF_CT_ACCT |
| 44 | bool "Connection tracking flow accounting" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 45 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 46 | help |
| 47 | If this option is enabled, the connection tracking code will |
| 48 | keep per-flow packet and byte counters. |
| 49 | |
| 50 | Those counters can be used for flow-based accounting or the |
| 51 | `connbytes' match. |
| 52 | |
Krzysztof Piotr Oledzki | 5840157 | 2008-07-21 10:01:34 -0700 | [diff] [blame] | 53 | Please note that currently this option only sets a default state. |
| 54 | You may change it at boot time with nf_conntrack.acct=0/1 kernel |
| 55 | paramater or by loading the nf_conntrack module with acct=0/1. |
| 56 | |
| 57 | You may also disable/enable it on a running system with: |
| 58 | sysctl net.netfilter.nf_conntrack_acct=0/1 |
| 59 | |
| 60 | This option will be removed in 2.6.29. |
| 61 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 62 | If unsure, say `N'. |
| 63 | |
| 64 | config NF_CONNTRACK_MARK |
| 65 | bool 'Connection mark tracking support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 66 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 67 | help |
| 68 | This option enables support for connection marks, used by the |
| 69 | `CONNMARK' target and `connmark' match. Similar to the mark value |
| 70 | of packets, but this mark value is kept in the conntrack session |
| 71 | instead of the individual packets. |
| 72 | |
James Morris | 7c9728c | 2006-06-09 00:31:46 -0700 | [diff] [blame] | 73 | config NF_CONNTRACK_SECMARK |
| 74 | bool 'Connection tracking security mark support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 75 | depends on NETWORK_SECMARK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 76 | default m if NETFILTER_ADVANCED=n |
James Morris | 7c9728c | 2006-06-09 00:31:46 -0700 | [diff] [blame] | 77 | help |
| 78 | This option enables security markings to be applied to |
| 79 | connections. Typically they are copied to connections from |
| 80 | packets using the CONNSECMARK target and copied back from |
| 81 | connections to packets with the same target, with the packets |
| 82 | being originally labeled via SECMARK. |
| 83 | |
| 84 | If unsure, say 'N'. |
| 85 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 86 | config NF_CONNTRACK_EVENTS |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 87 | bool "Connection tracking events" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 88 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 89 | help |
| 90 | If this option is enabled, the connection tracking code will |
| 91 | provide a notifier chain that can be used by other kernel code |
Thomas Vögtle | 50b521a | 2006-03-22 13:53:48 -0800 | [diff] [blame] | 92 | to get notified about changes in the connection tracking state. |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 93 | |
| 94 | If unsure, say `N'. |
| 95 | |
Patrick McHardy | 2bc7804 | 2008-03-20 15:15:55 +0100 | [diff] [blame] | 96 | config NF_CT_PROTO_DCCP |
| 97 | tristate 'DCCP protocol connection tracking support (EXPERIMENTAL)' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 98 | depends on EXPERIMENTAL |
Patrick McHardy | 2bc7804 | 2008-03-20 15:15:55 +0100 | [diff] [blame] | 99 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 100 | default IP_DCCP |
Patrick McHardy | 2bc7804 | 2008-03-20 15:15:55 +0100 | [diff] [blame] | 101 | help |
| 102 | With this option enabled, the layer 3 independent connection |
| 103 | tracking code will be able to do state tracking on DCCP connections. |
| 104 | |
| 105 | If unsure, say 'N'. |
| 106 | |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 107 | config NF_CT_PROTO_GRE |
| 108 | tristate |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 109 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 110 | config NF_CT_PROTO_SCTP |
Patrick McHardy | a3c4797 | 2006-12-02 22:11:01 -0800 | [diff] [blame] | 111 | tristate 'SCTP protocol connection tracking support (EXPERIMENTAL)' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 112 | depends on EXPERIMENTAL |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 113 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 114 | default IP_SCTP |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 115 | help |
| 116 | With this option enabled, the layer 3 independent connection |
| 117 | tracking code will be able to do state tracking on SCTP connections. |
| 118 | |
| 119 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 120 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 121 | |
Patrick McHardy | 59eecdf | 2007-07-14 20:48:44 -0700 | [diff] [blame] | 122 | config NF_CT_PROTO_UDPLITE |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 123 | tristate 'UDP-Lite protocol connection tracking support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 124 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 59eecdf | 2007-07-14 20:48:44 -0700 | [diff] [blame] | 125 | help |
| 126 | With this option enabled, the layer 3 independent connection |
| 127 | tracking code will be able to do state tracking on UDP-Lite |
| 128 | connections. |
| 129 | |
| 130 | To compile it as a module, choose M here. If unsure, say N. |
| 131 | |
Patrick McHardy | 1695890 | 2006-12-02 22:08:26 -0800 | [diff] [blame] | 132 | config NF_CONNTRACK_AMANDA |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 133 | tristate "Amanda backup protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 134 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 1695890 | 2006-12-02 22:08:26 -0800 | [diff] [blame] | 135 | select TEXTSEARCH |
| 136 | select TEXTSEARCH_KMP |
| 137 | help |
| 138 | If you are running the Amanda backup package <http://www.amanda.org/> |
| 139 | on this machine or machines that will be MASQUERADED through this |
| 140 | machine, then you may want to enable this feature. This allows the |
| 141 | connection tracking and natting code to allow the sub-channels that |
| 142 | Amanda requires for communication of the backup data, messages and |
| 143 | index. |
| 144 | |
| 145 | To compile it as a module, choose M here. If unsure, say N. |
| 146 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 147 | config NF_CONNTRACK_FTP |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 148 | tristate "FTP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 149 | default m if NETFILTER_ADVANCED=n |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 150 | help |
| 151 | Tracking FTP connections is problematic: special helpers are |
| 152 | required for tracking them, and doing masquerading and other forms |
| 153 | of Network Address Translation on them. |
| 154 | |
| 155 | This is FTP support on Layer 3 independent connection tracking. |
| 156 | Layer 3 independent connection tracking is experimental scheme |
| 157 | which generalize ip_conntrack to support other layer 3 protocols. |
| 158 | |
| 159 | To compile it as a module, choose M here. If unsure, say N. |
| 160 | |
Patrick McHardy | f587de0 | 2006-12-02 22:08:46 -0800 | [diff] [blame] | 161 | config NF_CONNTRACK_H323 |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 162 | tristate "H.323 protocol support" |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 163 | depends on (IPV6 || IPV6=n) |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 164 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f587de0 | 2006-12-02 22:08:46 -0800 | [diff] [blame] | 165 | help |
| 166 | H.323 is a VoIP signalling protocol from ITU-T. As one of the most |
| 167 | important VoIP protocols, it is widely used by voice hardware and |
| 168 | software including voice gateways, IP phones, Netmeeting, OpenPhone, |
| 169 | Gnomemeeting, etc. |
| 170 | |
| 171 | With this module you can support H.323 on a connection tracking/NAT |
| 172 | firewall. |
| 173 | |
| 174 | This module supports RAS, Fast Start, H.245 Tunnelling, Call |
| 175 | Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat, |
| 176 | whiteboard, file transfer, etc. For more information, please |
| 177 | visit http://nath323.sourceforge.net/. |
| 178 | |
| 179 | To compile it as a module, choose M here. If unsure, say N. |
| 180 | |
Patrick McHardy | 869f37d | 2006-12-02 22:09:06 -0800 | [diff] [blame] | 181 | config NF_CONNTRACK_IRC |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 182 | tristate "IRC protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 183 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | 869f37d | 2006-12-02 22:09:06 -0800 | [diff] [blame] | 184 | help |
| 185 | There is a commonly-used extension to IRC called |
| 186 | Direct Client-to-Client Protocol (DCC). This enables users to send |
| 187 | files to each other, and also chat to each other without the need |
| 188 | of a server. DCC Sending is used anywhere you send files over IRC, |
| 189 | and DCC Chat is most commonly used by Eggdrop bots. If you are |
| 190 | using NAT, this extension will enable you to send files and initiate |
| 191 | chats. Note that you do NOT need this extension to get files or |
| 192 | have others initiate chats, or everything else in IRC. |
| 193 | |
| 194 | To compile it as a module, choose M here. If unsure, say N. |
| 195 | |
Patrick McHardy | 92703ee | 2006-12-02 22:09:24 -0800 | [diff] [blame] | 196 | config NF_CONNTRACK_NETBIOS_NS |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 197 | tristate "NetBIOS name service protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 198 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 92703ee | 2006-12-02 22:09:24 -0800 | [diff] [blame] | 199 | help |
| 200 | NetBIOS name service requests are sent as broadcast messages from an |
| 201 | unprivileged port and responded to with unicast messages to the |
| 202 | same port. This make them hard to firewall properly because connection |
| 203 | tracking doesn't deal with broadcasts. This helper tracks locally |
| 204 | originating NetBIOS name service requests and the corresponding |
| 205 | responses. It relies on correct IP address configuration, specifically |
| 206 | netmask and broadcast address. When properly configured, the output |
| 207 | of "ip address show" should look similar to this: |
| 208 | |
| 209 | $ ip -4 address show eth0 |
| 210 | 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 |
| 211 | inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0 |
| 212 | |
| 213 | To compile it as a module, choose M here. If unsure, say N. |
| 214 | |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 215 | config NF_CONNTRACK_PPTP |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 216 | tristate "PPtP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 217 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 218 | select NF_CT_PROTO_GRE |
| 219 | help |
| 220 | This module adds support for PPTP (Point to Point Tunnelling |
| 221 | Protocol, RFC2637) connection tracking and NAT. |
| 222 | |
| 223 | If you are running PPTP sessions over a stateful firewall or NAT |
| 224 | box, you may want to enable this feature. |
| 225 | |
| 226 | Please note that not all PPTP modes of operation are supported yet. |
| 227 | Specifically these limitations exist: |
David Sterba | 3dde6ad | 2007-05-09 07:12:20 +0200 | [diff] [blame] | 228 | - Blindly assumes that control connections are always established |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 229 | in PNS->PAC direction. This is a violation of RFC2637. |
| 230 | - Only supports a single call within each session |
| 231 | |
| 232 | To compile it as a module, choose M here. If unsure, say N. |
| 233 | |
Michal Schmidt | 6fecd19 | 2007-02-07 15:05:12 -0800 | [diff] [blame] | 234 | config NF_CONNTRACK_SANE |
| 235 | tristate "SANE protocol support (EXPERIMENTAL)" |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 236 | depends on EXPERIMENTAL |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 237 | depends on NETFILTER_ADVANCED |
Michal Schmidt | 6fecd19 | 2007-02-07 15:05:12 -0800 | [diff] [blame] | 238 | help |
| 239 | SANE is a protocol for remote access to scanners as implemented |
| 240 | by the 'saned' daemon. Like FTP, it uses separate control and |
| 241 | data connections. |
| 242 | |
| 243 | With this module you can support SANE on a connection tracking |
| 244 | firewall. |
| 245 | |
| 246 | To compile it as a module, choose M here. If unsure, say N. |
| 247 | |
Patrick McHardy | 9fafcd7 | 2006-12-02 22:09:57 -0800 | [diff] [blame] | 248 | config NF_CONNTRACK_SIP |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 249 | tristate "SIP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 250 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | 9fafcd7 | 2006-12-02 22:09:57 -0800 | [diff] [blame] | 251 | help |
| 252 | SIP is an application-layer control protocol that can establish, |
| 253 | modify, and terminate multimedia sessions (conferences) such as |
| 254 | Internet telephony calls. With the ip_conntrack_sip and |
| 255 | the nf_nat_sip modules you can support the protocol on a connection |
| 256 | tracking/NATing firewall. |
| 257 | |
| 258 | To compile it as a module, choose M here. If unsure, say N. |
| 259 | |
Patrick McHardy | a536df3 | 2006-12-02 22:10:18 -0800 | [diff] [blame] | 260 | config NF_CONNTRACK_TFTP |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 261 | tristate "TFTP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 262 | depends on NETFILTER_ADVANCED |
Patrick McHardy | a536df3 | 2006-12-02 22:10:18 -0800 | [diff] [blame] | 263 | help |
| 264 | TFTP connection tracking helper, this is required depending |
| 265 | on how restrictive your ruleset is. |
| 266 | If you are using a tftp client behind -j SNAT or -j MASQUERADING |
| 267 | you will need this. |
| 268 | |
| 269 | To compile it as a module, choose M here. If unsure, say N. |
| 270 | |
Pablo Neira Ayuso | c1d10ad | 2006-01-05 12:19:05 -0800 | [diff] [blame] | 271 | config NF_CT_NETLINK |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 272 | tristate 'Connection tracking netlink interface' |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 273 | select NETFILTER_NETLINK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 274 | default m if NETFILTER_ADVANCED=n |
Pablo Neira Ayuso | c1d10ad | 2006-01-05 12:19:05 -0800 | [diff] [blame] | 275 | help |
| 276 | This option enables support for a netlink-based userspace interface |
| 277 | |
KOVACS Krisztian | 9ad2d74 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 278 | # transparent proxy support |
| 279 | config NETFILTER_TPROXY |
| 280 | tristate "Transparent proxying support (EXPERIMENTAL)" |
| 281 | depends on EXPERIMENTAL |
| 282 | depends on IP_NF_MANGLE |
| 283 | depends on NETFILTER_ADVANCED |
| 284 | help |
| 285 | This option enables transparent proxying support, that is, |
| 286 | support for handling non-locally bound IPv4 TCP and UDP sockets. |
| 287 | For it to work you will have to configure certain iptables rules |
| 288 | and use policy routing. For more information on how to set it up |
| 289 | see Documentation/networking/tproxy.txt. |
| 290 | |
| 291 | To compile it as a module, choose M here. If unsure, say N. |
| 292 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 293 | endif # NF_CONNTRACK |
| 294 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 295 | config NETFILTER_XTABLES |
| 296 | tristate "Netfilter Xtables support (required for ip_tables)" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 297 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 298 | help |
| 299 | This is required if you intend to use any of ip_tables, |
| 300 | ip6_tables or arp_tables. |
| 301 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 302 | if NETFILTER_XTABLES |
| 303 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 304 | # alphabetically ordered list of targets |
| 305 | |
| 306 | config NETFILTER_XT_TARGET_CLASSIFY |
| 307 | tristate '"CLASSIFY" target support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 308 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 309 | help |
| 310 | This option adds a `CLASSIFY' target, which enables the user to set |
| 311 | the priority of a packet. Some qdiscs can use this value for |
| 312 | classification, among these are: |
| 313 | |
| 314 | atm, cbq, dsmark, pfifo_fast, htb, prio |
| 315 | |
| 316 | To compile it as a module, choose M here. If unsure, say N. |
| 317 | |
| 318 | config NETFILTER_XT_TARGET_CONNMARK |
| 319 | tristate '"CONNMARK" target support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 320 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 321 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 322 | select NF_CONNTRACK_MARK |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 323 | help |
| 324 | This option adds a `CONNMARK' target, which allows one to manipulate |
| 325 | the connection mark value. Similar to the MARK target, but |
| 326 | affects the connection mark value rather than the packet mark value. |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 327 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 328 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 329 | <file:Documentation/kbuild/modules.txt>. The module will be called |
| 330 | ipt_CONNMARK.ko. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 331 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 332 | config NETFILTER_XT_TARGET_CONNSECMARK |
| 333 | tristate '"CONNSECMARK" target support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 334 | depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 335 | default m if NETFILTER_ADVANCED=n |
| 336 | help |
| 337 | The CONNSECMARK target copies security markings from packets |
| 338 | to connections, and restores security markings from connections |
| 339 | to packets (if the packets are not already marked). This would |
| 340 | normally be used in conjunction with the SECMARK target. |
| 341 | |
| 342 | To compile it as a module, choose M here. If unsure, say N. |
| 343 | |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 344 | config NETFILTER_XT_TARGET_DSCP |
Jan Engelhardt | c9fd496 | 2007-12-04 23:38:13 -0800 | [diff] [blame] | 345 | tristate '"DSCP" and "TOS" target support' |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 346 | depends on IP_NF_MANGLE || IP6_NF_MANGLE |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 347 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 348 | help |
| 349 | This option adds a `DSCP' target, which allows you to manipulate |
| 350 | the IPv4/IPv6 header DSCP field (differentiated services codepoint). |
| 351 | |
| 352 | The DSCP field can have any value between 0x0 and 0x3f inclusive. |
| 353 | |
Jan Engelhardt | c9fd496 | 2007-12-04 23:38:13 -0800 | [diff] [blame] | 354 | It also adds the "TOS" target, which allows you to create rules in |
| 355 | the "mangle" table which alter the Type Of Service field of an IPv4 |
Jan Engelhardt | 5c350e5 | 2007-12-04 23:39:09 -0800 | [diff] [blame] | 356 | or the Priority field of an IPv6 packet, prior to routing. |
Jan Engelhardt | c9fd496 | 2007-12-04 23:38:13 -0800 | [diff] [blame] | 357 | |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 358 | To compile it as a module, choose M here. If unsure, say N. |
| 359 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 360 | config NETFILTER_XT_TARGET_MARK |
| 361 | tristate '"MARK" target support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 362 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 363 | help |
| 364 | This option adds a `MARK' target, which allows you to create rules |
| 365 | in the `mangle' table which alter the netfilter mark (nfmark) field |
| 366 | associated with the packet prior to routing. This can change |
| 367 | the routing method (see `Use netfilter MARK value as routing |
| 368 | key') and can also be used by other subsystems to change their |
| 369 | behavior. |
| 370 | |
| 371 | To compile it as a module, choose M here. If unsure, say N. |
| 372 | |
Patrick McHardy | baf7b1e | 2006-11-29 02:35:38 +0100 | [diff] [blame] | 373 | config NETFILTER_XT_TARGET_NFLOG |
| 374 | tristate '"NFLOG" target support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 375 | default m if NETFILTER_ADVANCED=n |
Eric Leblond | 293a4f2 | 2008-12-10 17:24:33 -0800 | [diff] [blame] | 376 | select NETFILTER_NETLINK_LOG |
Patrick McHardy | baf7b1e | 2006-11-29 02:35:38 +0100 | [diff] [blame] | 377 | help |
| 378 | This option enables the NFLOG target, which allows to LOG |
Eric Leblond | 293a4f2 | 2008-12-10 17:24:33 -0800 | [diff] [blame] | 379 | messages through nfnetlink_log. |
Patrick McHardy | baf7b1e | 2006-11-29 02:35:38 +0100 | [diff] [blame] | 380 | |
| 381 | To compile it as a module, choose M here. If unsure, say N. |
| 382 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 383 | config NETFILTER_XT_TARGET_NFQUEUE |
| 384 | tristate '"NFQUEUE" target Support' |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 385 | depends on NETFILTER_ADVANCED |
| 386 | help |
| 387 | This target replaced the old obsolete QUEUE target. |
| 388 | |
| 389 | As opposed to QUEUE, it supports 65535 different queues, |
| 390 | not just one. |
| 391 | |
| 392 | To compile it as a module, choose M here. If unsure, say N. |
| 393 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 394 | config NETFILTER_XT_TARGET_NOTRACK |
| 395 | tristate '"NOTRACK" target support' |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 396 | depends on IP_NF_RAW || IP6_NF_RAW |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 397 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 398 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 399 | help |
| 400 | The NOTRACK target allows a select rule to specify |
| 401 | which packets *not* to enter the conntrack/NAT |
| 402 | subsystem with all the consequences (no ICMP error tracking, |
| 403 | no protocol helpers for the selected packets). |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 404 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 405 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 406 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 407 | |
Patrick McHardy | 5859034 | 2007-12-04 23:40:05 -0800 | [diff] [blame] | 408 | config NETFILTER_XT_TARGET_RATEEST |
| 409 | tristate '"RATEEST" target support' |
Patrick McHardy | b26e76b | 2008-01-14 23:30:56 -0800 | [diff] [blame] | 410 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 5859034 | 2007-12-04 23:40:05 -0800 | [diff] [blame] | 411 | help |
| 412 | This option adds a `RATEEST' target, which allows to measure |
| 413 | rates similar to TC estimators. The `rateest' match can be |
| 414 | used to match on the measured rates. |
| 415 | |
| 416 | To compile it as a module, choose M here. If unsure, say N. |
| 417 | |
KOVACS Krisztian | e843927 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 418 | config NETFILTER_XT_TARGET_TPROXY |
| 419 | tristate '"TPROXY" target support (EXPERIMENTAL)' |
| 420 | depends on EXPERIMENTAL |
| 421 | depends on NETFILTER_TPROXY |
| 422 | depends on NETFILTER_XTABLES |
| 423 | depends on NETFILTER_ADVANCED |
| 424 | select NF_DEFRAG_IPV4 |
| 425 | help |
| 426 | This option adds a `TPROXY' target, which is somewhat similar to |
| 427 | REDIRECT. It can only be used in the mangle table and is useful |
| 428 | to redirect traffic to a transparent proxy. It does _not_ depend |
| 429 | on Netfilter connection tracking and NAT, unlike REDIRECT. |
| 430 | |
| 431 | To compile it as a module, choose M here. If unsure, say N. |
| 432 | |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 433 | config NETFILTER_XT_TARGET_TRACE |
| 434 | tristate '"TRACE" target support' |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 435 | depends on IP_NF_RAW || IP6_NF_RAW |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 436 | depends on NETFILTER_ADVANCED |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 437 | help |
| 438 | The TRACE target allows you to mark packets so that the kernel |
| 439 | will log every rule which match the packets as those traverse |
| 440 | the tables, chains, rules. |
| 441 | |
| 442 | If you want to compile it as a module, say M here and read |
Dirk Hohndel | e403149 | 2007-10-30 13:37:19 -0700 | [diff] [blame] | 443 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 444 | |
James Morris | 5e6874c | 2006-06-09 00:30:57 -0700 | [diff] [blame] | 445 | config NETFILTER_XT_TARGET_SECMARK |
| 446 | tristate '"SECMARK" target support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 447 | depends on NETWORK_SECMARK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 448 | default m if NETFILTER_ADVANCED=n |
James Morris | 5e6874c | 2006-06-09 00:30:57 -0700 | [diff] [blame] | 449 | help |
| 450 | The SECMARK target allows security marking of network |
| 451 | packets, for use with security subsystems. |
| 452 | |
| 453 | To compile it as a module, choose M here. If unsure, say N. |
| 454 | |
Patrick McHardy | cdd289a | 2007-02-07 15:09:46 -0800 | [diff] [blame] | 455 | config NETFILTER_XT_TARGET_TCPMSS |
| 456 | tristate '"TCPMSS" target support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 457 | depends on (IPV6 || IPV6=n) |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 458 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | cdd289a | 2007-02-07 15:09:46 -0800 | [diff] [blame] | 459 | ---help--- |
| 460 | This option adds a `TCPMSS' target, which allows you to alter the |
| 461 | MSS value of TCP SYN packets, to control the maximum size for that |
| 462 | connection (usually limiting it to your outgoing interface's MTU |
| 463 | minus 40). |
| 464 | |
| 465 | This is used to overcome criminally braindead ISPs or servers which |
| 466 | block ICMP Fragmentation Needed packets. The symptoms of this |
| 467 | problem are that everything works fine from your Linux |
| 468 | firewall/router, but machines behind it can never exchange large |
| 469 | packets: |
| 470 | 1) Web browsers connect, then hang with no data received. |
| 471 | 2) Small mail works fine, but large emails hang. |
| 472 | 3) ssh works fine, but scp hangs after initial handshaking. |
| 473 | |
| 474 | Workaround: activate this option and add a rule to your firewall |
| 475 | configuration like: |
| 476 | |
| 477 | iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \ |
| 478 | -j TCPMSS --clamp-mss-to-pmtu |
| 479 | |
| 480 | To compile it as a module, choose M here. If unsure, say N. |
| 481 | |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 482 | config NETFILTER_XT_TARGET_TCPOPTSTRIP |
| 483 | tristate '"TCPOPTSTRIP" target support (EXPERIMENTAL)' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 484 | depends on EXPERIMENTAL |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 485 | depends on IP_NF_MANGLE || IP6_NF_MANGLE |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 486 | depends on NETFILTER_ADVANCED |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 487 | help |
| 488 | This option adds a "TCPOPTSTRIP" target, which allows you to strip |
| 489 | TCP options from TCP packets. |
| 490 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 491 | config NETFILTER_XT_MATCH_COMMENT |
| 492 | tristate '"comment" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 493 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 494 | help |
| 495 | This option adds a `comment' dummy-match, which allows you to put |
| 496 | comments in your iptables ruleset. |
| 497 | |
| 498 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 499 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 500 | |
| 501 | config NETFILTER_XT_MATCH_CONNBYTES |
| 502 | tristate '"connbytes" per-connection counter match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 503 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 504 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 505 | select NF_CT_ACCT |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 506 | help |
| 507 | This option adds a `connbytes' match, which allows you to match the |
| 508 | number of bytes and/or packets for each direction within a connection. |
| 509 | |
| 510 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 511 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 512 | |
Jan Engelhardt | 370786f | 2007-07-14 20:47:26 -0700 | [diff] [blame] | 513 | config NETFILTER_XT_MATCH_CONNLIMIT |
| 514 | tristate '"connlimit" match support"' |
Cornelia Huck | 3fd8f9e | 2007-07-18 02:38:32 -0700 | [diff] [blame] | 515 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 516 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | 370786f | 2007-07-14 20:47:26 -0700 | [diff] [blame] | 517 | ---help--- |
| 518 | This match allows you to match against the number of parallel |
| 519 | connections to a server per client IP address (or address block). |
| 520 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 521 | config NETFILTER_XT_MATCH_CONNMARK |
| 522 | tristate '"connmark" connection mark match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 523 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 524 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 525 | select NF_CONNTRACK_MARK |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 526 | help |
| 527 | This option adds a `connmark' match, which allows you to match the |
| 528 | connection mark value previously set for the session by `CONNMARK'. |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 529 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 530 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 531 | <file:Documentation/kbuild/modules.txt>. The module will be called |
| 532 | ipt_connmark.ko. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 533 | |
| 534 | config NETFILTER_XT_MATCH_CONNTRACK |
| 535 | tristate '"conntrack" connection tracking match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 536 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 537 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 538 | help |
| 539 | This is a general conntrack match module, a superset of the state match. |
| 540 | |
| 541 | It allows matching on additional conntrack information, which is |
| 542 | useful in complex configurations, such as NAT gateways with multiple |
| 543 | internet links or tunnels. |
| 544 | |
| 545 | To compile it as a module, choose M here. If unsure, say N. |
| 546 | |
| 547 | config NETFILTER_XT_MATCH_DCCP |
Jan Engelhardt | 4c37799 | 2007-12-04 23:31:59 -0800 | [diff] [blame] | 548 | tristate '"dccp" protocol match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 549 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 550 | default IP_DCCP |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 551 | help |
| 552 | With this option enabled, you will be able to use the iptables |
| 553 | `dccp' match in order to match on DCCP source/destination ports |
| 554 | and DCCP flags. |
| 555 | |
| 556 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 557 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 558 | |
Yasuyuki Kozakai | 9ba1627 | 2006-08-22 00:29:37 -0700 | [diff] [blame] | 559 | config NETFILTER_XT_MATCH_DSCP |
Jan Engelhardt | c3b33e6 | 2007-12-04 23:37:54 -0800 | [diff] [blame] | 560 | tristate '"dscp" and "tos" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 561 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9ba1627 | 2006-08-22 00:29:37 -0700 | [diff] [blame] | 562 | help |
| 563 | This option adds a `DSCP' match, which allows you to match against |
| 564 | the IPv4/IPv6 header DSCP field (differentiated services codepoint). |
| 565 | |
| 566 | The DSCP field can have any value between 0x0 and 0x3f inclusive. |
| 567 | |
Jan Engelhardt | c3b33e6 | 2007-12-04 23:37:54 -0800 | [diff] [blame] | 568 | It will also add a "tos" match, which allows you to match packets |
| 569 | based on the Type Of Service fields of the IPv4 packet (which share |
| 570 | the same bits as DSCP). |
| 571 | |
Yasuyuki Kozakai | 9ba1627 | 2006-08-22 00:29:37 -0700 | [diff] [blame] | 572 | To compile it as a module, choose M here. If unsure, say N. |
| 573 | |
Yasuyuki Kozakai | dc5ab2f | 2006-04-01 02:22:30 -0800 | [diff] [blame] | 574 | config NETFILTER_XT_MATCH_ESP |
Jan Engelhardt | 4c37799 | 2007-12-04 23:31:59 -0800 | [diff] [blame] | 575 | tristate '"esp" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 576 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | dc5ab2f | 2006-04-01 02:22:30 -0800 | [diff] [blame] | 577 | help |
| 578 | This match extension allows you to match a range of SPIs |
| 579 | inside ESP header of IPSec packets. |
| 580 | |
| 581 | To compile it as a module, choose M here. If unsure, say N. |
| 582 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 583 | config NETFILTER_XT_MATCH_HASHLIMIT |
| 584 | tristate '"hashlimit" match support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 585 | depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n) |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 586 | depends on NETFILTER_ADVANCED |
| 587 | help |
| 588 | This option adds a `hashlimit' match. |
| 589 | |
| 590 | As opposed to `limit', this match dynamically creates a hash table |
| 591 | of limit buckets, based on your selection of source/destination |
| 592 | addresses and/or ports. |
| 593 | |
| 594 | It enables you to express policies like `10kpps for any given |
| 595 | destination address' or `500pps from any given source address' |
| 596 | with a single rule. |
| 597 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 598 | config NETFILTER_XT_MATCH_HELPER |
| 599 | tristate '"helper" match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 600 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 601 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 602 | help |
| 603 | Helper matching allows you to match packets in dynamic connections |
| 604 | tracked by a conntrack-helper, ie. ip_conntrack_ftp |
| 605 | |
| 606 | To compile it as a module, choose M here. If unsure, say Y. |
| 607 | |
Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 608 | config NETFILTER_XT_MATCH_IPRANGE |
| 609 | tristate '"iprange" address range match support' |
Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 610 | depends on NETFILTER_ADVANCED |
| 611 | ---help--- |
| 612 | This option adds a "iprange" match, which allows you to match based on |
| 613 | an IP address range. (Normal iptables only matches on single addresses |
| 614 | with an optional mask.) |
| 615 | |
| 616 | If unsure, say M. |
| 617 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 618 | config NETFILTER_XT_MATCH_LENGTH |
| 619 | tristate '"length" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 620 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 621 | help |
| 622 | This option allows you to match the length of a packet against a |
| 623 | specific value or range of values. |
| 624 | |
| 625 | To compile it as a module, choose M here. If unsure, say N. |
| 626 | |
| 627 | config NETFILTER_XT_MATCH_LIMIT |
| 628 | tristate '"limit" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 629 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 630 | help |
| 631 | limit matching allows you to control the rate at which a rule can be |
| 632 | matched: mainly useful in combination with the LOG target ("LOG |
| 633 | target support", below) and to avoid some Denial of Service attacks. |
| 634 | |
| 635 | To compile it as a module, choose M here. If unsure, say N. |
| 636 | |
| 637 | config NETFILTER_XT_MATCH_MAC |
| 638 | tristate '"mac" address match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 639 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 640 | help |
| 641 | MAC matching allows you to match packets based on the source |
| 642 | Ethernet address of the packet. |
| 643 | |
| 644 | To compile it as a module, choose M here. If unsure, say N. |
| 645 | |
| 646 | config NETFILTER_XT_MATCH_MARK |
| 647 | tristate '"mark" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 648 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 649 | help |
| 650 | Netfilter mark matching allows you to match packets based on the |
| 651 | `nfmark' value in the packet. This can be set by the MARK target |
| 652 | (see below). |
| 653 | |
| 654 | To compile it as a module, choose M here. If unsure, say N. |
| 655 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 656 | config NETFILTER_XT_MATCH_MULTIPORT |
| 657 | tristate '"multiport" Multiple port match support' |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 658 | depends on NETFILTER_ADVANCED |
| 659 | help |
| 660 | Multiport matching allows you to match TCP or UDP packets based on |
| 661 | a series of source or destination ports: normally a rule can only |
| 662 | match a single range of ports. |
| 663 | |
| 664 | To compile it as a module, choose M here. If unsure, say N. |
| 665 | |
Jan Engelhardt | 0265ab4 | 2007-12-04 23:27:38 -0800 | [diff] [blame] | 666 | config NETFILTER_XT_MATCH_OWNER |
| 667 | tristate '"owner" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 668 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | 0265ab4 | 2007-12-04 23:27:38 -0800 | [diff] [blame] | 669 | ---help--- |
| 670 | Socket owner matching allows you to match locally-generated packets |
| 671 | based on who created the socket: the user or group. It is also |
| 672 | possible to check whether a socket actually exists. |
| 673 | |
Patrick McHardy | c4b8851 | 2006-03-20 18:03:40 -0800 | [diff] [blame] | 674 | config NETFILTER_XT_MATCH_POLICY |
| 675 | tristate 'IPsec "policy" match support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 676 | depends on XFRM |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 677 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | c4b8851 | 2006-03-20 18:03:40 -0800 | [diff] [blame] | 678 | help |
| 679 | Policy matching allows you to match packets based on the |
| 680 | IPsec policy that was used during decapsulation/will |
| 681 | be used during encapsulation. |
| 682 | |
| 683 | To compile it as a module, choose M here. If unsure, say N. |
| 684 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 685 | config NETFILTER_XT_MATCH_PHYSDEV |
| 686 | tristate '"physdev" match support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 687 | depends on BRIDGE && BRIDGE_NETFILTER |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 688 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 689 | help |
| 690 | Physdev packet matching matches against the physical bridge ports |
| 691 | the IP packet arrived on or will leave by. |
| 692 | |
| 693 | To compile it as a module, choose M here. If unsure, say N. |
| 694 | |
| 695 | config NETFILTER_XT_MATCH_PKTTYPE |
| 696 | tristate '"pkttype" packet type match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 697 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 698 | help |
| 699 | Packet type matching allows you to match a packet by |
| 700 | its "class", eg. BROADCAST, MULTICAST, ... |
| 701 | |
| 702 | Typical usage: |
| 703 | iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG |
| 704 | |
| 705 | To compile it as a module, choose M here. If unsure, say N. |
| 706 | |
Patrick McHardy | 62b7743 | 2006-05-29 18:20:32 -0700 | [diff] [blame] | 707 | config NETFILTER_XT_MATCH_QUOTA |
| 708 | tristate '"quota" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 709 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 62b7743 | 2006-05-29 18:20:32 -0700 | [diff] [blame] | 710 | help |
| 711 | This option adds a `quota' match, which allows to match on a |
| 712 | byte counter. |
| 713 | |
| 714 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 715 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Patrick McHardy | 62b7743 | 2006-05-29 18:20:32 -0700 | [diff] [blame] | 716 | |
Patrick McHardy | 50c164a | 2007-12-04 13:02:19 +0100 | [diff] [blame] | 717 | config NETFILTER_XT_MATCH_RATEEST |
| 718 | tristate '"rateest" match support' |
Patrick McHardy | b26e76b | 2008-01-14 23:30:56 -0800 | [diff] [blame] | 719 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 50c164a | 2007-12-04 13:02:19 +0100 | [diff] [blame] | 720 | select NETFILTER_XT_TARGET_RATEEST |
| 721 | help |
| 722 | This option adds a `rateest' match, which allows to match on the |
| 723 | rate estimated by the RATEEST target. |
| 724 | |
| 725 | To compile it as a module, choose M here. If unsure, say N. |
| 726 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 727 | config NETFILTER_XT_MATCH_REALM |
| 728 | tristate '"realm" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 729 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 730 | select NET_CLS_ROUTE |
| 731 | help |
| 732 | This option adds a `realm' match, which allows you to use the realm |
| 733 | key from the routing subsystem inside iptables. |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 734 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 735 | This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option |
| 736 | in tc world. |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 737 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 738 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 739 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 740 | |
Jan Engelhardt | e948b20 | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 741 | config NETFILTER_XT_MATCH_RECENT |
| 742 | tristate '"recent" match support' |
Jan Engelhardt | e948b20 | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 743 | depends on NETFILTER_ADVANCED |
| 744 | ---help--- |
| 745 | This match is used for creating one or many lists of recently |
| 746 | used addresses and then matching against that/those list(s). |
| 747 | |
| 748 | Short options are available by using 'iptables -m recent -h' |
| 749 | Official Website: <http://snowman.net/projects/ipt_recent/> |
| 750 | |
Jan Engelhardt | 079aa88 | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 751 | config NETFILTER_XT_MATCH_RECENT_PROC_COMPAT |
| 752 | bool 'Enable obsolete /proc/net/ipt_recent' |
| 753 | depends on NETFILTER_XT_MATCH_RECENT && PROC_FS |
| 754 | ---help--- |
| 755 | This option enables the old /proc/net/ipt_recent interface, |
| 756 | which has been obsoleted by /proc/net/xt_recent. |
| 757 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 758 | config NETFILTER_XT_MATCH_SCTP |
Patrick McHardy | d5af981 | 2006-07-24 22:55:29 -0700 | [diff] [blame] | 759 | tristate '"sctp" protocol match support (EXPERIMENTAL)' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 760 | depends on EXPERIMENTAL |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 761 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 762 | default IP_SCTP |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 763 | help |
| 764 | With this option enabled, you will be able to use the |
| 765 | `sctp' match in order to match on SCTP source/destination ports |
| 766 | and SCTP chunk types. |
| 767 | |
| 768 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 769 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 770 | |
KOVACS Krisztian | 136cdc7 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 771 | config NETFILTER_XT_MATCH_SOCKET |
| 772 | tristate '"socket" match support (EXPERIMENTAL)' |
| 773 | depends on EXPERIMENTAL |
| 774 | depends on NETFILTER_TPROXY |
| 775 | depends on NETFILTER_XTABLES |
| 776 | depends on NETFILTER_ADVANCED |
| 777 | select NF_DEFRAG_IPV4 |
| 778 | help |
| 779 | This option adds a `socket' match, which can be used to match |
| 780 | packets for which a TCP or UDP socket lookup finds a valid socket. |
| 781 | It can be used in combination with the MARK target and policy |
| 782 | routing to implement full featured non-locally bound sockets. |
| 783 | |
| 784 | To compile it as a module, choose M here. If unsure, say N. |
| 785 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 786 | config NETFILTER_XT_MATCH_STATE |
| 787 | tristate '"state" match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 788 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 789 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 790 | help |
| 791 | Connection state matching allows you to match packets based on their |
| 792 | relationship to a tracked connection (ie. previous packets). This |
| 793 | is a powerful tool for packet classification. |
| 794 | |
| 795 | To compile it as a module, choose M here. If unsure, say N. |
| 796 | |
Patrick McHardy | f338980 | 2006-05-29 18:21:00 -0700 | [diff] [blame] | 797 | config NETFILTER_XT_MATCH_STATISTIC |
| 798 | tristate '"statistic" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 799 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f338980 | 2006-05-29 18:21:00 -0700 | [diff] [blame] | 800 | help |
Patrick McHardy | 68c1692 | 2006-06-27 03:02:14 -0700 | [diff] [blame] | 801 | This option adds a `statistic' match, which allows you to match |
| 802 | on packets periodically or randomly with a given percentage. |
| 803 | |
| 804 | To compile it as a module, choose M here. If unsure, say N. |
Patrick McHardy | f338980 | 2006-05-29 18:21:00 -0700 | [diff] [blame] | 805 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 806 | config NETFILTER_XT_MATCH_STRING |
| 807 | tristate '"string" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 808 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 809 | select TEXTSEARCH |
| 810 | select TEXTSEARCH_KMP |
| 811 | select TEXTSEARCH_BM |
| 812 | select TEXTSEARCH_FSM |
| 813 | help |
| 814 | This option adds a `string' match, which allows you to look for |
| 815 | pattern matchings in packets. |
| 816 | |
| 817 | To compile it as a module, choose M here. If unsure, say N. |
| 818 | |
| 819 | config NETFILTER_XT_MATCH_TCPMSS |
| 820 | tristate '"tcpmss" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 821 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 822 | help |
| 823 | This option adds a `tcpmss' match, which allows you to examine the |
| 824 | MSS value of TCP SYN packets, which control the maximum packet size |
| 825 | for that connection. |
| 826 | |
| 827 | To compile it as a module, choose M here. If unsure, say N. |
| 828 | |
Jan Engelhardt | ee4411a | 2007-09-28 14:46:43 -0700 | [diff] [blame] | 829 | config NETFILTER_XT_MATCH_TIME |
| 830 | tristate '"time" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 831 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | ee4411a | 2007-09-28 14:46:43 -0700 | [diff] [blame] | 832 | ---help--- |
| 833 | This option adds a "time" match, which allows you to match based on |
| 834 | the packet arrival time (at the machine which netfilter is running) |
| 835 | on) or departure time/date (for locally generated packets). |
| 836 | |
| 837 | If you say Y here, try `iptables -m time --help` for |
| 838 | more information. |
| 839 | |
| 840 | If you want to compile it as a module, say M here. |
| 841 | If unsure, say N. |
| 842 | |
Jan Engelhardt | 1b50b8a | 2007-07-07 22:20:36 -0700 | [diff] [blame] | 843 | config NETFILTER_XT_MATCH_U32 |
| 844 | tristate '"u32" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 845 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | 1b50b8a | 2007-07-07 22:20:36 -0700 | [diff] [blame] | 846 | ---help--- |
| 847 | u32 allows you to extract quantities of up to 4 bytes from a packet, |
| 848 | AND them with specified masks, shift them by specified amounts and |
| 849 | test whether the results are in any of a set of specified ranges. |
| 850 | The specification of what to extract is general enough to skip over |
| 851 | headers with lengths stored in the packet, as in IP or TCP header |
| 852 | lengths. |
| 853 | |
| 854 | Details and examples are in the kernel module source. |
| 855 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 856 | endif # NETFILTER_XTABLES |
Harald Welte | a6c1cd5 | 2006-02-13 15:42:48 -0800 | [diff] [blame] | 857 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 858 | endmenu |
Harald Welte | f9e815b | 2005-08-09 19:30:24 -0700 | [diff] [blame] | 859 | |
Julius Volz | cb7f6a7 | 2008-09-19 12:32:57 +0200 | [diff] [blame] | 860 | source "net/netfilter/ipvs/Kconfig" |