Using Zerops VPN
To begin, make sure you've installed and set up zCLI.
Start the VPN​
Start a VPN session with:
Usage:
zcli vpn up [projectId] [flags]
Flags:
--auto-disconnect If set, zCLI will automatically disconnect from the VPN if it is already connected.
-h, --help the vpn up command.
--projectId string If you have access to more than one project, you must specify the project ID for which the
command is to be executed.
Or connect to a specfic project by passing your project ID into the projectId
parameter:
You may need enclose your project name with quotes if it contains contains spaces.
When running zcli vpn up
for the first time, you'll be prompted to install the Zerops VPN daemon. Enter y
to confirm (you may need to provide your root/administrator password).
Once connected, you’ll have secure access to the project’s private network.
You can reach all services locally using their hostnames. However, environment variables are not available when connected via VPN.
You can only connect to one project at a time. If you’re already connected to another project, that connection will close automatically when you start a new one.
The VPN daemon keeps the connection open until you manually stop it. If the connection drops, it will automatically try to reconnect.
Stop the VPN​
Use zcli vpn down
command to stop the existing VPN session.