Skip to content
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

Network connection issue via VPN #12

Open
balajiv113 opened this issue Mar 31, 2022 · 2 comments
Open

Network connection issue via VPN #12

balajiv113 opened this issue Mar 31, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@balajiv113
Copy link
Member

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 balajiv113 added the bug Something isn't working label Mar 31, 2022
@balajiv113
Copy link
Member Author

balajiv113 commented Apr 2, 2022

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant