Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created August 28, 2012 23:57
Show Gist options
  • 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)
@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