Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 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
add comment

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.