Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to copy every outgoing packet to other WAN interfaces but my iptables (v1.2.7) doesn't have TEE target support. I wonder if there is another way (maybe using iproute2 or ebtables) to copy every outgoing packet to an selected interface.

I prefer another way than getting xtables-addons because I'm working with a embedded device (an UClinux distribution) and I would prefer avoid new versions of iptables (I don't know if the syntax remains the same among versions), cross-compiling problems or changing Makefiles.

share|improve this question
Is this for a one off or a permanent solution on multiple devices? – EightBitTony Jul 10 '13 at 14:08
this solution can be disabled at running time, its not permanent. – MABC Jul 10 '13 at 14:26

Found this Q&A on ServerFault titled: Copy/Mirror traffic to WAN interfaces without “iptables tee” support. It looks like you have 2 options:

  1. Use the ROUTE target from patch-o-matic which does have a --tee option for iptables.
  2. Use libpcap to do the mirroring - libpcap-based port-mirroring project .
share|improve this answer
I was working with dial on demmand ppp interfaces and the purpose was to awake all ppp interfaces when there was outgoing traffic. Finally i solve this issue by changing pppd code. – MABC Oct 12 '13 at 22:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.