Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19277 - iptables nat is broken with gentoo kernel
Summary: iptables nat is broken with gentoo kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-13 21:35 UTC by david mattatall
Modified: 2003-04-13 22:47 UTC (History)
0 users

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 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.