Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14159 - ipt_SNAT broken? in gentoo-sources-2.4.20-r1
Summary: ipt_SNAT broken? in gentoo-sources-2.4.20-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-18 18:35 UTC by Spider (RETIRED)
Modified: 2003-04-15 18:01 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 Spider (RETIRED) gentoo-dev 2003-01-18 18:35:12 UTC
command:
strace iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to-source 10.100.42.146


seems the -j SNAT doesn't handle to-source any more.  I'm reverting this kernel
for 2.4.20 vanilla now. 

open("/lib/iptables/libipt_SNAT.so", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\5\0"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5526, ...}) = 0
mmap2(NULL, 7788, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40000000
mprotect(0x40001000, 3692, PROT_NONE)   = 0
mmap2(0x40001000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0x40001000
close(3)                                = 0
socket(PF_INET, SOCK_RAW, IPPROTO_RAW)  = 3
getsockopt(3, SOL_IP, 0x40 /* IP_??? */, [7627118], [84]) = 0
getsockopt(3, SOL_IP, 0x41 /* IP_??? */, [7627118], [1356]) = 0
setsockopt(3, SOL_IP, 0x40 /* IP_??? */, [7627118], 1576) = -1 EINVAL (Invalid
argument)
write(2, "iptables: Invalid argument\n", 27iptables: Invalid argument
) = 27
_exit(1)                                = ?
Comment 1 Brandon Low (RETIRED) gentoo-dev 2003-01-19 15:11:37 UTC
Just rebuild iptables against the enw sources... for that matter the ebuild for
the new sources mentions that.

I'm leaving this bug open os that people can read it as needed.
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-04-15 18:01:22 UTC
this is clearly spelled out on the post of the gentoo-sources-2.4.20-r3 ebuild (as well as 
2.4.20-r1). 
plus there a @ least 2 other bugs on this same issue which are resolved. 
 
closing. 
 
Jay