All of lore.kernel.org
 help / color / mirror / Atom feed
* Invalid arguments when using '-j TEE'
@ 2012-01-11 18:20 Ye Liu
  2012-01-11 18:25 ` Jan Engelhardt
  0 siblings, 1 reply; 7+ messages in thread
From: Ye Liu @ 2012-01-11 18:20 UTC (permalink / raw)
  To: netfilter; +Cc: Dov Berliner

Hi there,

I need to setup iptables rules to tee the traffic, so I've tried to
add the following rule:

$> iptables -t mangle -A PREROUTING -j TEE --gateway xxx.xxx.xxx.xxx

But the command gives an error, says

$> iptables: Invalid argument. Run `dmesg' for more information.

I've checked output of dmesg, there is no messages related to iptables.

Please help...

Some more information:

kernel: 2.6.19.2
iptables: v1.4.11.1
xtables-addons: 1.41

$> lsmod

ipt_TOS 1664 0 - Live 0xbf063000
iptable_mangle 2048 0 - Live 0xbf061000
xt_TEE 2740 0 - Live 0xbf05f000
compat_xtables 7584 1 xt_TEE, Live 0xbf05c000
xt_tcpudp 2656 7 - Live 0xbf022000
xt_state 1696 1 - Live 0xbf020000
ipt_REJECT 3328 2 - Live 0xbf01e000
xt_multiport 2880 1 - Live 0xbf01c000
xt_conntrack 2144 1 - Live 0xbf01a000
ip_conntrack 47188 2 xt_state,xt_conntrack, Live 0xbf00d000
nfnetlink 5336 1 ip_conntrack, Live 0xbf00a000
iptable_filter 2176 1 - Live 0xbf008000
ip_tables 12104 2 iptable_mangle,iptable_filter, Live 0xbf004000
x_tables 12068 8
ipt_TOS,compat_xtables,xt_tcpudp,xt_state,ipt_REJECT,xt_multiport,xt_conntrack,ip_tables,
Live 0xbf000000

And I've tried other rules, such as

$> iptables -t mangle -A PREROUTING -p tcp --dport 25 -j TOS --set-tos 0x04

that is working fine.

--
Ye

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-12 15:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 18:20 Invalid arguments when using '-j TEE' Ye Liu
2012-01-11 18:25 ` Jan Engelhardt
2012-01-11 18:30   ` Ye Liu
2012-01-11 20:18     ` Mart Frauenlob
2012-01-11 22:03       ` Ye Liu
2012-01-12  8:30         ` Jan Engelhardt
2012-01-12 15:50           ` Ye Liu

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.