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

# restart-openvpn

The vpn restart-openvpn command is used to restart the OpenVPN service for a specified VPN instance. This command is helpful when you need to reinitialize the OpenVPN service after configuration updates or connection issues.

## Usage

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

2. Enter the public IP address of the VPN in the IP Public VPN field.
3. Press 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%2FktEqHYEenldjnBh2YHRf%2Funknown.png?alt=media&amp;token=c8c11c2e-40b4-43e4-b72c-a0a98f7e4153" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FeCII4rEzT3MxwX47woJ0%2Funknown.png?alt=media&amp;token=cc338e51-2172-4a40-9f67-68c698e407f4" 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 open vpn command. |
