Netfilter Kconfig: Expose IPv4/6 connection tracking options by selecting NF_CONNTRACK
Subsystems (3)
David Miller
maintainerAny reason you're not sending this to the netfilter developer list mentioned in MAINTAINERS, or it's chief maintainer Patrick McHardy?
NETFILTER/IPTABLES/IPCHAINS
P: Rusty Russell
P: Marc Boucher
P: James Morris
P: Harald Welte
P: Jozsef Kadlecsik
P: Patrick McHardy
M: [email protected]
L: [email protected]
L: [email protected] (subscribers-only)
L: [email protected]
W: http://www.netfilter.org/
W: http://www.iptables.org/
S: Supported
Quoted 49 lines · Al Boldi
Replaces
NF_CONNTRACK_ENABLEDwithNF_CONNTRACKand selects it forNF_CONNTRACK_IPV4andNF_CONNTRACK_IPV6This exposes IPv4/6 connection tracking options for easier
Kconfigsetup.Signed-off-by Al Boldi <[email protected]>Cc David Miller <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Andrew Morton <[email protected]>---
net/netfilter/Kconfig +1
-6@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules. -# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK tristate "Netfilter connection tracking support" help Connection tracking keeps a record of what packets have passed@@ -40,10 +39,6 @@ config NF_CONNTRACK_ENABLED To compile it as a module, choose M here. If unsure, say N. -config NF_CONNTRACK - tristate - default NF_CONNTRACK_ENABLED - config NF_CT_ACCT bool "Connection tracking flow accounting" depends on NF_CONNTRACKnet/ipv4/netfilter/Kconfig +1
-1@@ -7,7 +7,7 @@ menu "IP: Netfilter Configuration" config NF_CONNTRACK_IPV4 tristate "IPv4 connection tracking support (required for NAT)" - depends on NF_CONNTRACK + select NF_CONNTRACK ---help--- Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are related
net/ipv6/netfilter/Kconfig menu "IPv6: Netfilter Configuration (EXP · line 14
Quoted 9 lines
net/ipv6/netfilter/Kconfig +2
-1@@ -7,7 +7,8 @@ menu "IPv6: Netfilter Configuration (EXP config NF_CONNTRACK_IPV6 tristate "IPv6 connection tracking support (EXPERIMENTAL)" - depends on INET && IPV6 && EXPERIMENTAL && NF_CONNTRACK + depends on INET && IPV6 && EXPERIMENTAL + select NF_CONNTRACK ---help--- Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are related
This change looks wrong.
Due to the reverse nature of "select" kconfig cannot fulfill the dependencies of selected symbols. So as a rule of thumb select should only select symbols with no menu and no dependencies to avoid some of the problems that have popped up during the last months.
Sam
Quoted 50 lines · Sam Ravnborg
Quoted 49 lines · Al Boldi
Replaces
NF_CONNTRACK_ENABLEDwithNF_CONNTRACKand selects it forNF_CONNTRACK_IPV4andNF_CONNTRACK_IPV6This exposes IPv4/6 connection tracking options for easier
Kconfigsetup.Signed-off-by Al Boldi <[email protected]>Cc David Miller <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Andrew Morton <[email protected]>---
net/netfilter/Kconfig +1
-6@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules. -# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK tristate "Netfilter connection tracking support" help Connection tracking keeps a record of what packets have passed@@ -40,10 +39,6 @@ config NF_CONNTRACK_ENABLED To compile it as a module, choose M here. If unsure, say N. -config NF_CONNTRACK - tristate - default NF_CONNTRACK_ENABLED - config NF_CT_ACCT bool "Connection tracking flow accounting" depends on NF_CONNTRACKnet/ipv4/netfilter/Kconfig +1
-1@@ -7,7 +7,7 @@ menu "IP: Netfilter Configuration" config NF_CONNTRACK_IPV4 tristate "IPv4 connection tracking support (required for NAT)" - depends on NF_CONNTRACK + select NF_CONNTRACK ---help--- Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are relatednet/ipv6/netfilter/Kconfig +0
-0@@ -7,7 +7,8 @@ menu "IPv6: Netfilter Configuration (EXP
Quoted 14 lines
net/ipv6/netfilter/Kconfig menu "IPv6: Netfilter Configuration (EXP · line 14
Quoted 8 lines
net/ipv6/netfilter/Kconfig +2
-1config NF_CONNTRACK_IPV6 tristate "IPv6 connection tracking support (EXPERIMENTAL)" - depends on INET && IPV6 && EXPERIMENTAL && NF_CONNTRACK + depends on INET && IPV6 && EXPERIMENTAL + select NF_CONNTRACK ---help--- Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are relatedThis change looks wrong.
Due to the reverse nature of "select" kconfig cannot fulfill the dependencies of selected symbols. So as a rule of thumb select should only select symbols with no menu and no dependencies to avoid some of the problems that have popped up during the last months.
Granted select is touchy, but this is handled exactly the same as NETFILTER_XTABLES, which doesn't show any problems.
Thanks!
--
Al
Quoted 18 lines · Sam Ravnborg
Quoted 16 lines · Al Boldi
Replaces
NF_CONNTRACK_ENABLEDwithNF_CONNTRACKand selects it forNF_CONNTRACK_IPV4andNF_CONNTRACK_IPV6This exposes IPv4/6 connection tracking options for easier
Kconfigsetup.Signed-off-by Al Boldi <[email protected]>Cc David Miller <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Andrew Morton <[email protected]>---
net/netfilter/Kconfig +0
-0@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules.
Quoted 3 lines
net/netfilter/Kconfig config NETFILTER_NETLINK_LOG · line 28
Quoted 3 lines
net/netfilter/Kconfig +1
-2-# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK
We kept this mainly for an easier upgrade. As the comment states, it should go in 2.6.25, at which time all people having reconfigured their kernel at least once since ip_conntrack was removed will have the NF_CONNTRACK option set to the same value as NF_CONNTRACK_ENABLED.
Quoted 15 lines
Quoted 15 lines
net/ipv4/netfilter/Kconfig +0
-0@@ -7,7 +7,7 @@ menu "IP: Netfilter Configuration"config
NF_CONNTRACK_IPV4
tristate "IPv4 connection tracking support (required for NAT)"net/ipv4/netfilter/Kconfig +1
-1- depends on NF_CONNTRACK + select NF_CONNTRACK---help---
Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are relatednet/ipv6/netfilter/Kconfig +0
-0@@ -7,7 +7,8 @@ menu "IPv6: Netfilter Configuration (EXP
Quoted 15 lines
Quoted 9 lines
config
NF_CONNTRACK_IPV6
tristate "IPv6 connection tracking support (EXPERIMENTAL)"net/ipv6/netfilter/Kconfig +2
-1- depends on INET && IPV6 && EXPERIMENTAL && NF_CONNTRACK + depends on INET && IPV6 && EXPERIMENTAL + select NF_CONNTRACK---help---
Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are relatedThis change looks wrong.
Due to the reverse nature of "select" kconfig cannot fulfill the dependencies of selected symbols. So as a rule of thumb select should only select symbols with no menu and no dependencies to avoid some of the problems that have popped up during the last months.
In this case it looks OK since the dependencies of IPv4 connection tracking are (besides NF_CONNTRACK) are superset of those of nf_conntrack.
But I vaguely recall having tried this myself and it broke somewhere, maybe it was because of the NF_CONNTRACK_ENABLED option, I can't recall anymore. Al, if this also works without removal of NF_CONNTRACK_ENABLED, please resend without that part.
Quoted 59 lines · Patrick McHardy
Quoted 18 lines · Sam Ravnborg
Quoted 17 lines · Al Boldi
Replaces
NF_CONNTRACK_ENABLEDwithNF_CONNTRACKand selects it forNF_CONNTRACK_IPV4andNF_CONNTRACK_IPV6This exposes IPv4/6 connection tracking options for easier
Kconfigsetup.Signed-off-by Al Boldi <[email protected]>Cc David Miller <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Andrew Morton <[email protected]>---
net/netfilter/Kconfig +0
-0@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules.Quoted 3 lines
net/netfilter/Kconfig config NETFILTER_NETLINK_LOG · line 28
Quoted 3 lines
net/netfilter/Kconfig +1
-2-# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACKWe kept this mainly for an easier upgrade. As the comment states, it should go in 2.6.25, at which time all people having reconfigured their kernel at least once since
ip_conntrackwas removed will have theNF_CONNTRACKoption set to the same value asNF_CONNTRACK_ENABLED.Quoted 15 lines
Quoted 15 lines
net/ipv4/netfilter/Kconfig +0
-0@@ -7,7 +7,7 @@ menu "IP: Netfilter Configuration"config
NF_CONNTRACK_IPV4
tristate "IPv4 connection tracking support (required for NAT)"net/ipv4/netfilter/Kconfig +1
-1- depends on NF_CONNTRACK + select NF_CONNTRACK---help---
Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are relatednet/ipv6/netfilter/Kconfig +0
-0@@ -7,7 +7,8 @@ menu "IPv6: Netfilter Configuration (EXPQuoted 15 lines
Quoted 8 lines
config
NF_CONNTRACK_IPV6
tristate "IPv6 connection tracking support (EXPERIMENTAL)"net/ipv6/netfilter/Kconfig +2
-1- depends on INET && IPV6 && EXPERIMENTAL && NF_CONNTRACK + depends on INET && IPV6 && EXPERIMENTAL + select NF_CONNTRACK---help---
Connection tracking keeps a record of what packets have passed through your machine, in order to figure out how they are relatedThis change looks wrong.
Due to the reverse nature of "select" kconfig cannot fulfill the dependencies of selected symbols. So as a rule of thumb select should only select symbols with no menu and no dependencies to avoid some of the
problems that have popped up during the last months.
Quoted 8 lines
In this case it looks OK since the dependencies of IPv4 connection tracking are (besides
NF_CONNTRACK) are superset of those ofnf_conntrack.But I vaguely recall having tried this myself and it broke somewhere, maybe it was because of the
NF_CONNTRACK_ENABLEDoption, I can't recall anymore. Al, if this also works without removal ofNF_CONNTRACK_ENABLED, please resend without that part.
It doesn't. But how about this, if you really can't live without NF_CONNTRACK_ENBLED:
==================
Kconfig renamed from Kconfig.old +3 -4
@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules. -# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK tristate "Netfilter connection tracking support" help Connection tracking keeps a record of what packets have passed
@@ -40,9 +39,9 @@ config NF_CONNTRACK_ENABLED To compile it as a module, choose M here. If unsure, say N. -config NF_CONNTRACK +config NF_CONNTRACK_ENABLED tristate - default NF_CONNTRACK_ENABLED + default NF_CONNTRACK config NF_CT_ACCT bool "Connection tracking flow accounting"
==================
Thanks!
--
Al
Quoted 26 lines · Al Boldi
Quoted 4 lines · Patrick McHardy
But I vaguely recall having tried this myself and it broke somewhere, maybe it was because of the
NF_CONNTRACK_ENABLEDoption, I can't recall anymore. Al, if this also works without removal ofNF_CONNTRACK_ENABLED, please resend without that part.It doesn't. But how about this, if you really can't live without
NF_CONNTRACK_ENBLED:==================
Kconfig renamed from Kconfig.old +1
-2@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules. -# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK tristate "Netfilter connection tracking support" help Connection tracking keeps a record of what packets have passed@@ -40,9 +39,9 @@ config NF_CONNTRACK_ENABLED
Kconfig config NF_CONNTRACK_ENABLED · line 47
Quoted 10 lines
Kconfig renamed from Kconfig.old +2
-2To compile it as a module, choose M here. If unsure, say N. -config NF_CONNTRACK +config NF_CONNTRACK_ENABLED tristate - default NF_CONNTRACK_ENABLED + default NF_CONNTRACK config NF_CT_ACCT bool "Connection tracking flow accounting"
That defeats the only purpose why we kept it. How about we change this once we remove it, in 2.6.25?
Quoted 33 lines · Patrick McHardy
Quoted 32 lines · Al Boldi
Quoted 4 lines · Patrick McHardy
But I vaguely recall having tried this myself and it broke somewhere, maybe it was because of the
NF_CONNTRACK_ENABLEDoption, I can't recall anymore. Al, if this also works without removal ofNF_CONNTRACK_ENABLED, please resend without that part.It doesn't. But how about this, if you really can't live without
NF_CONNTRACK_ENBLED:==================
Kconfig renamed from Kconfig.old +3
-4@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules. -# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK tristate "Netfilter connection tracking support" help Connection tracking keeps a record of what packets have passed@@ -40,9 +39,9 @@ config NF_CONNTRACK_ENABLED To compile it as a module, choose M here. If unsure, say N. -config NF_CONNTRACK +config NF_CONNTRACK_ENABLED tristate - default NF_CONNTRACK_ENABLED + default NF_CONNTRACK
Quoted 4 lines
Kconfig config NF_CONNTRACK_ENABLED · line 47
Quoted 2 lines
Kconfig renamed from Kconfig.old +0
-0config NF_CT_ACCT bool "Connection tracking flow accounting"That defeats the only purpose why we kept it.
I'm not sure how this would defeat the only purpose. Isn't the purpose of this to alias NF_CONNTRACK_ENABLED to NF_CONNTRACK? And as such would yield the same result.
Also, we could leave this as is, and select NF_CONNTRACK_ENABLED instead of NF_CONNTRACK.
Thanks!
--
Al
Quoted 43 lines · Al Boldi
Quoted 35 lines · Patrick McHardy
Quoted 33 lines · Al Boldi
Quoted 4 lines · Patrick McHardy
But I vaguely recall having tried this myself and it broke somewhere, maybe it was because of the
NF_CONNTRACK_ENABLEDoption, I can't recall anymore. Al, if this also works without removal ofNF_CONNTRACK_ENABLED, please resend without that part.It doesn't. But how about this, if you really can't live without
NF_CONNTRACK_ENBLED:==================
Kconfig renamed from Kconfig.old +3
-4@@ -25,8 +25,7 @@ config NETFILTER_NETLINK_LOG and is also scheduled to replace the old syslog-based ipt_LOG and ip6t_LOG modules. -# Rename this to NF_CONNTRACK in a 2.6.25 -config NF_CONNTRACK_ENABLED +config NF_CONNTRACK tristate "Netfilter connection tracking support" help Connection tracking keeps a record of what packets have passed@@ -40,9 +39,9 @@ config NF_CONNTRACK_ENABLED To compile it as a module, choose M here. If unsure, say N. -config NF_CONNTRACK +config NF_CONNTRACK_ENABLED tristate - default NF_CONNTRACK_ENABLED + default NF_CONNTRACKQuoted 4 lines
Quoted 2 lines
config
NF_CT_ACCT
bool "Connection tracking flow accounting"That defeats the only purpose why we kept it.
Quoted 3 lines
I'm not sure how this would defeat the only purpose. Isn't the purpose of this to alias
NF_CONNTRACK_ENABLEDtoNF_CONNTRACK? And as such would yield the same result.
The purpose is to avoid forcing people a second time to reconfigure the conntrack options since we've completed nf_conntrack and removed ip_conntrack. Previously NF_CONNTRACK was a bool (selecting the new implementation) and NF_CONNTRACK_ENABLED specified whether to build either nf_conntrack or ip_conntrack modular/static/not at all. So old configs only have the information whether to build modular in NF_CONNTRACK_ENABLED, but NF_CONNTRACK is what actually controls it. With your change, old configs will still build nf_conntrack properly, but they will always choose static linking.
Quoted 2 lines
Also, we could leave this as is, and select
NF_CONNTRACK_ENABLEDinstead ofNF_CONNTRACK.
I guess so, and that would have to select NF_CONNTRACK.
Quoted 5 lines · Patrick McHardy
Quoted 2 lines · Al Boldi
Also, we could leave this as is, and select
NF_CONNTRACK_ENABLEDinstead ofNF_CONNTRACK.I guess so, and that would have to select
NF_CONNTRACK.
Should I resend, or can you take care of it?
Thanks!
--
Al
Quoted 11 lines · Al Boldi
Quoted 6 lines · Patrick McHardy
Quoted 2 lines · Al Boldi
Also, we could leave this as is, and select
NF_CONNTRACK_ENABLEDinstead ofNF_CONNTRACK.I guess so, and that would have to select
NF_CONNTRACK.Should I resend, or can you take care of it?
Please resend after testing.