# cldkctl vpn

The vpn command manages VPN services within your cluster. This command allows you to create, delete, list, and monitor VPNs, ensuring efficient resource allocation and system performance.

## Usage

```
cldkctl vpn [flags]
cldkctl vpn [command]
```

## Available commands

| Command                       | Description                              |
| ----------------------------- | ---------------------------------------- |
| vpn add-user-openvpn          | Add a user for OpenVPN.                  |
| vpn create                    | Create a new VPN.                        |
| vpn create-ipsec              | Create an IPSec VPN.                     |
| vpn create-ipsec-phase        | Add an IPSec Phase 2.                    |
| vpn create-openvpn            | Create an OpenVPN.                       |
| vpn delete                    | Delete a VPN.                            |
| vpn delete-ipsec              | Delete an IPSec VPN.                     |
| vpn delete-ipsec-phase        | Delete an IPSec Phase 2.                 |
| vpn delete-openvpn            | Delete an OpenVPN.                       |
| vpn delete-user-openvpn       | Delete an OpenVPN user.                  |
| vpn disable-ipsec             | Disable IPSec.                           |
| vpn disable-ipsec-phase       | Disable IPSec Phase 2.                   |
| vpn download-config-openvpn   | Download the OpenVPN configuration file. |
| vpn enable-ipsec              | Enable IPSec.                            |
| vpn enable-ipsec-phase        | Enable IPSec Phase 2.                    |
| vpn list                      | List all VPNs.                           |
| vpn list-ipsec                | List IPSec VPNs.                         |
| vpn list-ipsec-phase2         | List IPSec Phase 2 configurations.       |
| vpn list-ipsec-status         | List IPSec status.                       |
| vpn list-openvpn              | List OpenVPN instances.                  |
| vpn list-user-connect-openvpn | List connected OpenVPN users.            |
| vpn list-user-openvpn         | List OpenVPN users.                      |
| vpn psk                       | Display the pre-shared key for IPSec.    |
| vpn restart-ipsec             | Restart the IPSec service.               |
| vpn restart-openvpn           | Restart the OpenVPN service.             |
| vpn set-connect-ipsec         | Connect to IPSec.                        |
| vpn set-disconnect-ipsec      | Disconnect from IPSec.                   |
| vpn stop-ipsec                | Stop the IPSec service.                  |
| vpn stop-openvpn              | Stop the OpenVPN service.                |
| vpn update-user-openvpn       | Update an OpenVPN user.                  |

## Flags

{% hint style="info" %}
This command supports [global flags.](/cloudeka-api-list/global-flags.md) Refer to the Global Flags section for details.
{% endhint %}

| Flag       | Description               |
| ---------- | ------------------------- |
| -h, --help | Help for the vpn command. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vpn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
