Using VPS to extend coverage to other countries?

I have had good experience in the past with using a VPS as a repeater. However, this was within OVH's internal network, so it was quite optimized from the start. Your experience may vary. I used this iptables trick to do it. The only thing to keep in mind is the fact that the incoming connections will all be from the same IP address, so IP based banning will be impossible unless you block the incoming connections on the proxy as well.

What I did on the repeater / proxy (you don't have to do anything on the receiving server):

root@proxy:~# echo 1 > /proc/sys/net/ipv4/ip_forward
root@proxy:~# NEW_IP=1.2.3.4
root@proxy:~# OLD_IP=5.6.7.8
root@proxy:~# iptables -t nat -A PREROUTING -p tcp --dport 25565 -j DNAT --to-destination $OLD_IP:25565
root@proxy:~# iptables -t nat -A POSTROUTING -p tcp -d $NEW_IP --dport 25565 -j SNAT --to-source $OLD_IP
root@proxy:~# iptables -t nat -A POSTROUTING -j MASQUERADE

Alternatively, to avoid the networking mess, you may also be able to use BungeeCord instead. (though a con of doing this would be having to use BungeeCord for your local setup as well, since BungeeCord doesn't play well with the host server's authentication)

Hope this helps.

/r/admincraft Thread