aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/netfilter/Kconfig19
-rw-r--r--net/ipv6/netfilter/Kconfig23
2 files changed, 22 insertions, 20 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig
index d189c5262bdb..eb6995fc4f67 100644
--- a/net/ipv4/netfilter/Kconfig
+++ b/net/ipv4/netfilter/Kconfig
@@ -61,16 +61,6 @@ config NFT_CHAIN_ROUTE_IPV4
61 fields such as the source, destination, type of service and 61 fields such as the source, destination, type of service and
62 the packet mark. 62 the packet mark.
63 63
64config NFT_CHAIN_NAT_IPV4
65 depends on NF_TABLES_IPV4
66 depends on NF_NAT_IPV4 && NFT_NAT
67 tristate "IPv4 nf_tables nat chain support"
68 help
69 This option enables the "nat" chain for IPv4 in nf_tables. This
70 chain type is used to perform Network Address Translation (NAT)
71 packet transformations such as the source, destination address and
72 source and destination ports.
73
74config NFT_REJECT_IPV4 64config NFT_REJECT_IPV4
75 depends on NF_TABLES_IPV4 65 depends on NF_TABLES_IPV4
76 default NFT_REJECT 66 default NFT_REJECT
@@ -94,6 +84,15 @@ config NF_NAT_IPV4
94 84
95if NF_NAT_IPV4 85if NF_NAT_IPV4
96 86
87config NFT_CHAIN_NAT_IPV4
88 depends on NF_TABLES_IPV4
89 tristate "IPv4 nf_tables nat chain support"
90 help
91 This option enables the "nat" chain for IPv4 in nf_tables. This
92 chain type is used to perform Network Address Translation (NAT)
93 packet transformations such as the source, destination address and
94 source and destination ports.
95
97config NF_NAT_SNMP_BASIC 96config NF_NAT_SNMP_BASIC
98 tristate "Basic SNMP-ALG support" 97 tristate "Basic SNMP-ALG support"
99 depends on NF_CONNTRACK_SNMP 98 depends on NF_CONNTRACK_SNMP
diff --git a/net/ipv6/netfilter/Kconfig b/net/ipv6/netfilter/Kconfig
index a8f25306a46a..e854062d0c36 100644
--- a/net/ipv6/netfilter/Kconfig
+++ b/net/ipv6/netfilter/Kconfig
@@ -40,16 +40,6 @@ config NFT_CHAIN_ROUTE_IPV6
40 fields such as the source, destination, flowlabel, hop-limit and 40 fields such as the source, destination, flowlabel, hop-limit and
41 the packet mark. 41 the packet mark.
42 42
43config NFT_CHAIN_NAT_IPV6
44 depends on NF_TABLES_IPV6
45 depends on NF_NAT_IPV6 && NFT_NAT
46 tristate "IPv6 nf_tables nat chain support"
47 help
48 This option enables the "nat" chain for IPv6 in nf_tables. This
49 chain type is used to perform Network Address Translation (NAT)
50 packet transformations such as the source, destination address and
51 source and destination ports.
52
53config NFT_REJECT_IPV6 43config NFT_REJECT_IPV6
54 depends on NF_TABLES_IPV6 44 depends on NF_TABLES_IPV6
55 default NFT_REJECT 45 default NFT_REJECT
@@ -70,6 +60,19 @@ config NF_NAT_IPV6
70 forms of full Network Address Port Translation. This can be 60 forms of full Network Address Port Translation. This can be
71 controlled by iptables or nft. 61 controlled by iptables or nft.
72 62
63if NF_NAT_IPV6
64
65config NFT_CHAIN_NAT_IPV6
66 depends on NF_TABLES_IPV6
67 tristate "IPv6 nf_tables nat chain support"
68 help
69 This option enables the "nat" chain for IPv6 in nf_tables. This
70 chain type is used to perform Network Address Translation (NAT)
71 packet transformations such as the source, destination address and
72 source and destination ports.
73
74endif # NF_NAT_IPV6
75
73config IP6_NF_IPTABLES 76config IP6_NF_IPTABLES
74 tristate "IP6 tables support (required for filtering)" 77 tristate "IP6 tables support (required for filtering)"
75 depends on INET && IPV6 78 depends on INET && IPV6