T
T
tcapb12018-11-03 07:07:17
proxy
tcapb1, 2018-11-03 07:07:17

How to make a proxy while transferring the server to another IP address?

It is necessary to move the server to another IP, but until everything settles down, it is necessary that it be available at the old IP address too. It will take several days for all those who work with this server to update their IPTABLES.

It is necessary that all requests from the old IP are forwarded to the new one.

How can this issue be resolved? For example, if you put a proxy on an old virtual machine, then what should you set to work out of the box with a minimum of settings?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fixid, 2018-11-03
@Fixid

If http/https, then nginx is in reverse proxy mode
If you want to control specific ports, something like: iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2
In fact, you just forward the old port to the new IP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question