> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vpn/list-ipsec.md).

# list-ipsec

The vpn list-ipsec command retrieves a list of IPSec configurations in your VPN. This command displays essential details such as Status, Description, Remote VPN, Pre Shared Key, Deployment Status, and Connecting Status.

## Usage

```
cldkctl vpn list-ipsec [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl vpn list-ipsec
```

2. Enter the VPN name in the VPN Name field. To obtain or verify it, refer to vpn list.
3. Enter the public IP address in the **IP Public** field.
4. Press **y** for Confirm or **n** for Cancel.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FaeMdf6db5Sk9lmmI8jt5%2Funknown.png?alt=media&amp;token=4c6f5649-67d1-4f21-ae38-ae1127cb5909" alt=""><figcaption></figcaption></figure>

5. Once successful, the terminal displays the IPSec configuration list containing information such as Status, Description, Remote VPN, Pre Shared Key, Deployment Status, and Connecting Status.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FQdpsCgs0HUWa4ijrIu5s%2Funknown.png?alt=media&amp;token=fc7d4660-3a24-4dc2-89ed-e587f71d12c0" alt=""><figcaption></figcaption></figure>

| Column            | Description                                                      |
| ----------------- | ---------------------------------------------------------------- |
| Status            | Indicates whether IPSec is enabled or disabled.                  |
| Description       | Custom label or note for the IPSec configuration.                |
| Remote VPN        | IP address or endpoint of the remote VPN.                        |
| Pre Shared Key    | The shared secret key used for authentication between VPN peers. |
| Deployment Status | Displays the current deployment condition.                       |
| Connecting Status | Shows the connection state.                                      |

## 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 list ipsec command. |
