VPN Troubleshooting Guide
1. Interface Already Exists​
Problem: When running zcli vpn up
, you get an error like:
Solution: Reset the VPN connection by running:
2. macOS Hostname Resolution​
Problem: Even with VPN successfully connected, hostname resolution fails on macOS with errors like:
Solution: On macOS, append .zerops
to the hostname, even when VPN shows as connected:
3. WSL2 VPN Connection​
Problem: VPN not running in WSL2
Solution: This might occur because systemd
is not running in WSL2 by default. To fix:
- Run
sudo -e /etc/wsl.conf
- Add
system=true
to[boot]
section - Comment out the first line
LABEL=cloudimg-rootfs / ext4 defaults 0 1
- In
cmd.exe/PowerShell
runwsl --shutdown
to restart WSL2