Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 55858

Summary: CONFIG_IP_NF_MASQUERADE Missing from gentoo-dev-sources 2.6.7-r7
Product: Gentoo Linux Reporter: jason wohlgemuth <stonent>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://forums.pearpc.net/viewtopic.php?t=326
Whiteboard:
Package list:
Runtime testing required: ---

Description jason wohlgemuth 2004-07-02 01:03:49 UTC
I was trying to set up tun networking for pearpc and CONFIG_IP_NF_MASQUERADE needs to be enabled in the kernel but it doesn't appear to be in gentoo-dev-sources. Apparently the 2.6.x kernel in Fedora Core 2 has it.  All the other options needed were there:

" For Linux 2.6.x: You must enable (as a module "M" or compiled-in "Y") the following features in your kernel:

    * "Device Drivers / Networking support / Universal TUN/TAP device driver support" (CONFIG_TUN)
    * "Device Drivers / Networking support / Networking Options / Network Packet Filtering (replaces ipchains) / IP: Netfilter Configuration / Connection tracking (required for masq/NAT)" (CONFIG_IP_NF_CONNTRACK)
    * "Device Drivers / Networking support / Networking Options / Network Packet Filtering (replaces ipchains) / IP: Netfilter Configuration / IP tables support (required for filtering/masq/NAT)" (CONFIG_IP_NF_IPTABLES)
    * "Device Drivers / Networking support / Networking Options / Network Packet Filtering (replaces ipchains) / IP: Netfilter Configuration / MASQUERADE target support" (CONFIG_IP_NF_MASQUERADE)" <--- Missing

I tried to manually edit the .config file to add it in and it said:

Aurora linux # make && make modules && make modules_install && make install
  CHK     include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
.config:575: trying to assign nonexistent symbol IP_NF_MASQUERADE
  SPLIT   include/linux/autoconf.h -> include/config/*

Reproducible: Always
Steps to Reproduce:
1.make menuconfig go to Device Drivers / Networking support / Networking Options / Network Packet Filtering (replaces ipchains) / IP: Netfilter Configuration / MASQUERADE target support 
2. The option is missing
3.Manually adding CONFIG_IP_NF_MASQUERADE=y causes a nonexistent symbol 

Actual Results:  
.config:575: trying to assign nonexistent symbol IP_NF_MASQUERADE
  SPLIT   include/linux/autoconf.h -> include/config/*

Expected Results:  
IP_NF_MASQUERADE support

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.4.0, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r7)
=================================================================
System uname: 2.6.7-gentoo-r7 i686 Intel(R) Pentium(R) III Mobile CPU      1000MHz
Gentoo Base System version 1.4.16
distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=387,sse
-ffast-math -ftracer -fforce-addr"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=387,sse
-ffast-math -ftracer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo
http://mirror.tucdemonic.org/gentoo/ ftp://gentoo.noved.org/
ftp://gentoo.ccccom.com ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"                  
PKGDIR="/usr/portage/packages"  
PORTAGE_TMPDIR="/var/tmp"       
PORTDIR="/usr/portage"          
PORTDIR_OVERLAY=""              
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups dvd encode esd fbdev flac
foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jit jpeg kde libg++ libwww mad
mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pcmcia
pdflib perl png python qt quicktime radeon readline samba scanner sdl slang
spell sse ssl svga tcltk tcpd truetype video_cards_radeon x86 xml2 xmms xv zlib"
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-07-02 08:42:25 UTC
This config option is not in the kernel tree anymore.  We (gentoo) didn't
remove it.  If you have a problem with the option being gone, please bring
it up to the linux kernel networking developers.