Server Fault is a question and answer site for system and network administrators. 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 have two network servers I'd like to test in parallel using live data. I'd like to have something listen on port A and forward the traffic to both port B and port C. The data stream in inbound only (i.e. the client just sends data via UDP and never receives a response). I read about netcat but didn't see a way to have it forward to multiple destinations. I could write some code to listen and forward to multiple destinations, but if there is an existing tool that can do this I'd like to learn about it.

EDIT: It looks like the iptables approach is a solution to this problem. I ended up doing this on a FreeBSD box running PF rather than iptables, so I used the dup-to directive.

share|improve this question
up vote 3 down vote accepted

If you have a Linux box with the iptables with the TEE target then you can use that to clone traffic.

share|improve this answer

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.