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

Bug 20889

Summary: Netfilter NAT does not work with gentoo-sources 2.4.20-r5
Product: Gentoo Linux Reporter: Jim Healzer <jhealzer>
Component: [OLD] Core systemAssignee: Jay Pfeifer (RETIRED) <pfeifer>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jim Healzer 2003-05-12 20:19:49 UTC
I recently compiled a gentoo-sources 2.4.20-r5 kernel, with all netfilter options 
compiled as modules.  The network address translation part of my firewall/NAT script 
no longer works--specifically, when I enter the following iptables command: 
 
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE 
 
I get the error message "iptables: invalid argument".  The remainder of my firewall/NAT 
script works fine.  The appropriate modules appear to be loaded.  My script works fine 
with a kernel compiled from "vanilla-sources".  I have also tried compiling all netfilter 
stuff directly into the kernel, same result.   

Reproducible: Always
Steps to Reproduce:
1.Compile gentoo-sources 2.4.20-r5, netfilter options either as modules or compiled in. 
2.Attempt to configure network address translation using netfilter nat table. 
3. 
Actual Results:  
Unable to load network address translation rules into netfilter nat table. 

Expected Results:  
Network address translation should work as it does with a vanilla-sources kernel.
Comment 1 Jay Pfeifer (RETIRED) gentoo-dev 2003-05-12 20:51:17 UTC
read the post package install for the ebuild. they were cleary displayed when emerging... i'll quote for you:

"If iptables/netfilter behaves abnormally, such as 'Invalid Argument', you will need to re-emerge iptables to restore proper functionality."

closing.

Jay
Comment 2 Jim Healzer 2003-05-12 22:28:11 UTC
Thank you for your response, and sorry for the trouble.