OpenWrt Forum Archive

Topic: Port Mirroring using TEE - Chaos Calmer

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Using CHAOS CALMER (Bleeding Edge, r44510)

Tried entering

iptables -t mangle -A PREROUTING -j TEE --gateway x.x.x.x
iptables -t mangle -A POSTROUTING -j TEE --gateway x.x.x.x

response
iptables v1.4.21: unknown option "--gateway"

Anyone anyideas  what I can do to port mirror ?

Thanks

Tried to install iptables-mod-tee 

root@ROOter:~# opkg install iptables-mod-tee
Unknown package 'iptables-mod-tee'.
Collected errors:
* opkg_install_cmd: Cannot install package iptables-mod-tee.

no ipt_Route module installed....  how can we get to use TEE in Chaos Calmer ?

(Last edited by jinott on 21 Jun 2015, 05:12)

I have this question as well.

try this:
opkg update
opkg install kmod-ipt-tee iptables-mod-tee
modprobe xt_TEE

set your laptop IP address for ex: "172.10.10.205", and set your's iptables to:
iptables -A POSTROUTING -t mangle -o br-lan ! -s 172.10.10.205 -j TEE --gateway 172.10.10.205
iptables -A PREROUTING -t mangle -i br-lan ! -d 172.10.10.205 -j TEE --gateway 172.10.10.205

works fine in my Chaos Calmer 15.05.1

The discussion might have continued from here.