Answer the question
In order to leave comments, you need to log in
How to proxy traffic from one server to another?
I have 2 servers: 1 VPS, 1 Dedicated.
The game server (Minecraft) is located on the dedicated server. It is necessary to proxy the traffic from the dedik to the vps so that through the IP VPS I can access the game server.
Please help! If you need any information, write!
Answer the question
In order to leave comments, you need to log in
Create a vpn server on one of them
Connect the second one with a client
Next, using iptables, forward the necessary ports to the vpn address
About Strabbo and AlexVWill comments .
Indeed, routing is not solved, but you can really do without a VPN.
You need two iptables rules on the proxy side. One is DNAT with the replacement of the proxy address with the server address, the other is SNAT with the replacement of the client address with the proxy address. A side effect is that the server will see only the proxy address instead of the addresses of any clients. If such a side effect is not desired, then as per Drno 's answer .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question