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