Skip to contentSkip to conversation

Problems with trying to use the TEE target

DISCUSSION Stephen Johnson 2 participants 6 messages Apr 7, 2011

lore
Share & tools
lore
#0 lore raw

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.

Signature · 5 lines
Stephen L Johnson  <[email protected]>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas
501-682-4339
#1 lore raw
Quoted 1 line

Greeting,

Hi,

Quoted 4 lines

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

#2 lore raw
Quoted 9 lines · Marek Kierdelewicz
Quoted 1 line

Greeting,

Hi,

Quoted 4 lines

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.

Quoted 7 lines

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.

Signature · 5 lines
Stephen L Johnson  <[email protected]>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas
501-682-4339
#3 lore raw

Hi,

Quoted 2 lines

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

#5 lore raw
In reply to Marek Kierdelewicz
Quoted 11 lines · Marek Kierdelewicz

Hi,

Quoted 2 lines

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

Signature · 5 lines
Stephen L Johnson  <[email protected]>
Unix Systems Administrator / DNS Hostmaster
Department of Information Systems
State of Arkansas
501-682-4339