Linux Netfilter discussions
 help / color / mirror / Atom feed
* Problems with trying to use the TEE target
@ 2011-04-07 17:59 Stephen Johnson
  2011-04-07 18:57 ` Marek Kierdelewicz
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Johnson @ 2011-04-07 17:59 UTC (permalink / raw)
  To: netfilter

Greeting,

I trying to use the TEE target but I keep getting the errors even using
the example commandi on the ipxt_TEE man page.

# iptables −t mangle −A PREROUTING −i eth0 −j TEE −−gateway 1.1.1.1
iptables: No chain/target/match by that name.

It doesn't matter what table / filter that I specify the command. the
same 'No chain/target/match by that name' error occurs. I'm current
using iptables-1.4.10 that I've compiled and installed on the server.
The linux kernel is 2.6.32.

I've tested my iptables installation using some other rules sets that I
used in the past using SNAT, DNAT, MASQUERADE, custom rules, and basic
filtering. Those rule sets work just fine. It's only TEE I'm having
rouble with.

Google searchs show other people having the same issue, but no answers
to their posts.
-- 
Stephen L Johnson  <stephen.johnson@arkansas.gov>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas
501-682-4339



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

* Re: Problems with trying to use the TEE target
  2011-04-07 17:59 Problems with trying to use the TEE target Stephen Johnson
@ 2011-04-07 18:57 ` Marek Kierdelewicz
  2011-04-07 19:41   ` Stephen Johnson
  0 siblings, 1 reply; 6+ messages in thread
From: Marek Kierdelewicz @ 2011-04-07 18:57 UTC (permalink / raw)
  To: Stephen Johnson; +Cc: netfilter

>Greeting,

Hi,

>I trying to use the TEE target but I keep getting the errors even using
>the example commandi on the ipxt_TEE man page.
>I'm current using iptables-1.4.10 that I've compiled and installed on
>the server. The linux kernel is 2.6.32.

Try installing xtables-addons:
http://xtables-addons.sourceforge.net/

It contains TEE module.

best regards,
Marek Kierdelewicz

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

* Re: Problems with trying to use the TEE target
  2011-04-07 18:57 ` Marek Kierdelewicz
@ 2011-04-07 19:41   ` Stephen Johnson
  2011-04-07 20:03     ` Marek Kierdelewicz
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Johnson @ 2011-04-07 19:41 UTC (permalink / raw)
  To: Marek Kierdelewicz; +Cc: netfilter@vger.kernel.org

On Thu, 2011-04-07 at 13:57 -0500, Marek Kierdelewicz wrote:
> >Greeting,
> 
> Hi,
> 
> >I trying to use the TEE target but I keep getting the errors even using
> >the example commandi on the ipxt_TEE man page.
> >I'm current using iptables-1.4.10 that I've compiled and installed on
> >the server. The linux kernel is 2.6.32.
> 
> Try installing xtables-addons:
> http://xtables-addons.sourceforge.net/
> 
> It contains TEE module.
> 
> best regards,
> Marek Kierdelewicz

What does the xtables-addons have to do with it? Iptables 1.4.10 has the
TEE target already.

        iptables -t mangle -A PREROUTING -i eth0 -j TEE --help
        iptables v1.4.10
        
        Usage: iptables -[AD] chain rule-specification [options]
        ...
        TEE target options:
          --gateway IPADDR    Route packet via the gateway given by
        address
          --oif NAME          Include oif in route calculation

When I try to use the TEE target I get the error.

        iptables: No chain/target/match by that name.
-- 
Stephen L Johnson  <stephen.johnson@arkansas.gov>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas
501-682-4339



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

* Re: Problems with trying to use the TEE target
  2011-04-07 19:41   ` Stephen Johnson
@ 2011-04-07 20:03     ` Marek Kierdelewicz
  2011-04-07 20:05       ` Marek Kierdelewicz
  2011-04-07 20:23       ` Stephen Johnson
  0 siblings, 2 replies; 6+ messages in thread
From: Marek Kierdelewicz @ 2011-04-07 20:03 UTC (permalink / raw)
  To: Stephen Johnson; +Cc: netfilter@vger.kernel.org

Hi,

>What does the xtables-addons have to do with it? Iptables 1.4.10 has
>the TEE target already.

It has userland iptables plugin. You're still missing kernel
module. Try doing:

modprobe xt_DNETMAP
and
lsmod|grep _TEE

Best regards,
Marek Kierdelewicz

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

* Re: Problems with trying to use the TEE target
  2011-04-07 20:03     ` Marek Kierdelewicz
@ 2011-04-07 20:05       ` Marek Kierdelewicz
  2011-04-07 20:23       ` Stephen Johnson
  1 sibling, 0 replies; 6+ messages in thread
From: Marek Kierdelewicz @ 2011-04-07 20:05 UTC (permalink / raw)
  To: Marek Kierdelewicz; +Cc: Stephen Johnson, netfilter@vger.kernel.org

Correction:

modprobe xt_TEE
and
lsmod|grep _TEE

Best regards,
Marek Kierdelewicz

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

* Re: Problems with trying to use the TEE target
  2011-04-07 20:03     ` Marek Kierdelewicz
  2011-04-07 20:05       ` Marek Kierdelewicz
@ 2011-04-07 20:23       ` Stephen Johnson
  1 sibling, 0 replies; 6+ messages in thread
From: Stephen Johnson @ 2011-04-07 20:23 UTC (permalink / raw)
  To: Marek Kierdelewicz; +Cc: netfilter@vger.kernel.org

On Thu, 2011-04-07 at 15:03 -0500, Marek Kierdelewicz wrote:
> Hi,
> 
> >What does the xtables-addons have to do with it? Iptables 1.4.10 has
> >the TEE target already.
> 
> It has userland iptables plugin. You're still missing kernel
> module. Try doing:
> 
> modprobe xt_DNETMAP
> and
> lsmod|grep _TEE

Ah. That was it. I thought the iptables TEE modules was the kernel
module. My mistake. Sorry for the confusion. Everything is now compile
and install. And my rules are working.

Thanks
-- 
Stephen L Johnson  <stephen.johnson@arkansas.gov>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas
501-682-4339



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

end of thread, other threads:[~2011-04-07 20:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07 17:59 Problems with trying to use the TEE target Stephen Johnson
2011-04-07 18:57 ` Marek Kierdelewicz
2011-04-07 19:41   ` Stephen Johnson
2011-04-07 20:03     ` Marek Kierdelewicz
2011-04-07 20:05       ` Marek Kierdelewicz
2011-04-07 20:23       ` Stephen Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox