Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

simple udp proxy solution

Tags:

proxy

udp

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

like image 278
Alex Avatar asked Nov 26 '09 12:11

Alex


People also ask

What is a UDP proxy?

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.

Does proxy work for UDP?

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.

Does envoy support UDP?

Overview. The UDP proxy listener filter allows Envoy to operate as a non-transparent proxy between a UDP client and server.

Is proxy UDP or TCP?

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.


1 Answers

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.

like image 105
Etienne Perot Avatar answered Sep 22 '22 14:09

Etienne Perot