blob: 40d56073cd19d3b3c27372b7dca255469d7e0068 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# IP netfilter configuration
3#
4
5menu "IP: Netfilter Configuration"
6 depends on INET && NETFILTER
7
KOVACS Krisztian73e40222008-10-08 11:35:12 +02008config NF_DEFRAG_IPV4
9 tristate
10 default n
11
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080012config NF_CONNTRACK_IPV4
Patrick McHardyc9386cf2007-01-04 12:16:06 -080013 tristate "IPv4 connection tracking support (required for NAT)"
14 depends on NF_CONNTRACK
Patrick McHardy33b8e772007-12-17 22:47:05 -080015 default m if NETFILTER_ADVANCED=n
KOVACS Krisztian73e40222008-10-08 11:35:12 +020016 select NF_DEFRAG_IPV4
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080017 ---help---
18 Connection tracking keeps a record of what packets have passed
19 through your machine, in order to figure out how they are related
20 into connections.
21
22 This is IPv4 support on Layer 3 independent connection tracking.
23 Layer 3 independent connection tracking is experimental scheme
24 which generalize ip_conntrack to support other layer 3 protocols.
25
26 To compile it as a module, choose M here. If unsure, say N.
27
Patrick McHardya999e682006-11-29 02:35:20 +010028config NF_CONNTRACK_PROC_COMPAT
29 bool "proc/sysctl compatibility with old connection tracking"
Jan Engelhardt54b07dc2011-04-21 09:32:45 +020030 depends on NF_CONNTRACK_PROCFS && NF_CONNTRACK_IPV4
Patrick McHardya999e682006-11-29 02:35:20 +010031 default y
32 help
33 This option enables /proc and sysctl compatibility with the old
Stephen Hemminger67c0d572009-03-16 15:17:23 +010034 layer 3 dependent connection tracking. This is needed to keep
Patrick McHardya999e682006-11-29 02:35:20 +010035 old programs that have not been adapted to the new names working.
36
37 If unsure, say Y.
38
Patrick McHardy96518512013-10-14 11:00:02 +020039config NF_TABLES_IPV4
40 depends on NF_TABLES
41 tristate "IPv4 nf_tables support"
42
43config NFT_REJECT_IPV4
44 depends on NF_TABLES_IPV4
45 tristate "nf_tables IPv4 reject support"
46
Pablo Neira Ayuso93707612013-10-10 23:21:26 +020047config NFT_CHAIN_ROUTE_IPV4
Patrick McHardy96518512013-10-14 11:00:02 +020048 depends on NF_TABLES_IPV4
Pablo Neira Ayuso93707612013-10-10 23:21:26 +020049 tristate "IPv4 nf_tables route chain support"
Patrick McHardy96518512013-10-14 11:00:02 +020050
Pablo Neira Ayuso93707612013-10-10 23:21:26 +020051config NFT_CHAIN_NAT_IPV4
Patrick McHardy96518512013-10-14 11:00:02 +020052 depends on NF_TABLES_IPV4
Tomasz Bursztykaeb316282013-10-10 13:39:19 +020053 depends on NF_NAT_IPV4 && NFT_NAT
Pablo Neira Ayuso93707612013-10-10 23:21:26 +020054 tristate "IPv4 nf_tables nat chain support"
Patrick McHardy96518512013-10-14 11:00:02 +020055
Pablo Neira Ayusoed683f12013-10-07 22:53:08 +020056config NF_TABLES_ARP
57 depends on NF_TABLES
58 tristate "ARP nf_tables support"
59
Linus Torvalds1da177e2005-04-16 15:20:36 -070060config IP_NF_IPTABLES
61 tristate "IP tables support (required for filtering/masq/NAT)"
Patrick McHardy33b8e772007-12-17 22:47:05 -080062 default m if NETFILTER_ADVANCED=n
Patrick McHardya3c941b2007-02-12 11:15:02 -080063 select NETFILTER_XTABLES
Linus Torvalds1da177e2005-04-16 15:20:36 -070064 help
65 iptables is a general, extensible packet identification framework.
66 The packet filtering and full NAT (masquerading, port forwarding,
67 etc) subsystems now use this: say `Y' or `M' here if you want to use
68 either of those.
69
70 To compile it as a module, choose M here. If unsure, say N.
71
Jan Engelhardtc2df73d2008-10-08 11:35:18 +020072if IP_NF_IPTABLES
73
Linus Torvalds1da177e2005-04-16 15:20:36 -070074# The matches.
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -080075config IP_NF_MATCH_AH
Jan Engelhardt4c377992007-12-04 23:31:59 -080076 tristate '"ah" match support'
Patrick McHardy33b8e772007-12-17 22:47:05 -080077 depends on NETFILTER_ADVANCED
Linus Torvalds1da177e2005-04-16 15:20:36 -070078 help
Yasuyuki Kozakaidc5ab2f2006-04-01 02:22:30 -080079 This match extension allows you to match a range of SPIs
80 inside AH header of IPSec packets.
Linus Torvalds1da177e2005-04-16 15:20:36 -070081
82 To compile it as a module, choose M here. If unsure, say N.
83
Jan Engelhardtaba0d342008-10-08 11:35:17 +020084config IP_NF_MATCH_ECN
85 tristate '"ecn" match support'
Jan Engelhardtaba0d342008-10-08 11:35:17 +020086 depends on NETFILTER_ADVANCED
Jan Engelhardtd446a8202011-06-09 21:03:07 +020087 select NETFILTER_XT_MATCH_ECN
88 ---help---
89 This is a backwards-compat option for the user's convenience
90 (e.g. when running oldconfig). It selects
91 CONFIG_NETFILTER_XT_MATCH_ECN.
Jan Engelhardtaba0d342008-10-08 11:35:17 +020092
Florian Westphal8f973392011-07-04 22:48:10 +010093config IP_NF_MATCH_RPFILTER
94 tristate '"rpfilter" reverse path filter match support'
Florian Westphald37d6962013-04-17 22:45:25 +000095 depends on NETFILTER_ADVANCED && (IP_NF_MANGLE || IP_NF_RAW)
Florian Westphal8f973392011-07-04 22:48:10 +010096 ---help---
97 This option allows you to match packets whose replies would
98 go out via the interface the packet came in.
99
100 To compile it as a module, choose M here. If unsure, say N.
101 The module will be called ipt_rpfilter.
102
Jan Engelhardt43233622009-02-19 11:16:03 +0100103config IP_NF_MATCH_TTL
104 tristate '"ttl" match support'
105 depends on NETFILTER_ADVANCED
106 select NETFILTER_XT_MATCH_HL
107 ---help---
108 This is a backwards-compat option for the user's convenience
109 (e.g. when running oldconfig). It selects
Stephen Hemminger67c0d572009-03-16 15:17:23 +0100110 CONFIG_NETFILTER_XT_MATCH_HL.
Jan Engelhardt43233622009-02-19 11:16:03 +0100111
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112# `filter', generic and specific targets
113config IP_NF_FILTER
114 tristate "Packet filtering"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800115 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116 help
117 Packet filtering defines a table `filter', which has a series of
118 rules for simple packet filtering at local input, forwarding and
119 local output. See the man page for iptables(8).
120
121 To compile it as a module, choose M here. If unsure, say N.
122
123config IP_NF_TARGET_REJECT
124 tristate "REJECT target support"
125 depends on IP_NF_FILTER
Patrick McHardy33b8e772007-12-17 22:47:05 -0800126 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127 help
128 The REJECT target allows a filtering rule to specify that an ICMP
129 error should be issued in response to an incoming packet, rather
130 than silently being dropped.
131
132 To compile it as a module, choose M here. If unsure, say N.
133
Patrick McHardy48b1de42013-08-27 08:50:14 +0200134config IP_NF_TARGET_SYNPROXY
135 tristate "SYNPROXY target support"
136 depends on NF_CONNTRACK && NETFILTER_ADVANCED
137 select NETFILTER_SYNPROXY
138 select SYN_COOKIES
139 help
140 The SYNPROXY target allows you to intercept TCP connections and
141 establish them using syncookies before they are passed on to the
142 server. This allows to avoid conntrack and server resource usage
143 during SYN-flood attacks.
144
145 To compile it as a module, choose M here. If unsure, say N.
146
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147config IP_NF_TARGET_ULOG
Pablo Neira Ayusode94c452013-05-22 22:42:37 +0000148 tristate "ULOG target support (obsolete)"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800149 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700150 ---help---
Harald Weltef40863c2005-10-10 20:51:53 -0700151
152 This option enables the old IPv4-only "ipt_ULOG" implementation
153 which has been obsoleted by the new "nfnetlink_log" code (see
154 CONFIG_NETFILTER_NETLINK_LOG).
155
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156 This option adds a `ULOG' target, which allows you to create rules in
157 any iptables table. The packet is passed to a userspace logging
158 daemon using netlink multicast sockets; unlike the LOG target
159 which can only be viewed through syslog.
160
Matt LaPlante44c09202006-10-03 22:34:14 +0200161 The appropriate userspace logging daemon (ulogd) may be obtained from
Justin P. Mattock631dd1a2010-10-18 11:03:14 +0200162 <http://www.netfilter.org/projects/ulogd/index.html>
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163
164 To compile it as a module, choose M here. If unsure, say N.
165
Jozsef Kadlecsik5b1158e2006-12-02 22:07:13 -0800166# NAT + specific targets: nf_conntrack
Patrick McHardyc7232c92012-08-26 19:14:06 +0200167config NF_NAT_IPV4
168 tristate "IPv4 NAT"
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200169 depends on NF_CONNTRACK_IPV4
Patrick McHardy33b8e772007-12-17 22:47:05 -0800170 default m if NETFILTER_ADVANCED=n
Patrick McHardyc7232c92012-08-26 19:14:06 +0200171 select NF_NAT
Jozsef Kadlecsik5b1158e2006-12-02 22:07:13 -0800172 help
Patrick McHardyc7232c92012-08-26 19:14:06 +0200173 The IPv4 NAT option allows masquerading, port forwarding and other
Jozsef Kadlecsik5b1158e2006-12-02 22:07:13 -0800174 forms of full Network Address Port Translation. It is controlled by
175 the `nat' table in iptables: see the man page for iptables(8).
176
177 To compile it as a module, choose M here. If unsure, say N.
178
Patrick McHardyc7232c92012-08-26 19:14:06 +0200179if NF_NAT_IPV4
Linus Torvalds1da177e2005-04-16 15:20:36 -0700180
181config IP_NF_TARGET_MASQUERADE
182 tristate "MASQUERADE target support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800183 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700184 help
185 Masquerading is a special case of NAT: all outgoing connections are
186 changed to seem to come from a particular interface's address, and
187 if the interface goes down, those connections are lost. This is
188 only useful for dialup accounts with dynamic IP address (ie. your IP
189 address will be different on next dialup).
190
191 To compile it as a module, choose M here. If unsure, say N.
192
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200193config IP_NF_TARGET_NETMAP
194 tristate "NETMAP target support"
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200195 depends on NETFILTER_ADVANCED
Jan Engelhardtb3d54b32012-09-21 11:37:59 +0200196 select NETFILTER_XT_TARGET_NETMAP
197 ---help---
198 This is a backwards-compat option for the user's convenience
199 (e.g. when running oldconfig). It selects
200 CONFIG_NETFILTER_XT_TARGET_NETMAP.
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200201
Linus Torvalds1da177e2005-04-16 15:20:36 -0700202config IP_NF_TARGET_REDIRECT
203 tristate "REDIRECT target support"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800204 depends on NETFILTER_ADVANCED
Jan Engelhardt2cbc78a2012-09-21 11:41:34 +0200205 select NETFILTER_XT_TARGET_REDIRECT
206 ---help---
207 This is a backwards-compat option for the user's convenience
208 (e.g. when running oldconfig). It selects
209 CONFIG_NETFILTER_XT_TARGET_REDIRECT.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700210
Patrick McHardyc7232c92012-08-26 19:14:06 +0200211endif
212
Patrick McHardy807467c2006-12-02 22:10:34 -0800213config NF_NAT_SNMP_BASIC
Patrick McHardy8ce22fc2008-01-14 23:31:36 -0800214 tristate "Basic SNMP-ALG support"
Patrick McHardyc7232c92012-08-26 19:14:06 +0200215 depends on NF_CONNTRACK_SNMP && NF_NAT_IPV4
Patrick McHardy33b8e772007-12-17 22:47:05 -0800216 depends on NETFILTER_ADVANCED
Jiri Olsa93557f52011-01-18 18:12:24 +0100217 default NF_NAT && NF_CONNTRACK_SNMP
Patrick McHardy807467c2006-12-02 22:10:34 -0800218 ---help---
219
220 This module implements an Application Layer Gateway (ALG) for
221 SNMP payloads. In conjunction with NAT, it allows a network
222 management system to access multiple private networks with
223 conflicting addresses. It works by modifying IP addresses
224 inside SNMP payloads to match IP-layer NAT mapping.
225
226 This is the "basic" form of SNMP-ALG, as described in RFC 2962
227
228 To compile it as a module, choose M here. If unsure, say N.
229
Jozsef Kadlecsik55a73322006-12-02 22:07:44 -0800230# If they want FTP, set to $CONFIG_IP_NF_NAT (m or y),
231# or $CONFIG_IP_NF_FTP (m or y), whichever is weaker.
232# From kconfig-language.txt:
233#
234# <expr> '&&' <expr> (6)
235#
236# (6) Returns the result of min(/expr/, /expr/).
Patrick McHardy4910a082008-03-20 15:15:57 +0100237
Patrick McHardyf09943f2006-12-02 22:09:41 -0800238config NF_NAT_PROTO_GRE
239 tristate
Patrick McHardyc7232c92012-08-26 19:14:06 +0200240 depends on NF_NAT_IPV4 && NF_CT_PROTO_GRE
Patrick McHardy9d908a62008-04-14 11:15:50 +0200241
Patrick McHardyf09943f2006-12-02 22:09:41 -0800242config NF_NAT_PPTP
243 tristate
Patrick McHardyc7232c92012-08-26 19:14:06 +0200244 depends on NF_CONNTRACK && NF_NAT_IPV4
245 default NF_NAT_IPV4 && NF_CONNTRACK_PPTP
Patrick McHardyf09943f2006-12-02 22:09:41 -0800246 select NF_NAT_PROTO_GRE
247
Patrick McHardyf587de02006-12-02 22:08:46 -0800248config NF_NAT_H323
249 tristate
Patrick McHardyc7232c92012-08-26 19:14:06 +0200250 depends on NF_CONNTRACK && NF_NAT_IPV4
251 default NF_NAT_IPV4 && NF_CONNTRACK_H323
Patrick McHardyf587de02006-12-02 22:08:46 -0800252
Linus Torvalds1da177e2005-04-16 15:20:36 -0700253# mangle + specific targets
254config IP_NF_MANGLE
255 tristate "Packet mangling"
Patrick McHardy33b8e772007-12-17 22:47:05 -0800256 default m if NETFILTER_ADVANCED=n
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257 help
258 This option adds a `mangle' table to iptables: see the man page for
259 iptables(8). This table is used for various packet alterations
260 which can effect how the packet is routed.
261
262 To compile it as a module, choose M here. If unsure, say N.
263
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200264config IP_NF_TARGET_CLUSTERIP
Kees Cookaec9a0e2012-10-02 11:19:48 -0700265 tristate "CLUSTERIP target support"
266 depends on IP_NF_MANGLE
Jan Engelhardtaba0d342008-10-08 11:35:17 +0200267 depends on NF_CONNTRACK_IPV4
268 depends on NETFILTER_ADVANCED
269 select NF_CONNTRACK_MARK
270 help
271 The CLUSTERIP target allows you to build load-balancing clusters of
272 network servers without having a dedicated load-balancing
273 router/server/switch.
274
275 To compile it as a module, choose M here. If unsure, say N.
276
Linus Torvalds1da177e2005-04-16 15:20:36 -0700277config IP_NF_TARGET_ECN
278 tristate "ECN target support"
279 depends on IP_NF_MANGLE
Patrick McHardy33b8e772007-12-17 22:47:05 -0800280 depends on NETFILTER_ADVANCED
Linus Torvalds1da177e2005-04-16 15:20:36 -0700281 ---help---
282 This option adds a `ECN' target, which can be used in the iptables mangle
283 table.
284
285 You can use this target to remove the ECN bits from the IPv4 header of
286 an IP packet. This is particularly useful, if you need to work around
287 existing ECN blackholes on the internet, but don't want to disable
288 ECN support in general.
289
290 To compile it as a module, choose M here. If unsure, say N.
291
Jan Engelhardt43233622009-02-19 11:16:03 +0100292config IP_NF_TARGET_TTL
293 tristate '"TTL" target support'
Randy Dunlap76b67172010-10-18 11:13:30 +0200294 depends on NETFILTER_ADVANCED && IP_NF_MANGLE
Jan Engelhardt43233622009-02-19 11:16:03 +0100295 select NETFILTER_XT_TARGET_HL
296 ---help---
Randy Dunlap76b67172010-10-18 11:13:30 +0200297 This is a backwards-compatible option for the user's convenience
Jan Engelhardt43233622009-02-19 11:16:03 +0100298 (e.g. when running oldconfig). It selects
Stephen Hemminger67c0d572009-03-16 15:17:23 +0100299 CONFIG_NETFILTER_XT_TARGET_HL.
Jan Engelhardt43233622009-02-19 11:16:03 +0100300
Linus Torvalds1da177e2005-04-16 15:20:36 -0700301# raw + specific targets
302config IP_NF_RAW
303 tristate 'raw table support (required for NOTRACK/TRACE)'
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304 help
305 This option adds a `raw' table to iptables. This table is the very
306 first in the netfilter framework and hooks in at the PREROUTING
307 and OUTPUT chains.
308
309 If you want to compile it as a module, say M here and read
Dirk Hohndele4031492007-10-30 13:37:19 -0700310 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700311
James Morris560ee652008-06-09 15:57:24 -0700312# security table for MAC policy
313config IP_NF_SECURITY
314 tristate "Security table"
James Morris560ee652008-06-09 15:57:24 -0700315 depends on SECURITY
Patrick McHardy70eed752008-07-23 16:42:42 -0700316 depends on NETFILTER_ADVANCED
James Morris560ee652008-06-09 15:57:24 -0700317 help
318 This option adds a `security' table to iptables, for use
319 with Mandatory Access Control (MAC) policy.
320
321 If unsure, say N.
322
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200323endif # IP_NF_IPTABLES
324
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325# ARP tables
326config IP_NF_ARPTABLES
327 tristate "ARP tables support"
Patrick McHardya3c941b2007-02-12 11:15:02 -0800328 select NETFILTER_XTABLES
Patrick McHardy33b8e772007-12-17 22:47:05 -0800329 depends on NETFILTER_ADVANCED
Linus Torvalds1da177e2005-04-16 15:20:36 -0700330 help
331 arptables is a general, extensible packet identification framework.
332 The ARP packet filtering and mangling (manipulation)subsystems
333 use this: say Y or M here if you want to use either of those.
334
335 To compile it as a module, choose M here. If unsure, say N.
336
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200337if IP_NF_ARPTABLES
338
Linus Torvalds1da177e2005-04-16 15:20:36 -0700339config IP_NF_ARPFILTER
340 tristate "ARP packet filtering"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341 help
342 ARP packet filtering defines a table `filter', which has a series of
343 rules for simple ARP packet filtering at local input and
344 local output. On a bridge, you can also specify filtering rules
345 for forwarded ARP packets. See the man page for arptables(8).
346
347 To compile it as a module, choose M here. If unsure, say N.
348
349config IP_NF_ARP_MANGLE
350 tristate "ARP payload mangling"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700351 help
352 Allows altering the ARP packet payload: source and destination
353 hardware and network addresses.
354
Jan Engelhardtc2df73d2008-10-08 11:35:18 +0200355endif # IP_NF_ARPTABLES
356
Linus Torvalds1da177e2005-04-16 15:20:36 -0700357endmenu
358