Extremly small tool for UDP redirect

A small tool to redirect UDP packets to another destination. Packets received from a specified destination are sent back to a remembered sender.

I used it to redirect OpenVPN UDP traffic to hide my real IP

It seems to me that this is the easiest way to forward traffic because the udp_redirect binary has much easier usage, does not have the requirement for a special fifo file, does not require pipes, does not require other software, and most importantly, it works!

Build: gcc -o udp_redirect udp_redirect.c

Usage:

./udp_redirect our-ip our-port send-to-ip send-to-port

Example:

./udp_redirect 0.0.0.0 53 192.168.0.1 53

https://github.com/justinb01981/tiny-webrtc-gw/blob/master/udp_redirect.c