Answer the question
In order to leave comments, you need to log in
Is it possible to bind to a remote Linux network interface?
Hey! There are 2 geographically separated Linux servers with IP addresses 1.2.3.4 and 5.6.7.8 respectively. Is there any way to have a virtual interface on server 1.2.3.4 with address 5.6.7.8 (or from its network) so that an application running on server 1.2.3.4 can bind to a local clone of 5.6.7.8 and use it to access the network ? Thank you!
Answer the question
In order to leave comments, you need to log in
I am afraid it is not. The task looks too strange. After all, no one prevents the application from binding to any port on the local server, and then using the address translation rules to achieve the desired result. Transferring traffic from server to server is much easier.
If the application knows how to work with DNS, then on the 1.2.3.4 server you can add the name srv1.domain.ru 127.0.0.1 to /etc/hosts.
srv1.domain.ru is a type of DNS server name.
Or HAproxy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question