3 I have 2 computers based on Linux on one local network. Is it possible to bother the address of the second to run any program somehow from the first computer? If so, how can this be done?

Can you tell the original task, and not how you understand it? And then still looks a bit strange.

KoVadim2021-09-16 18:52:07

Do you mean the execution of the BIND system call? (if it is, then naturally, the answer is not; if not it, then explain that it is for you "Bind Aipi")

avp2021-09-16 18:52:07

It is necessary that when you start the program on the first computer, allow MySQL, I could use IPI of the second computer, not to proxing, and purely to be given y.y.y.y ideally. In the end, the access to MySQL was only through the iPie computer, and I could use the same port of the first computer to another task.

Ромашка2021-09-16 18:52:07
  • Answer # 1

    For exactly to lend

    You can make ports of ports via SSH.

    Server 2 connects to server 1 and scores there. Messages are transmitted to a local socket.

    SSH Server1 -R

    Although you probably need port ship

    iptables -t nat -a prerouting -p tcp --dport 5000 -J DNAT --To-Destination

    Please try to leave a little more deployed answers. You can add the answer by clicking Edit

    aleksandr barakin2021-09-16 18:52:07

    I think this option does not fit, it is necessary to bing the ip, not just send traffic

    Ромашка2021-09-16 18:52:07

    So he is Zhabidin) in the ssh version

    eri2021-09-16 18:52:07