Z
Zerops5d ago
TonyT

VPN problem

Hi, new Zerops user here. I've created a Postgres service and was trying to connect from local laptop, but the VPN is failing.
zcli version

Using config file: /home/tony/.config/zerops/.zcli.yml
zcli version v1.0.43 (go1.24.2) linux/amd64
zcli version

Using config file: /home/tony/.config/zerops/.zcli.yml
zcli version v1.0.43 (go1.24.2) linux/amd64
Then
zcli vpn up
zcli vpn up
failed, so I tried
sudo wg-quick up /home/tony/.config/zerops/zerops.conf

[#] ip link add zerops type wireguard
[#] wg setconf zerops /dev/fd/63
[#] ip -4 address add 10.8.60.3/32 dev zerops
[#] ip -6 address add fda0:5ef:20d:c0df:10:8:60:3/128 dev zerops
[#] ip link set mtu 1350 up dev zerops
[#] ip -6 route add fda0:5ef:20d:c0df::/64 dev zerops
[#] ip -6 route add fda0:5ef:20d:c0de::/64 dev zerops
[#] ip -4 route add 10.8.60.0/22 dev zerops
[#] ip -4 route add 10.8.56.0/22 dev zerops
[#] resolvectl dns zerops 10.8.56.1
Failed to set DNS configuration: Could not activate remote peer 'org.freedesktop.resolve1': activation request failed: unknown unit
[#] ip link delete dev zerops
sudo wg-quick up /home/tony/.config/zerops/zerops.conf

[#] ip link add zerops type wireguard
[#] wg setconf zerops /dev/fd/63
[#] ip -4 address add 10.8.60.3/32 dev zerops
[#] ip -6 address add fda0:5ef:20d:c0df:10:8:60:3/128 dev zerops
[#] ip link set mtu 1350 up dev zerops
[#] ip -6 route add fda0:5ef:20d:c0df::/64 dev zerops
[#] ip -6 route add fda0:5ef:20d:c0de::/64 dev zerops
[#] ip -4 route add 10.8.60.0/22 dev zerops
[#] ip -4 route add 10.8.56.0/22 dev zerops
[#] resolvectl dns zerops 10.8.56.1
Failed to set DNS configuration: Could not activate remote peer 'org.freedesktop.resolve1': activation request failed: unknown unit
[#] ip link delete dev zerops
The docs say that first use of the VPN should ask to install the Zerops VPN daemon, but I didn't see that. Any ideas? Thanks
2 Replies
pr0tys
pr0tys5d ago
Hi Tony, seems like your systemd-resolved isn't running, try sudo systemctl enable --now systemd-resolved this should enable the unit to run at startup and also start the unit immediately. Also can you link the docs where it talks about Zerops VPN daemon?
TonyT
TonyTOP5d ago
Hi Luky Thanks for the quick response. The systemd-resolved fix worked - fantastic! Here's the docs link: https://docs.zerops.io/references/vpn#start-vpn Thanks once again Tony
Using Zerops VPN | Zerops
Interacting with Zerops network via zCLI with WireGuard VPN

Did you find this page helpful?