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

Bug 19277

Summary: iptables nat is broken with gentoo kernel
Product: Gentoo Linux Reporter: david mattatall <davidsmind>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description david mattatall 2003-04-13 21:35:28 UTC
I have the following set in my /proc : 
 
echo 1 > /proc/sys/net/ipv4/ip_forward 
 
but 'iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE' 
gives me the following error: 
 
iptables: Invalid argument 
 
My kernel config is as such: 
davidsmind# cat /proc/config |grep -i nat 
CONFIG_IP_NF_NAT=y 
CONFIG_IP_NF_NAT_NEEDED=y 
CONFIG_IP_NF_NAT_IRC=y 
CONFIG_IP_NF_NAT_FTP=y 
 
davidsmind# cat /proc/config |grep -i masq 
CONFIG_IP_NF_TARGET_MASQUERADE=y 
 
Ok, so I have my kernel configured for MASQing. 
 
 
As an aside, forwarding works: 
 
iptables --append FORWARD --in-interface eth1 -j ACCEPT 
 
gives no error at all. 

Reproducible: Always
Steps to Reproduce:
1. Compile Gentoo Sources 
2. Try to use masqurading 


Expected Results:  
Masqing works with other kernel's I've tried.
Comment 1 Bob Johnson (RETIRED) gentoo-dev 2003-04-13 22:35:29 UTC
re-emerge iptables 
 
pfeifer can you add the ewarn back into -r2+ ebuilds 
Comment 2 david mattatall 2003-04-13 22:47:14 UTC
Thank you.