# set-connect-ipsec

The vpn set-connect-ipsec command allows you to connect a VPN instance to its peer IPSec network. This command establishes the tunnel between your VPN and the configured peer, ensuring that encrypted communication can begin.

## Usage

```
cldkctl vpn set-connect-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 set-connect-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. Confirm the process by pressing 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%2FHeMqgy4Z8vo2uQHiyCBb%2Funknown.png?alt=media&#x26;token=f140f0bc-a375-4426-91c1-be211fea2714" alt=""><figcaption></figcaption></figure>

5. Once successful, the terminal displays **"✓ IPSec has been successfully Connected".**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FpYVklaHuX03Nbi1oztZh%2Funknown.png?alt=media&#x26;token=e69ed684-a4d1-4dc3-9e09-2641cb5bee45" alt=""><figcaption></figcaption></figure>

## Flags

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

| Flag       | Description                         |
| ---------- | ----------------------------------- |
| -h, --help | Help for set connect ipsec command. |

<br>
