Answer the question
In order to leave comments, you need to log in
How to hide server IP address?
There is a main server that can run different applications on random ports.
There is an auxiliary server that will be accessed from the Internet.
It is necessary that the auxiliary server proxy the request to the main server on the same port and return the response to the client.
No one should know the IP address of the main server, or even about its existence, and only contacted through the auxiliary one. How can this be implemented?
I could not figure it out with iptables, because. packets were not sent back.
There are other options with VPN or IP tunnels, but I didn’t understand how to configure them, because. familiar with Linux at the level yum install
, service start/stop
, cd
, ls
, nano
.
Help me please!
VPS servers from different providers. The servers are running Centos 7. Let's assume that the servers have the following IPs:
Main - 11.22.33.44
Auxiliary - 26.36.46.56
Answer the question
In order to leave comments, you need to log in
Nginx allows you to do this. via proxy_pass Another option is to hide behind NATS
https://serveradmin.ru/nginx-proxy_pass/
https://serveradmin.ru/proksirovanie-sayta-s-pomos...
You can only have one server with NGINX sticking out, which, depending on the port or dns name, will redirect requests to at least a hundred different internal servers.
We received a request addressed to aaa.bbb.ccc - we redirect it to the server xxx.yyy.zzz on port 666. We received a
request addressed to ddd.eee.fff - we redirect it to the same server xxx.yyy.zzz, but to port 777.
We received a request addressed to kkk.lll.mmm - we redirect it to the server rrr.sss.ttt.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question