Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Access Internet from Instance #51

Open
darinkes opened this issue Jan 9, 2019 · 6 comments
Open

Access Internet from Instance #51

darinkes opened this issue Jan 9, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@darinkes
Copy link

darinkes commented Jan 9, 2019

It seems you cannot access anything from an launches Instance.
Couldn't find out whats the root cause of this.
I can see the packets arrive on the tap device, but thats it.

@pengale
Copy link
Contributor

pengale commented Jan 10, 2019

I can reproduce this issue on my Openstack install, both on bare metal and inside a kvm.

It's probably just a config issue with the networking. I'm investigating that now ...

@pengale pengale added the bug Something isn't working label Jan 10, 2019
@pengale
Copy link
Contributor

pengale commented Jan 18, 2019

The solution here is probably to setup SNAT for the virtual interfaces that we create. We'll work on adding some automagic for this in a future release. In the meantime, the existing documentation on setting up NATs for Openstack should get you pointed in the right direction: https://docs.openstack.org/mitaka/networking-guide/intro-nat.html

@pengale
Copy link
Contributor

pengale commented Jan 18, 2019

We're moving bug tracking for Microstack from github to launchpad. Here's a link to the new bug that I created to track the issue: https://bugs.launchpad.net/microstack/+bug/1812415

Please feel free to comment there if anything needs clarifying!

@karamolegkos
Copy link

Hello guys, i am using microstack and i found out that if you are using ubuntu, then you can use the below commands to give internet access to your virtual machines inside your clouds

(using the default example used in this link https://ubuntu.com/openstack/install).

sudo iptables -t nat -A POSTROUTING -s 10.20.20.1/24 ! -d 10.20.20.1/24 -j MASQUERADE
sudo sysctl net.ipv4.ip_forward=1

The commands above must be run everytime we reboot the host machine for the microstack to give internet again to our instances.

I hope i helped somehow :).

@pengale
Copy link
Contributor

pengale commented Apr 28, 2021

@karamolegkos thank you for the comment, with the fix!

That is indeed the “right” thing to do in order to get networking working. I think that the microstack team is still figuring out how to make that work inside of a confined snap, which is why microstack doesn’t run the command for you.

@chsasank
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants