New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Looking for solution of UDP forwarding
I am currently running a game server on a cheap VPS with large ram. but network quality is bad. however I found a kvm VPS with tiny ram but very good network quality. So I am wondering is there any program can forwarding UDP packages between 2 public ip?
by the way, the client send UDP packages from random port, I tried some forwarding scripts. they cannot handle the return packages. because the destination host does not know who send to me this package.
it seems need a C/S program to handle this (shadowsocks, pptp etc.)
Comments
GRE or IP in IP tunnel.
this wont solve your issue - if the network is bad on server A it is bad on server A. your traffic between A and B will still be an issue.
I've tried nginx some time ago.
But for quake 3 based games, this doesn't work, because the "authentication" (or handshake, can't remember well) is based on the IP of the actual server.
So, for me, this need something in a lower level. Or probably some modifications on the server code.
Also, I've wanted to try this kind of hack http://zarb.org/~gc/html/udp-in-ssh-tunneling.html with ssh/socat.
I've done it before (ssh), but didn't used it for my game servers. I guess the results will be the same.
Probably some of this stuff may work for you?
due to the host A and B have a common BGP peer, so that will not be a issue
then look at @yomero link - i have done something like this from a windows computer using a vps as my listener... works very well.
thx I will google it and take a try
socat work fine for TCP but not UDP > @yomero said:
I tried socat, it work well for one single client but doesn't work for multi clients
There are many solutions for windows, however for Linux I cant find one.
ditto GRE/IP-in-IP tunnel.
Look into DNAT + SNAT and IP PBR
@SplitIce
it seems like OpenVZ doesn't allow both GRE and IPIP tunnel module
it seems like OpenVZ doesn't allow both GRE and IPIP tunnel module> @Ishaq said:
Talk to your host. OpenVZ does support that.
Failing that if you have TUN/TAP tinc.
Failing that if you cant do anything optimal the best options that remain are Reverse Proxies DNAT+SNAT/nginx/haproxy etc
Have you tried udproxy? Working in my game.
can you post a link?
https://github.com/RoyalAliceAcademyOfSciences/udproxy
Maybe @catding means this.
Yep, the same as I am using.
I have trouble to compile udproxy. however I found other solution and it works!
https://github.com/vsergeev/tinytaptunnel
which is a layer 2 tunnel, just simply do the NAT on host A it forward both UDP and TCP traffic.
thank guys! problem solved!