I
I
Ig0rek20222021-12-17 23:06:53
iptables
Ig0rek2022, 2021-12-17 23:06:53

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

2 answer(s)
D
Drno, 2021-12-17
@Drno

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

H
hint000, 2021-12-18
@hint000

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 question

Ask a Question

731 491 924 answers to any question