2 # IP netfilter configuration
5 menu "IP: Netfilter Configuration"
6 depends on INET && NETFILTER
13 tristate "IPv4 socket lookup support"
15 This option enables the IPv4 socket lookup infrastructure. This is
16 is required by the {ip,nf}tables socket match.
19 tristate "IPv4 tproxy support"
24 bool "IPv4 nf_tables support"
26 This option enables the IPv4 support for nf_tables.
30 config NFT_CHAIN_ROUTE_IPV4
31 tristate "IPv4 nf_tables route chain support"
33 This option enables the "route" chain for IPv4 in nf_tables. This
34 chain type is used to force packet re-routing after mangling header
35 fields such as the source, destination, type of service and
38 config NFT_REJECT_IPV4
44 tristate "IPv4 nf_tables packet duplication support"
45 depends on !NF_CONNTRACK || NF_CONNTRACK
48 This module enables IPv4 packet duplication support for nf_tables.
52 tristate "nf_tables fib / ip route lookup support"
54 This module enables IPv4 FIB lookups, e.g. for reverse path filtering.
55 It also allows query of the FIB for the route type, e.g. local, unicast,
56 multicast or blackhole.
58 endif # NF_TABLES_IPV4
61 bool "ARP nf_tables support"
62 select NETFILTER_FAMILY_ARP
64 This option enables the ARP support for nf_tables.
68 config NF_FLOW_TABLE_IPV4
69 tristate "Netfilter flow table IPv4 module"
70 depends on NF_FLOW_TABLE
72 This option adds the flow table IPv4 support.
74 To compile it as a module, choose M here.
77 tristate "Netfilter IPv4 packet duplication to alternate destination"
78 depends on !NF_CONNTRACK || NF_CONNTRACK
80 This option enables the nf_dup_ipv4 core, which duplicates an IPv4
81 packet to be rerouted to another destination.
84 tristate "ARP packet logging"
85 default m if NETFILTER_ADVANCED=n
89 tristate "IPv4 packet logging"
90 default m if NETFILTER_ADVANCED=n
94 tristate "IPv4 packet rejection"
95 default m if NETFILTER_ADVANCED=n
99 depends on NF_CONNTRACK
100 default m if NETFILTER_ADVANCED=n
103 The IPv4 NAT option allows masquerading, port forwarding and other
104 forms of full Network Address Port Translation. This can be
105 controlled by iptables or nft.
109 config NF_NAT_MASQUERADE_IPV4
113 config NFT_CHAIN_NAT_IPV4
114 depends on NF_TABLES_IPV4
115 tristate "IPv4 nf_tables nat chain support"
117 This option enables the "nat" chain for IPv4 in nf_tables. This
118 chain type is used to perform Network Address Translation (NAT)
119 packet transformations such as the source, destination address and
120 source and destination ports.
123 tristate "IPv4 masquerading support for nf_tables"
124 depends on NF_TABLES_IPV4
126 select NF_NAT_MASQUERADE_IPV4
128 This is the expression that provides IPv4 masquerading support for
131 config NFT_REDIR_IPV4
132 tristate "IPv4 redirect support for nf_tables"
133 depends on NF_TABLES_IPV4
135 select NF_NAT_REDIRECT
137 This is the expression that provides IPv4 redirect support for
141 config NF_NAT_SNMP_BASIC
142 tristate "Basic SNMP-ALG support"
143 depends on NF_CONNTRACK_SNMP
144 depends on NETFILTER_ADVANCED
145 default NF_NAT && NF_CONNTRACK_SNMP
149 This module implements an Application Layer Gateway (ALG) for
150 SNMP payloads. In conjunction with NAT, it allows a network
151 management system to access multiple private networks with
152 conflicting addresses. It works by modifying IP addresses
153 inside SNMP payloads to match IP-layer NAT mapping.
155 This is the "basic" form of SNMP-ALG, as described in RFC 2962
157 To compile it as a module, choose M here. If unsure, say N.
159 config NF_NAT_PROTO_GRE
161 depends on NF_CT_PROTO_GRE
165 depends on NF_CONNTRACK
166 default NF_CONNTRACK_PPTP
167 select NF_NAT_PROTO_GRE
171 depends on NF_CONNTRACK
172 default NF_CONNTRACK_H323
176 config IP_NF_IPTABLES
177 tristate "IP tables support (required for filtering/masq/NAT)"
178 default m if NETFILTER_ADVANCED=n
179 select NETFILTER_XTABLES
181 iptables is a general, extensible packet identification framework.
182 The packet filtering and full NAT (masquerading, port forwarding,
183 etc) subsystems now use this: say `Y' or `M' here if you want to use
186 To compile it as a module, choose M here. If unsure, say N.
191 config IP_NF_MATCH_AH
192 tristate '"ah" match support'
193 depends on NETFILTER_ADVANCED
195 This match extension allows you to match a range of SPIs
196 inside AH header of IPSec packets.
198 To compile it as a module, choose M here. If unsure, say N.
200 config IP_NF_MATCH_ECN
201 tristate '"ecn" match support'
202 depends on NETFILTER_ADVANCED
203 select NETFILTER_XT_MATCH_ECN
205 This is a backwards-compat option for the user's convenience
206 (e.g. when running oldconfig). It selects
207 CONFIG_NETFILTER_XT_MATCH_ECN.
209 config IP_NF_MATCH_RPFILTER
210 tristate '"rpfilter" reverse path filter match support'
211 depends on NETFILTER_ADVANCED
212 depends on IP_NF_MANGLE || IP_NF_RAW
214 This option allows you to match packets whose replies would
215 go out via the interface the packet came in.
217 To compile it as a module, choose M here. If unsure, say N.
218 The module will be called ipt_rpfilter.
220 config IP_NF_MATCH_TTL
221 tristate '"ttl" match support'
222 depends on NETFILTER_ADVANCED
223 select NETFILTER_XT_MATCH_HL
225 This is a backwards-compat option for the user's convenience
226 (e.g. when running oldconfig). It selects
227 CONFIG_NETFILTER_XT_MATCH_HL.
229 # `filter', generic and specific targets
231 tristate "Packet filtering"
232 default m if NETFILTER_ADVANCED=n
234 Packet filtering defines a table `filter', which has a series of
235 rules for simple packet filtering at local input, forwarding and
236 local output. See the man page for iptables(8).
238 To compile it as a module, choose M here. If unsure, say N.
240 config IP_NF_TARGET_REJECT
241 tristate "REJECT target support"
242 depends on IP_NF_FILTER
243 select NF_REJECT_IPV4
244 default m if NETFILTER_ADVANCED=n
246 The REJECT target allows a filtering rule to specify that an ICMP
247 error should be issued in response to an incoming packet, rather
248 than silently being dropped.
250 To compile it as a module, choose M here. If unsure, say N.
252 config IP_NF_TARGET_SYNPROXY
253 tristate "SYNPROXY target support"
254 depends on NF_CONNTRACK && NETFILTER_ADVANCED
255 select NETFILTER_SYNPROXY
258 The SYNPROXY target allows you to intercept TCP connections and
259 establish them using syncookies before they are passed on to the
260 server. This allows to avoid conntrack and server resource usage
261 during SYN-flood attacks.
263 To compile it as a module, choose M here. If unsure, say N.
265 # NAT + specific targets: nf_conntrack
267 tristate "iptables NAT support"
268 depends on NF_CONNTRACK
269 default m if NETFILTER_ADVANCED=n
272 select NETFILTER_XT_NAT
274 This enables the `nat' table in iptables. This allows masquerading,
275 port forwarding and other forms of full Network Address Port
278 To compile it as a module, choose M here. If unsure, say N.
282 config IP_NF_TARGET_MASQUERADE
283 tristate "MASQUERADE target support"
284 select NF_NAT_MASQUERADE_IPV4
285 default m if NETFILTER_ADVANCED=n
287 Masquerading is a special case of NAT: all outgoing connections are
288 changed to seem to come from a particular interface's address, and
289 if the interface goes down, those connections are lost. This is
290 only useful for dialup accounts with dynamic IP address (ie. your IP
291 address will be different on next dialup).
293 To compile it as a module, choose M here. If unsure, say N.
295 config IP_NF_TARGET_NETMAP
296 tristate "NETMAP target support"
297 depends on NETFILTER_ADVANCED
298 select NETFILTER_XT_TARGET_NETMAP
300 This is a backwards-compat option for the user's convenience
301 (e.g. when running oldconfig). It selects
302 CONFIG_NETFILTER_XT_TARGET_NETMAP.
304 config IP_NF_TARGET_REDIRECT
305 tristate "REDIRECT target support"
306 depends on NETFILTER_ADVANCED
307 select NETFILTER_XT_TARGET_REDIRECT
309 This is a backwards-compat option for the user's convenience
310 (e.g. when running oldconfig). It selects
311 CONFIG_NETFILTER_XT_TARGET_REDIRECT.
315 # mangle + specific targets
317 tristate "Packet mangling"
318 default m if NETFILTER_ADVANCED=n
320 This option adds a `mangle' table to iptables: see the man page for
321 iptables(8). This table is used for various packet alterations
322 which can effect how the packet is routed.
324 To compile it as a module, choose M here. If unsure, say N.
326 config IP_NF_TARGET_CLUSTERIP
327 tristate "CLUSTERIP target support"
328 depends on IP_NF_MANGLE
329 depends on NF_CONNTRACK
330 depends on NETFILTER_ADVANCED
331 select NF_CONNTRACK_MARK
332 select NETFILTER_FAMILY_ARP
334 The CLUSTERIP target allows you to build load-balancing clusters of
335 network servers without having a dedicated load-balancing
336 router/server/switch.
338 To compile it as a module, choose M here. If unsure, say N.
340 config IP_NF_TARGET_ECN
341 tristate "ECN target support"
342 depends on IP_NF_MANGLE
343 depends on NETFILTER_ADVANCED
345 This option adds a `ECN' target, which can be used in the iptables mangle
348 You can use this target to remove the ECN bits from the IPv4 header of
349 an IP packet. This is particularly useful, if you need to work around
350 existing ECN blackholes on the internet, but don't want to disable
351 ECN support in general.
353 To compile it as a module, choose M here. If unsure, say N.
355 config IP_NF_TARGET_TTL
356 tristate '"TTL" target support'
357 depends on NETFILTER_ADVANCED && IP_NF_MANGLE
358 select NETFILTER_XT_TARGET_HL
360 This is a backwards-compatible option for the user's convenience
361 (e.g. when running oldconfig). It selects
362 CONFIG_NETFILTER_XT_TARGET_HL.
364 # raw + specific targets
366 tristate 'raw table support (required for NOTRACK/TRACE)'
368 This option adds a `raw' table to iptables. This table is the very
369 first in the netfilter framework and hooks in at the PREROUTING
372 If you want to compile it as a module, say M here and read
373 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
375 # security table for MAC policy
376 config IP_NF_SECURITY
377 tristate "Security table"
379 depends on NETFILTER_ADVANCED
381 This option adds a `security' table to iptables, for use
382 with Mandatory Access Control (MAC) policy.
386 endif # IP_NF_IPTABLES
389 config IP_NF_ARPTABLES
390 tristate "ARP tables support"
391 select NETFILTER_XTABLES
392 select NETFILTER_FAMILY_ARP
393 depends on NETFILTER_ADVANCED
395 arptables is a general, extensible packet identification framework.
396 The ARP packet filtering and mangling (manipulation)subsystems
397 use this: say Y or M here if you want to use either of those.
399 To compile it as a module, choose M here. If unsure, say N.
403 config IP_NF_ARPFILTER
404 tristate "ARP packet filtering"
406 ARP packet filtering defines a table `filter', which has a series of
407 rules for simple ARP packet filtering at local input and
408 local output. On a bridge, you can also specify filtering rules
409 for forwarded ARP packets. See the man page for arptables(8).
411 To compile it as a module, choose M here. If unsure, say N.
413 config IP_NF_ARP_MANGLE
414 tristate "ARP payload mangling"
416 Allows altering the ARP packet payload: source and destination
417 hardware and network addresses.
419 endif # IP_NF_ARPTABLES