Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475446 - sys-kernel/genkernel - please enable CONFIG_NF_NAT_IPV4 in kernel-config
Summary: sys-kernel/genkernel - please enable CONFIG_NF_NAT_IPV4 in kernel-config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on: 472470
Blocks:
  Show dependency tree
 
Reported: 2013-07-01 17:56 UTC by Ben Kohler
Modified: 2015-08-26 17:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2013-07-01 17:56:46 UTC
Recently NF_NAT_IPV4 and NF_NAT_IPV6 options were added to the kernel, so simply enabling NF_NAT in our genkernel configs is not enough to enable the NAT support we used to have.  This missing NF_NAT_IPV4 also nullifies some other options that we have in our kernel config, since they depend on this missing option, CONFIG_IP_NF_TARGET_REDIRECT=m is one example.  

The below patch seems to fix up the issue, but of course this config tweak would be better applied in a total reworking of .config via menuconfig, manual .config editing is usually bad news.  

Tested on stable genkernel-3.4.45.1 + gentoo-sources-3.8.13, and unstable genkernel-3.4.47 + gentoo-sources-3.10.0, this problem isn't going away on its own.


--- /usr/share/genkernel/arch/x86_64/kernel-config      2013-07-01 12:45:39.180009859 -0500
+++ ./config-fixed      2013-07-01 12:34:27.389478795 -0500
@@ -706,6 +706,7 @@
 CONFIG_IP_NF_TARGET_LOG=m
 CONFIG_IP_NF_TARGET_ULOG=m
 CONFIG_NF_NAT=m
+CONFIG_NF_NAT_IPV4=m
 CONFIG_NF_NAT_NEEDED=y
 CONFIG_IP_NF_TARGET_MASQUERADE=m
 CONFIG_IP_NF_TARGET_NETMAP=m
Comment 1 Richard Yao (RETIRED) gentoo-dev 2014-08-17 20:17:37 UTC
In the future, please mark bugs with patches with the PATCH keyword.
Comment 2 Richard Yao (RETIRED) gentoo-dev 2015-08-26 17:54:42 UTC
This is resolved in genkernel v3.4.52.