utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.43k stars 1.32k forks source link

Network: please provide internal mode #4571

Open kgfly opened 1 year ago

kgfly commented 1 year ago

Currently, network only has 2 mode: share and bridged model (Mac M1 Pro. Host Mac: 12.6. VM: 12.6. UTM Version: 3.2.4 58)

Request: please provide internal mode. Etc host machine can access VM shared folder. But VM cannot access Internet.

Thanks.

dtpoirot commented 1 year ago

Are you referring to 'host-only' mode? This is where the host can contact the VM.

'Internal' mode has traditionally referred to a mode where two or more VMs could network together, but the host could not connect. This is an important difference and a very useful mode for emulating routers and gateways.

kgfly commented 1 year ago

Host-only mode. I am running UTM 4.0.9 (68) Host: macbook pro 14 inch: 12.6.1

Here is what I observed:

image

I do not see "Host only" option.

So is "Host only" option supported now?

Thanks.

dragos-bth commented 1 year ago

See also #4202 (host-only mode with static IPs)

malwarefrank commented 1 year ago

On the mac M1 / Apple Silicon using Apple Virtualization, VZFileHandleNetworkDeviceAttachment looks promising as a way to create internal-only networks.

https://developer.apple.com/documentation/virtualization/vzfilehandlenetworkdeviceattachment

I am thinking something like in VirtualBox where we can create one or more named internal-only networks and then attach one or more VMs to each named network. This would allow me to analyze malware in an M1-based macOS VM that can talk to another VM (for monitoring network activity) without exposing the host system's network interfaces to the "malware" network.

coquizen commented 2 months ago

Are there any plans to implement this?