udpproxy / udpforwarder
udpproxy / udpforwarder
A simple tool to forward upd packets to one destination in a bidirectional manner. For example, you can also use nginx or HAProxy for the job. For security reasons, all packets destined to the backend had to come from one IP. I remembered this tool because I needed to see DNS traffic. So here it is udpproxy
+--------+ +--------------+
| Client <------> |
+--------+ | <-->+--------+
+--------+ | Proxy | | Server |
| Client <------> <-->+--------+
+--------+ | |
... +--------------+
docker run --rm --interactive --tty -p8053:53/udp -v .:/udpproxy -e UDPPROXY_USEFDS=9999 -e UDPPROXY_REUSEPORT=true bitnami/minideb \
/udpproxy/udpproxy 172.17.0.2:53 192.168.0.1:53 -va -s