J
J
jenya77712020-11-12 18:13:54
Nginx
jenya7771, 2020-11-12 18:13:54

How to implement a gateway for a server?

Hello, I need to implement such a system.
There are two servers, one will act as a gateway to the second main server. It is necessary to close the main server as much as possible, that is, all requests to the server will go through the gateway, and the main server will also communicate via the API via the gateway.

My thoughts were:
Install Nginx on the gateway and redirect requests to Nginx on the main server through proxy_pass. And to access other services via API on the gateway server, organize a VPN and all traffic from the main server to pass through the VPN.

How to implement all this with minimal loss of speed?
Maybe there are sensible articles on my topic, how to pass all server traffic through a VPN or some kind of tunnel?
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question