> 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/enable-ipsec.md).

# enable-ipsec

The vpn enable-ipsec command allows you to enable the IPSec configuration of a VPN instance. This command reactivates a previously disabled IPSec connection using the existing configuration.

## Usage

```
cldkctl vpn enable-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 enable-ipsec
```

2. Enter your VPN instance name in the VPN Name field. You can refer to vpn list to obtain or verify your VPN instance name.
3. Enter the public IP address of your VPN in the **IP Public** field.
4. Enter the IPSec description in the Description IPSec field. Refer to vpn list-ipsec to ensure the description matches the existing IPSec configuration.
5. Confirm the process by pressing **y** for Confirm or **n** for Cancel.

<figure><img src="/files/3IwnXhhMggdERUFvDyo5" alt=""><figcaption></figcaption></figure>

6. Once successful, the terminal displays **"✓ IPSec has been successfully Enable".**

<figure><img src="/files/rb7ndEkG4UpxJc9SRe3R" alt=""><figcaption></figcaption></figure>

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