A
A
Alex Lange2019-09-13 16:37:17
linux
Alex Lange, 2019-09-13 16:37:17

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

3 answer(s)
R
Ruslan Fedoseev, 2019-09-13
@martin74ua

Yes. proxy on the desired host is called

A
Alexey Dmitriev, 2019-09-13
@SignFinder

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.

A
Andrey Barbolin, 2019-09-13
@dronmaxman

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 question

Ask a Question

731 491 924 answers to any question