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

## Flags

{% hint style="info" %}
This command supports [global flags.](/guidance-for-individual/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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/guidance-for-individual/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.
