OpenWrt Forum Archive

Topic: IPTables and tee?

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

I am running openwrt version 8.09 on a Linksys WRT54G. I would like to do exactly what is described in this link.

http://www.myopenrouter.com/article/109 … R-WGR614L/

but when I enter the following iptable commands I get errors because it does not recognize the --gw or --tee options.

    iptables -A PREROUTING -t mangle -j ROUTE --gw 192.168.1.254 --tee

    iptables -A POSTROUTING -t mangle -j ROUTE --gw 192.168.1.254 --tee


Is there a package i need to install so that iptables can use these parameters?

Thank You
Mike

Anyone out there who can help me get x-tables-addons installed on openwrt 8.09 running on a Linksys wrt54G v2?

http://sourceforge.net/projects/xtables-addons/

I have the package downloaded and extracted to the /root folder. I was able to run ./configure but I cannot run make or make install because the make command is not recognized. I've found a lot of references for this package on openwrt but I haven't found anything that will help me get this working.

Any help would be appreciated
Thanks

I've tried that xtables-addons package feed from the current trunk, but I get an error when compiling, as described here: http://forum.openwrt.org/viewtopic.php?pid=87767

Was anybody successfull with using iptabels and the tee functionality on openwrt?

I am trying to achieve above on a WRT54GL OpenWrt Backfire 10.03.1 and it would be fantastic if someone could list the steps to port mirroring

I am not very familiar with Linux and will appreciate if your trick is as simple as can be.

PS - I studied the following links but have not found a package compatible with backfire and that accommodates the TEE option:

http://www.myopenrouter.com/article/109 … R-WGR614L/
https://forum.openwrt.org/viewtopic.php?pid=87767
http://www.bjou.de/blog/2008/05/howto-c … -iptables/
http://jdbates.blogspot.ch/2012/01/how- … affic.html

The discussion might have continued from here.