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

# restart-ipsec

The vpn restar-ipsec command allows you to restart the IPSec service of a VPN instance. This command is useful for refreshing the IPSec tunnel after configuration changes or temporary disconnections.

## Usage

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

2. Enter the public IP address of your VPN in the IP Public VPN field. You can refer to vpn list to obtain or verify your VPN instance information.
3. Confirm the process by pressing y for Confirm or n for Cancel.

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

4. Once successful, the terminal displays **"✓ Successfully IPSec".**

<figure><img src="/files/KJenMTdJvvCS9J5fxzfS" 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 restart ipsec command. |
