]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
netfilter: add explicit Kconfig for NETFILTER_XT_NAT
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 4 Sep 2014 07:47:21 +0000 (09:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 00:23:31 +0000 (17:23 -0700)
Paul Bolle reports that 'select NETFILTER_XT_NAT' from the IPV4 and IPV6
NAT tables becomes noop since there is no Kconfig switch for it. Add the
Kconfig switch to resolve this problem.

Fixes: 8993cf8 netfilter: move NAT Kconfig switches out of the iptables scope
Reported-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/Kconfig

index 4bef6eb7c40d8ddbd235d1df0607421140659cd2..b5c1d3aadb41569d95728d9eca5faf6831caa9dc 100644 (file)
@@ -766,6 +766,14 @@ config NETFILTER_XT_TARGET_MARK
        (e.g. when running oldconfig). It selects
        CONFIG_NETFILTER_XT_MARK (combined mark/MARK module).
 
+config NETFILTER_XT_NAT
+       tristate '"SNAT and DNAT" targets support'
+       depends on NF_NAT
+       ---help---
+       This option enables the SNAT and DNAT targets.
+
+       To compile it as a module, choose M here. If unsure, say N.
+
 config NETFILTER_XT_TARGET_NETMAP
        tristate '"NETMAP" target support'
        depends on NF_NAT