5

How to create UDP proxy using iptables

view full story
linux-howto

http://serverfault.com – I have a server running UDP server on port 50000. This server receives updates from clients, and pings back the clients every 5 seconds to the socket they were connected from. Now I want to redirect all the traffic to and from this UDP server via another server. Basically I want to setup a transparent proxy in front of this server. The reason is that I want to be able to easily control which server handles the UDP traffic, without the need to change DNS settings. At first I tried usingn socat to create this proxy: socat UDP-LISTEN:50000,fork UDP:myserver:50000 But this seems to work well (HowTos)