macvz icon indicating copy to clipboard operation
macvz copied to clipboard

Network connection issue via VPN

Open balajiv113 opened this issue 3 years ago • 2 comments

Describe the bug VM access to internet is not working when connected via VPN

To Reproduce Steps to reproduce the behavior:

  1. Connect to VPN
  2. Start using macvz start docker
  3. Connect to shell using macvz shell docker
  4. In VM, try ping google.com and noticed ping is not working

Expected behavior Network connectivity should work fine

balajiv113 avatar Mar 31 '22 11:03 balajiv113

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

balajiv113 avatar Apr 02 '22 08:04 balajiv113

This is resolved with the support of macOS 13 & gvisor as slirp network

balajiv113 avatar Oct 29 '22 08:10 balajiv113