diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-11 11:51:27 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-12 03:40:18 -0400 |
commit | 0bbe80e571c7b866afd92a98edd32a969467a7a9 (patch) | |
tree | 1dbc6cc4e5109036f5b3bd9a9dbdaa251a8722a8 /net/ipv4 | |
parent | 3e8dc212a0e68a9a90c97f34a92c4cdd97d19dd3 (diff) |
netfilter: masquerading needs to be independent of x_tables in Kconfig
Users are starting to test nf_tables with no x_tables support. Therefore,
masquerading needs to be indenpendent of it from Kconfig.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/Kconfig | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index eb6995fc4f67..345242a79db6 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig | |||
@@ -93,6 +93,21 @@ config NFT_CHAIN_NAT_IPV4 | |||
93 | packet transformations such as the source, destination address and | 93 | packet transformations such as the source, destination address and |
94 | source and destination ports. | 94 | source and destination ports. |
95 | 95 | ||
96 | config NF_NAT_MASQUERADE_IPV4 | ||
97 | tristate "IPv4 masquerade support" | ||
98 | help | ||
99 | This is the kernel functionality to provide NAT in the masquerade | ||
100 | flavour (automatic source address selection). | ||
101 | |||
102 | config NFT_MASQ_IPV4 | ||
103 | tristate "IPv4 masquerading support for nf_tables" | ||
104 | depends on NF_TABLES_IPV4 | ||
105 | depends on NFT_MASQ | ||
106 | select NF_NAT_MASQUERADE_IPV4 | ||
107 | help | ||
108 | This is the expression that provides IPv4 masquerading support for | ||
109 | nf_tables. | ||
110 | |||
96 | config NF_NAT_SNMP_BASIC | 111 | config NF_NAT_SNMP_BASIC |
97 | tristate "Basic SNMP-ALG support" | 112 | tristate "Basic SNMP-ALG support" |
98 | depends on NF_CONNTRACK_SNMP | 113 | depends on NF_CONNTRACK_SNMP |
@@ -231,18 +246,6 @@ config IP_NF_NAT | |||
231 | 246 | ||
232 | if IP_NF_NAT | 247 | if IP_NF_NAT |
233 | 248 | ||
234 | config NF_NAT_MASQUERADE_IPV4 | ||
235 | tristate "IPv4 masquerade support" | ||
236 | help | ||
237 | This is the kernel functionality to provide NAT in the masquerade | ||
238 | flavour (automatic source address selection). | ||
239 | |||
240 | config NFT_MASQ_IPV4 | ||
241 | tristate "IPv4 masquerading support for nf_tables" | ||
242 | depends on NF_TABLES_IPV4 | ||
243 | depends on NFT_MASQ | ||
244 | select NF_NAT_MASQUERADE_IPV4 | ||
245 | |||
246 | config IP_NF_TARGET_MASQUERADE | 249 | config IP_NF_TARGET_MASQUERADE |
247 | tristate "MASQUERADE target support" | 250 | tristate "MASQUERADE target support" |
248 | select NF_NAT_MASQUERADE_IPV4 | 251 | select NF_NAT_MASQUERADE_IPV4 |