4

I have 3 debian VM on azure, one of them have a public IP with which it goes online (VM_1), and the others only have the internal network(VM_2, VM_3).

Can I give access to my VM_2 or VM_3, through the VM_1?

What broke me was to see that VM_1 has 2 network interfaces, private and public, but if I enter the configuration file there are only 2 interfaces, lo and eth0, and eth0 contains the private IP...

Can i do something, or i need to pay for another public IP assigned by azure?

I want to add some info: My subnet

VM_1 with public and private IP, can download files.

VM_2 and 3, with private IP but without Public IP, can't.

Xove
  • 41
  • 1
  • 1
  • 3
  • 1
    define `give access`? – 4c74356b41 Feb 26 '20 at 11:40
  • Yes, I wanted to say if I can use VM_1 as a forward, to go online with VM_2 – Xove Feb 26 '20 at 11:58
  • what do you mean `go online`? vms in azure have outbound connectivity to internet by default (even without PIP) – 4c74356b41 Feb 26 '20 at 12:00
  • Well, so if i have internet connectivity by default, why, having the same configuration, VM_2 can't even reach it? I have reviewed /etc/resolv.conf in VM_1 and VM_2, they have the same content. I need to check other files? – Xove Feb 26 '20 at 12:26
  • 1
    well, i have no idea what you are trying to do, but vms without public ip in azure can connect to the internet by default. why it doesnt work for you? I have no idea. you might have misconfigured the vm, or the firewall, or NSG, or UDR, or Azure Firewall, etc – 4c74356b41 Feb 26 '20 at 12:38
  • What do you mean that access the VM_2 and VM_3 without public IP? SSH or HTTP request? – Charles Xu Feb 27 '20 at 02:04

1 Answers1

4

Your question is possible via Azure Virtual NAT. You can assign IPs to the NAT gateway and in the subnet you reference the NAT gateway. By this way all the VMs in the subnet can reach Internet via the NAT gateway IP addresses.

mloskot
  • 37,086
  • 11
  • 109
  • 136
msrini-MSIT
  • 1,444
  • 1
  • 7
  • 11