D
D
dark_ess3nce2022-04-07 05:50:32
CentOS
dark_ess3nce, 2022-04-07 05:50:32

How to pass traffic of 3 servers through one white IP?

There is a Platonus and Moodle server, and they also allocated a place for the college telegram bot. And right now we are preparing a server in order to redirect all the traffic of other servers through the IP (we have only one white IP) of the domain of our site. Installed Centos on a server. Now I'm thinking how to implement this task. Maybe I phrased the question incorrectly. Are there any guides on this topic?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2022-04-07
@q2digger

Read what SNAT and MASQUERADE are,
Well, if web applications, then you also need a reverse proxy - nginx or apache

H
hint000, 2022-04-07
@hint000

Web traffic through a reverse proxy, the choice is made based on the URL received in the request from the client.
Everything else (except the web) is distributed to different ports and NAT rules (just DNAT, not SNAT at all) traffic coming to different ports is distributed to different servers.
https://www.opennet.ru/docs/RUS/iptables/

O
Oleg, 2022-04-07
@402d

nginx
there, by default, everything revolves around the proxy_pass directive,
that is, your Wishlist is the usual task for it to
go to the desired backend.
you can mirror the statics directly on it for optimality

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question