diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-09-18 15:03:39 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-09-21 05:33:19 -0400 |
commit | b0041d1b8e73d419f4165c189af7c28aff3a02ec (patch) | |
tree | 5c43b52d0eda4772604772c0636552ad4994eb9b /net/ipv6 | |
parent | b216a4d86fb599fa2808ea7456e15ca9b47bc756 (diff) |
netfilter: fix IPv6 NAT dependencies in Kconfig
* NF_NAT_IPV6 requires IP6_NF_IPTABLES
* IP6_NF_TARGET_MASQUERADE, IP6_NF_TARGET_NETMAP, IP6_NF_TARGET_REDIRECT
and IP6_NF_TARGET_NPT require NF_NAT_IPV6.
This change just mirrors what IPv4 does in Kconfig, for consistency.
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/Kconfig | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/net/ipv6/netfilter/Kconfig b/net/ipv6/netfilter/Kconfig index 3b73254d7bf1..d8f276b9fd8a 100644 --- a/net/ipv6/netfilter/Kconfig +++ b/net/ipv6/netfilter/Kconfig | |||
@@ -25,18 +25,6 @@ config NF_CONNTRACK_IPV6 | |||
25 | 25 | ||
26 | To compile it as a module, choose M here. If unsure, say N. | 26 | To compile it as a module, choose M here. If unsure, say N. |
27 | 27 | ||
28 | config NF_NAT_IPV6 | ||
29 | tristate "IPv6 NAT" | ||
30 | depends on NF_CONNTRACK_IPV6 | ||
31 | depends on NETFILTER_ADVANCED | ||
32 | select NF_NAT | ||
33 | help | ||
34 | The IPv6 NAT option allows masquerading, port forwarding and other | ||
35 | forms of full Network Address Port Translation. It is controlled by | ||
36 | the `nat' table in ip6tables, see the man page for ip6tables(8). | ||
37 | |||
38 | To compile it as a module, choose M here. If unsure, say N. | ||
39 | |||
40 | config IP6_NF_IPTABLES | 28 | config IP6_NF_IPTABLES |
41 | tristate "IP6 tables support (required for filtering)" | 29 | tristate "IP6 tables support (required for filtering)" |
42 | depends on INET && IPV6 | 30 | depends on INET && IPV6 |
@@ -144,48 +132,6 @@ config IP6_NF_TARGET_HL | |||
144 | (e.g. when running oldconfig). It selects | 132 | (e.g. when running oldconfig). It selects |
145 | CONFIG_NETFILTER_XT_TARGET_HL. | 133 | CONFIG_NETFILTER_XT_TARGET_HL. |
146 | 134 | ||
147 | config IP6_NF_TARGET_MASQUERADE | ||
148 | tristate "MASQUERADE target support" | ||
149 | depends on NF_NAT_IPV6 | ||
150 | help | ||
151 | Masquerading is a special case of NAT: all outgoing connections are | ||
152 | changed to seem to come from a particular interface's address, and | ||
153 | if the interface goes down, those connections are lost. This is | ||
154 | only useful for dialup accounts with dynamic IP address (ie. your IP | ||
155 | address will be different on next dialup). | ||
156 | |||
157 | To compile it as a module, choose M here. If unsure, say N. | ||
158 | |||
159 | config IP6_NF_TARGET_NETMAP | ||
160 | tristate "NETMAP target support" | ||
161 | depends on NF_NAT_IPV6 | ||
162 | help | ||
163 | NETMAP is an implementation of static 1:1 NAT mapping of network | ||
164 | addresses. It maps the network address part, while keeping the host | ||
165 | address part intact. | ||
166 | |||
167 | To compile it as a module, choose M here. If unsure, say N. | ||
168 | |||
169 | config IP6_NF_TARGET_REDIRECT | ||
170 | tristate "REDIRECT target support" | ||
171 | depends on NF_NAT_IPV6 | ||
172 | help | ||
173 | REDIRECT is a special case of NAT: all incoming connections are | ||
174 | mapped onto the incoming interface's address, causing the packets to | ||
175 | come to the local machine instead of passing through. This is | ||
176 | useful for transparent proxies. | ||
177 | |||
178 | To compile it as a module, choose M here. If unsure, say N. | ||
179 | |||
180 | config IP6_NF_TARGET_NPT | ||
181 | tristate "NPT (Network Prefix translation) target support" | ||
182 | depends on NETFILTER_ADVANCED | ||
183 | help | ||
184 | This option adds the `SNPT' and `DNPT' target, which perform | ||
185 | stateless IPv6-to-IPv6 Network Prefix Translation per RFC 6296. | ||
186 | |||
187 | To compile it as a module, choose M here. If unsure, say N. | ||
188 | |||
189 | config IP6_NF_FILTER | 135 | config IP6_NF_FILTER |
190 | tristate "Packet filtering" | 136 | tristate "Packet filtering" |
191 | default m if NETFILTER_ADVANCED=n | 137 | default m if NETFILTER_ADVANCED=n |
@@ -235,9 +181,63 @@ config IP6_NF_SECURITY | |||
235 | help | 181 | help |
236 | This option adds a `security' table to iptables, for use | 182 | This option adds a `security' table to iptables, for use |
237 | with Mandatory Access Control (MAC) policy. | 183 | with Mandatory Access Control (MAC) policy. |
238 | 184 | ||
239 | If unsure, say N. | 185 | If unsure, say N. |
240 | 186 | ||
187 | config NF_NAT_IPV6 | ||
188 | tristate "IPv6 NAT" | ||
189 | depends on NF_CONNTRACK_IPV6 | ||
190 | depends on NETFILTER_ADVANCED | ||
191 | select NF_NAT | ||
192 | help | ||
193 | The IPv6 NAT option allows masquerading, port forwarding and other | ||
194 | forms of full Network Address Port Translation. It is controlled by | ||
195 | the `nat' table in ip6tables, see the man page for ip6tables(8). | ||
196 | |||
197 | To compile it as a module, choose M here. If unsure, say N. | ||
198 | |||
199 | if NF_NAT_IPV6 | ||
200 | |||
201 | config IP6_NF_TARGET_MASQUERADE | ||
202 | tristate "MASQUERADE target support" | ||
203 | help | ||
204 | Masquerading is a special case of NAT: all outgoing connections are | ||
205 | changed to seem to come from a particular interface's address, and | ||
206 | if the interface goes down, those connections are lost. This is | ||
207 | only useful for dialup accounts with dynamic IP address (ie. your IP | ||
208 | address will be different on next dialup). | ||
209 | |||
210 | To compile it as a module, choose M here. If unsure, say N. | ||
211 | |||
212 | config IP6_NF_TARGET_NETMAP | ||
213 | tristate "NETMAP target support" | ||
214 | help | ||
215 | NETMAP is an implementation of static 1:1 NAT mapping of network | ||
216 | addresses. It maps the network address part, while keeping the host | ||
217 | address part intact. | ||
218 | |||
219 | To compile it as a module, choose M here. If unsure, say N. | ||
220 | |||
221 | config IP6_NF_TARGET_REDIRECT | ||
222 | tristate "REDIRECT target support" | ||
223 | help | ||
224 | REDIRECT is a special case of NAT: all incoming connections are | ||
225 | mapped onto the incoming interface's address, causing the packets to | ||
226 | come to the local machine instead of passing through. This is | ||
227 | useful for transparent proxies. | ||
228 | |||
229 | To compile it as a module, choose M here. If unsure, say N. | ||
230 | |||
231 | config IP6_NF_TARGET_NPT | ||
232 | tristate "NPT (Network Prefix translation) target support" | ||
233 | help | ||
234 | This option adds the `SNPT' and `DNPT' target, which perform | ||
235 | stateless IPv6-to-IPv6 Network Prefix Translation per RFC 6296. | ||
236 | |||
237 | To compile it as a module, choose M here. If unsure, say N. | ||
238 | |||
239 | endif # NF_NAT_IPV6 | ||
240 | |||
241 | endif # IP6_NF_IPTABLES | 241 | endif # IP6_NF_IPTABLES |
242 | 242 | ||
243 | endmenu | 243 | endmenu |