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

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

<figure><img src="/files/YGI6IO563cnvE2w7U3jo" 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 set connect ipsec command. |

<br>


---

# Agent Instructions: 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/cloudeka-api-list/command-reference/cldkctl-vpn/set-connect-ipsec.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.
