The original post: /r/mullvadvpn by /u/IllyrianCyber on 2024-11-07 07:10:23.
Hi
I’m currently setting up a Mac Mini M2 (latest macOS) with Mullvad VPN (latest version) and running a Kali Linux VM through UTM (latest version). My goal is to route all traffic from the VM through the Mac host’s Mullvad VPN, ensuring my real IP remains hidden. However, I’m encountering issues:
1.Bridged Mode: This is the only mode where I get internet in the VM, but unfortunately, it bypasses the VPN, exposing my real IP.
2.Other Network Modes: I’ve tried all available network options in UTM, but with Mullvad active, I get no internet at all in the VM.
3.Multiple Linux Distros: I’ve tested this setup with various Linux distributions, but the issue remains the same across all of them.
Network Modes:
•Shared Network (NAT): No internet connection in the VM.
•Bridged Mode: Provides internet but bypasses the VPN, showing my real IP in the VM.
•Host Only: Blocks internet entirely, making it unsuitable for my needs.
•Emulated VLAN: This seems to solve similar issues for others, but unfortunately, it did not work for me.
Additional Configurations:
•Virtio Network Card: Tested both virtio-net-pci and virtio-net-device, but no difference in behavior.
•Mullvad Settings: The “Local Network Sharing” option is enabled to allow traffic from the VM to go through Mullvad, similar to setups on Windows.
•MacOS Firewall: Enabled but with exceptions for UTM and Mullvad VPN, so they shouldn’t be blocked.
•Isolate Guest from Host: Tried toggling this setting to enforce VPN routing, but it didn’t affect the outcome.
•Manual Static Routes: I attempted to route traffic within the VM to the host’s VPN interface (utun0), but received “no such device” errors, as utun0 is only available on the host.
Has anyone successfully routed VM traffic through Mullvad on a Mac host using UTM? I’d really appreciate any insights or alternative solutions. Thanks!