diff options
Diffstat (limited to 'net/ipv4/netfilter/Kconfig')
-rw-r--r-- | net/ipv4/netfilter/Kconfig | 90 |
1 files changed, 22 insertions, 68 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index fcc543cd987..d8d6f2a5bf1 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,30 +171,27 @@ 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 | select NETFILTER_XT_TARGET_NETMAP |
180 | NETMAP is an implementation of static 1:1 NAT mapping of network | 176 | ---help--- |
181 | addresses. It maps the network address part, while keeping the host | 177 | This is a backwards-compat option for the user's convenience |
182 | address part intact. | 178 | (e.g. when running oldconfig). It selects |
183 | 179 | CONFIG_NETFILTER_XT_TARGET_NETMAP. | |
184 | To compile it as a module, choose M here. If unsure, say N. | ||
185 | 180 | ||
186 | config IP_NF_TARGET_REDIRECT | 181 | config IP_NF_TARGET_REDIRECT |
187 | tristate "REDIRECT target support" | 182 | tristate "REDIRECT target support" |
188 | depends on NF_NAT | ||
189 | depends on NETFILTER_ADVANCED | 183 | depends on NETFILTER_ADVANCED |
190 | help | 184 | select NETFILTER_XT_TARGET_REDIRECT |
191 | REDIRECT is a special case of NAT: all incoming connections are | 185 | ---help--- |
192 | mapped onto the incoming interface's address, causing the packets to | 186 | This is a backwards-compat option for the user's convenience |
193 | come to the local machine instead of passing through. This is | 187 | (e.g. when running oldconfig). It selects |
194 | useful for transparent proxies. | 188 | CONFIG_NETFILTER_XT_TARGET_REDIRECT. |
195 | 189 | ||
196 | To compile it as a module, choose M here. If unsure, say N. | 190 | endif |
197 | 191 | ||
198 | config NF_NAT_SNMP_BASIC | 192 | config NF_NAT_SNMP_BASIC |
199 | tristate "Basic SNMP-ALG support" | 193 | tristate "Basic SNMP-ALG support" |
200 | depends on NF_CONNTRACK_SNMP && NF_NAT | 194 | depends on NF_CONNTRACK_SNMP && NF_NAT_IPV4 |
201 | depends on NETFILTER_ADVANCED | 195 | depends on NETFILTER_ADVANCED |
202 | default NF_NAT && NF_CONNTRACK_SNMP | 196 | default NF_NAT && NF_CONNTRACK_SNMP |
203 | ---help--- | 197 | ---help--- |
@@ -219,61 +213,21 @@ config NF_NAT_SNMP_BASIC | |||
219 | # <expr> '&&' <expr> (6) | 213 | # <expr> '&&' <expr> (6) |
220 | # | 214 | # |
221 | # (6) Returns the result of min(/expr/, /expr/). | 215 | # (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 | 216 | ||
227 | config NF_NAT_PROTO_GRE | 217 | config NF_NAT_PROTO_GRE |
228 | tristate | 218 | tristate |
229 | depends on NF_NAT && NF_CT_PROTO_GRE | 219 | 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 | |||
242 | config NF_NAT_FTP | ||
243 | tristate | ||
244 | depends on NF_CONNTRACK && NF_NAT | ||
245 | default NF_NAT && NF_CONNTRACK_FTP | ||
246 | |||
247 | config NF_NAT_IRC | ||
248 | tristate | ||
249 | depends on NF_CONNTRACK && NF_NAT | ||
250 | default NF_NAT && NF_CONNTRACK_IRC | ||
251 | |||
252 | config NF_NAT_TFTP | ||
253 | tristate | ||
254 | depends on NF_CONNTRACK && NF_NAT | ||
255 | default NF_NAT && NF_CONNTRACK_TFTP | ||
256 | |||
257 | config NF_NAT_AMANDA | ||
258 | tristate | ||
259 | depends on NF_CONNTRACK && NF_NAT | ||
260 | default NF_NAT && NF_CONNTRACK_AMANDA | ||
261 | 220 | ||
262 | config NF_NAT_PPTP | 221 | config NF_NAT_PPTP |
263 | tristate | 222 | tristate |
264 | depends on NF_CONNTRACK && NF_NAT | 223 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
265 | default NF_NAT && NF_CONNTRACK_PPTP | 224 | default NF_NAT_IPV4 && NF_CONNTRACK_PPTP |
266 | select NF_NAT_PROTO_GRE | 225 | select NF_NAT_PROTO_GRE |
267 | 226 | ||
268 | config NF_NAT_H323 | 227 | config NF_NAT_H323 |
269 | tristate | 228 | tristate |
270 | depends on NF_CONNTRACK && NF_NAT | 229 | depends on NF_CONNTRACK && NF_NAT_IPV4 |
271 | default NF_NAT && NF_CONNTRACK_H323 | 230 | default NF_NAT_IPV4 && NF_CONNTRACK_H323 |
272 | |||
273 | config NF_NAT_SIP | ||
274 | tristate | ||
275 | depends on NF_CONNTRACK && NF_NAT | ||
276 | default NF_NAT && NF_CONNTRACK_SIP | ||
277 | 231 | ||
278 | # mangle + specific targets | 232 | # mangle + specific targets |
279 | config IP_NF_MANGLE | 233 | config IP_NF_MANGLE |