Answer the question
In order to leave comments, you need to log in
How to forward from one "domain" port to another server?
Good afternoon. The final question was a little clumsily formulated, I will describe the situation.
There is software that connects to the server via domain + port 8888. In the same software, there is an update system that refers to the same domain but port 80. It is not possible to change the software.
The server is in a network, access to which is closed on port 80 (8888 is open and working). It's also impossible to change it.
Question. How can you make "domain:80" refer to one server and "domain:8888" to another with minimal effort?
So far, I see only a solution on the DNS server to set up an A-record on a new server with completely open ports, on which, through iptables, filter requests to one and the other port and redirect to different ip (for 80 some hosting thread, for 8888 an existing server) .
But such a solution will require about 2-3k rubles per server, since most vds do not have the iptables modules needed for such addressing.
What do you advise? maybe there is another way?
Answer the question
In order to leave comments, you need to log in
Ie on your main server, too, no iptables? What axle is worth? Installing from the repositories is also not possible?
Nu, something like this:
iptables -I INPUT -p tcp --dport 8888 -j ACCEPT
iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-port 8888
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question