Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Networking doesn’t work through NAT for Ubuntu cloud images #13

Open
PraneetNeuro opened this issue Dec 14, 2020 · 5 comments
Open

Networking doesn’t work through NAT for Ubuntu cloud images #13

PraneetNeuro opened this issue Dec 14, 2020 · 5 comments

Comments

@PraneetNeuro
Copy link

No description provided.

@javacom
Copy link

javacom commented Dec 15, 2020

You have to setup network bridge in your ubuntu vm

https://www.tecmint.com/create-network-bridge-in-ubuntu/amp/

@PraneetNeuro
Copy link
Author

How do I install bridge-utils without a network?

@javacom
Copy link

javacom commented Dec 15, 2020

I think you can install packages in the existing Ubuntu vm via the NAT for outgoing traffic. If not, you did not set it up properly in the first place and is not the problem of this vftool.

@marcelorubim
Copy link

For my is not working as well. What could I have done wrong?

@javacom
Copy link

javacom commented May 3, 2021

Ok I end up using the port forwarding on macOS similar to the win10 wsl2 to port forward from the os to the ipaddress of the vm.
Just like I created a radpberrypios image as vm as in

http://iphonesdkdev.blogspot.com/2020/12/20201203.html

I created the VM with vnc server installed. Set the vm fixed ip address of 192.168.64.10 and in macOS host I do the port forwarding to the ipaddress and port number of the vm using this script. Then other machines on the LAN can vnc connect to the vm through the ipaddress of the macOS host with port 5910.

`echo "
rdr pass on lo0 inet proto tcp from any to self port 5910 -> 192.168.64.10 port 5901

rdr pass on en0 inet proto tcp from any to any port 5910 -> 192.168.64.10 port 5901

rdr pass on wlan0 inet proto tcp from any to any port 5910 -> 192.168.64.10 port 5901

" | sudo pfctl -ef -`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants