Skip to content

Commit b321e14

Browse files
kaberdavem330
authored andcommitted
[NETFILTER]: Kconfig: improve conntrack selection
Improve the connection tracking selection (well, the user experience, not really the aesthetics) by offering one option to enable connection tracking and a choice between the implementations. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9457d85 commit b321e14

File tree

2 files changed

+44
-20
lines changed

2 files changed

+44
-20
lines changed

net/ipv4/netfilter/Kconfig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,6 @@ config NF_CONNTRACK_PROC_COMPAT
3131
If unsure, say Y.
3232

3333
# connection tracking, helpers and protocols
34-
config IP_NF_CONNTRACK
35-
tristate "Connection tracking (required for masq/NAT)"
36-
---help---
37-
Connection tracking keeps a record of what packets have passed
38-
through your machine, in order to figure out how they are related
39-
into connections.
40-
41-
This is required to do Masquerading or other kinds of Network
42-
Address Translation (except for Fast NAT). It can also be used to
43-
enhance packet filtering (see `Connection state match support'
44-
below).
45-
46-
To compile it as a module, choose M here. If unsure, say N.
47-
4834
config IP_NF_CT_ACCT
4935
bool "Connection tracking flow accounting"
5036
depends on IP_NF_CONNTRACK

net/netfilter/Kconfig

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,57 @@ config NETFILTER_NETLINK_LOG
2525
and is also scheduled to replace the old syslog-based ipt_LOG
2626
and ip6t_LOG modules.
2727

28-
config NF_CONNTRACK
29-
tristate "Layer 3 Independent Connection tracking (EXPERIMENTAL)"
30-
depends on EXPERIMENTAL && IP_NF_CONNTRACK=n
31-
default n
32-
---help---
28+
config NF_CONNTRACK_ENABLED
29+
tristate "Netfilter connection tracking support"
30+
help
3331
Connection tracking keeps a record of what packets have passed
3432
through your machine, in order to figure out how they are related
3533
into connections.
3634

35+
This is required to do Masquerading or other kinds of Network
36+
Address Translation (except for Fast NAT). It can also be used to
37+
enhance packet filtering (see `Connection state match support'
38+
below).
39+
40+
To compile it as a module, choose M here. If unsure, say N.
41+
42+
choice
43+
prompt "Netfilter connection tracking support"
44+
depends on NF_CONNTRACK_ENABLED
45+
46+
config NF_CONNTRACK_SUPPORT
47+
bool "Layer 3 Independent Connection tracking (EXPERIMENTAL)"
48+
depends on EXPERIMENTAL
49+
help
3750
Layer 3 independent connection tracking is experimental scheme
3851
which generalize ip_conntrack to support other layer 3 protocols.
3952

40-
To compile it as a module, choose M here. If unsure, say N.
53+
This is required to do Masquerading or other kinds of Network
54+
Address Translation (except for Fast NAT). It can also be used to
55+
enhance packet filtering (see `Connection state match support'
56+
below).
57+
58+
config IP_NF_CONNTRACK_SUPPORT
59+
bool "Layer 3 Dependent Connection tracking"
60+
help
61+
The old, Layer 3 dependent ip_conntrack subsystem of netfilter.
62+
63+
This is required to do Masquerading or other kinds of Network
64+
Address Translation (except for Fast NAT). It can also be used to
65+
enhance packet filtering (see `Connection state match support'
66+
below).
67+
68+
endchoice
69+
70+
config NF_CONNTRACK
71+
tristate
72+
default m if NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=m
73+
default y if NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=y
74+
75+
config IP_NF_CONNTRACK
76+
tristate
77+
default m if IP_NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=m
78+
default y if IP_NF_CONNTRACK_SUPPORT && NF_CONNTRACK_ENABLED=y
4179

4280
config NF_CT_ACCT
4381
bool "Connection tracking flow accounting"

0 commit comments

Comments
 (0)