Network connection issue via VPN
Describe the bug VM access to internet is not working when connected via VPN
To Reproduce Steps to reproduce the behavior:
- Connect to VPN
- Start using
macvz start docker - Connect to shell using
macvz shell docker - In VM, try ping google.com and noticed ping is not working
Expected behavior Network connectivity should work fine
One possible workaround is to route bridge100 traffic to the tun used by your VPN software.
For Instance, Tunnelblick was using utun3. So to route all traffic from bridge100 to utun3. The following steps can be used,
After the nat … line (if there is one, otherwise at the end) in /etc/pf.conf, add the below line:
nat on utun3 from bridge100:network to any -> (utun3)
and reload PF with
sudo pfctl -f /etc/pf.conf
Note: The above command requires sudo to run
This is resolved with the support of macOS 13 & gvisor as slirp network