I am looking for solution that can proxy my udp packets. I have one client sending udp packets to a server. Connection between them is very bad and I get lot of packet loss. One solution is to have a new proxy server that will just redirect all packets from client to destination server. The new proxy server has good connection to both locations.
So far I have found Simple UDP proxy/pipe
Are there some tools for such purpose ?
Cheers
A UDP proxy (UDPXY) is a gateway which ensures data transmission between any UDP-based applications to internet-enabled devices. It facilitates end-to-end data stream relay, which allows internet users to access multicast.
You can't proxy UDP, simply because unlike TCP, UDP is a connectionless protocol. A proxy relies on you making a connection to the proxy server, that proxy server making the request on your behalf, and then returning the data back to you. What you need to do is rewrite the packets as they go through your firewall.
Overview. The UDP proxy listener filter allows Envoy to operate as a non-transparent proxy between a UDP client and server.
The TCP-UDP-proxy is a low precedence policy that allows all outbound TCP and UDP traffic from networks protected by your Firebox. If you remove the Outgoing policy, and do not want to add a separate policy for each type of traffic you want to allow out through your firewall, you can add the TCP-UDP-proxy.
I also wrote a Python script for this one day. This one goes both ways:
https://github.com/EtiennePerot/misc-scripts/blob/master/udp-relay.py
Usage: udp-relay.py localPort:remoteHost:remotePort
Then, point your UDP application to localhost:localPort
and all packets will bounce to remoteHost:remotePort
.
All packets sent back from remoteHost:remotePort
will be bounced back to the application, assuming it is listening on the port it just sent packets from.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With