-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
69 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# VPN Troubleshooting Guide | ||
|
||
## 1. Interface Already Exists | ||
**Problem**: When running `zcli vpn up`, you get an error like: | ||
``` | ||
ERR /opt/homebrew/bin/wg-quick up /opt/homebrew/etc/wireguard/zerops.conf: [+] Interface for zerops is utun6 wg-quick: 'zerops' already exists as 'utun6' | ||
``` | ||
|
||
**Solution**: Reset the VPN connection by running: | ||
```bash | ||
zcli vpn down | ||
zcli vpn up | ||
``` | ||
|
||
## 2. macOS Hostname Resolution | ||
**Problem**: Even with VPN successfully connected, hostname resolution fails on macOS with errors like: | ||
``` | ||
could not translate host name "hostname" to address: nodename nor servname provided, or not known | ||
``` | ||
|
||
**Solution**: On macOS, append `.zerops` to the hostname, even when VPN shows as connected: | ||
```bash | ||
# Instead of | ||
psql -h hostname -U user | ||
|
||
# Use | ||
psql -h hostname.zerops -U user | ||
``` | ||
|
||
## 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: | ||
1. Run `sudo -e /etc/wsl.conf` | ||
2. Add `system=true` to `[boot]` section | ||
3. Comment out the first line `LABEL=cloudimg-rootfs / ext4 defaults 0 1` | ||
4. In `cmd.exe/PowerShell` run `wsl --shutdown` to restart WSL2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters