UTM: Host VPN Connection doesn't reach the Guest
Configuration
- UTM Version: 2.3.1 (38)
- OS Version: macOS Big Sur 11.6.1
- Intel or Apple Silicon? Apple Silicon
I’m using Kali Linux arm version on UTM (kali 5.14 arm64, installed Kali’s 2021.3 version) and I have no internet connection when using a VPN on the host.
My Network configuration on UTM is Shared (I doubt Bridged would solve it) and Emulated Network Card is virtio-net-pci, I’m not sure if it’s a a misconfiguration, a bug or something else… but since I can’t install Mobile Access Portal natively on Kali (no arm64 version) I really need my host’s VPN connection to get to the guest inside UTM.
Looking for some help here, since I didn’t find a related issue. Many thanks in advance!
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 23 (8 by maintainers)
Have you tried the emulated VLAN network mode? If any, that one would definitely go through the VPN since it’s emulated in userspace. The other modes use macOS Virtualization features that might not respect the host’s VPN settings.
@ghost @conath Here workaround for apple.virtualization:
(it should look like this:)
ifconfig) and vpn CIDRref: https://communities.vmware.com/t5/VMware-Fusion-Discussions/Share-host-VPN-with-guest/m-p/2810095/highlight/true#M170151
It works @conath ! Thank you so much!!
I solved this issue like this:
Network: Bridge
nano /etc/resolv.conf nameserver 8.8.8.8
@dylan-gluck Don‘t use
pingto check internet connectivity in UTM VMs, it‘s not supported (at least in emulated VLAN mode, see #530)Instead perform a DNS lookup like
dig @1.1.1.1 DuckDuckGo.com. If it times out, no connection. Otherwise you’re connected.@bradyap did you ever find a solution?