Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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. –  user2119381 Jul 10 '13 at 14:26

1 Answer 1

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. –  user2119381 Oct 12 '13 at 22:04

Your Answer

 
discard

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.