* Invalid argument Error : DNAT rule at OUTPUT chain in arm-linux box
@ 2007-10-12 15:26 Sathish Kumar.R
2007-10-12 15:33 ` Pascal Hambourg
0 siblings, 1 reply; 2+ messages in thread
From: Sathish Kumar.R @ 2007-10-12 15:26 UTC (permalink / raw)
To: netfilter
Hi Guys,
I have a problem while executing the followng DNAT rule at arm-linux box,
Box = "Linux 2.4.27-uc1 #6 Mon Oct 8 22:12:01 IST 2007 armv5b unknown"
iptables version: "iptables v1.2.7a"
Executed Rule
-------------
iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination
10.0.1.1
iptables: Invalid argument
..
the above rule executed on intel box without any errors,
even the same rule at PREROUTING chain working successfully on arm-linux box
but in OUTPUT chain, i am getting this trouble, as "iptables: Invalid
argument"
i did some debugging on that rule
the strace result of that command..
>>>>>>
execve("/sbin/iptables", ["iptables", "-t", "nat", "-A", "OUTPUT", "-p",
"tcp", "--dport", "80", "-j", "DNAT", "--to-destination", "10.0.1.1"], [/* 7
vars */]) = 0
uname({sys="Linux", node="myhost", ...}) = 0
brk(0) = 0x1a7ec
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/v5b/fast-mult/half/libdl.so.2", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/v5b/fast-mult/half", 0xbffff4ec) = -1 ENOENT (No such file or
directory)
open("/lib/v5b/fast-mult/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or
directory)
..
..
...
open("/usr/local/lib/iptables/libipt_DNAT.so", O_RDONLY) = 3
read(3, "\177ELF\1\2\1a\0\0\0\0\0\0\0\0\0\3\0(\0\0\0\1\0\0\6\300"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0755, st_size=4540, ...}) = 0
mmap2(NULL, 36588, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40164000
mprotect(0x40165000, 32492, PROT_NONE) = 0
mmap2(0x4016c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) =
0x4016c000
close(3) = 0
socket(PF_INET, SOCK_RAW, IPPROTO_RAW) = 3
getsockopt(3, SOL_IP, 0x40 /* IP_??? */,
"nat\0\300\25U\20\0\0\0\0\306g\34\374\306g\35\4\304\34\254"..., [84]) = 0
getsockopt(3, SOL_IP, 0x41 /* IP_??? */,
"nat\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., [1880]) = 0
setsockopt(3, SOL_IP, 0x40 /* IP_??? */,
"nat\0@\25\201\220\300\25U\20\0\0\0\0\306g\34\374\306g\35"..., 2148) = -1
EINVAL (Invalid argument)
write(2, "iptables: Invalid argument\n", 27iptables: Invalid argument
) = 27
exit_group(1) = ?
Process 955 detached
<<<<<<<
i dont know what kernel options i am missing
please provide some clues to continue..
Sathish Kumar.R
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Invalid argument Error : DNAT rule at OUTPUT chain in arm-linux box
2007-10-12 15:26 Invalid argument Error : DNAT rule at OUTPUT chain in arm-linux box Sathish Kumar.R
@ 2007-10-12 15:33 ` Pascal Hambourg
0 siblings, 0 replies; 2+ messages in thread
From: Pascal Hambourg @ 2007-10-12 15:33 UTC (permalink / raw)
To: netfilter
Hello,
Sathish Kumar.R a écrit :
>
> I have a problem while executing the followng DNAT rule at arm-linux box,
>
> Box = "Linux 2.4.27-uc1 #6 Mon Oct 8 22:12:01 IST 2007 armv5b unknown"
> iptables version: "iptables v1.2.7a"
>
> Executed Rule
> -------------
> iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination
> 10.0.1.1
> iptables: Invalid argument
> ..
>
> the above rule executed on intel box without any errors,
> even the same rule at PREROUTING chain working successfully on arm-linux box
> but in OUTPUT chain, i am getting this trouble, as "iptables: Invalid
> argument"
NAT in the OUTPUT chain is optional until version 2.4.29. Check that
your kernel has CONFIG_IP_NF_NAT_LOCAL=y.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-12 15:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12 15:26 Invalid argument Error : DNAT rule at OUTPUT chain in arm-linux box Sathish Kumar.R
2007-10-12 15:33 ` Pascal Hambourg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.