#
# IP netfilter configuration
#
menu "IP: Netfilter Configuration"
depends on [31mCONFIG_INET[0m && [31mCONFIG_NETFILTER[0m
config [31mCONFIG_NF_DEFRAG_IPV4[0m
tristate
default n
config [31mCONFIG_NF_CONNTRACK_IPV4[0m
tristate "IPv4 connection tracking support (required for NAT)"
depends on [31mCONFIG_NF_CONNTRACK[0m
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
select [31mCONFIG_NF_DEFRAG_IPV4[0m
---help---
Connection tracking keeps a record of what packets have passed
through your machine, in order to figure out how they are related
into connections.
This is IPv4 support on Layer 3 independent connection tracking.
Layer 3 independent connection tracking is experimental scheme
which generalize ip_conntrack to support other layer 3 protocols.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_NF_SOCKET_IPV4[0m
tristate "IPv4 socket lookup support"
help
This option enables the IPv4 socket lookup infrastructure. This is
is required by the iptables socket match.
if [31mCONFIG_NF_TABLES[0m
config [31mCONFIG_NF_TABLES_IPV4[0m
tristate "IPv4 nf_tables support"
help
This option enables the IPv4 support for nf_tables.
if [31mCONFIG_NF_TABLES_IPV4[0m
config [31mCONFIG_NFT_CHAIN_ROUTE_IPV4[0m
tristate "IPv4 nf_tables route chain support"
help
This option enables the "route" chain for IPv4 in nf_tables. This
chain type is used to force packet re-routing after mangling header
fields such as the source, destination, type of service and
the packet mark.
config [31mCONFIG_NFT_REJECT_IPV4[0m
select [31mCONFIG_NF_REJECT_IPV4[0m
default [31mCONFIG_NFT_REJECT[0m
tristate
config [31mCONFIG_NFT_DUP_IPV4[0m
tristate "IPv4 nf_tables packet duplication support"
depends on ![31mCONFIG_NF_CONNTRACK[0m || [31mCONFIG_NF_CONNTRACK[0m
select [31mCONFIG_NF_DUP_IPV4[0m
help
This module enables IPv4 packet duplication support for nf_tables.
config [31mCONFIG_NFT_FIB_IPV4[0m
select [31mCONFIG_NFT_FIB[0m
tristate "nf_tables fib / ip route lookup support"
help
This module enables IPv4 FIB lookups, e.g. for reverse path filtering.
It also allows query of the FIB for the route type, e.g. local, unicast,
multicast or blackhole.
endif # [31mCONFIG_NF_TABLES_IPV4[0m
config [31mCONFIG_NF_TABLES_ARP[0m
tristate "ARP nf_tables support"
help
This option enables the ARP support for nf_tables.
endif # [31mCONFIG_NF_TABLES[0m
config [31mCONFIG_NF_DUP_IPV4[0m
tristate "Netfilter IPv4 packet duplication to alternate destination"
depends on ![31mCONFIG_NF_CONNTRACK[0m || [31mCONFIG_NF_CONNTRACK[0m
help
This option enables the nf_dup_ipv4 core, which duplicates an IPv4
packet to be rerouted to another destination.
config [31mCONFIG_NF_LOG_ARP[0m
tristate "ARP packet logging"
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
select [31mCONFIG_NF_LOG_COMMON[0m
config [31mCONFIG_NF_LOG_IPV4[0m
tristate "IPv4 packet logging"
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
select [31mCONFIG_NF_LOG_COMMON[0m
config [31mCONFIG_NF_REJECT_IPV4[0m
tristate "IPv4 packet rejection"
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
config [31mCONFIG_NF_NAT_IPV4[0m
tristate "IPv4 NAT"
depends on [31mCONFIG_NF_CONNTRACK_IPV4[0m
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
select [31mCONFIG_NF_NAT[0m
help
The IPv4 NAT option allows masquerading, port forwarding and other
forms of full Network Address Port Translation. This can be
controlled by iptables or nft.
if [31mCONFIG_NF_NAT_IPV4[0m
config [31mCONFIG_NFT_CHAIN_NAT_IPV4[0m
depends on [31mCONFIG_NF_TABLES_IPV4[0m
tristate "IPv4 nf_tables nat chain support"
help
This option enables the "nat" chain for IPv4 in nf_tables. This
chain type is used to perform Network Address Translation (NAT)
packet transformations such as the source, destination address and
source and destination ports.
config [31mCONFIG_NF_NAT_MASQUERADE_IPV4[0m
tristate "IPv4 masquerade support"
help
This is the kernel functionality to provide NAT in the masquerade
flavour (automatic source address selection).
config [31mCONFIG_NFT_MASQ_IPV4[0m
tristate "IPv4 masquerading support for nf_tables"
depends on [31mCONFIG_NF_TABLES_IPV4[0m
depends on [31mCONFIG_NFT_MASQ[0m
select [31mCONFIG_NF_NAT_MASQUERADE_IPV4[0m
help
This is the expression that provides IPv4 masquerading support for
nf_tables.
config [31mCONFIG_NFT_REDIR_IPV4[0m
tristate "IPv4 redirect support for nf_tables"
depends on [31mCONFIG_NF_TABLES_IPV4[0m
depends on [31mCONFIG_NFT_REDIR[0m
select [31mCONFIG_NF_NAT_REDIRECT[0m
help
This is the expression that provides IPv4 redirect support for
nf_tables.
config [31mCONFIG_NF_NAT_SNMP_BASIC[0m
tristate "Basic SNMP-ALG support"
depends on [31mCONFIG_NF_CONNTRACK_SNMP[0m
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
default [31mCONFIG_NF_NAT[0m && [31mCONFIG_NF_CONNTRACK_SNMP[0m
---help---
This module implements an Application Layer Gateway (ALG) for
SNMP payloads. In conjunction with NAT, it allows a network
management system to access multiple private networks with
conflicting addresses. It works by modifying IP addresses
inside SNMP payloads to match IP-layer NAT mapping.
This is the "basic" form of SNMP-ALG, as described in RFC 2962
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_NF_NAT_PROTO_GRE[0m
tristate
depends on [31mCONFIG_NF_CT_PROTO_GRE[0m
config [31mCONFIG_NF_NAT_PPTP[0m
tristate
depends on [31mCONFIG_NF_CONNTRACK[0m
default [31mCONFIG_NF_CONNTRACK_PPTP[0m
select [31mCONFIG_NF_NAT_PROTO_GRE[0m
config [31mCONFIG_NF_NAT_H323[0m
tristate
depends on [31mCONFIG_NF_CONNTRACK[0m
default [31mCONFIG_NF_CONNTRACK_H323[0m
endif # [31mCONFIG_NF_NAT_IPV4[0m
config [31mCONFIG_IP_NF_IPTABLES[0m
tristate "IP tables support (required for filtering/masq/NAT)"
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
select [31mCONFIG_NETFILTER_XTABLES[0m
help
iptables is a general, extensible packet identification framework.
The packet filtering and full NAT (masquerading, port forwarding,
etc) subsystems now use this: say `Y' or `[31mCONFIG_M[0m' here if you want to use
either of those.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
if [31mCONFIG_IP_NF_IPTABLES[0m
# The matches.
config [31mCONFIG_IP_NF_MATCH_AH[0m
tristate '"ah" match support'
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
help
This match extension allows you to match a range of SPIs
inside AH header of IPSec packets.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_MATCH_ECN[0m
tristate '"ecn" match support'
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
select [31mCONFIG_NETFILTER_XT_MATCH_ECN[0m
---help---
This is a backwards-compat option for the user's convenience
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_MATCH_ECN.
config [31mCONFIG_IP_NF_MATCH_RPFILTER[0m
tristate '"rpfilter" reverse path filter match support'
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
depends on [31mCONFIG_IP_NF_MANGLE[0m || [31mCONFIG_IP_NF_RAW[0m
---help---
This option allows you to match packets whose replies would
go out via the interface the packet came in.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
The module will be called ipt_rpfilter.
config [31mCONFIG_IP_NF_MATCH_TTL[0m
tristate '"ttl" match support'
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
select [31mCONFIG_NETFILTER_XT_MATCH_HL[0m
---help---
This is a backwards-compat option for the user's convenience
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_MATCH_HL.
# `filter', generic and specific targets
config [31mCONFIG_IP_NF_FILTER[0m
tristate "Packet filtering"
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
help
Packet filtering defines a table `filter', which has a series of
rules for simple packet filtering at local input, forwarding and
local output. See the man page for iptables(8).
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_TARGET_REJECT[0m
tristate "REJECT target support"
depends on [31mCONFIG_IP_NF_FILTER[0m
select [31mCONFIG_NF_REJECT_IPV4[0m
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
help
The REJECT target allows a filtering rule to specify that an ICMP
error should be issued in response to an incoming packet, rather
than silently being dropped.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_TARGET_SYNPROXY[0m
tristate "SYNPROXY target support"
depends on [31mCONFIG_NF_CONNTRACK[0m && [31mCONFIG_NETFILTER_ADVANCED[0m
select [31mCONFIG_NETFILTER_SYNPROXY[0m
select [31mCONFIG_SYN_COOKIES[0m
help
The SYNPROXY target allows you to intercept TCP connections and
establish them using syncookies before they are passed on to the
server. This allows to avoid conntrack and server resource usage
during SYN-flood attacks.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
# NAT + specific targets: nf_conntrack
config [31mCONFIG_IP_NF_NAT[0m
tristate "iptables NAT support"
depends on [31mCONFIG_NF_CONNTRACK_IPV4[0m
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
select [31mCONFIG_NF_NAT[0m
select [31mCONFIG_NF_NAT_IPV4[0m
select [31mCONFIG_NETFILTER_XT_NAT[0m
help
This enables the `nat' table in iptables. This allows masquerading,
port forwarding and other forms of full Network Address Port
Translation.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
if [31mCONFIG_IP_NF_NAT[0m
config [31mCONFIG_IP_NF_TARGET_MASQUERADE[0m
tristate "MASQUERADE target support"
select [31mCONFIG_NF_NAT_MASQUERADE_IPV4[0m
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
help
Masquerading is a special case of NAT: all outgoing connections are
changed to seem to come from a particular interface's address, and
if the interface goes down, those connections are lost. This is
only useful for dialup accounts with dynamic IP address (ie. your IP
address will be different on next dialup).
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_TARGET_NETMAP[0m
tristate "NETMAP target support"
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
select [31mCONFIG_NETFILTER_XT_TARGET_NETMAP[0m
---help---
This is a backwards-compat option for the user's convenience
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_TARGET_NETMAP.
config [31mCONFIG_IP_NF_TARGET_REDIRECT[0m
tristate "REDIRECT target support"
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
select [31mCONFIG_NETFILTER_XT_TARGET_REDIRECT[0m
---help---
This is a backwards-compat option for the user's convenience
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_TARGET_REDIRECT.
endif # [31mCONFIG_IP_NF_NAT[0m
# mangle + specific targets
config [31mCONFIG_IP_NF_MANGLE[0m
tristate "Packet mangling"
default m if [31mCONFIG_NETFILTER_ADVANCED[0m=n
help
This option adds a `mangle' table to iptables: see the man page for
iptables(8). This table is used for various packet alterations
which can effect how the packet is routed.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_TARGET_CLUSTERIP[0m
tristate "CLUSTERIP target support"
depends on [31mCONFIG_IP_NF_MANGLE[0m
depends on [31mCONFIG_NF_CONNTRACK_IPV4[0m
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
select [31mCONFIG_NF_CONNTRACK_MARK[0m
help
The CLUSTERIP target allows you to build load-balancing clusters of
network servers without having a dedicated load-balancing
router/server/switch.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_TARGET_ECN[0m
tristate "ECN target support"
depends on [31mCONFIG_IP_NF_MANGLE[0m
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
---help---
This option adds a `ECN' target, which can be used in the iptables mangle
table.
You can use this target to remove the ECN bits from the IPv4 header of
an IP packet. This is particularly useful, if you need to work around
existing ECN blackholes on the internet, but don't want to disable
ECN support in general.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_TARGET_TTL[0m
tristate '"TTL" target support'
depends on [31mCONFIG_NETFILTER_ADVANCED[0m && [31mCONFIG_IP_NF_MANGLE[0m
select [31mCONFIG_NETFILTER_XT_TARGET_HL[0m
---help---
This is a backwards-compatible option for the user's convenience
(e.g. when running oldconfig). It selects
CONFIG_NETFILTER_XT_TARGET_HL.
# raw + specific targets
config [31mCONFIG_IP_NF_RAW[0m
tristate 'raw table support (required for NOTRACK/TRACE)'
help
This option adds a `raw' table to iptables. This table is the very
first in the netfilter framework and hooks in at the PREROUTING
and OUTPUT chains.
If you want to compile it as a module, say [31mCONFIG_M[0m here and read
<file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
# security table for [31mCONFIG_MAC[0m policy
config [31mCONFIG_IP_NF_SECURITY[0m
tristate "Security table"
depends on [31mCONFIG_SECURITY[0m
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
help
This option adds a `security' table to iptables, for use
with Mandatory Access Control ([31mCONFIG_MAC[0m) policy.
If unsure, say N.
endif # [31mCONFIG_IP_NF_IPTABLES[0m
# ARP tables
config [31mCONFIG_IP_NF_ARPTABLES[0m
tristate "ARP tables support"
select [31mCONFIG_NETFILTER_XTABLES[0m
depends on [31mCONFIG_NETFILTER_ADVANCED[0m
help
arptables is a general, extensible packet identification framework.
The ARP packet filtering and mangling (manipulation)subsystems
use this: say Y or [31mCONFIG_M[0m here if you want to use either of those.
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
if [31mCONFIG_IP_NF_ARPTABLES[0m
config [31mCONFIG_IP_NF_ARPFILTER[0m
tristate "ARP packet filtering"
help
ARP packet filtering defines a table `filter', which has a series of
rules for simple ARP packet filtering at local input and
local output. On a bridge, you can also specify filtering rules
for forwarded ARP packets. See the man page for arptables(8).
To compile it as a module, choose [31mCONFIG_M[0m here. If unsure, say N.
config [31mCONFIG_IP_NF_ARP_MANGLE[0m
tristate "ARP payload mangling"
help
Allows altering the ARP packet payload: source and destination
hardware and network addresses.
endif # [31mCONFIG_IP_NF_ARPTABLES[0m
endmenu