-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Host VPN Connection doesn't reach the Guest #3238
Comments
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. |
It works @conath ! Thank you so much!! |
Hi! Facing a similar issue, but with the following configuration:
I'm emulating a Windows 11 Insider Preview Client (ARM64) (build 22523) with SPICE Guest Tools (0.164.3) correctly installed. When the Network configuration on UTM is Shared (Emulated Network Card: virtio-net-pci), the internet connection works fine on the emulated Windows. However, I would like the host's VPN connection to get the guest. I tried to get it working both with Shared and Emulated VLAN network modes of UTM, but I didn't make it... Moreover, if I switch to the VLAN option, I have no internet connection on the guest. Is there any specific network configuration that I should try given the Windows version? Any help would be appreciated. |
@voa257 You should use emulated VLAN mode as suggested above. You might need to set manual DNS server in the VM to make it work. |
I spent a whole day because of this I finally found the solution you are the best |
I'm having the same issue with a MacOS guest. How do I enable VLAN mode? |
@vimlohulmu It‘s in the VM configuration, Network tab. |
@conath It's only showing None, Shared and Bridged there |
@vimlohulmu My bad, the emulated VLAN mode is only available for QEMU backend, not for Apple VMs. |
@conath So is there a solution for me? |
@vimlohulmu I believe no. You could instead try to connect to the VPN from within the VM if that is possible for your use case. |
@conath Unfortunately I'm out of connections. So I guess there's no workaround and I'll have to wait for a future update which may or may not include a possible solution? |
@vimlohulmu The Apple VM backend is not managed by UTM developers, so we can’t offer any promises or estimates when this feature might be added. You could file a Feedback Report with Apple to let them know you would like to have this feature. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm having a similar issue. I'm on macOS (apple silicon) running a debian vm in UTM. I am connected to a socks5 proxy on my host machine, however vm traffic doesn't seem to be going through it even while using emulated VLAN mode. |
Running into a similar issue Mac (Intel) host & Debian guest.
Also, I noticed that none of the other network interfaces are working even without the vpn running on host
|
@dylan-gluck Don‘t use Instead perform a DNS lookup like |
@bradyap did you ever find a solution? |
@ghost @conath
sudo pfctl -a com.apple.internet-sharing/shared_v4 -s nat 2>/dev/null > newrules.conf (it should look like this:) $ cat newrules.conf
nat on en0 inet from 192.168.64.0/24 to any -> (en0:0) extfilter ei
no nat on bridge100 inet from 192.168.64.1 to 192.168.64.0/24
echo "nat on utun5 inet from 192.168.64.0/24 to 10.0.0.0/8 -> (utun5) extfilter ei" >> newrules.conf
sudo pfctl -a com.apple.internet-sharing/shared_v4 -N -f newrules.conf 2>/dev/null |
Could support for a new 'NAT' option vs. 'Emulated VLAN' be added? This would function similar to how the 'NAT' option in VMware and VirtualBox work i.e. provide NAT between any of the networks visible to the host e.g. WiFi, LAN, VPN etc. I need both my guest and local apps on my macOS host to be able to connect to hosts over the same Pritunl VPN connection. This would significantly simplify networking for those wishing to be able to route between all available networks on the host. |
I solved this issue like this: Network: Bridge nano /etc/resolv.conf |
I changed it to bridged with en0 and it works now ! |
Using |
|
Configuration
config.plist.zip
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 isvirtio-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!
The text was updated successfully, but these errors were encountered: