Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created August 28, 2012 23:57
Show Gist options
  • Star 27 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save mathieue/3505472 to your computer and use it in GitHub Desktop.
Save mathieue/3505472 to your computer and use it in GitHub Desktop.
udp multiplexer with socat
socat - udp4-listen:8125,fork | tee >(socat - udp-sendto:127.0.0.1:8135) >(socat - udp-sendto:127.0.0.1:8140)
@mathieue
Copy link
Author

This will forward incoming traffic to both udp server on 8135 and 8150 :)

@tomvanbraeckel
Copy link

Thanks, just what I needed!

@Dixon3
Copy link

Dixon3 commented Mar 11, 2017

Great!

Should be noted that trick works only with UDP traffic.

@schmiddim
Copy link

Can I create some Kind of firewall or nginx rule for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment