> 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-status.md).

# list-ipsec-status

The vpn list-ipsec-status command retrieves a list of IPSec connection statuses in your VPN. This command displays essential details such as Local IP, Port Local, Remote IP, Port Remote, Connection Status, and Initiator.

## Usage

```
cldkctl vpn list-ipsec-status [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-status
```

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="/files/OcfI3lfjJ5wdXlTX2YaO" alt=""><figcaption></figcaption></figure>

5. Once successful, the terminal displays the IPSec status list containing details such as Local IP, Port Local, Remote IP, Port Remote, Connection Status, and Initiator.

<figure><img src="/files/4aZ3HYrlgsLxeluYNDAC" alt=""><figcaption></figcaption></figure>

| Column            | Description                                                        |
| ----------------- | ------------------------------------------------------------------ |
| Local IP          | Displays the local IP address of the VPN.                          |
| Port Local        | Shows the local port number used for the IPSec connection.         |
| Remote IP         | Displays the remote VPN IP address.                                |
| Port Remote       | Shows the remote port number used for the IPSec connection.        |
| Connection Status | Indicates the current connection state.                            |
| Initiator         | Specifies whether the connection was initiated from the local VPN. |

## 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 status command. |
