Welcome to the Linux Foundation Forum!

Lab 3.5 Access nginx webpage from outside

I'm using multipass on my Windows dev machine to do this lab.

I've created two nodes using multipass and they each got two IPs. I see this info after running "multipass list" on my dev machine.

  • vm1 has 172.19.1.74 and 192.168.255.0
  • vm2 has 172.19.10.156 and 192.168.185.192

I ran "curl ifconfig.io" on each node to retrieve their public IPs. BOTH VMs returned 24.18.224.xxx

vm1 is the control plane node, all the pods are running fine.

My nginx svc shows port 80:30457

Per the instructions I should be able to go to :30457 to access the nginx home page.

Observations:
1. I cannot access 24.18.224.xxx:30457 from my dev machine browser
2. I can access 172.19.1.74:30457 from my dev machine browser
3. I cannot access 172.19.1.74:30457 from another machine's browser on the same network as my dev machine.
4. I cannot access 24.18.224.xxx:30457 from another machine's browser on the same network as my dev machine.

I think 2 and 3 make sense to me. But don't fully understand. 1 and 4 don't make sense to me.

Could someone please help clarity?

Thanks in advance.

Answers

  • It's likely how your networking is setup with multipass. Your 172.19 network is likely the network range that multipass setup for the internal VM network. Other computers on your normal network likely either 1) don't know how to get to it and/or 2) your host machine isn't allowing routing in.

    The reason why ifconfig.io is giving yuou a public ip address is because your multipass VMs are likely NATing through your host machine to get to the internet. They don't actually have that public IP address.

    I have not used multipass, so can't advise specifics of how to properly configure.

Categories

Upcoming Training