There is a Linux-machine, on which there are several virtual machines. These virtualki have their own local ip, to a certain services should be accessed by a remote user. Immediately came the idea of ​​a proxy, but I need something that he would not broadcast all the traffic, but only where there are virtuals.

  • one
    good luck with your setup! Perhaps you wanted to ask something? - aleksandr barakin
  • I am new to this business. How can this problem be solved? - Filipp Mustang
  • Frankly speaking, from what you wrote in the place where the question should be, it seems that you need a generator of (some) requests. what relation a virtual private network or a proxy server may have to it, alas, is not clear to me. Please ask specific questions instead of stating your task. - aleksandr barakin
  • filrewall. he is a firewall, he is a firewall. even in any home router it is. port forwarding (port forwarding) the Internet is accessed to local servers. for access to http-servers often use reverse proxy. and a simple proxy usually means the inverse problem - going from LAN to the Internet. and yes, the firewall is all traffic wool. which one broadcasts, which one does not - everything is configured - Sergey
  • 3
    1. You need to configure routing. 2. enable traffic forwarding ( echo 1 >/proc/sys/net/ipv4/ip_forward ). 3. If virtual ip's are not accessible from the outside, you need to set iptables rules for traffic forwarding and / or masquerading (using iptables: MASQUERADE goals and possibly SNAT / DNAT). No additional software is usually installed. - Mike

1 answer 1

It is easier for each of the VM to assign its own address and does not suffer from such questions. After all, all virtual machines can do this!