diff options
Diffstat (limited to 'net/ipv4/netfilter/Kconfig')
-rw-r--r-- | net/ipv4/netfilter/Kconfig | 64 |
1 files changed, 23 insertions, 41 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index fcc543cd987..b26629681bd 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig | |||
@@ -143,25 +143,22 @@ config IP_NF_TARGET_ULOG | |||
143 | To compile it as a module, choose M here. If unsure, say N. | 143 | To compile it as a module, choose M here. If unsure, say N. |
144 | 144 | ||
145 | # NAT + specific targets: nf_conntrack | 145 | # NAT + specific targets: nf_conntrack |
146 | config NF_NAT | 146 | config NF_NAT_IPV4 |
147 | tristate "Full NAT" | 147 | tristate "IPv4 NAT" |
148 | depends on NF_CONNTRACK_IPV4 | 148 | depends on NF_CONNTRACK_IPV4 |
149 | default m if NETFILTER_ADVANCED=n | 149 | default m if NETFILTER_ADVANCED=n |
150 | select NF_NAT | ||
150 | help | 151 | help |
151 | The Full NAT option allows masquerading, port forwarding and other | 152 | The IPv4 NAT option allows masquerading, port forwarding and other |
152 | forms of full Network Address Port Translation. It is controlled by | 153 | forms of full Network Address Port Translation. It is controlled by |
153 | the `nat' table in iptables: see the man page for iptables(8). | 154 | the `nat' table in iptables: see the man page for iptables(8). |
154 | 155 | ||
155 | To compile it as a module, choose M here. If unsure, say N. | 156 | To compile it as a module, choose M here. If unsure, say N. |
156 | 157 | ||
157 | config NF_NAT_NEEDED | 158 | if NF_NAT_IPV4 |
158 | bool | ||
159 | depends on NF_NAT | ||
160 | default y | ||
161 | 159 | ||
162 | config IP_NF_TARGET_MASQUERADE | 160 | config IP_NF_TARGET_MASQUERADE |
163 | tristate "MASQUERADE target support" | 161 | tristate "MASQUERADE target support" |
164 | depends on NF_NAT | ||
165 | default m if NETFILTER_ADVANCED=n | 162 | default m if NETFILTER_ADVANCED=n |
166 | help | 163 | help |
167 | Masquerading is a special case of NAT: all outgoing connections are | 164 | Masquerading is a special case of NAT: all outgoing connections are |
@@ -174,7 +171,6 @@ config IP_NF_TARGET_MASQUERADE | |||
174 | 171 | ||
175 | config IP_NF_TARGET_NETMAP | 172 | config IP_NF_TARGET_NETMAP |
176 | tristate "NETMAP target support" | 173 | tristate "NETMAP target support" |
177 | depends on NF_NAT | ||
178 | depends on NETFILTER_ADVANCED | 174 | depends on NETFILTER_ADVANCED |
179 | help | 175 | help |
180 | NETMAP is an implementation of static 1:1 NAT mapping of network | 176 | NETMAP is an implementation of static 1:1 NAT mapping of network |
@@ -185,7 +181,6 @@ config IP_NF_TARGET_NETMAP | |||
185 | 181 | ||
186 | config IP_NF_TARGET_REDIRECT | 182 | config IP_NF_TARGET_REDIRECT |
187 | tristate "REDIRECT target support" | 183 | tristate "REDIRECT target support" |
188 | depends on NF_NAT | ||
189 | depends on NETFILTER_ADVANCED | 184 | depends on NETFILTER_ADVANCED |
190 | help | 185 | help |
191 | REDIRECT is a special case of NAT: all incoming connections are | 186 | REDIRECT is a special case of NAT: all incoming connections are |
@@ -195,9 +190,11 @@ config IP_NF_TARGET_REDIRECT | |||
195 | 190 | ||
196 | To compile it as a module, choose M here. If unsure, say N. | 191 | To compile it as a module, choose M here. If unsure, say N. |
197 | 192 | ||
193 | endif | ||
194 | |||
198 | config NF_NAT_SNMP_BASIC | 195 | config NF_NAT_SNMP_BASIC |
199 | tristate "Basic SNMP-ALG support" | 196 | tristate "Basic SNMP-ALG support" |
200 | depends on NF_CONNTRACK_SNMP && NF_NAT | 197 | depends on NF_CONNTRACK_SNMP && NF_NAT_IPV4 |
201 | depends on NETFILTER_ADVANCED | 198 | depends on NETFILTER_ADVANCED |
202 | default NF_NAT && NF_CONNTRACK_SNMP | 199 | default NF_NAT && NF_CONNTRACK_SNMP |
203 | ---help--- | 200 | ---help--- |
@@ -219,61 +216,46 @@ config NF_NAT_SNMP_BASIC | |||
219 | # <expr> '&&' <expr> (6) | 216 | # <expr> '&&' <expr> (6) |
220 | # | 217 | # |
221 | # (6) Returns the result of min(/expr/, /expr/). | 218 | # (6) Returns the result of min(/expr/, /expr/). |
222 | config NF_NAT_PROTO_DCCP | ||
223 | tristate | ||
224 | depends on NF_NAT && NF_CT_PROTO_DCCP | ||
225 | default NF_NAT && NF_CT_PROTO_DCCP | ||
226 | 219 | ||
227 | config NF_NAT_PROTO_GRE | 220 | config NF_NAT_PROTO_GRE |
228 | tristate | 221 | tristate |
229 | depends on NF_NAT && NF_CT_PROTO_GRE | 222 | depends on NF_NAT_IPV4 && NF_CT_PROTO_GRE |
230 | |||
231 | config NF_NAT_PROTO_UDPLITE | ||
232 | tristate | ||
233 | depends on NF_NAT && NF_CT_PROTO_UDPLITE | ||
234 | default NF_NAT && NF_CT_PROTO_UDPLITE | ||
235 | |||
236 | config NF_NAT_PROTO_SCTP | ||
237 | tristate | ||
238 | default NF_NAT && NF_CT_PROTO_SCTP | ||
239 | depends on NF_NAT && NF_CT_PROTO_SCTP | ||
240 | select LIBCRC32C | ||
241 | 223 | ||
242 | config NF_NAT_FTP | 224 | config NF_NAT_FTP |
243 | tristate | 225 | tristate |
244 | depends on NF_CONNTRACK && NF_NAT | 226 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
245 | default NF_NAT && NF_CONNTRACK_FTP | 227 | default NF_NAT_IPV4 && NF_CONNTRACK_FTP |
246 | 228 | ||
247 | config NF_NAT_IRC | 229 | config NF_NAT_IRC |
248 | tristate | 230 | tristate |
249 | depends on NF_CONNTRACK && NF_NAT | 231 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
250 | default NF_NAT && NF_CONNTRACK_IRC | 232 | default NF_NAT_IPV4 && NF_CONNTRACK_IRC |
251 | 233 | ||
252 | config NF_NAT_TFTP | 234 | config NF_NAT_TFTP |
253 | tristate | 235 | tristate |
254 | depends on NF_CONNTRACK && NF_NAT | 236 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
255 | default NF_NAT && NF_CONNTRACK_TFTP | 237 | default NF_NAT_IPV4 && NF_CONNTRACK_TFTP |
256 | 238 | ||
257 | config NF_NAT_AMANDA | 239 | config NF_NAT_AMANDA |
258 | tristate | 240 | tristate |
259 | depends on NF_CONNTRACK && NF_NAT | 241 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
260 | default NF_NAT && NF_CONNTRACK_AMANDA | 242 | default NF_NAT_IPV4 && NF_CONNTRACK_AMANDA |
261 | 243 | ||
262 | config NF_NAT_PPTP | 244 | config NF_NAT_PPTP |
263 | tristate | 245 | tristate |
264 | depends on NF_CONNTRACK && NF_NAT | 246 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
265 | default NF_NAT && NF_CONNTRACK_PPTP | 247 | default NF_NAT_IPV4 && NF_CONNTRACK_PPTP |
266 | select NF_NAT_PROTO_GRE | 248 | select NF_NAT_PROTO_GRE |
267 | 249 | ||
268 | config NF_NAT_H323 | 250 | config NF_NAT_H323 |
269 | tristate | 251 | tristate |
270 | depends on NF_CONNTRACK && NF_NAT | 252 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
271 | default NF_NAT && NF_CONNTRACK_H323 | 253 | default NF_NAT_IPV4 && NF_CONNTRACK_H323 |
272 | 254 | ||
273 | config NF_NAT_SIP | 255 | config NF_NAT_SIP |
274 | tristate | 256 | tristate |
275 | depends on NF_CONNTRACK && NF_NAT | 257 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
276 | default NF_NAT && NF_CONNTRACK_SIP | 258 | default NF_NAT_IPV4 && NF_CONNTRACK_SIP |
277 | 259 | ||
278 | # mangle + specific targets | 260 | # mangle + specific targets |
279 | config IP_NF_MANGLE | 261 | config IP_NF_MANGLE |