@@ -8,6 +8,7 @@ menu "IP: Netfilter Configuration"
88config NF_CONNTRACK_IPV4
99 tristate "IPv4 connection tracking support (required for NAT)"
1010 depends on NF_CONNTRACK
11+ default m if NETFILTER_ADVANCED=n
1112 ---help---
1213 Connection tracking keeps a record of what packets have passed
1314 through your machine, in order to figure out how they are related
@@ -32,6 +33,7 @@ config NF_CONNTRACK_PROC_COMPAT
3233
3334config IP_NF_QUEUE
3435 tristate "IP Userspace queueing via NETLINK (OBSOLETE)"
36+ depends on NETFILTER_ADVANCED
3537 help
3638 Netfilter has the ability to queue packets to user space: the
3739 netlink device can be used to access them using this driver.
@@ -44,6 +46,7 @@ config IP_NF_QUEUE
4446
4547config IP_NF_IPTABLES
4648 tristate "IP tables support (required for filtering/masq/NAT)"
49+ default m if NETFILTER_ADVANCED=n
4750 select NETFILTER_XTABLES
4851 help
4952 iptables is a general, extensible packet identification framework.
@@ -57,6 +60,7 @@ config IP_NF_IPTABLES
5760config IP_NF_MATCH_IPRANGE
5861 tristate '"iprange" match support'
5962 depends on IP_NF_IPTABLES
63+ depends on NETFILTER_ADVANCED
6064 help
6165 This option makes possible to match IP addresses against IP address
6266 ranges.
@@ -66,6 +70,7 @@ config IP_NF_MATCH_IPRANGE
6670config IP_NF_MATCH_RECENT
6771 tristate '"recent" match support'
6872 depends on IP_NF_IPTABLES
73+ depends on NETFILTER_ADVANCED
6974 help
7075 This match is used for creating one or many lists of recently
7176 used addresses and then matching against that/those list(s).
@@ -78,6 +83,7 @@ config IP_NF_MATCH_RECENT
7883config IP_NF_MATCH_ECN
7984 tristate '"ecn" match support'
8085 depends on IP_NF_IPTABLES
86+ depends on NETFILTER_ADVANCED
8187 help
8288 This option adds a `ECN' match, which allows you to match against
8389 the IPv4 and TCP header ECN fields.
@@ -87,6 +93,7 @@ config IP_NF_MATCH_ECN
8793config IP_NF_MATCH_AH
8894 tristate '"ah" match support'
8995 depends on IP_NF_IPTABLES
96+ depends on NETFILTER_ADVANCED
9097 help
9198 This match extension allows you to match a range of SPIs
9299 inside AH header of IPSec packets.
@@ -96,6 +103,7 @@ config IP_NF_MATCH_AH
96103config IP_NF_MATCH_TTL
97104 tristate '"ttl" match support'
98105 depends on IP_NF_IPTABLES
106+ depends on NETFILTER_ADVANCED
99107 help
100108 This adds CONFIG_IP_NF_MATCH_TTL option, which enabled the user
101109 to match packets by their TTL value.
@@ -105,17 +113,19 @@ config IP_NF_MATCH_TTL
105113config IP_NF_MATCH_ADDRTYPE
106114 tristate '"addrtype" address type match support'
107115 depends on IP_NF_IPTABLES
116+ depends on NETFILTER_ADVANCED
108117 help
109118 This option allows you to match what routing thinks of an address,
110119 eg. UNICAST, LOCAL, BROADCAST, ...
111-
120+
112121 If you want to compile it as a module, say M here and read
113122 <file:Documentation/kbuild/modules.txt>. If unsure, say `N'.
114123
115124# `filter', generic and specific targets
116125config IP_NF_FILTER
117126 tristate "Packet filtering"
118127 depends on IP_NF_IPTABLES
128+ default m if NETFILTER_ADVANCED=n
119129 help
120130 Packet filtering defines a table `filter', which has a series of
121131 rules for simple packet filtering at local input, forwarding and
@@ -126,6 +136,7 @@ config IP_NF_FILTER
126136config IP_NF_TARGET_REJECT
127137 tristate "REJECT target support"
128138 depends on IP_NF_FILTER
139+ default m if NETFILTER_ADVANCED=n
129140 help
130141 The REJECT target allows a filtering rule to specify that an ICMP
131142 error should be issued in response to an incoming packet, rather
@@ -136,6 +147,7 @@ config IP_NF_TARGET_REJECT
136147config IP_NF_TARGET_LOG
137148 tristate "LOG target support"
138149 depends on IP_NF_IPTABLES
150+ default m if NETFILTER_ADVANCED=n
139151 help
140152 This option adds a `LOG' target, which allows you to create rules in
141153 any iptables table which records the packet header to the syslog.
@@ -145,6 +157,7 @@ config IP_NF_TARGET_LOG
145157config IP_NF_TARGET_ULOG
146158 tristate "ULOG target support"
147159 depends on IP_NF_IPTABLES
160+ default m if NETFILTER_ADVANCED=n
148161 ---help---
149162
150163 This option enables the old IPv4-only "ipt_ULOG" implementation
@@ -165,6 +178,7 @@ config IP_NF_TARGET_ULOG
165178config NF_NAT
166179 tristate "Full NAT"
167180 depends on IP_NF_IPTABLES && NF_CONNTRACK_IPV4
181+ default m if NETFILTER_ADVANCED=n
168182 help
169183 The Full NAT option allows masquerading, port forwarding and other
170184 forms of full Network Address Port Translation. It is controlled by
@@ -180,6 +194,7 @@ config NF_NAT_NEEDED
180194config IP_NF_TARGET_MASQUERADE
181195 tristate "MASQUERADE target support"
182196 depends on NF_NAT
197+ default m if NETFILTER_ADVANCED=n
183198 help
184199 Masquerading is a special case of NAT: all outgoing connections are
185200 changed to seem to come from a particular interface's address, and
@@ -192,6 +207,7 @@ config IP_NF_TARGET_MASQUERADE
192207config IP_NF_TARGET_REDIRECT
193208 tristate "REDIRECT target support"
194209 depends on NF_NAT
210+ depends on NETFILTER_ADVANCED
195211 help
196212 REDIRECT is a special case of NAT: all incoming connections are
197213 mapped onto the incoming interface's address, causing the packets to
@@ -203,6 +219,7 @@ config IP_NF_TARGET_REDIRECT
203219config IP_NF_TARGET_NETMAP
204220 tristate "NETMAP target support"
205221 depends on NF_NAT
222+ depends on NETFILTER_ADVANCED
206223 help
207224 NETMAP is an implementation of static 1:1 NAT mapping of network
208225 addresses. It maps the network address part, while keeping the host
@@ -214,6 +231,7 @@ config IP_NF_TARGET_NETMAP
214231config NF_NAT_SNMP_BASIC
215232 tristate "Basic SNMP-ALG support (EXPERIMENTAL)"
216233 depends on EXPERIMENTAL && NF_NAT
234+ depends on NETFILTER_ADVANCED
217235 ---help---
218236
219237 This module implements an Application Layer Gateway (ALG) for
@@ -277,6 +295,7 @@ config NF_NAT_SIP
277295config IP_NF_MANGLE
278296 tristate "Packet mangling"
279297 depends on IP_NF_IPTABLES
298+ default m if NETFILTER_ADVANCED=n
280299 help
281300 This option adds a `mangle' table to iptables: see the man page for
282301 iptables(8). This table is used for various packet alterations
@@ -287,6 +306,7 @@ config IP_NF_MANGLE
287306config IP_NF_TARGET_ECN
288307 tristate "ECN target support"
289308 depends on IP_NF_MANGLE
309+ depends on NETFILTER_ADVANCED
290310 ---help---
291311 This option adds a `ECN' target, which can be used in the iptables mangle
292312 table.
@@ -301,6 +321,7 @@ config IP_NF_TARGET_ECN
301321config IP_NF_TARGET_TTL
302322 tristate 'TTL target support'
303323 depends on IP_NF_MANGLE
324+ depends on NETFILTER_ADVANCED
304325 help
305326 This option adds a `TTL' target, which enables the user to modify
306327 the TTL value of the IP header.
@@ -316,6 +337,7 @@ config IP_NF_TARGET_CLUSTERIP
316337 tristate "CLUSTERIP target support (EXPERIMENTAL)"
317338 depends on IP_NF_MANGLE && EXPERIMENTAL
318339 depends on NF_CONNTRACK_IPV4
340+ depends on NETFILTER_ADVANCED
319341 select NF_CONNTRACK_MARK
320342 help
321343 The CLUSTERIP target allows you to build load-balancing clusters of
@@ -328,6 +350,7 @@ config IP_NF_TARGET_CLUSTERIP
328350config IP_NF_RAW
329351 tristate 'raw table support (required for NOTRACK/TRACE)'
330352 depends on IP_NF_IPTABLES
353+ depends on NETFILTER_ADVANCED
331354 help
332355 This option adds a `raw' table to iptables. This table is the very
333356 first in the netfilter framework and hooks in at the PREROUTING
@@ -340,6 +363,7 @@ config IP_NF_RAW
340363config IP_NF_ARPTABLES
341364 tristate "ARP tables support"
342365 select NETFILTER_XTABLES
366+ depends on NETFILTER_ADVANCED
343367 help
344368 arptables is a general, extensible packet identification framework.
345369 The ARP packet filtering and mangling (manipulation)subsystems
0 commit comments