Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Filter CONFIG_NF_NAT_IPV4 / CONFIG_NF_NAT_NEEDED on recent kernels (#124
Browse files Browse the repository at this point in the history
) (#128)

* Filter CONFIG_NF_NAT_IPV4 / CONFIG_NF_NAT_NEEDED on recent kernels

Fixes gravitational/gravity#735

* fix gofmt
  • Loading branch information
Kevin Nisbet authored Oct 25, 2019
1 parent a7c8110 commit 4573fe2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions monitoring/defaults_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,25 @@ func DefaultBootConfigParams() health.Checker {
BootConfigParam{Name: "CONFIG_VETH"},
BootConfigParam{Name: "CONFIG_BRIDGE"},
BootConfigParam{Name: "CONFIG_BRIDGE_NETFILTER"},
BootConfigParam{Name: "CONFIG_NF_NAT_IPV4"},
BootConfigParam{
// https://cateee.net/lkddb/web-lkddb/NF_NAT_IPV4.html
// CONFIG_NF_NAT_IPV4 has been removed as of kernel 5.1
Name: "CONFIG_NF_NAT_IPV4",
KernelConstraint: KernelVersionLessThan(KernelVersion{Release: 5, Major: 1}),
},
BootConfigParam{Name: "CONFIG_IP_NF_FILTER"},
BootConfigParam{Name: "CONFIG_IP_NF_TARGET_MASQUERADE"},
BootConfigParam{Name: "CONFIG_NETFILTER_XT_MATCH_ADDRTYPE"},
BootConfigParam{Name: "CONFIG_NETFILTER_XT_MATCH_CONNTRACK"},
BootConfigParam{Name: "CONFIG_NETFILTER_XT_MATCH_IPVS"},
BootConfigParam{Name: "CONFIG_IP_NF_NAT"},
BootConfigParam{Name: "CONFIG_NF_NAT"},
BootConfigParam{Name: "CONFIG_NF_NAT_NEEDED"},
BootConfigParam{
// https://cateee.net/lkddb/web-lkddb/NF_NAT_NEEDED.html
// CONFIG_NF_NAT_NEEDED has been removed as of kernel 5.2
Name: "CONFIG_NF_NAT_NEEDED",
KernelConstraint: KernelVersionLessThan(KernelVersion{Release: 5, Major: 2}),
},
BootConfigParam{Name: "CONFIG_POSIX_MQUEUE"},
BootConfigParam{
// See: https://lists.gt.net/linux/kernel/2465684#2465684
Expand Down

0 comments on commit 4573fe2

Please sign in to comment.