You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--project-id string Project ID forcommand execution (required for multiple projects)
39
-
```
29
+
**Flags:**
30
+
-`--auto-disconnect` - Automatically disconnect from VPN if already connected
31
+
-`--help` - Display help for the vpn up command
32
+
-`--mtu int` - Set custom MTU value for Wireguard interface (default: 1420)
33
+
-`-P, --project-id string` - Required when you have access to multiple projects
40
34
41
35
To connect to a specific project without using the interactive mode, use the project ID from your Zerops dashboard:
42
36
@@ -58,18 +52,15 @@ Upon connection, you'll have secure access to your project's private network wit
58
52
59
53
### Stop VPN
60
54
61
-
To stop the VPN session:
55
+
Disconnects from the Zerops VPN.
62
56
63
57
```bash
64
-
zcli vpn down
65
-
66
-
Usage:
67
-
zcli vpn down [flags]
68
-
69
-
Flags:
70
-
--help Display helpfor the vpn down command
58
+
zcli vpn down [flags]
71
59
```
72
60
61
+
**Flags:**
62
+
-`--help` - Display help for the vpn down command
63
+
73
64
## Troubleshooting
74
65
75
66
#### 1. Interface Already Exists
@@ -114,18 +105,22 @@ In the Advanced TCP/IP Settings dialog, navigate to the DNS tab and confirm that
114
105
3. Comment out the first line `LABEL=cloudimg-rootfs / ext4 defaults 0 1`
115
106
4. In `cmd.exe/PowerShell` run `wsl --shutdown` to restart WSL2
116
107
117
-
## How do we provide better security?
108
+
#### 4. VPN Connection Conflicts
109
+
**Problem**: When another VPN connection is active concurrently with Zerops VPN, users may experience degraded network performance or connection timeouts due to packet fragmentation issues.
110
+
111
+
**Solution**: Run the VPN with a reduced MTU (Maximum Transmission Unit) size:
112
+
```bash
113
+
zcli vpn up --mtu 1350
114
+
```
115
+
116
+
This resolves packet size conflicts that can occur when multiple VPN connections are active simultaneously.
117
+
118
+
## Enhanced Security with WireGuard
118
119
119
-
We are using WireGuard under the hood for VPN to establish a secure tunnel
120
-
connection to a private network of a Zerops project. This approach provides a safer connection
121
-
compared to SSH.
120
+
Zerops uses **WireGuard** to create secure VPN tunnel connections to your project's private network. This provides enhanced security compared to traditional **SSH** connections.
122
121
123
-
Additionally, you won't need to add any passwords or IP addresses for SSH access.
124
-
WireGuard is a free, lightweight, open-source software—technically a communication protocol—that
125
-
utilizes cryptography.
122
+
WireGuard eliminates the need for **passwords** or **IP address management** that SSH typically requires. As a free, lightweight, **open-source** communication protocol, WireGuard employs advanced **cryptography** to establish secure connections.
126
123
127
-
It helps us create a secure tunnel that uses UDP for transmitting traffic. We use public/private key pairs
128
-
for authorization.
124
+
The system creates encrypted tunnels using **UDP** for traffic transmission and relies on **public/private key pairs** for user authorization.
129
125
130
-
Inside Zerops project runs a Wireguard server and zCLI (Zerops Command Line Interface) works as
131
-
a Wireguard client which helps you to interact with your zerops project if you're authorized.
126
+
Each Zerops project runs a **WireGuard server**, while the **zCLI** (Zerops Command Line Interface) functions as a **WireGuard client**. This architecture enables authorized users to securely interact with their Zerops projects through the command line interface.
Manages object storage operations for backups and restores.
119
+
120
+
```sh
121
+
zsc object-storage [command]
122
+
```
123
+
124
+
#### Available flags
125
+
-`-h, --help`: Help for the object-storage command
126
+
127
+
When using `--storage objectstorage`, the command requires the following environment variables to be defined:
128
+
129
+
*`objectstorage_apiUrl` - API URL of the object storage service
130
+
*`objectstorage_accessKeyId` - Access key ID for authentication
131
+
*`objectstorage_secretAccessKey` - Secret access key for authentication
132
+
*`objectstorage_bucketName` - Name of the bucket to use
133
+
134
+
These environment variables will be automatically available if the object storage service has `envIsolation: none` configured, or if the entire project has `envIsolation: none` set. Otherwise, you need to explicitly reference these environment variables in your `zerops.yaml` file.
-`--truncateCount`: If greater than 0, truncate operation is performed after successful backup, keeping the specified number of most recent backups (default: 0)
156
+
157
+
**restore** - Restores a backup from object storage
--project-id string Project ID for command execution (required for multiple projects)
22130
+
zcli vpn up [project-id] [flags]
22140
22131
```
22132
+
**Flags:**
22133
+
- `--auto-disconnect` - Automatically disconnect from VPN if already connected
22134
+
- `--help` - Display help for the vpn up command
22135
+
- `--mtu int` - Set custom MTU value for Wireguard interface (default: 1420)
22136
+
- `-P, --project-id string` - Required when you have access to multiple projects
22141
22137
To connect to a specific project without using the interactive mode, use the project ID from your Zerops dashboard:
22142
22138
```bash
22143
22139
zcli vpn up Evs8Je4NTvKeIkUqoUXp2w
@@ -22152,14 +22148,12 @@ Upon connection, you'll have secure access to your project's private network wit
22152
22148
- The VPN daemon maintains connection stability with automatic reconnection
22153
22149
- Environment variables are not available through VPN connections
22154
22150
### Stop VPN
22155
-
To stop the VPN session:
22151
+
Disconnects from the Zerops VPN.
22156
22152
```bash
22157
-
zcli vpn down
22158
-
Usage:
22159
-
zcli vpn down [flags]
22160
-
Flags:
22161
-
--help Display help for the vpn down command
22153
+
zcli vpn down [flags]
22162
22154
```
22155
+
**Flags:**
22156
+
- `--help` - Display help for the vpn down command
22163
22157
## Troubleshooting
22164
22158
#### 1. Interface Already Exists
22165
22159
**Problem**: When running `zcli vpn up`, you get an error like:
@@ -22194,17 +22188,18 @@ In the Advanced TCP/IP Settings dialog, navigate to the DNS tab and confirm that
22194
22188
2. Add `system=true` to `[boot]` section
22195
22189
3. Comment out the first line `LABEL=cloudimg-rootfs / ext4 defaults 0 1`
22196
22190
4. In `cmd.exe/PowerShell` run `wsl --shutdown` to restart WSL2
22197
-
## How do we provide better security?
22198
-
We are using WireGuard under the hood for VPN to establish a secure tunnel
22199
-
connection to a private network of a Zerops project. This approach provides a safer connection
22200
-
compared to SSH.
22201
-
Additionally, you won't need to add any passwords or IP addresses for SSH access.
22202
-
WireGuard is a free, lightweight, open-source software—technically a communication protocol—that
22203
-
utilizes cryptography.
22204
-
It helps us create a secure tunnel that uses UDP for transmitting traffic. We use public/private key pairs
22205
-
for authorization.
22206
-
Inside Zerops project runs a Wireguard server and zCLI (Zerops Command Line Interface) works as
22207
-
a Wireguard client which helps you to interact with your zerops project if you're authorized.
22191
+
#### 4. VPN Connection Conflicts
22192
+
**Problem**: When another VPN connection is active concurrently with Zerops VPN, users may experience degraded network performance or connection timeouts due to packet fragmentation issues.
22193
+
**Solution**: Run the VPN with a reduced MTU (Maximum Transmission Unit) size:
22194
+
```bash
22195
+
zcli vpn up --mtu 1350
22196
+
```
22197
+
This resolves packet size conflicts that can occur when multiple VPN connections are active simultaneously.
22198
+
## Enhanced Security with WireGuard
22199
+
Zerops uses **WireGuard** to create secure VPN tunnel connections to your project's private network. This provides enhanced security compared to traditional **SSH** connections.
22200
+
WireGuard eliminates the need for **passwords** or **IP address management** that SSH typically requires. As a free, lightweight, **open-source** communication protocol, WireGuard employs advanced **cryptography** to establish secure connections.
22201
+
The system creates encrypted tunnels using **UDP** for traffic transmission and relies on **public/private key pairs** for user authorization.
22202
+
Each Zerops project runs a **WireGuard server**, while the **zCLI** (Zerops Command Line Interface) functions as a **WireGuard client**. This architecture enables authorized users to securely interact with their Zerops projects through the command line interface.
- Currently, the purge command only works for the [Static Mode](/features/cdn#static-mode) CDN
22440
22435
:::
22441
22436
---
22437
+
### object-storage
22438
+
Manages object storage operations for backups and restores.
22439
+
```sh
22440
+
zsc object-storage [command]
22441
+
```
22442
+
#### Available flags
22443
+
- `-h, --help`: Help for the object-storage command
22444
+
When using `--storage objectstorage`, the command requires the following environment variables to be defined:
22445
+
* `objectstorage_apiUrl` - API URL of the object storage service
22446
+
* `objectstorage_accessKeyId` - Access key ID for authentication
22447
+
* `objectstorage_secretAccessKey` - Secret access key for authentication
22448
+
* `objectstorage_bucketName` - Name of the bucket to use
22449
+
These environment variables will be automatically available if the object storage service has `envIsolation: none` configured, or if the entire project has `envIsolation: none` set. Otherwise, you need to explicitly reference these environment variables in your `zerops.yaml` file.
- `--truncateCount`: If greater than 0, truncate operation is performed after successful backup, keeping the specified number of most recent backups (default: 0)
22467
+
**restore** - Restores a backup from object storage
0 commit comments