Answer the question
In order to leave comments, you need to log in
How to make gre tunnels as proxy for MMORPG project (details inside)?
Hello!
Given:
game server:
IP: 1.1.1.1,
tcp game emulator ports: 1000, 2000
Access to the game server from the outside should not be present. Only through proxy servers (about them below).
The game server is hosted on a machine with 1 IP
Proxy Servers:
Servers that will act as proxies (to reduce latency in the game by using a connection to them, instead of connecting directly to the game server).
Answer the question
In order to leave comments, you need to log in
Are both servers running Linux? (I just haven't seen MMORPG servers not on Windows)
GRE tunnel is not encrypted, if it suits you - then ok.
I understood the proposed scheme, but could not understand what is not working for you.
In short, in my view, the scheme of work should look like this:
1) the client is given the ip of the proxy server for the connection.
2) DNAT is configured on the proxy server towards the game server (which goes through GRE) and SNAT so that responses from the game server go through the proxy, otherwise the server will respond from its ip and will not work.
Actually, the GRE tunnel in your case is not necessary, because DNAT can be done immediately to the external address of the game server interface and access can be killed only on a white sheet (list of proxy servers)
It's better to do this - https://debian.pro/1578
Each of the proxies will need 2 IP addresses (one of which will go to the main server).
Otherwise, you will suffer with NAT/DNAT.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question