]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: move NAT Kconfig switches out of the iptables scope
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Aug 2014 16:21:49 +0000 (18:21 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Aug 2014 19:55:54 +0000 (21:55 +0200)
commit23ae31e65aeb9f3c558047c428812b78eff803f7
tree1992aa7bef7373354a096519378a4ceba73ee97d
parent83a7bf972a9e192c293b765ac6954828dd777be3
netfilter: move NAT Kconfig switches out of the iptables scope

Currently, the NAT configs depend on iptables and ip6tables. However,
users should be capable of enabling NAT for nft without having to
switch on iptables.

Fix this by adding new specific IP_NF_NAT and IP6_NF_NAT config
switches for iptables and ip6tables NAT support. I have also moved
the original NF_NAT_IPV4 and NF_NAT_IPV6 configs out of the scope
of iptables to make them independent of it.

This patch also adds NETFILTER_XT_NAT which selects the xt_nat
combo that provides snat/dnat for iptables. We cannot use NF_NAT
anymore since nf_tables can select this.

Reported-by: Matteo Croce <technoboy85@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Makefile
net/ipv6/netfilter/Kconfig
net/ipv6/netfilter/Makefile
net/netfilter/Makefile