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 configuration when host machine uses VPN #3634

Open
iSamBa opened this issue Feb 16, 2022 · 5 comments
Open

Network configuration when host machine uses VPN #3634

iSamBa opened this issue Feb 16, 2022 · 5 comments
Milestone

Comments

@iSamBa
Copy link

iSamBa commented Feb 16, 2022

My host machine uses VPN to connect to the company network. I am willing to access a repository in that server from the VM, and I keep getting a time out failure.
I am using a Shared Network configuration, and tested also with the bridged one with no success

Configuration

  • UTM Version: 3.0.4 (46)
  • OS Version: 12.2.1
  • Intel or Apple Silicon? Apple Silicon
@iSamBa
Copy link
Author

iSamBa commented Feb 17, 2022

The solution is to use Emulated VLAN, that will use port forwarding from the host machine.
Found the solution here : #3238 (comment)

@iSamBa iSamBa closed this as completed Feb 17, 2022
@osy
Copy link
Contributor

osy commented Mar 7, 2022

machyve/xhyve#84

Seems to be an issue with vmnet. Reopening for a proper fix.

@osy osy reopened this Mar 7, 2022
@osy osy added this to the Future milestone Mar 7, 2022
@stefan1983
Copy link

Any update here?

@osy osy mentioned this issue Feb 26, 2023
@thanosz
Copy link

thanosz commented May 17, 2023

You should note that a VM created with lima which uses qemu as the backend, does not have this problem and the networks behind the VPN are correctly accessible by the guest VM

@rzzldzzl
Copy link

Your VPN might disable IP Forwarding. That is the case with the AWS Client VPN.

My experience is -
Guest can access networks as expected (IP Forwarding is enabled)
After the hosts connects to the AWS Client VPN, the guest looses access to anything but the host. (IP Forwarding is disabled)
Manually enabling IP Forwarding restores connectivity from the guest.

After connecting your VPN (on the host), try enabling IP Forwarding on the host:
% sudo sysctl -w net.inet.ip.forwarding=1 net.inet.ip.forwarding: 0 -> 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants