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 | |
Pablo Neira | e687ad6 | 2015-05-13 18:19:38 +0200 | [diff] [blame] | 4 | config NETFILTER_INGRESS |
| 5 | bool "Netfilter ingress support" |
Pablo Neira Ayuso | 529985d | 2015-05-26 18:41:12 +0200 | [diff] [blame] | 6 | default y |
Pablo Neira | e687ad6 | 2015-05-13 18:19:38 +0200 | [diff] [blame] | 7 | select NET_INGRESS |
| 8 | help |
| 9 | This allows you to classify packets from ingress using the Netfilter |
| 10 | infrastructure. |
| 11 | |
Harald Welte | f9e815b | 2005-08-09 19:30:24 -0700 | [diff] [blame] | 12 | config NETFILTER_NETLINK |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 13 | tristate |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 14 | |
Pablo Neira Ayuso | 9413902 | 2011-12-23 14:19:50 +0100 | [diff] [blame] | 15 | config NETFILTER_NETLINK_ACCT |
| 16 | tristate "Netfilter NFACCT over NFNETLINK interface" |
| 17 | depends on NETFILTER_ADVANCED |
| 18 | select NETFILTER_NETLINK |
| 19 | help |
| 20 | If this option is enabled, the kernel will include support |
| 21 | for extended accounting via NFNETLINK. |
| 22 | |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 23 | config NETFILTER_NETLINK_QUEUE |
| 24 | tristate "Netfilter NFQUEUE over NFNETLINK interface" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 25 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 26 | select NETFILTER_NETLINK |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 27 | help |
Thomas Vögtle | 50b521a | 2006-03-22 13:53:48 -0800 | [diff] [blame] | 28 | If this option is enabled, the kernel will include support |
Harald Welte | 7af4cc3 | 2005-08-09 19:44:15 -0700 | [diff] [blame] | 29 | for queueing packets via NFNETLINK. |
| 30 | |
Harald Welte | 0597f26 | 2005-08-09 19:58:39 -0700 | [diff] [blame] | 31 | config NETFILTER_NETLINK_LOG |
| 32 | tristate "Netfilter LOG over NFNETLINK interface" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 33 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 34 | select NETFILTER_NETLINK |
Harald Welte | 0597f26 | 2005-08-09 19:58:39 -0700 | [diff] [blame] | 35 | help |
| 36 | If this option is enabled, the kernel will include support |
| 37 | for logging packets via NFNETLINK. |
| 38 | |
| 39 | This obsoletes the existing ipt_ULOG and ebg_ulog mechanisms, |
| 40 | and is also scheduled to replace the old syslog-based ipt_LOG |
| 41 | and ip6t_LOG modules. |
| 42 | |
Patrick McHardy | ab4f58c | 2007-12-05 01:31:37 -0800 | [diff] [blame] | 43 | config NF_CONNTRACK |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 44 | tristate "Netfilter connection tracking support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 45 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 46 | help |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 47 | Connection tracking keeps a record of what packets have passed |
| 48 | through your machine, in order to figure out how they are related |
| 49 | into connections. |
| 50 | |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 51 | This is required to do Masquerading or other kinds of Network |
Russ Dill | b11c16b | 2008-07-08 02:35:27 -0700 | [diff] [blame] | 52 | Address Translation. It can also be used to enhance packet |
| 53 | filtering (see `Connection state match support' below). |
Patrick McHardy | b321e14 | 2006-12-02 22:05:46 -0800 | [diff] [blame] | 54 | |
| 55 | To compile it as a module, choose M here. If unsure, say N. |
| 56 | |
Pablo Neira Ayuso | c187886 | 2014-06-28 18:39:01 +0200 | [diff] [blame] | 57 | config NF_LOG_COMMON |
| 58 | tristate |
| 59 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 60 | if NF_CONNTRACK |
| 61 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 62 | config NF_CONNTRACK_MARK |
| 63 | bool 'Connection mark tracking support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 64 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 65 | help |
| 66 | This option enables support for connection marks, used by the |
| 67 | `CONNMARK' target and `connmark' match. Similar to the mark value |
| 68 | of packets, but this mark value is kept in the conntrack session |
| 69 | instead of the individual packets. |
| 70 | |
James Morris | 7c9728c | 2006-06-09 00:31:46 -0700 | [diff] [blame] | 71 | config NF_CONNTRACK_SECMARK |
| 72 | bool 'Connection tracking security mark support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 73 | depends on NETWORK_SECMARK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 74 | default m if NETFILTER_ADVANCED=n |
James Morris | 7c9728c | 2006-06-09 00:31:46 -0700 | [diff] [blame] | 75 | help |
| 76 | This option enables security markings to be applied to |
| 77 | connections. Typically they are copied to connections from |
| 78 | packets using the CONNSECMARK target and copied back from |
| 79 | connections to packets with the same target, with the packets |
| 80 | being originally labeled via SECMARK. |
| 81 | |
| 82 | If unsure, say 'N'. |
| 83 | |
Patrick McHardy | 5d0aa2c | 2010-02-15 18:13:33 +0100 | [diff] [blame] | 84 | config NF_CONNTRACK_ZONES |
| 85 | bool 'Connection tracking zones' |
| 86 | depends on NETFILTER_ADVANCED |
| 87 | depends on NETFILTER_XT_TARGET_CT |
| 88 | help |
| 89 | This option enables support for connection tracking zones. |
| 90 | Normally, each connection needs to have a unique system wide |
| 91 | identity. Connection tracking zones allow to have multiple |
| 92 | connections using the same identity, as long as they are |
| 93 | contained in different zones. |
| 94 | |
| 95 | If unsure, say `N'. |
| 96 | |
Jan Engelhardt | 54b07dc | 2011-04-21 09:32:45 +0200 | [diff] [blame] | 97 | config NF_CONNTRACK_PROCFS |
| 98 | bool "Supply CT list in procfs (OBSOLETE)" |
| 99 | default y |
| 100 | depends on PROC_FS |
| 101 | ---help--- |
| 102 | This option enables for the list of known conntrack entries |
| 103 | to be shown in procfs under net/netfilter/nf_conntrack. This |
| 104 | is considered obsolete in favor of using the conntrack(8) |
| 105 | tool which uses Netlink. |
| 106 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 107 | config NF_CONNTRACK_EVENTS |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 108 | bool "Connection tracking events" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 109 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 110 | help |
| 111 | If this option is enabled, the connection tracking code will |
| 112 | provide a notifier chain that can be used by other kernel code |
Thomas Vögtle | 50b521a | 2006-03-22 13:53:48 -0800 | [diff] [blame] | 113 | to get notified about changes in the connection tracking state. |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 114 | |
| 115 | If unsure, say `N'. |
| 116 | |
Pablo Neira Ayuso | dd70507 | 2012-02-28 23:36:48 +0100 | [diff] [blame] | 117 | config NF_CONNTRACK_TIMEOUT |
| 118 | bool 'Connection tracking timeout' |
| 119 | depends on NETFILTER_ADVANCED |
| 120 | help |
| 121 | This option enables support for connection tracking timeout |
| 122 | extension. This allows you to attach timeout policies to flow |
| 123 | via the CT target. |
| 124 | |
| 125 | If unsure, say `N'. |
| 126 | |
Pablo Neira Ayuso | a992ca2 | 2011-01-19 16:00:07 +0100 | [diff] [blame] | 127 | config NF_CONNTRACK_TIMESTAMP |
| 128 | bool 'Connection tracking timestamping' |
| 129 | depends on NETFILTER_ADVANCED |
| 130 | help |
| 131 | This option enables support for connection tracking timestamping. |
| 132 | This allows you to store the flow start-time and to obtain |
| 133 | the flow-stop time (once it has been destroyed) via Connection |
| 134 | tracking events. |
| 135 | |
| 136 | If unsure, say `N'. |
| 137 | |
Florian Westphal | c539f01 | 2013-01-11 06:30:44 +0000 | [diff] [blame] | 138 | config NF_CONNTRACK_LABELS |
| 139 | bool |
| 140 | help |
| 141 | This option enables support for assigning user-defined flag bits |
| 142 | to connection tracking entries. It selected by the connlabel match. |
| 143 | |
Patrick McHardy | 2bc7804 | 2008-03-20 15:15:55 +0100 | [diff] [blame] | 144 | config NF_CT_PROTO_DCCP |
Kees Cook | 663ef0d | 2012-10-02 11:19:54 -0700 | [diff] [blame] | 145 | tristate 'DCCP protocol connection tracking support' |
Patrick McHardy | 2bc7804 | 2008-03-20 15:15:55 +0100 | [diff] [blame] | 146 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 147 | default IP_DCCP |
Patrick McHardy | 2bc7804 | 2008-03-20 15:15:55 +0100 | [diff] [blame] | 148 | help |
| 149 | With this option enabled, the layer 3 independent connection |
| 150 | tracking code will be able to do state tracking on DCCP connections. |
| 151 | |
| 152 | If unsure, say 'N'. |
| 153 | |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 154 | config NF_CT_PROTO_GRE |
| 155 | tristate |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 156 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 157 | config NF_CT_PROTO_SCTP |
Kees Cook | 663ef0d | 2012-10-02 11:19:54 -0700 | [diff] [blame] | 158 | tristate 'SCTP protocol connection tracking support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 159 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 160 | default IP_SCTP |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 161 | help |
| 162 | With this option enabled, the layer 3 independent connection |
| 163 | tracking code will be able to do state tracking on SCTP connections. |
| 164 | |
| 165 | If you want to compile it as a module, say M here and read |
Alexander E. Patrakov | 39f5fb3 | 2007-03-16 18:28:43 +0500 | [diff] [blame] | 166 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 167 | |
Patrick McHardy | 59eecdf | 2007-07-14 20:48:44 -0700 | [diff] [blame] | 168 | config NF_CT_PROTO_UDPLITE |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 169 | tristate 'UDP-Lite protocol connection tracking support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 170 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 59eecdf | 2007-07-14 20:48:44 -0700 | [diff] [blame] | 171 | help |
| 172 | With this option enabled, the layer 3 independent connection |
| 173 | tracking code will be able to do state tracking on UDP-Lite |
| 174 | connections. |
| 175 | |
| 176 | To compile it as a module, choose M here. If unsure, say N. |
| 177 | |
Patrick McHardy | 1695890 | 2006-12-02 22:08:26 -0800 | [diff] [blame] | 178 | config NF_CONNTRACK_AMANDA |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 179 | tristate "Amanda backup protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 180 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 1695890 | 2006-12-02 22:08:26 -0800 | [diff] [blame] | 181 | select TEXTSEARCH |
| 182 | select TEXTSEARCH_KMP |
| 183 | help |
| 184 | If you are running the Amanda backup package <http://www.amanda.org/> |
| 185 | on this machine or machines that will be MASQUERADED through this |
| 186 | machine, then you may want to enable this feature. This allows the |
| 187 | connection tracking and natting code to allow the sub-channels that |
| 188 | Amanda requires for communication of the backup data, messages and |
| 189 | index. |
| 190 | |
| 191 | To compile it as a module, choose M here. If unsure, say N. |
| 192 | |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 193 | config NF_CONNTRACK_FTP |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 194 | tristate "FTP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 195 | default m if NETFILTER_ADVANCED=n |
Yasuyuki Kozakai | 9fb9cbb | 2005-11-09 16:38:16 -0800 | [diff] [blame] | 196 | help |
| 197 | Tracking FTP connections is problematic: special helpers are |
| 198 | required for tracking them, and doing masquerading and other forms |
| 199 | of Network Address Translation on them. |
| 200 | |
| 201 | This is FTP support on Layer 3 independent connection tracking. |
| 202 | Layer 3 independent connection tracking is experimental scheme |
| 203 | which generalize ip_conntrack to support other layer 3 protocols. |
| 204 | |
| 205 | To compile it as a module, choose M here. If unsure, say N. |
| 206 | |
Patrick McHardy | f587de0 | 2006-12-02 22:08:46 -0800 | [diff] [blame] | 207 | config NF_CONNTRACK_H323 |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 208 | tristate "H.323 protocol support" |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 209 | depends on IPV6 || IPV6=n |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 210 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f587de0 | 2006-12-02 22:08:46 -0800 | [diff] [blame] | 211 | help |
| 212 | H.323 is a VoIP signalling protocol from ITU-T. As one of the most |
| 213 | important VoIP protocols, it is widely used by voice hardware and |
| 214 | software including voice gateways, IP phones, Netmeeting, OpenPhone, |
| 215 | Gnomemeeting, etc. |
| 216 | |
| 217 | With this module you can support H.323 on a connection tracking/NAT |
| 218 | firewall. |
| 219 | |
| 220 | This module supports RAS, Fast Start, H.245 Tunnelling, Call |
| 221 | Forwarding, RTP/RTCP and T.120 based audio, video, fax, chat, |
| 222 | whiteboard, file transfer, etc. For more information, please |
| 223 | visit http://nath323.sourceforge.net/. |
| 224 | |
| 225 | To compile it as a module, choose M here. If unsure, say N. |
| 226 | |
Patrick McHardy | 869f37d | 2006-12-02 22:09:06 -0800 | [diff] [blame] | 227 | config NF_CONNTRACK_IRC |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 228 | tristate "IRC protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 229 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | 869f37d | 2006-12-02 22:09:06 -0800 | [diff] [blame] | 230 | help |
| 231 | There is a commonly-used extension to IRC called |
| 232 | Direct Client-to-Client Protocol (DCC). This enables users to send |
| 233 | files to each other, and also chat to each other without the need |
| 234 | of a server. DCC Sending is used anywhere you send files over IRC, |
| 235 | and DCC Chat is most commonly used by Eggdrop bots. If you are |
| 236 | using NAT, this extension will enable you to send files and initiate |
| 237 | chats. Note that you do NOT need this extension to get files or |
| 238 | have others initiate chats, or everything else in IRC. |
| 239 | |
| 240 | To compile it as a module, choose M here. If unsure, say N. |
| 241 | |
Jiri Olsa | 93557f5 | 2011-01-18 18:12:24 +0100 | [diff] [blame] | 242 | config NF_CONNTRACK_BROADCAST |
| 243 | tristate |
| 244 | |
Patrick McHardy | 92703ee | 2006-12-02 22:09:24 -0800 | [diff] [blame] | 245 | config NF_CONNTRACK_NETBIOS_NS |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 246 | tristate "NetBIOS name service protocol support" |
Jiri Olsa | 93557f5 | 2011-01-18 18:12:24 +0100 | [diff] [blame] | 247 | select NF_CONNTRACK_BROADCAST |
Patrick McHardy | 92703ee | 2006-12-02 22:09:24 -0800 | [diff] [blame] | 248 | help |
| 249 | NetBIOS name service requests are sent as broadcast messages from an |
| 250 | unprivileged port and responded to with unicast messages to the |
| 251 | same port. This make them hard to firewall properly because connection |
| 252 | tracking doesn't deal with broadcasts. This helper tracks locally |
| 253 | originating NetBIOS name service requests and the corresponding |
| 254 | responses. It relies on correct IP address configuration, specifically |
| 255 | netmask and broadcast address. When properly configured, the output |
| 256 | of "ip address show" should look similar to this: |
| 257 | |
| 258 | $ ip -4 address show eth0 |
| 259 | 4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 |
| 260 | inet 172.16.2.252/24 brd 172.16.2.255 scope global eth0 |
| 261 | |
| 262 | To compile it as a module, choose M here. If unsure, say N. |
| 263 | |
Jiri Olsa | 93557f5 | 2011-01-18 18:12:24 +0100 | [diff] [blame] | 264 | config NF_CONNTRACK_SNMP |
| 265 | tristate "SNMP service protocol support" |
| 266 | depends on NETFILTER_ADVANCED |
| 267 | select NF_CONNTRACK_BROADCAST |
| 268 | help |
| 269 | SNMP service requests are sent as broadcast messages from an |
| 270 | unprivileged port and responded to with unicast messages to the |
| 271 | same port. This make them hard to firewall properly because connection |
| 272 | tracking doesn't deal with broadcasts. This helper tracks locally |
| 273 | originating SNMP service requests and the corresponding |
| 274 | responses. It relies on correct IP address configuration, specifically |
| 275 | netmask and broadcast address. |
| 276 | |
| 277 | To compile it as a module, choose M here. If unsure, say N. |
| 278 | |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 279 | config NF_CONNTRACK_PPTP |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 280 | tristate "PPtP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 281 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 282 | select NF_CT_PROTO_GRE |
| 283 | help |
| 284 | This module adds support for PPTP (Point to Point Tunnelling |
| 285 | Protocol, RFC2637) connection tracking and NAT. |
| 286 | |
| 287 | If you are running PPTP sessions over a stateful firewall or NAT |
| 288 | box, you may want to enable this feature. |
| 289 | |
| 290 | Please note that not all PPTP modes of operation are supported yet. |
| 291 | Specifically these limitations exist: |
David Sterba | 3dde6ad | 2007-05-09 07:12:20 +0200 | [diff] [blame] | 292 | - Blindly assumes that control connections are always established |
Patrick McHardy | f09943f | 2006-12-02 22:09:41 -0800 | [diff] [blame] | 293 | in PNS->PAC direction. This is a violation of RFC2637. |
| 294 | - Only supports a single call within each session |
| 295 | |
| 296 | To compile it as a module, choose M here. If unsure, say N. |
| 297 | |
Michal Schmidt | 6fecd19 | 2007-02-07 15:05:12 -0800 | [diff] [blame] | 298 | config NF_CONNTRACK_SANE |
Kees Cook | 663ef0d | 2012-10-02 11:19:54 -0700 | [diff] [blame] | 299 | tristate "SANE protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 300 | depends on NETFILTER_ADVANCED |
Michal Schmidt | 6fecd19 | 2007-02-07 15:05:12 -0800 | [diff] [blame] | 301 | help |
| 302 | SANE is a protocol for remote access to scanners as implemented |
| 303 | by the 'saned' daemon. Like FTP, it uses separate control and |
| 304 | data connections. |
| 305 | |
| 306 | With this module you can support SANE on a connection tracking |
| 307 | firewall. |
| 308 | |
| 309 | To compile it as a module, choose M here. If unsure, say N. |
| 310 | |
Patrick McHardy | 9fafcd7 | 2006-12-02 22:09:57 -0800 | [diff] [blame] | 311 | config NF_CONNTRACK_SIP |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 312 | tristate "SIP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 313 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | 9fafcd7 | 2006-12-02 22:09:57 -0800 | [diff] [blame] | 314 | help |
| 315 | SIP is an application-layer control protocol that can establish, |
| 316 | modify, and terminate multimedia sessions (conferences) such as |
| 317 | Internet telephony calls. With the ip_conntrack_sip and |
| 318 | the nf_nat_sip modules you can support the protocol on a connection |
| 319 | tracking/NATing firewall. |
| 320 | |
| 321 | To compile it as a module, choose M here. If unsure, say N. |
| 322 | |
Patrick McHardy | a536df3 | 2006-12-02 22:10:18 -0800 | [diff] [blame] | 323 | config NF_CONNTRACK_TFTP |
Patrick McHardy | c9386cf | 2007-01-04 12:16:06 -0800 | [diff] [blame] | 324 | tristate "TFTP protocol support" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 325 | depends on NETFILTER_ADVANCED |
Patrick McHardy | a536df3 | 2006-12-02 22:10:18 -0800 | [diff] [blame] | 326 | help |
| 327 | TFTP connection tracking helper, this is required depending |
| 328 | on how restrictive your ruleset is. |
| 329 | If you are using a tftp client behind -j SNAT or -j MASQUERADING |
| 330 | you will need this. |
| 331 | |
| 332 | To compile it as a module, choose M here. If unsure, say N. |
| 333 | |
Pablo Neira Ayuso | c1d10ad | 2006-01-05 12:19:05 -0800 | [diff] [blame] | 334 | config NF_CT_NETLINK |
Patrick McHardy | 8ce22fc | 2008-01-14 23:31:36 -0800 | [diff] [blame] | 335 | tristate 'Connection tracking netlink interface' |
Patrick McHardy | 2eeeba3 | 2007-12-05 01:31:52 -0800 | [diff] [blame] | 336 | select NETFILTER_NETLINK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 337 | default m if NETFILTER_ADVANCED=n |
Pablo Neira Ayuso | c1d10ad | 2006-01-05 12:19:05 -0800 | [diff] [blame] | 338 | help |
| 339 | This option enables support for a netlink-based userspace interface |
| 340 | |
Pablo Neira Ayuso | 5097846 | 2012-02-28 19:13:48 +0100 | [diff] [blame] | 341 | config NF_CT_NETLINK_TIMEOUT |
| 342 | tristate 'Connection tracking timeout tuning via Netlink' |
| 343 | select NETFILTER_NETLINK |
| 344 | depends on NETFILTER_ADVANCED |
| 345 | help |
| 346 | This option enables support for connection tracking timeout |
| 347 | fine-grain tuning. This allows you to attach specific timeout |
| 348 | policies to flows, instead of using the global timeout policy. |
| 349 | |
| 350 | If unsure, say `N'. |
| 351 | |
Pablo Neira Ayuso | 6e9c2db | 2012-06-18 21:14:30 +0200 | [diff] [blame] | 352 | config NF_CT_NETLINK_HELPER |
| 353 | tristate 'Connection tracking helpers in user-space via Netlink' |
| 354 | select NETFILTER_NETLINK |
| 355 | depends on NF_CT_NETLINK |
| 356 | depends on NETFILTER_NETLINK_QUEUE |
Ken-ichirou MATSUZAWA | 83f3e94 | 2015-10-05 11:48:47 +0900 | [diff] [blame] | 357 | depends on NETFILTER_NETLINK_GLUE_CT |
Pablo Neira Ayuso | 6e9c2db | 2012-06-18 21:14:30 +0200 | [diff] [blame] | 358 | depends on NETFILTER_ADVANCED |
| 359 | help |
| 360 | This option enables the user-space connection tracking helpers |
| 361 | infrastructure. |
| 362 | |
| 363 | If unsure, say `N'. |
| 364 | |
Ken-ichirou MATSUZAWA | 83f3e94 | 2015-10-05 11:48:47 +0900 | [diff] [blame] | 365 | config NETFILTER_NETLINK_GLUE_CT |
Ken-ichirou MATSUZAWA | a29a9a5 | 2015-10-05 11:50:46 +0900 | [diff] [blame] | 366 | bool "NFQUEUE and NFLOG integration with Connection Tracking" |
Ken-ichirou MATSUZAWA | 83f3e94 | 2015-10-05 11:48:47 +0900 | [diff] [blame] | 367 | default n |
Ken-ichirou MATSUZAWA | a29a9a5 | 2015-10-05 11:50:46 +0900 | [diff] [blame] | 368 | depends on (NETFILTER_NETLINK_QUEUE || NETFILTER_NETLINK_LOG) && NF_CT_NETLINK |
Pablo Neira Ayuso | 7c62234 | 2012-06-19 02:10:57 +0200 | [diff] [blame] | 369 | help |
Ken-ichirou MATSUZAWA | a29a9a5 | 2015-10-05 11:50:46 +0900 | [diff] [blame] | 370 | If this option is enabled, NFQUEUE and NFLOG can include |
| 371 | Connection Tracking information together with the packet is |
| 372 | the enqueued via NFNETLINK. |
Pablo Neira Ayuso | 7c62234 | 2012-06-19 02:10:57 +0200 | [diff] [blame] | 373 | |
Patrick McHardy | c7232c9 | 2012-08-26 19:14:06 +0200 | [diff] [blame] | 374 | config NF_NAT |
| 375 | tristate |
| 376 | |
| 377 | config NF_NAT_NEEDED |
| 378 | bool |
| 379 | depends on NF_NAT |
| 380 | default y |
| 381 | |
| 382 | config NF_NAT_PROTO_DCCP |
| 383 | tristate |
| 384 | depends on NF_NAT && NF_CT_PROTO_DCCP |
| 385 | default NF_NAT && NF_CT_PROTO_DCCP |
| 386 | |
| 387 | config NF_NAT_PROTO_UDPLITE |
| 388 | tristate |
| 389 | depends on NF_NAT && NF_CT_PROTO_UDPLITE |
| 390 | default NF_NAT && NF_CT_PROTO_UDPLITE |
| 391 | |
| 392 | config NF_NAT_PROTO_SCTP |
| 393 | tristate |
| 394 | default NF_NAT && NF_CT_PROTO_SCTP |
| 395 | depends on NF_NAT && NF_CT_PROTO_SCTP |
| 396 | select LIBCRC32C |
| 397 | |
Patrick McHardy | ee6eb96 | 2012-08-26 19:14:22 +0200 | [diff] [blame] | 398 | config NF_NAT_AMANDA |
| 399 | tristate |
| 400 | depends on NF_CONNTRACK && NF_NAT |
| 401 | default NF_NAT && NF_CONNTRACK_AMANDA |
| 402 | |
Patrick McHardy | d33cbee | 2012-08-26 19:14:20 +0200 | [diff] [blame] | 403 | config NF_NAT_FTP |
| 404 | tristate |
| 405 | depends on NF_CONNTRACK && NF_NAT |
| 406 | default NF_NAT && NF_CONNTRACK_FTP |
| 407 | |
Pablo Neira Ayuso | 5901b6b | 2012-08-26 19:14:27 +0200 | [diff] [blame] | 408 | config NF_NAT_IRC |
| 409 | tristate |
| 410 | depends on NF_CONNTRACK && NF_NAT |
| 411 | default NF_NAT && NF_CONNTRACK_IRC |
| 412 | |
Patrick McHardy | 9a66482 | 2012-08-26 19:14:25 +0200 | [diff] [blame] | 413 | config NF_NAT_SIP |
| 414 | tristate |
| 415 | depends on NF_CONNTRACK && NF_NAT |
| 416 | default NF_NAT && NF_CONNTRACK_SIP |
| 417 | |
Pablo Neira Ayuso | 320ff56 | 2012-08-26 19:14:29 +0200 | [diff] [blame] | 418 | config NF_NAT_TFTP |
| 419 | tristate |
| 420 | depends on NF_CONNTRACK && NF_NAT |
| 421 | default NF_NAT && NF_CONNTRACK_TFTP |
| 422 | |
Pablo Neira Ayuso | b59eaf9 | 2014-11-26 12:46:50 +0100 | [diff] [blame] | 423 | config NF_NAT_REDIRECT |
| 424 | tristate "IPv4/IPv6 redirect support" |
| 425 | depends on NF_NAT |
| 426 | help |
| 427 | This is the kernel functionality to redirect packets to local |
| 428 | machine through NAT. |
| 429 | |
Patrick McHardy | 48b1de4 | 2013-08-27 08:50:14 +0200 | [diff] [blame] | 430 | config NETFILTER_SYNPROXY |
| 431 | tristate |
| 432 | |
Laszlo Attila Toth | 4b07066 | 2009-04-24 16:55:25 +0200 | [diff] [blame] | 433 | endif # NF_CONNTRACK |
| 434 | |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 435 | config NF_TABLES |
Eric Leblond | 5f291c2 | 2013-12-29 11:01:29 +0100 | [diff] [blame] | 436 | select NETFILTER_NETLINK |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 437 | tristate "Netfilter nf_tables support" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 438 | help |
| 439 | nftables is the new packet classification framework that intends to |
| 440 | replace the existing {ip,ip6,arp,eb}_tables infrastructure. It |
| 441 | provides a pseudo-state machine with an extensible instruction-set |
| 442 | (also known as expressions) that the userspace 'nft' utility |
| 443 | (http://www.netfilter.org/projects/nftables) uses to build the |
| 444 | rule-set. It also comes with the generic set infrastructure that |
| 445 | allows you to construct mappings between matchings and actions |
| 446 | for performance lookups. |
| 447 | |
| 448 | To compile it as a module, choose M here. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 449 | |
Pablo Neira Ayuso | f04e599 | 2015-03-05 14:56:15 +0100 | [diff] [blame] | 450 | if NF_TABLES |
| 451 | |
Patrick McHardy | 1d49144 | 2014-01-03 12:16:16 +0000 | [diff] [blame] | 452 | config NF_TABLES_INET |
Pablo Neira Ayuso | f04e599 | 2015-03-05 14:56:15 +0100 | [diff] [blame] | 453 | depends on IPV6 |
Patrick McHardy | 1d49144 | 2014-01-03 12:16:16 +0000 | [diff] [blame] | 454 | select NF_TABLES_IPV4 |
| 455 | select NF_TABLES_IPV6 |
| 456 | tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support" |
| 457 | help |
| 458 | This option enables support for a mixed IPv4/IPv6 "inet" table. |
| 459 | |
Pablo Neira Ayuso | ed6c413 | 2015-05-26 18:41:40 +0200 | [diff] [blame] | 460 | config NF_TABLES_NETDEV |
| 461 | tristate "Netfilter nf_tables netdev tables support" |
| 462 | help |
| 463 | This option enables support for the "netdev" table. |
| 464 | |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 465 | config NFT_EXTHDR |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 466 | tristate "Netfilter nf_tables IPv6 exthdr module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 467 | help |
| 468 | This option adds the "exthdr" expression that you can use to match |
| 469 | IPv6 extension headers. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 470 | |
| 471 | config NFT_META |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 472 | tristate "Netfilter nf_tables meta module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 473 | help |
| 474 | This option adds the "meta" expression that you can use to match and |
| 475 | to set packet metainformation such as the packet mark. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 476 | |
Laura Garcia Liebana | 91dbc6b | 2016-08-18 12:13:13 +0200 | [diff] [blame] | 477 | config NFT_NUMGEN |
| 478 | tristate "Netfilter nf_tables number generator module" |
| 479 | help |
| 480 | This option adds the number generator expression used to perform |
| 481 | incremental counting and random numbers bound to a upper limit. |
| 482 | |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 483 | config NFT_CT |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 484 | depends on NF_CONNTRACK |
| 485 | tristate "Netfilter nf_tables conntrack module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 486 | help |
| 487 | This option adds the "meta" expression that you can use to match |
| 488 | connection tracking information such as the flow state. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 489 | |
Pablo Neira Ayuso | 0ed6389 | 2016-08-09 16:11:46 +0200 | [diff] [blame] | 490 | config NFT_SET_RBTREE |
Patrick McHardy | 20a6934 | 2013-10-11 12:06:22 +0200 | [diff] [blame] | 491 | tristate "Netfilter nf_tables rbtree set module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 492 | help |
| 493 | This option adds the "rbtree" set type (Red Black tree) that is used |
| 494 | to build interval-based sets. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 495 | |
Pablo Neira Ayuso | 0ed6389 | 2016-08-09 16:11:46 +0200 | [diff] [blame] | 496 | config NFT_SET_HASH |
Patrick McHardy | 20a6934 | 2013-10-11 12:06:22 +0200 | [diff] [blame] | 497 | tristate "Netfilter nf_tables hash set module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 498 | help |
| 499 | This option adds the "hash" set type that is used to build one-way |
| 500 | mappings between matchings and actions. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 501 | |
| 502 | config NFT_COUNTER |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 503 | tristate "Netfilter nf_tables counter module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 504 | help |
| 505 | This option adds the "counter" expression that you can use to |
| 506 | include packet and byte counters in a rule. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 507 | |
| 508 | config NFT_LOG |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 509 | tristate "Netfilter nf_tables log module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 510 | help |
| 511 | This option adds the "log" expression that you can use to log |
| 512 | packets matching some criteria. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 513 | |
| 514 | config NFT_LIMIT |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 515 | tristate "Netfilter nf_tables limit module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 516 | help |
| 517 | This option adds the "limit" expression that you can use to |
| 518 | ratelimit rule matchings. |
Patrick McHardy | 9651851 | 2013-10-14 11:00:02 +0200 | [diff] [blame] | 519 | |
Arturo Borrero | 9ba1f726 | 2014-09-08 13:45:00 +0200 | [diff] [blame] | 520 | config NFT_MASQ |
Arturo Borrero | 9ba1f726 | 2014-09-08 13:45:00 +0200 | [diff] [blame] | 521 | depends on NF_CONNTRACK |
| 522 | depends on NF_NAT |
| 523 | tristate "Netfilter nf_tables masquerade support" |
| 524 | help |
| 525 | This option adds the "masquerade" expression that you can use |
| 526 | to perform NAT in the masquerade flavour. |
| 527 | |
Arturo Borrero | e9105f1 | 2014-10-17 12:39:09 +0200 | [diff] [blame] | 528 | config NFT_REDIR |
Arturo Borrero | e9105f1 | 2014-10-17 12:39:09 +0200 | [diff] [blame] | 529 | depends on NF_CONNTRACK |
| 530 | depends on NF_NAT |
| 531 | tristate "Netfilter nf_tables redirect support" |
| 532 | help |
| 533 | This options adds the "redirect" expression that you can use |
| 534 | to perform NAT in the redirect flavour. |
| 535 | |
Tomasz Bursztyka | eb31628 | 2013-10-10 13:39:19 +0200 | [diff] [blame] | 536 | config NFT_NAT |
Tomasz Bursztyka | eb31628 | 2013-10-10 13:39:19 +0200 | [diff] [blame] | 537 | depends on NF_CONNTRACK |
Pablo Neira Ayuso | 1e8430f | 2014-08-11 18:21:50 +0200 | [diff] [blame] | 538 | select NF_NAT |
Tomasz Bursztyka | eb31628 | 2013-10-10 13:39:19 +0200 | [diff] [blame] | 539 | tristate "Netfilter nf_tables nat module" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 540 | help |
| 541 | This option adds the "nat" expression that you can use to perform |
| 542 | typical Network Address Translation (NAT) packet transformations. |
Tomasz Bursztyka | eb31628 | 2013-10-10 13:39:19 +0200 | [diff] [blame] | 543 | |
Eric Leblond | 0aff078 | 2013-12-06 00:24:13 +0100 | [diff] [blame] | 544 | config NFT_QUEUE |
Eric Leblond | 0aff078 | 2013-12-06 00:24:13 +0100 | [diff] [blame] | 545 | depends on NETFILTER_NETLINK_QUEUE |
| 546 | tristate "Netfilter nf_tables queue module" |
| 547 | help |
| 548 | This is required if you intend to use the userspace queueing |
| 549 | infrastructure (also known as NFQUEUE) from nftables. |
| 550 | |
Pablo Neira Ayuso | 3d2f30a | 2016-08-18 01:46:06 +0200 | [diff] [blame] | 551 | config NFT_QUOTA |
| 552 | tristate "Netfilter nf_tables quota module" |
| 553 | help |
| 554 | This option adds the "quota" expression that you can use to match |
| 555 | enforce bytes quotas. |
| 556 | |
Eric Leblond | bee11dc | 2013-12-29 12:28:14 +0100 | [diff] [blame] | 557 | config NFT_REJECT |
Eric Leblond | bee11dc | 2013-12-29 12:28:14 +0100 | [diff] [blame] | 558 | default m if NETFILTER_ADVANCED=n |
| 559 | tristate "Netfilter nf_tables reject support" |
Pablo Neira Ayuso | d497c63 | 2013-12-30 15:09:18 +0100 | [diff] [blame] | 560 | help |
| 561 | This option adds the "reject" expression that you can use to |
| 562 | explicitly deny and notify via TCP reset/ICMP informational errors |
| 563 | unallowed traffic. |
Pablo Neira Ayuso | 0ca743a | 2013-10-14 00:06:06 +0200 | [diff] [blame] | 564 | |
Patrick McHardy | 05513e9 | 2014-02-05 15:03:39 +0000 | [diff] [blame] | 565 | config NFT_REJECT_INET |
| 566 | depends on NF_TABLES_INET |
| 567 | default NFT_REJECT |
| 568 | tristate |
| 569 | |
Pablo Neira Ayuso | 0ca743a | 2013-10-14 00:06:06 +0200 | [diff] [blame] | 570 | config NFT_COMPAT |
Pablo Neira Ayuso | 0ca743a | 2013-10-14 00:06:06 +0200 | [diff] [blame] | 571 | depends on NETFILTER_XTABLES |
| 572 | tristate "Netfilter x_tables over nf_tables module" |
| 573 | help |
| 574 | This is required if you intend to use any of existing |
| 575 | x_tables match/target extensions over the nf_tables |
| 576 | framework. |
| 577 | |
Laura Garcia Liebana | cb1b69b | 2016-08-11 18:02:07 +0200 | [diff] [blame] | 578 | config NFT_HASH |
| 579 | tristate "Netfilter nf_tables hash module" |
| 580 | help |
| 581 | This option adds the "hash" expression that you can use to perform |
| 582 | a hash operation on registers. |
| 583 | |
Pablo Neira Ayuso | 502061f | 2016-01-03 21:02:18 +0100 | [diff] [blame] | 584 | if NF_TABLES_NETDEV |
| 585 | |
| 586 | config NF_DUP_NETDEV |
| 587 | tristate "Netfilter packet duplication support" |
| 588 | help |
| 589 | This option enables the generic packet duplication infrastructure |
| 590 | for Netfilter. |
| 591 | |
| 592 | config NFT_DUP_NETDEV |
| 593 | tristate "Netfilter nf_tables netdev packet duplication support" |
| 594 | select NF_DUP_NETDEV |
| 595 | help |
| 596 | This option enables packet duplication for the "netdev" family. |
| 597 | |
Pablo Neira Ayuso | 39e6dea | 2015-11-25 13:39:38 +0100 | [diff] [blame] | 598 | config NFT_FWD_NETDEV |
| 599 | tristate "Netfilter nf_tables netdev packet forwarding support" |
| 600 | select NF_DUP_NETDEV |
| 601 | help |
| 602 | This option enables packet forwarding for the "netdev" family. |
| 603 | |
Pablo Neira Ayuso | 502061f | 2016-01-03 21:02:18 +0100 | [diff] [blame] | 604 | endif # NF_TABLES_NETDEV |
| 605 | |
Pablo Neira Ayuso | f04e599 | 2015-03-05 14:56:15 +0100 | [diff] [blame] | 606 | endif # NF_TABLES |
| 607 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 608 | config NETFILTER_XTABLES |
| 609 | tristate "Netfilter Xtables support (required for ip_tables)" |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 610 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 611 | help |
| 612 | This is required if you intend to use any of ip_tables, |
| 613 | ip6_tables or arp_tables. |
| 614 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 615 | if NETFILTER_XTABLES |
| 616 | |
Jan Engelhardt | 28b9498 | 2009-02-28 03:23:57 +0100 | [diff] [blame] | 617 | comment "Xtables combined modules" |
| 618 | |
| 619 | config NETFILTER_XT_MARK |
| 620 | tristate 'nfmark target and match support' |
| 621 | default m if NETFILTER_ADVANCED=n |
| 622 | ---help--- |
| 623 | This option adds the "MARK" target and "mark" match. |
| 624 | |
| 625 | Netfilter mark matching allows you to match packets based on the |
| 626 | "nfmark" value in the packet. |
| 627 | The target allows you to create rules in the "mangle" table which alter |
| 628 | the netfilter mark (nfmark) field associated with the packet. |
| 629 | |
Moritz Sichert | f150430 | 2016-06-30 11:46:28 +0200 | [diff] [blame] | 630 | Prior to routing, the nfmark can influence the routing method and can |
| 631 | also be used by other subsystems to change their behavior. |
Jan Engelhardt | 28b9498 | 2009-02-28 03:23:57 +0100 | [diff] [blame] | 632 | |
Jan Engelhardt | b8f00ba | 2010-02-26 14:20:32 +0100 | [diff] [blame] | 633 | config NETFILTER_XT_CONNMARK |
| 634 | tristate 'ctmark target and match support' |
| 635 | depends on NF_CONNTRACK |
| 636 | depends on NETFILTER_ADVANCED |
| 637 | select NF_CONNTRACK_MARK |
| 638 | ---help--- |
| 639 | This option adds the "CONNMARK" target and "connmark" match. |
| 640 | |
| 641 | Netfilter allows you to store a mark value per connection (a.k.a. |
| 642 | ctmark), similarly to the packet mark (nfmark). Using this |
| 643 | target and match, you can set and match on this mark. |
| 644 | |
Jozsef Kadlecsik | d956798 | 2011-02-01 15:56:00 +0100 | [diff] [blame] | 645 | config NETFILTER_XT_SET |
| 646 | tristate 'set target and match support' |
| 647 | depends on IP_SET |
| 648 | depends on NETFILTER_ADVANCED |
| 649 | help |
| 650 | This option adds the "SET" target and "set" match. |
| 651 | |
| 652 | Using this target and match, you can add/delete and match |
| 653 | elements in the sets created by ipset(8). |
| 654 | |
| 655 | To compile it as a module, choose M here. If unsure, say N. |
| 656 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 657 | # alphabetically ordered list of targets |
| 658 | |
Jan Engelhardt | 44c5873 | 2010-02-26 14:14:22 +0100 | [diff] [blame] | 659 | comment "Xtables targets" |
| 660 | |
Thomas Graf | 43f393c | 2011-01-16 18:10:28 +0100 | [diff] [blame] | 661 | config NETFILTER_XT_TARGET_AUDIT |
| 662 | tristate "AUDIT target support" |
| 663 | depends on AUDIT |
| 664 | depends on NETFILTER_ADVANCED |
| 665 | ---help--- |
| 666 | This option adds a 'AUDIT' target, which can be used to create |
| 667 | audit records for packets dropped/accepted. |
| 668 | |
| 669 | To compileit as a module, choose M here. If unsure, say N. |
| 670 | |
Michael S. Tsirkin | edf0e1f | 2010-07-15 17:20:46 +0200 | [diff] [blame] | 671 | config NETFILTER_XT_TARGET_CHECKSUM |
| 672 | tristate "CHECKSUM target support" |
| 673 | depends on IP_NF_MANGLE || IP6_NF_MANGLE |
| 674 | depends on NETFILTER_ADVANCED |
| 675 | ---help--- |
| 676 | This option adds a `CHECKSUM' target, which can be used in the iptables mangle |
| 677 | table. |
| 678 | |
| 679 | You can use this target to compute and fill in the checksum in |
| 680 | a packet that lacks a checksum. This is particularly useful, |
| 681 | if you need to work around old applications such as dhcp clients, |
| 682 | that do not work well with checksum offloads, but don't want to disable |
| 683 | checksum offload in your device. |
| 684 | |
| 685 | To compile it as a module, choose M here. If unsure, say N. |
| 686 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 687 | config NETFILTER_XT_TARGET_CLASSIFY |
| 688 | tristate '"CLASSIFY" target support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 689 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 690 | help |
| 691 | This option adds a `CLASSIFY' target, which enables the user to set |
| 692 | the priority of a packet. Some qdiscs can use this value for |
| 693 | classification, among these are: |
| 694 | |
| 695 | atm, cbq, dsmark, pfifo_fast, htb, prio |
| 696 | |
| 697 | To compile it as a module, choose M here. If unsure, say N. |
| 698 | |
| 699 | config NETFILTER_XT_TARGET_CONNMARK |
| 700 | tristate '"CONNMARK" target support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 701 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 702 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | b8f00ba | 2010-02-26 14:20:32 +0100 | [diff] [blame] | 703 | select NETFILTER_XT_CONNMARK |
| 704 | ---help--- |
| 705 | This is a backwards-compat option for the user's convenience |
| 706 | (e.g. when running oldconfig). It selects |
| 707 | CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module). |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 708 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 709 | config NETFILTER_XT_TARGET_CONNSECMARK |
| 710 | tristate '"CONNSECMARK" target support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 711 | depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 712 | default m if NETFILTER_ADVANCED=n |
| 713 | help |
| 714 | The CONNSECMARK target copies security markings from packets |
| 715 | to connections, and restores security markings from connections |
| 716 | to packets (if the packets are not already marked). This would |
| 717 | normally be used in conjunction with the SECMARK target. |
| 718 | |
| 719 | To compile it as a module, choose M here. If unsure, say N. |
| 720 | |
Patrick McHardy | 84f3bb9 | 2010-02-03 17:17:06 +0100 | [diff] [blame] | 721 | config NETFILTER_XT_TARGET_CT |
| 722 | tristate '"CT" target support' |
| 723 | depends on NF_CONNTRACK |
| 724 | depends on IP_NF_RAW || IP6_NF_RAW |
| 725 | depends on NETFILTER_ADVANCED |
| 726 | help |
| 727 | This options adds a `CT' target, which allows to specify initial |
| 728 | connection tracking parameters like events to be delivered and |
| 729 | the helper to be used. |
| 730 | |
| 731 | To compile it as a module, choose M here. If unsure, say N. |
| 732 | |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 733 | config NETFILTER_XT_TARGET_DSCP |
Jan Engelhardt | c9fd496 | 2007-12-04 23:38:13 -0800 | [diff] [blame] | 734 | tristate '"DSCP" and "TOS" target support' |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 735 | depends on IP_NF_MANGLE || IP6_NF_MANGLE |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 736 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 737 | help |
| 738 | This option adds a `DSCP' target, which allows you to manipulate |
| 739 | the IPv4/IPv6 header DSCP field (differentiated services codepoint). |
| 740 | |
| 741 | The DSCP field can have any value between 0x0 and 0x3f inclusive. |
| 742 | |
Jan Engelhardt | c9fd496 | 2007-12-04 23:38:13 -0800 | [diff] [blame] | 743 | It also adds the "TOS" target, which allows you to create rules in |
| 744 | the "mangle" table which alter the Type Of Service field of an IPv4 |
Jan Engelhardt | 5c350e5 | 2007-12-04 23:39:09 -0800 | [diff] [blame] | 745 | or the Priority field of an IPv6 packet, prior to routing. |
Jan Engelhardt | c9fd496 | 2007-12-04 23:38:13 -0800 | [diff] [blame] | 746 | |
Yasuyuki Kozakai | a468701 | 2006-08-22 00:30:26 -0700 | [diff] [blame] | 747 | To compile it as a module, choose M here. If unsure, say N. |
| 748 | |
Jan Engelhardt | 563d36e | 2009-02-18 18:38:40 +0100 | [diff] [blame] | 749 | config NETFILTER_XT_TARGET_HL |
| 750 | tristate '"HL" hoplimit target support' |
| 751 | depends on IP_NF_MANGLE || IP6_NF_MANGLE |
| 752 | depends on NETFILTER_ADVANCED |
| 753 | ---help--- |
| 754 | This option adds the "HL" (for IPv6) and "TTL" (for IPv4) |
| 755 | targets, which enable the user to change the |
| 756 | hoplimit/time-to-live value of the IP header. |
| 757 | |
| 758 | While it is safe to decrement the hoplimit/TTL value, the |
| 759 | modules also allow to increment and set the hoplimit value of |
| 760 | the header to arbitrary values. This is EXTREMELY DANGEROUS |
| 761 | since you can easily create immortal packets that loop |
| 762 | forever on the network. |
| 763 | |
Hans Schillstrom | cf308a1 | 2012-05-02 07:49:47 +0000 | [diff] [blame] | 764 | config NETFILTER_XT_TARGET_HMARK |
| 765 | tristate '"HMARK" target support' |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 766 | depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n |
Hans Schillstrom | cf308a1 | 2012-05-02 07:49:47 +0000 | [diff] [blame] | 767 | depends on NETFILTER_ADVANCED |
| 768 | ---help--- |
| 769 | This option adds the "HMARK" target. |
| 770 | |
| 771 | The target allows you to create rules in the "raw" and "mangle" tables |
| 772 | which set the skbuff mark by means of hash calculation within a given |
Moritz Sichert | f150430 | 2016-06-30 11:46:28 +0200 | [diff] [blame] | 773 | range. The nfmark can influence the routing method and can also be used |
| 774 | by other subsystems to change their behaviour. |
Hans Schillstrom | cf308a1 | 2012-05-02 07:49:47 +0000 | [diff] [blame] | 775 | |
| 776 | To compile it as a module, choose M here. If unsure, say N. |
| 777 | |
Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 778 | config NETFILTER_XT_TARGET_IDLETIMER |
| 779 | tristate "IDLETIMER target support" |
| 780 | depends on NETFILTER_ADVANCED |
| 781 | help |
| 782 | |
| 783 | This option adds the `IDLETIMER' target. Each matching packet |
| 784 | resets the timer associated with label specified when the rule is |
| 785 | added. When the timer expires, it triggers a sysfs notification. |
| 786 | The remaining time for expiration can be read via sysfs. |
| 787 | |
| 788 | To compile it as a module, choose M here. If unsure, say N. |
| 789 | |
Adam Nielsen | 268cb38 | 2009-02-20 10:55:14 +0100 | [diff] [blame] | 790 | config NETFILTER_XT_TARGET_LED |
| 791 | tristate '"LED" target support' |
Alex Riesen | 3ae16f1 | 2009-04-06 17:09:43 +0200 | [diff] [blame] | 792 | depends on LEDS_CLASS && LEDS_TRIGGERS |
Adam Nielsen | 268cb38 | 2009-02-20 10:55:14 +0100 | [diff] [blame] | 793 | depends on NETFILTER_ADVANCED |
| 794 | help |
| 795 | This option adds a `LED' target, which allows you to blink LEDs in |
| 796 | response to particular packets passing through your machine. |
| 797 | |
| 798 | This can be used to turn a spare LED into a network activity LED, |
| 799 | which only flashes in response to FTP transfers, for example. Or |
| 800 | you could have an LED which lights up for a minute or two every time |
| 801 | somebody connects to your machine via SSH. |
| 802 | |
| 803 | You will need support for the "led" class to make this work. |
| 804 | |
| 805 | To create an LED trigger for incoming SSH traffic: |
| 806 | iptables -A INPUT -p tcp --dport 22 -j LED --led-trigger-id ssh --led-delay 1000 |
| 807 | |
| 808 | Then attach the new trigger to an LED on your system: |
| 809 | echo netfilter-ssh > /sys/class/leds/<ledname>/trigger |
| 810 | |
| 811 | For more information on the LEDs available on your system, see |
Paul Bolle | 395cf96 | 2011-08-15 02:02:26 +0200 | [diff] [blame] | 812 | Documentation/leds/leds-class.txt |
Adam Nielsen | 268cb38 | 2009-02-20 10:55:14 +0100 | [diff] [blame] | 813 | |
Richard Weinberger | 6939c33 | 2012-02-10 23:10:52 +0100 | [diff] [blame] | 814 | config NETFILTER_XT_TARGET_LOG |
| 815 | tristate "LOG target support" |
Pablo Neira Ayuso | d79a61d | 2014-08-29 09:34:49 +0200 | [diff] [blame] | 816 | select NF_LOG_COMMON |
| 817 | select NF_LOG_IPV4 |
| 818 | select NF_LOG_IPV6 if IPV6 |
Richard Weinberger | 6939c33 | 2012-02-10 23:10:52 +0100 | [diff] [blame] | 819 | default m if NETFILTER_ADVANCED=n |
| 820 | help |
| 821 | This option adds a `LOG' target, which allows you to create rules in |
| 822 | any iptables table which records the packet header to the syslog. |
| 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_TARGET_MARK |
| 827 | tristate '"MARK" target support' |
Jan Engelhardt | 28b9498 | 2009-02-28 03:23:57 +0100 | [diff] [blame] | 828 | depends on NETFILTER_ADVANCED |
| 829 | select NETFILTER_XT_MARK |
| 830 | ---help--- |
| 831 | This is a backwards-compat option for the user's convenience |
| 832 | (e.g. when running oldconfig). It selects |
| 833 | CONFIG_NETFILTER_XT_MARK (combined mark/MARK module). |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 834 | |
Pablo Neira Ayuso | 84a59ca | 2014-09-04 09:47:21 +0200 | [diff] [blame] | 835 | config NETFILTER_XT_NAT |
| 836 | tristate '"SNAT and DNAT" targets support' |
| 837 | depends on NF_NAT |
| 838 | ---help--- |
| 839 | This option enables the SNAT and DNAT targets. |
| 840 | |
| 841 | To compile it as a module, choose M here. If unsure, say N. |
| 842 | |
Jan Engelhardt | b3d54b3 | 2012-09-21 11:37:59 +0200 | [diff] [blame] | 843 | config NETFILTER_XT_TARGET_NETMAP |
| 844 | tristate '"NETMAP" target support' |
| 845 | depends on NF_NAT |
| 846 | ---help--- |
| 847 | NETMAP is an implementation of static 1:1 NAT mapping of network |
| 848 | addresses. It maps the network address part, while keeping the host |
| 849 | address part intact. |
| 850 | |
| 851 | To compile it as a module, choose M here. If unsure, say N. |
| 852 | |
Patrick McHardy | baf7b1e | 2006-11-29 02:35:38 +0100 | [diff] [blame] | 853 | config NETFILTER_XT_TARGET_NFLOG |
| 854 | tristate '"NFLOG" target support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 855 | default m if NETFILTER_ADVANCED=n |
Eric Leblond | 293a4f2 | 2008-12-10 17:24:33 -0800 | [diff] [blame] | 856 | select NETFILTER_NETLINK_LOG |
Patrick McHardy | baf7b1e | 2006-11-29 02:35:38 +0100 | [diff] [blame] | 857 | help |
| 858 | This option enables the NFLOG target, which allows to LOG |
Eric Leblond | 293a4f2 | 2008-12-10 17:24:33 -0800 | [diff] [blame] | 859 | messages through nfnetlink_log. |
Patrick McHardy | baf7b1e | 2006-11-29 02:35:38 +0100 | [diff] [blame] | 860 | |
| 861 | To compile it as a module, choose M here. If unsure, say N. |
| 862 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 863 | config NETFILTER_XT_TARGET_NFQUEUE |
| 864 | tristate '"NFQUEUE" target Support' |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 865 | depends on NETFILTER_ADVANCED |
Florian Westphal | 5f2cafe | 2011-01-18 15:18:08 +0100 | [diff] [blame] | 866 | select NETFILTER_NETLINK_QUEUE |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 867 | help |
| 868 | This target replaced the old obsolete QUEUE target. |
| 869 | |
| 870 | As opposed to QUEUE, it supports 65535 different queues, |
| 871 | not just one. |
| 872 | |
| 873 | To compile it as a module, choose M here. If unsure, say N. |
| 874 | |
Pablo Neira Ayuso | 10db906 | 2012-12-20 01:54:51 +0000 | [diff] [blame] | 875 | config NETFILTER_XT_TARGET_NOTRACK |
| 876 | tristate '"NOTRACK" target support (DEPRECATED)' |
Pablo Neira Ayuso | 757ae31 | 2013-01-02 16:30:01 +0000 | [diff] [blame] | 877 | depends on NF_CONNTRACK |
| 878 | depends on IP_NF_RAW || IP6_NF_RAW |
| 879 | depends on NETFILTER_ADVANCED |
Pablo Neira Ayuso | 10db906 | 2012-12-20 01:54:51 +0000 | [diff] [blame] | 880 | select NETFILTER_XT_TARGET_CT |
| 881 | |
Patrick McHardy | 5859034 | 2007-12-04 23:40:05 -0800 | [diff] [blame] | 882 | config NETFILTER_XT_TARGET_RATEEST |
| 883 | tristate '"RATEEST" target support' |
Patrick McHardy | b26e76b | 2008-01-14 23:30:56 -0800 | [diff] [blame] | 884 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 5859034 | 2007-12-04 23:40:05 -0800 | [diff] [blame] | 885 | help |
| 886 | This option adds a `RATEEST' target, which allows to measure |
| 887 | rates similar to TC estimators. The `rateest' match can be |
| 888 | used to match on the measured rates. |
| 889 | |
| 890 | To compile it as a module, choose M here. If unsure, say N. |
| 891 | |
Jan Engelhardt | 2cbc78a | 2012-09-21 11:41:34 +0200 | [diff] [blame] | 892 | config NETFILTER_XT_TARGET_REDIRECT |
| 893 | tristate "REDIRECT target support" |
| 894 | depends on NF_NAT |
Pablo Neira Ayuso | b59eaf9 | 2014-11-26 12:46:50 +0100 | [diff] [blame] | 895 | select NF_NAT_REDIRECT |
Jan Engelhardt | 2cbc78a | 2012-09-21 11:41:34 +0200 | [diff] [blame] | 896 | ---help--- |
| 897 | REDIRECT is a special case of NAT: all incoming connections are |
| 898 | mapped onto the incoming interface's address, causing the packets to |
| 899 | come to the local machine instead of passing through. This is |
| 900 | useful for transparent proxies. |
| 901 | |
| 902 | To compile it as a module, choose M here. If unsure, say N. |
| 903 | |
Jan Engelhardt | e281b19 | 2010-04-19 14:17:47 +0200 | [diff] [blame] | 904 | config NETFILTER_XT_TARGET_TEE |
Arnd Hannemann | fe6fb55 | 2010-06-22 08:22:21 +0200 | [diff] [blame] | 905 | tristate '"TEE" - packet cloning to alternate destination' |
Jan Engelhardt | e281b19 | 2010-04-19 14:17:47 +0200 | [diff] [blame] | 906 | depends on NETFILTER_ADVANCED |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 907 | depends on IPV6 || IPV6=n |
Randy Dunlap | 83827f6 | 2010-05-14 13:52:30 -0700 | [diff] [blame] | 908 | depends on !NF_CONNTRACK || NF_CONNTRACK |
Pablo Neira Ayuso | bbde9fc | 2015-05-31 17:54:44 +0200 | [diff] [blame] | 909 | select NF_DUP_IPV4 |
Arnd Bergmann | 08a7f5d | 2016-02-05 10:20:21 +0100 | [diff] [blame] | 910 | select NF_DUP_IPV6 if IPV6 |
Jan Engelhardt | e281b19 | 2010-04-19 14:17:47 +0200 | [diff] [blame] | 911 | ---help--- |
| 912 | This option adds a "TEE" target with which a packet can be cloned and |
| 913 | this clone be rerouted to another nexthop. |
| 914 | |
KOVACS Krisztian | e843927 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 915 | config NETFILTER_XT_TARGET_TPROXY |
Florian Westphal | fd158d7 | 2013-07-29 15:41:52 +0200 | [diff] [blame] | 916 | tristate '"TPROXY" target transparent proxying support' |
KOVACS Krisztian | e843927 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 917 | depends on NETFILTER_XTABLES |
| 918 | depends on NETFILTER_ADVANCED |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 919 | depends on IPV6 || IPV6=n |
| 920 | depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n |
Florian Westphal | fd158d7 | 2013-07-29 15:41:52 +0200 | [diff] [blame] | 921 | depends on IP_NF_MANGLE |
KOVACS Krisztian | e843927 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 922 | select NF_DEFRAG_IPV4 |
Arnd Bergmann | 74ec4d5 | 2015-11-10 13:22:15 +0100 | [diff] [blame] | 923 | select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n |
KOVACS Krisztian | e843927 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 924 | help |
| 925 | This option adds a `TPROXY' target, which is somewhat similar to |
| 926 | REDIRECT. It can only be used in the mangle table and is useful |
| 927 | to redirect traffic to a transparent proxy. It does _not_ depend |
| 928 | on Netfilter connection tracking and NAT, unlike REDIRECT. |
Florian Westphal | fd158d7 | 2013-07-29 15:41:52 +0200 | [diff] [blame] | 929 | For it to work you will have to configure certain iptables rules |
| 930 | and use policy routing. For more information on how to set it up |
| 931 | see Documentation/networking/tproxy.txt. |
KOVACS Krisztian | e843927 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 932 | |
| 933 | To compile it as a module, choose M here. If unsure, say N. |
| 934 | |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 935 | config NETFILTER_XT_TARGET_TRACE |
| 936 | tristate '"TRACE" target support' |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 937 | depends on IP_NF_RAW || IP6_NF_RAW |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 938 | depends on NETFILTER_ADVANCED |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 939 | help |
| 940 | The TRACE target allows you to mark packets so that the kernel |
| 941 | will log every rule which match the packets as those traverse |
| 942 | the tables, chains, rules. |
| 943 | |
| 944 | 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] | 945 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Jozsef Kadlecsik | ba9dda3 | 2007-07-07 22:21:23 -0700 | [diff] [blame] | 946 | |
James Morris | 5e6874cd | 2006-06-09 00:30:57 -0700 | [diff] [blame] | 947 | config NETFILTER_XT_TARGET_SECMARK |
| 948 | tristate '"SECMARK" target support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 949 | depends on NETWORK_SECMARK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 950 | default m if NETFILTER_ADVANCED=n |
James Morris | 5e6874cd | 2006-06-09 00:30:57 -0700 | [diff] [blame] | 951 | help |
| 952 | The SECMARK target allows security marking of network |
| 953 | packets, for use with security subsystems. |
| 954 | |
| 955 | To compile it as a module, choose M here. If unsure, say N. |
| 956 | |
Patrick McHardy | cdd289a | 2007-02-07 15:09:46 -0800 | [diff] [blame] | 957 | config NETFILTER_XT_TARGET_TCPMSS |
| 958 | tristate '"TCPMSS" target support' |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 959 | depends on IPV6 || IPV6=n |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 960 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | cdd289a | 2007-02-07 15:09:46 -0800 | [diff] [blame] | 961 | ---help--- |
| 962 | This option adds a `TCPMSS' target, which allows you to alter the |
| 963 | MSS value of TCP SYN packets, to control the maximum size for that |
| 964 | connection (usually limiting it to your outgoing interface's MTU |
| 965 | minus 40). |
| 966 | |
| 967 | This is used to overcome criminally braindead ISPs or servers which |
| 968 | block ICMP Fragmentation Needed packets. The symptoms of this |
| 969 | problem are that everything works fine from your Linux |
| 970 | firewall/router, but machines behind it can never exchange large |
| 971 | packets: |
| 972 | 1) Web browsers connect, then hang with no data received. |
| 973 | 2) Small mail works fine, but large emails hang. |
| 974 | 3) ssh works fine, but scp hangs after initial handshaking. |
| 975 | |
| 976 | Workaround: activate this option and add a rule to your firewall |
| 977 | configuration like: |
| 978 | |
| 979 | iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \ |
| 980 | -j TCPMSS --clamp-mss-to-pmtu |
| 981 | |
| 982 | To compile it as a module, choose M here. If unsure, say N. |
| 983 | |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 984 | config NETFILTER_XT_TARGET_TCPOPTSTRIP |
Kees Cook | 663ef0d | 2012-10-02 11:19:54 -0700 | [diff] [blame] | 985 | tristate '"TCPOPTSTRIP" target support' |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 986 | depends on IP_NF_MANGLE || IP6_NF_MANGLE |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 987 | depends on NETFILTER_ADVANCED |
Sven Schnelle | 338e8a7 | 2007-12-04 23:21:50 -0800 | [diff] [blame] | 988 | help |
| 989 | This option adds a "TCPOPTSTRIP" target, which allows you to strip |
| 990 | TCP options from TCP packets. |
| 991 | |
Jan Engelhardt | 44c5873 | 2010-02-26 14:14:22 +0100 | [diff] [blame] | 992 | # alphabetically ordered list of matches |
| 993 | |
| 994 | comment "Xtables matches" |
| 995 | |
Florian Westphal | de81bbe | 2011-03-15 20:16:20 +0100 | [diff] [blame] | 996 | config NETFILTER_XT_MATCH_ADDRTYPE |
| 997 | tristate '"addrtype" address type match support' |
Anton Blanchard | 5cca4ac | 2015-01-21 10:53:50 +1100 | [diff] [blame] | 998 | default m if NETFILTER_ADVANCED=n |
Florian Westphal | de81bbe | 2011-03-15 20:16:20 +0100 | [diff] [blame] | 999 | ---help--- |
| 1000 | This option allows you to match what routing thinks of an address, |
| 1001 | eg. UNICAST, LOCAL, BROADCAST, ... |
| 1002 | |
| 1003 | If you want to compile it as a module, say M here and read |
| 1004 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
| 1005 | |
Willem de Bruijn | e6f30c7 | 2013-01-18 07:17:30 +0000 | [diff] [blame] | 1006 | config NETFILTER_XT_MATCH_BPF |
| 1007 | tristate '"bpf" match support' |
| 1008 | depends on NETFILTER_ADVANCED |
| 1009 | help |
| 1010 | BPF matching applies a linux socket filter to each packet and |
| 1011 | accepts those for which the filter returns non-zero. |
| 1012 | |
| 1013 | To compile it as a module, choose M here. If unsure, say N. |
| 1014 | |
Daniel Borkmann | 82a3713 | 2013-12-29 18:27:12 +0100 | [diff] [blame] | 1015 | config NETFILTER_XT_MATCH_CGROUP |
| 1016 | tristate '"control group" match support' |
| 1017 | depends on NETFILTER_ADVANCED |
| 1018 | depends on CGROUPS |
| 1019 | select CGROUP_NET_CLASSID |
| 1020 | ---help--- |
| 1021 | Socket/process control group matching allows you to match locally |
| 1022 | generated packets based on which net_cls control group processes |
| 1023 | belong to. |
| 1024 | |
Pablo Neira Ayuso | 0269ea4 | 2009-03-16 17:10:36 +0100 | [diff] [blame] | 1025 | config NETFILTER_XT_MATCH_CLUSTER |
| 1026 | tristate '"cluster" match support' |
| 1027 | depends on NF_CONNTRACK |
| 1028 | depends on NETFILTER_ADVANCED |
| 1029 | ---help--- |
| 1030 | This option allows you to build work-load-sharing clusters of |
| 1031 | network servers/stateful firewalls without having a dedicated |
| 1032 | load-balancing router/server/switch. Basically, this match returns |
| 1033 | true when the packet must be handled by this cluster node. Thus, |
| 1034 | all nodes see all packets and this match decides which node handles |
| 1035 | what packets. The work-load sharing algorithm is based on source |
| 1036 | address hashing. |
| 1037 | |
| 1038 | If you say Y or M here, try `iptables -m cluster --help` for |
| 1039 | more information. |
| 1040 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1041 | config NETFILTER_XT_MATCH_COMMENT |
| 1042 | tristate '"comment" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1043 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1044 | help |
| 1045 | This option adds a `comment' dummy-match, which allows you to put |
| 1046 | comments in your iptables ruleset. |
| 1047 | |
| 1048 | 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] | 1049 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1050 | |
| 1051 | config NETFILTER_XT_MATCH_CONNBYTES |
| 1052 | tristate '"connbytes" per-connection counter match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 1053 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1054 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1055 | help |
| 1056 | This option adds a `connbytes' match, which allows you to match the |
| 1057 | number of bytes and/or packets for each direction within a connection. |
| 1058 | |
| 1059 | 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] | 1060 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1061 | |
Florian Westphal | c539f01 | 2013-01-11 06:30:44 +0000 | [diff] [blame] | 1062 | config NETFILTER_XT_MATCH_CONNLABEL |
| 1063 | tristate '"connlabel" match support' |
| 1064 | select NF_CONNTRACK_LABELS |
Florian Westphal | 35612a2 | 2013-02-03 01:24:07 +0000 | [diff] [blame] | 1065 | depends on NF_CONNTRACK |
Florian Westphal | c539f01 | 2013-01-11 06:30:44 +0000 | [diff] [blame] | 1066 | depends on NETFILTER_ADVANCED |
| 1067 | ---help--- |
| 1068 | This match allows you to test and assign userspace-defined labels names |
| 1069 | to a connection. The kernel only stores bit values - mapping |
| 1070 | names to bits is done by userspace. |
| 1071 | |
| 1072 | Unlike connmark, more than 32 flag bits may be assigned to a |
| 1073 | connection simultaneously. |
| 1074 | |
Jan Engelhardt | 370786f | 2007-07-14 20:47:26 -0700 | [diff] [blame] | 1075 | config NETFILTER_XT_MATCH_CONNLIMIT |
Randy Dunlap | 4819224 | 2013-11-06 21:48:22 -0800 | [diff] [blame] | 1076 | tristate '"connlimit" match support' |
Cornelia Huck | 3fd8f9e | 2007-07-18 02:38:32 -0700 | [diff] [blame] | 1077 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1078 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | 370786f | 2007-07-14 20:47:26 -0700 | [diff] [blame] | 1079 | ---help--- |
| 1080 | This match allows you to match against the number of parallel |
| 1081 | connections to a server per client IP address (or address block). |
| 1082 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1083 | config NETFILTER_XT_MATCH_CONNMARK |
| 1084 | tristate '"connmark" connection mark match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 1085 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1086 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | b8f00ba | 2010-02-26 14:20:32 +0100 | [diff] [blame] | 1087 | select NETFILTER_XT_CONNMARK |
| 1088 | ---help--- |
| 1089 | This is a backwards-compat option for the user's convenience |
| 1090 | (e.g. when running oldconfig). It selects |
| 1091 | CONFIG_NETFILTER_XT_CONNMARK (combined connmark/CONNMARK module). |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1092 | |
| 1093 | config NETFILTER_XT_MATCH_CONNTRACK |
| 1094 | tristate '"conntrack" connection tracking match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 1095 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1096 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1097 | help |
| 1098 | This is a general conntrack match module, a superset of the state match. |
| 1099 | |
| 1100 | It allows matching on additional conntrack information, which is |
| 1101 | useful in complex configurations, such as NAT gateways with multiple |
| 1102 | internet links or tunnels. |
| 1103 | |
| 1104 | To compile it as a module, choose M here. If unsure, say N. |
| 1105 | |
Eric Dumazet | e8648a1 | 2010-07-23 12:59:36 +0200 | [diff] [blame] | 1106 | config NETFILTER_XT_MATCH_CPU |
| 1107 | tristate '"cpu" match support' |
| 1108 | depends on NETFILTER_ADVANCED |
| 1109 | help |
| 1110 | CPU matching allows you to match packets based on the CPU |
| 1111 | currently handling the packet. |
| 1112 | |
| 1113 | To compile it as a module, choose M here. If unsure, say N. |
| 1114 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1115 | config NETFILTER_XT_MATCH_DCCP |
Jan Engelhardt | 4c37799 | 2007-12-04 23:31:59 -0800 | [diff] [blame] | 1116 | tristate '"dccp" protocol match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1117 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 1118 | default IP_DCCP |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1119 | help |
| 1120 | With this option enabled, you will be able to use the iptables |
| 1121 | `dccp' match in order to match on DCCP source/destination ports |
| 1122 | and DCCP flags. |
| 1123 | |
| 1124 | 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] | 1125 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1126 | |
Patrick McHardy | 9291747 | 2011-02-03 00:05:43 +0100 | [diff] [blame] | 1127 | config NETFILTER_XT_MATCH_DEVGROUP |
| 1128 | tristate '"devgroup" match support' |
| 1129 | depends on NETFILTER_ADVANCED |
| 1130 | help |
| 1131 | This options adds a `devgroup' match, which allows to match on the |
| 1132 | device group a network device is assigned to. |
| 1133 | |
| 1134 | To compile it as a module, choose M here. If unsure, say N. |
| 1135 | |
Yasuyuki Kozakai | 9ba1627 | 2006-08-22 00:29:37 -0700 | [diff] [blame] | 1136 | config NETFILTER_XT_MATCH_DSCP |
Jan Engelhardt | c3b33e6 | 2007-12-04 23:37:54 -0800 | [diff] [blame] | 1137 | tristate '"dscp" and "tos" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1138 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | 9ba1627 | 2006-08-22 00:29:37 -0700 | [diff] [blame] | 1139 | help |
| 1140 | This option adds a `DSCP' match, which allows you to match against |
| 1141 | the IPv4/IPv6 header DSCP field (differentiated services codepoint). |
| 1142 | |
| 1143 | The DSCP field can have any value between 0x0 and 0x3f inclusive. |
| 1144 | |
Jan Engelhardt | c3b33e6 | 2007-12-04 23:37:54 -0800 | [diff] [blame] | 1145 | It will also add a "tos" match, which allows you to match packets |
| 1146 | based on the Type Of Service fields of the IPv4 packet (which share |
| 1147 | the same bits as DSCP). |
| 1148 | |
Yasuyuki Kozakai | 9ba1627 | 2006-08-22 00:29:37 -0700 | [diff] [blame] | 1149 | To compile it as a module, choose M here. If unsure, say N. |
| 1150 | |
Jan Engelhardt | d446a820 | 2011-06-09 21:03:07 +0200 | [diff] [blame] | 1151 | config NETFILTER_XT_MATCH_ECN |
| 1152 | tristate '"ecn" match support' |
| 1153 | depends on NETFILTER_ADVANCED |
| 1154 | ---help--- |
| 1155 | This option adds an "ECN" match, which allows you to match against |
| 1156 | the IPv4 and TCP header ECN fields. |
| 1157 | |
| 1158 | To compile it as a module, choose M here. If unsure, say N. |
| 1159 | |
Yasuyuki Kozakai | dc5ab2f | 2006-04-01 02:22:30 -0800 | [diff] [blame] | 1160 | config NETFILTER_XT_MATCH_ESP |
Jan Engelhardt | 4c37799 | 2007-12-04 23:31:59 -0800 | [diff] [blame] | 1161 | tristate '"esp" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1162 | depends on NETFILTER_ADVANCED |
Yasuyuki Kozakai | dc5ab2f | 2006-04-01 02:22:30 -0800 | [diff] [blame] | 1163 | help |
| 1164 | This match extension allows you to match a range of SPIs |
| 1165 | inside ESP header of IPSec packets. |
| 1166 | |
| 1167 | To compile it as a module, choose M here. If unsure, say N. |
| 1168 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 1169 | config NETFILTER_XT_MATCH_HASHLIMIT |
| 1170 | tristate '"hashlimit" match support' |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 1171 | depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 1172 | depends on NETFILTER_ADVANCED |
| 1173 | help |
| 1174 | This option adds a `hashlimit' match. |
| 1175 | |
| 1176 | As opposed to `limit', this match dynamically creates a hash table |
| 1177 | of limit buckets, based on your selection of source/destination |
| 1178 | addresses and/or ports. |
| 1179 | |
| 1180 | It enables you to express policies like `10kpps for any given |
| 1181 | destination address' or `500pps from any given source address' |
| 1182 | with a single rule. |
| 1183 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1184 | config NETFILTER_XT_MATCH_HELPER |
| 1185 | tristate '"helper" match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 1186 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1187 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1188 | help |
| 1189 | Helper matching allows you to match packets in dynamic connections |
| 1190 | tracked by a conntrack-helper, ie. ip_conntrack_ftp |
| 1191 | |
| 1192 | To compile it as a module, choose M here. If unsure, say Y. |
| 1193 | |
Jan Engelhardt | cfac5ef | 2009-02-18 18:39:31 +0100 | [diff] [blame] | 1194 | config NETFILTER_XT_MATCH_HL |
| 1195 | tristate '"hl" hoplimit/TTL match support' |
| 1196 | depends on NETFILTER_ADVANCED |
| 1197 | ---help--- |
| 1198 | HL matching allows you to match packets based on the hoplimit |
| 1199 | in the IPv6 header, or the time-to-live field in the IPv4 |
| 1200 | header of the packet. |
| 1201 | |
fan.du | 6a649f3 | 2013-12-18 11:27:02 +0800 | [diff] [blame] | 1202 | config NETFILTER_XT_MATCH_IPCOMP |
| 1203 | tristate '"ipcomp" match support' |
| 1204 | depends on NETFILTER_ADVANCED |
| 1205 | help |
| 1206 | This match extension allows you to match a range of CPIs(16 bits) |
| 1207 | inside IPComp header of IPSec packets. |
| 1208 | |
| 1209 | To compile it as a module, choose M here. If unsure, say N. |
| 1210 | |
Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 1211 | config NETFILTER_XT_MATCH_IPRANGE |
| 1212 | tristate '"iprange" address range match support' |
Jan Engelhardt | f72e25a | 2008-01-14 23:42:47 -0800 | [diff] [blame] | 1213 | depends on NETFILTER_ADVANCED |
| 1214 | ---help--- |
| 1215 | This option adds a "iprange" match, which allows you to match based on |
| 1216 | an IP address range. (Normal iptables only matches on single addresses |
| 1217 | with an optional mask.) |
| 1218 | |
| 1219 | If unsure, say M. |
| 1220 | |
Hannes Eder | 9c3e1c3 | 2010-07-23 12:42:58 +0200 | [diff] [blame] | 1221 | config NETFILTER_XT_MATCH_IPVS |
| 1222 | tristate '"ipvs" match support' |
| 1223 | depends on IP_VS |
| 1224 | depends on NETFILTER_ADVANCED |
| 1225 | depends on NF_CONNTRACK |
| 1226 | help |
| 1227 | This option allows you to match against IPVS properties of a packet. |
| 1228 | |
| 1229 | If unsure, say N. |
| 1230 | |
James Chapman | 74f77a6 | 2014-01-06 10:17:08 +0000 | [diff] [blame] | 1231 | config NETFILTER_XT_MATCH_L2TP |
| 1232 | tristate '"l2tp" match support' |
| 1233 | depends on NETFILTER_ADVANCED |
| 1234 | default L2TP |
| 1235 | ---help--- |
| 1236 | This option adds an "L2TP" match, which allows you to match against |
| 1237 | L2TP protocol header fields. |
| 1238 | |
| 1239 | To compile it as a module, choose M here. If unsure, say N. |
| 1240 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1241 | config NETFILTER_XT_MATCH_LENGTH |
| 1242 | tristate '"length" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1243 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1244 | help |
| 1245 | This option allows you to match the length of a packet against a |
| 1246 | specific value or range of values. |
| 1247 | |
| 1248 | To compile it as a module, choose M here. If unsure, say N. |
| 1249 | |
| 1250 | config NETFILTER_XT_MATCH_LIMIT |
| 1251 | tristate '"limit" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1252 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1253 | help |
| 1254 | limit matching allows you to control the rate at which a rule can be |
| 1255 | matched: mainly useful in combination with the LOG target ("LOG |
| 1256 | target support", below) and to avoid some Denial of Service attacks. |
| 1257 | |
| 1258 | To compile it as a module, choose M here. If unsure, say N. |
| 1259 | |
| 1260 | config NETFILTER_XT_MATCH_MAC |
| 1261 | tristate '"mac" address match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1262 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1263 | help |
| 1264 | MAC matching allows you to match packets based on the source |
| 1265 | Ethernet address of the packet. |
| 1266 | |
| 1267 | To compile it as a module, choose M here. If unsure, say N. |
| 1268 | |
| 1269 | config NETFILTER_XT_MATCH_MARK |
| 1270 | tristate '"mark" match support' |
Jan Engelhardt | 28b9498 | 2009-02-28 03:23:57 +0100 | [diff] [blame] | 1271 | depends on NETFILTER_ADVANCED |
| 1272 | select NETFILTER_XT_MARK |
| 1273 | ---help--- |
| 1274 | This is a backwards-compat option for the user's convenience |
| 1275 | (e.g. when running oldconfig). It selects |
| 1276 | CONFIG_NETFILTER_XT_MARK (combined mark/MARK module). |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1277 | |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 1278 | config NETFILTER_XT_MATCH_MULTIPORT |
| 1279 | tristate '"multiport" Multiple port match support' |
Jan Engelhardt | aba0d34 | 2008-10-08 11:35:17 +0200 | [diff] [blame] | 1280 | depends on NETFILTER_ADVANCED |
| 1281 | help |
| 1282 | Multiport matching allows you to match TCP or UDP packets based on |
| 1283 | a series of source or destination ports: normally a rule can only |
| 1284 | match a single range of ports. |
| 1285 | |
| 1286 | To compile it as a module, choose M here. If unsure, say N. |
| 1287 | |
Pablo Neira Ayuso | ceb98d0 | 2011-12-23 14:28:59 +0100 | [diff] [blame] | 1288 | config NETFILTER_XT_MATCH_NFACCT |
| 1289 | tristate '"nfacct" match support' |
Pablo Neira Ayuso | bc94b52 | 2011-12-28 15:03:30 +0000 | [diff] [blame] | 1290 | depends on NETFILTER_ADVANCED |
Pablo Neira Ayuso | ceb98d0 | 2011-12-23 14:28:59 +0100 | [diff] [blame] | 1291 | select NETFILTER_NETLINK_ACCT |
| 1292 | help |
| 1293 | This option allows you to use the extended accounting through |
| 1294 | nfnetlink_acct. |
| 1295 | |
| 1296 | To compile it as a module, choose M here. If unsure, say N. |
| 1297 | |
Jan Engelhardt | 115bc8f | 2010-03-16 20:06:55 +0100 | [diff] [blame] | 1298 | config NETFILTER_XT_MATCH_OSF |
| 1299 | tristate '"osf" Passive OS fingerprint match' |
| 1300 | depends on NETFILTER_ADVANCED && NETFILTER_NETLINK |
| 1301 | help |
| 1302 | This option selects the Passive OS Fingerprinting match module |
| 1303 | that allows to passively match the remote operating system by |
| 1304 | analyzing incoming TCP SYN packets. |
| 1305 | |
| 1306 | Rules and loading software can be downloaded from |
| 1307 | http://www.ioremap.net/projects/osf |
| 1308 | |
| 1309 | To compile it as a module, choose M here. If unsure, say N. |
| 1310 | |
Jan Engelhardt | 0265ab4 | 2007-12-04 23:27:38 -0800 | [diff] [blame] | 1311 | config NETFILTER_XT_MATCH_OWNER |
| 1312 | tristate '"owner" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1313 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | 0265ab4 | 2007-12-04 23:27:38 -0800 | [diff] [blame] | 1314 | ---help--- |
| 1315 | Socket owner matching allows you to match locally-generated packets |
| 1316 | based on who created the socket: the user or group. It is also |
| 1317 | possible to check whether a socket actually exists. |
| 1318 | |
JP Abgrall | baf0db4 | 2011-06-20 12:41:46 -0700 | [diff] [blame] | 1319 | Conflicts with '"quota, tag, uid" match' |
| 1320 | |
Patrick McHardy | c4b8851 | 2006-03-20 18:03:40 -0800 | [diff] [blame] | 1321 | config NETFILTER_XT_MATCH_POLICY |
| 1322 | tristate 'IPsec "policy" match support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 1323 | depends on XFRM |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1324 | default m if NETFILTER_ADVANCED=n |
Patrick McHardy | c4b8851 | 2006-03-20 18:03:40 -0800 | [diff] [blame] | 1325 | help |
| 1326 | Policy matching allows you to match packets based on the |
| 1327 | IPsec policy that was used during decapsulation/will |
| 1328 | be used during encapsulation. |
| 1329 | |
| 1330 | To compile it as a module, choose M here. If unsure, say N. |
| 1331 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1332 | config NETFILTER_XT_MATCH_PHYSDEV |
| 1333 | tristate '"physdev" match support' |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 1334 | depends on BRIDGE && BRIDGE_NETFILTER |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1335 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1336 | help |
| 1337 | Physdev packet matching matches against the physical bridge ports |
| 1338 | the IP packet arrived on or will leave by. |
| 1339 | |
| 1340 | To compile it as a module, choose M here. If unsure, say N. |
| 1341 | |
| 1342 | config NETFILTER_XT_MATCH_PKTTYPE |
| 1343 | tristate '"pkttype" packet type match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1344 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1345 | help |
| 1346 | Packet type matching allows you to match a packet by |
| 1347 | its "class", eg. BROADCAST, MULTICAST, ... |
| 1348 | |
| 1349 | Typical usage: |
| 1350 | iptables -A INPUT -m pkttype --pkt-type broadcast -j LOG |
| 1351 | |
| 1352 | To compile it as a module, choose M here. If unsure, say N. |
| 1353 | |
Patrick McHardy | 62b7743 | 2006-05-29 18:20:32 -0700 | [diff] [blame] | 1354 | config NETFILTER_XT_MATCH_QUOTA |
| 1355 | tristate '"quota" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1356 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 62b7743 | 2006-05-29 18:20:32 -0700 | [diff] [blame] | 1357 | help |
| 1358 | This option adds a `quota' match, which allows to match on a |
| 1359 | byte counter. |
| 1360 | |
| 1361 | 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] | 1362 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Patrick McHardy | 62b7743 | 2006-05-29 18:20:32 -0700 | [diff] [blame] | 1363 | |
JP Abgrall | 8f4eba2 | 2011-07-12 12:02:59 -0700 | [diff] [blame] | 1364 | config NETFILTER_XT_MATCH_QUOTA2 |
| 1365 | tristate '"quota2" match support' |
| 1366 | depends on NETFILTER_ADVANCED |
| 1367 | help |
| 1368 | This option adds a `quota2' match, which allows to match on a |
| 1369 | byte counter correctly and not per CPU. |
| 1370 | It allows naming the quotas. |
| 1371 | This is based on http://xtables-addons.git.sourceforge.net |
| 1372 | |
| 1373 | If you want to compile it as a module, say M here and read |
| 1374 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
| 1375 | |
| 1376 | config NETFILTER_XT_MATCH_QUOTA2_LOG |
| 1377 | bool '"quota2" Netfilter LOG support' |
| 1378 | depends on NETFILTER_XT_MATCH_QUOTA2 |
JP Abgrall | 8f4eba2 | 2011-07-12 12:02:59 -0700 | [diff] [blame] | 1379 | default n |
| 1380 | help |
| 1381 | This option allows `quota2' to log ONCE when a quota limit |
| 1382 | is passed. It logs via NETLINK using the NETLINK_NFLOG family. |
| 1383 | It logs similarly to how ipt_ULOG would without data. |
| 1384 | |
| 1385 | If unsure, say `N'. |
| 1386 | |
Patrick McHardy | 50c164a | 2007-12-04 13:02:19 +0100 | [diff] [blame] | 1387 | config NETFILTER_XT_MATCH_RATEEST |
| 1388 | tristate '"rateest" match support' |
Patrick McHardy | b26e76b | 2008-01-14 23:30:56 -0800 | [diff] [blame] | 1389 | depends on NETFILTER_ADVANCED |
Patrick McHardy | 50c164a | 2007-12-04 13:02:19 +0100 | [diff] [blame] | 1390 | select NETFILTER_XT_TARGET_RATEEST |
| 1391 | help |
| 1392 | This option adds a `rateest' match, which allows to match on the |
| 1393 | rate estimated by the RATEEST target. |
| 1394 | |
| 1395 | To compile it as a module, choose M here. If unsure, say N. |
| 1396 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1397 | config NETFILTER_XT_MATCH_REALM |
| 1398 | tristate '"realm" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1399 | depends on NETFILTER_ADVANCED |
Patrick McHardy | c7066f7 | 2011-01-14 13:36:42 +0100 | [diff] [blame] | 1400 | select IP_ROUTE_CLASSID |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1401 | help |
| 1402 | This option adds a `realm' match, which allows you to use the realm |
| 1403 | key from the routing subsystem inside iptables. |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1404 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1405 | This match pretty much resembles the CONFIG_NET_CLS_ROUTE4 option |
| 1406 | in tc world. |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1407 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1408 | 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] | 1409 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1410 | |
Jan Engelhardt | e948b20 | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 1411 | config NETFILTER_XT_MATCH_RECENT |
| 1412 | tristate '"recent" match support' |
Jan Engelhardt | e948b20 | 2008-10-08 11:35:00 +0200 | [diff] [blame] | 1413 | depends on NETFILTER_ADVANCED |
| 1414 | ---help--- |
| 1415 | This match is used for creating one or many lists of recently |
| 1416 | used addresses and then matching against that/those list(s). |
| 1417 | |
| 1418 | Short options are available by using 'iptables -m recent -h' |
| 1419 | Official Website: <http://snowman.net/projects/ipt_recent/> |
| 1420 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1421 | config NETFILTER_XT_MATCH_SCTP |
Kees Cook | 663ef0d | 2012-10-02 11:19:54 -0700 | [diff] [blame] | 1422 | tristate '"sctp" protocol match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1423 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f3261af | 2008-05-08 01:16:04 -0700 | [diff] [blame] | 1424 | default IP_SCTP |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1425 | help |
| 1426 | With this option enabled, you will be able to use the |
| 1427 | `sctp' match in order to match on SCTP source/destination ports |
| 1428 | and SCTP chunk types. |
| 1429 | |
| 1430 | 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] | 1431 | <file:Documentation/kbuild/modules.txt>. If unsure, say `N'. |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1432 | |
KOVACS Krisztian | 136cdc7 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 1433 | config NETFILTER_XT_MATCH_SOCKET |
Kees Cook | 663ef0d | 2012-10-02 11:19:54 -0700 | [diff] [blame] | 1434 | tristate '"socket" match support' |
KOVACS Krisztian | 136cdc7 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 1435 | depends on NETFILTER_XTABLES |
| 1436 | depends on NETFILTER_ADVANCED |
Laszlo Attila Toth | acda074 | 2009-05-01 15:23:10 -0700 | [diff] [blame] | 1437 | depends on !NF_CONNTRACK || NF_CONNTRACK |
Pablo Neira Ayuso | f09becc | 2015-06-12 13:58:52 +0200 | [diff] [blame] | 1438 | depends on IPV6 || IPV6=n |
| 1439 | depends on IP6_NF_IPTABLES || IP6_NF_IPTABLES=n |
KOVACS Krisztian | 136cdc7 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 1440 | select NF_DEFRAG_IPV4 |
Arnd Bergmann | 74ec4d5 | 2015-11-10 13:22:15 +0100 | [diff] [blame] | 1441 | select NF_DEFRAG_IPV6 if IP6_NF_IPTABLES != n |
KOVACS Krisztian | 136cdc7 | 2008-10-08 11:35:12 +0200 | [diff] [blame] | 1442 | help |
| 1443 | This option adds a `socket' match, which can be used to match |
| 1444 | packets for which a TCP or UDP socket lookup finds a valid socket. |
| 1445 | It can be used in combination with the MARK target and policy |
| 1446 | routing to implement full featured non-locally bound sockets. |
| 1447 | |
| 1448 | To compile it as a module, choose M here. If unsure, say N. |
| 1449 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1450 | config NETFILTER_XT_MATCH_STATE |
| 1451 | tristate '"state" match support' |
Patrick McHardy | 587aa64 | 2007-03-14 16:37:25 -0700 | [diff] [blame] | 1452 | depends on NF_CONNTRACK |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1453 | default m if NETFILTER_ADVANCED=n |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1454 | help |
| 1455 | Connection state matching allows you to match packets based on their |
| 1456 | relationship to a tracked connection (ie. previous packets). This |
| 1457 | is a powerful tool for packet classification. |
| 1458 | |
| 1459 | To compile it as a module, choose M here. If unsure, say N. |
| 1460 | |
Patrick McHardy | f338980 | 2006-05-29 18:21:00 -0700 | [diff] [blame] | 1461 | config NETFILTER_XT_MATCH_STATISTIC |
| 1462 | tristate '"statistic" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1463 | depends on NETFILTER_ADVANCED |
Patrick McHardy | f338980 | 2006-05-29 18:21:00 -0700 | [diff] [blame] | 1464 | help |
Patrick McHardy | 68c1692 | 2006-06-27 03:02:14 -0700 | [diff] [blame] | 1465 | This option adds a `statistic' match, which allows you to match |
| 1466 | on packets periodically or randomly with a given percentage. |
| 1467 | |
| 1468 | 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] | 1469 | |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1470 | config NETFILTER_XT_MATCH_STRING |
| 1471 | tristate '"string" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1472 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1473 | select TEXTSEARCH |
| 1474 | select TEXTSEARCH_KMP |
| 1475 | select TEXTSEARCH_BM |
| 1476 | select TEXTSEARCH_FSM |
| 1477 | help |
| 1478 | This option adds a `string' match, which allows you to look for |
| 1479 | pattern matchings in packets. |
| 1480 | |
| 1481 | To compile it as a module, choose M here. If unsure, say N. |
| 1482 | |
| 1483 | config NETFILTER_XT_MATCH_TCPMSS |
| 1484 | tristate '"tcpmss" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1485 | depends on NETFILTER_ADVANCED |
Harald Welte | 2e4e6a1 | 2006-01-12 13:30:04 -0800 | [diff] [blame] | 1486 | help |
| 1487 | This option adds a `tcpmss' match, which allows you to examine the |
| 1488 | MSS value of TCP SYN packets, which control the maximum packet size |
| 1489 | for that connection. |
| 1490 | |
| 1491 | To compile it as a module, choose M here. If unsure, say N. |
| 1492 | |
Jan Engelhardt | ee4411a | 2007-09-28 14:46:43 -0700 | [diff] [blame] | 1493 | config NETFILTER_XT_MATCH_TIME |
| 1494 | tristate '"time" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1495 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | ee4411a | 2007-09-28 14:46:43 -0700 | [diff] [blame] | 1496 | ---help--- |
| 1497 | This option adds a "time" match, which allows you to match based on |
| 1498 | the packet arrival time (at the machine which netfilter is running) |
| 1499 | on) or departure time/date (for locally generated packets). |
| 1500 | |
| 1501 | If you say Y here, try `iptables -m time --help` for |
| 1502 | more information. |
| 1503 | |
| 1504 | If you want to compile it as a module, say M here. |
| 1505 | If unsure, say N. |
| 1506 | |
Jan Engelhardt | 1b50b8a | 2007-07-07 22:20:36 -0700 | [diff] [blame] | 1507 | config NETFILTER_XT_MATCH_U32 |
| 1508 | tristate '"u32" match support' |
Patrick McHardy | 33b8e77 | 2007-12-17 22:47:05 -0800 | [diff] [blame] | 1509 | depends on NETFILTER_ADVANCED |
Jan Engelhardt | 1b50b8a | 2007-07-07 22:20:36 -0700 | [diff] [blame] | 1510 | ---help--- |
| 1511 | u32 allows you to extract quantities of up to 4 bytes from a packet, |
| 1512 | AND them with specified masks, shift them by specified amounts and |
| 1513 | test whether the results are in any of a set of specified ranges. |
| 1514 | The specification of what to extract is general enough to skip over |
| 1515 | headers with lengths stored in the packet, as in IP or TCP header |
| 1516 | lengths. |
| 1517 | |
| 1518 | Details and examples are in the kernel module source. |
| 1519 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 1520 | endif # NETFILTER_XTABLES |
Harald Welte | a6c1cd57 | 2006-02-13 15:42:48 -0800 | [diff] [blame] | 1521 | |
Jan Engelhardt | c2df73d | 2008-10-08 11:35:18 +0200 | [diff] [blame] | 1522 | endmenu |
Harald Welte | f9e815b | 2005-08-09 19:30:24 -0700 | [diff] [blame] | 1523 | |
Jozsef Kadlecsik | a7b4f98 | 2011-02-01 15:28:35 +0100 | [diff] [blame] | 1524 | source "net/netfilter/ipset/Kconfig" |
| 1525 | |
Julius Volz | cb7f6a7 | 2008-09-19 12:32:57 +0200 | [diff] [blame] | 1526 | source "net/netfilter/ipvs/Kconfig" |