* Problem with ROUTE target
@ 2007-07-30 7:29 Ludovic
2007-07-30 12:24 ` Yann Lejeune
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic @ 2007-07-30 7:29 UTC (permalink / raw)
To: netfilter
Hi all,
i'm using kernel 2.6.21.5 and iptables 1.3.7. I have patched it with
patch-o-matic in order to have the ROUTE target but it doesn't work:
root@linux:~ $ iptables -t mangle -A POSTROUTING -d 10.8.0.6 -j ROUTE --oif tun0
iptables: No chain/target/match by that name
root@linux:~ $ ll /lib/iptables/ | grep ROUTE
12 -rwxr-xr-x 1 root root 8216 Jul 26 17:55 libipt_ROUTE.so
root@linux:~ $ iptables -j ROUTE --help
iptables v1.3.7
Usage: iptables -[AD] chain rule-specification [options]
iptables -[RI] chain rulenum rule-specification [options]
iptables -D chain rulenum [options]
iptables -[LFZ] [chain] [options]
iptables -[NX] chain
iptables -E old-chain-name new-chain-name
iptables -P chain target [options]
iptables -h (print this help information)
...
...
ROUTE target v1.11 options:
--oif ifname Route packet through `ifname' network interface
--iif ifname Change packet's incoming interface to `ifname'
--gw ip Route packet via this gateway `ip'
--continue Route packet and continue traversing the
rules. Not valid with --iif or --tee.
--tee Duplicate packet, route the duplicate,
continue traversing with original packet.
Not valid with --iif or --continue.
root@linux:~ $ lsmod
Module Size Used by
ipt_ROUTE 3760 0
root@linux:~ $ iptables -t mangle -A POSTROUTING -d 10.8.0.6 -j ROUTE
iptables v1.3.7: ROUTE target: oif, iif or gw option required
Try `iptables -h' or 'iptables --help' for more information.
I don't really understand why it doesn't work because it displays help
message and it fail if i don't give good arguments when running
iptables with ROUTE target.
What can i do to find where my problem is ?
Thanks a lot for your help.
Ludovic.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem with ROUTE target
2007-07-30 7:29 Problem with ROUTE target Ludovic
@ 2007-07-30 12:24 ` Yann Lejeune
2007-07-30 12:29 ` Ludovic
0 siblings, 1 reply; 4+ messages in thread
From: Yann Lejeune @ 2007-07-30 12:24 UTC (permalink / raw)
To: netfilter
On 2007/07/30-09:29(+0200), Ludovic wrote :
> i'm using kernel 2.6.21.5 and iptables 1.3.7. I have patched it with
> patch-o-matic in order to have the ROUTE target but it doesn't work:
>
> root@linux:~ $ iptables -t mangle -A POSTROUTING -d 10.8.0.6 -j ROUTE --oif tun0
> iptables: No chain/target/match by that name
>
> root@linux:~ $ ll /lib/iptables/ | grep ROUTE
> 12 -rwxr-xr-x 1 root root 8216 Jul 26 17:55 libipt_ROUTE.so
>
< skip >
>
> root@linux:~ $ lsmod
> Module Size Used by
> ipt_ROUTE 3760 0
>
> What can i do to find where my problem is ?
>
Hi Ludovic,
Two things:
- help message on errors is given by iptables in user-land. It seems that
it's compiled with "ROUTE target" support. So it (iptables) "knows" the
command line synthax. In this case, it is a "user-land error".
- The error you get when you send a valid command line, comes from that
the ROUTE target may not be correctly loaded in the netfilter framework
but lsmod shows us that you performed a modprobe...
Can you please send the content of the file proc/net/ip_tables_target
Regards
Yann.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem with ROUTE target
2007-07-30 12:24 ` Yann Lejeune
@ 2007-07-30 12:29 ` Ludovic
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic @ 2007-07-30 12:29 UTC (permalink / raw)
To: netfilter, Ludovic
Thanks a lot for your answer.
Here is my /proc/net/ip_tables_target:
TTL
ULOG
LOG
SAME
NETMAP
REDIRECT
MASQUERADE
IMQ
ECN
TOS
REJECT
DNAT
SNAT
ERROR
TCPMSS
NFLOG
NFQUEUE
MARK
MARK
DSCP
CONNMARK
CLASSIFY
First, i can see that the target ROUTE is not available. Second, what
about the line with ERROR? Is it normal ?
I have checked on an other linux box with ROUTE target working, there
is no ERROR line in the ip_tables_target file and the ROUTE target is
available.
What can i do to correct the ROUTE target available ?
Best regards,
Ludovic.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Problem with ROUTE target
@ 2006-03-24 10:34 Francis.Sauch
0 siblings, 0 replies; 4+ messages in thread
From: Francis.Sauch @ 2006-03-24 10:34 UTC (permalink / raw)
To: netfilter
Hello,
I installed the ROUTE target for ip6tables and I've got a problem.
Whenever I try to create a rule, for example
ip6tables -t mangle -A POSTROUTING -j ROUTE --oif eth0
I've got the message :
unknown error 4294967295
I know some people had the same issue but I didn't find any solution.
I tried to use strace and the result was something like :
socket(PF_INET, SOCK_RAW, IPPROTO_RAW) = 3
getsockopt(3, SOL_IP, 0x40 /* IP_??? */,
"mangle\0\301\304e9\300\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., [84]) = 0
getsockopt(3, SOL_IP, 0x41 /* IP_??? */,
"mangle\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., [2456]) = 0
setsockopt(3, SOL_IP, 0x40 /* IP_??? */,
"mangle\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2668) = -1
ENOENT (No such file or directory)
That was not the exact message (I can't reproduce it right now) but that
was this error (ENOENT)
I really need to use this target so I would really appreciate your help
Than you
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-07-30 12:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 7:29 Problem with ROUTE target Ludovic
2007-07-30 12:24 ` Yann Lejeune
2007-07-30 12:29 ` Ludovic
-- strict thread matches above, loose matches on Subject: below --
2006-03-24 10:34 Francis.Sauch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox