> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/ua/vpn-and-privacy/openvpn-easy.md).

# OpenVPN \[Easy]

## **Вступ**

**OpenVPN** є одним з найпопулярніших та надійних рішень для приватних віртуальних мереж (VPN). Цей продукт забезпечує високий рівень шифрування та гнучкість налаштування, що робить його ідеальним вибором як для індивідуальних користувачів, так і для корпоративних мереж.

{% hint style="success" %}
Ця інструкція використовує **Ubuntu 20.04**. Скрипт працює на всіх поточних версіях **Ubuntu**, **Debian**, **AlmaLinux**, **Rocky Linux**, **CentOS** та **Fedora**.
{% endhint %}

{% hint style="info" %}
**Рекомендовані характеристики:**

* **ЦП:** 1 віртуальне ядро
* **ОЗП:** 512 МБ
* **Сховище:** 1 ГБ
* **Швидкість мережі:** 100Mbps+

Ця інформація є довідковою та не потребує особливої уваги, оскільки будь-який доступний план підходить для використання OpenVPN на наших віртуальних серверах.
{% endhint %}

## Connect to the server <a href="#connect-to-the-server" id="connect-to-the-server"></a>

Connect to your server. If necessary, you can use our[ detailed instructions](https://wiki.spacecore.pro/vds-dedicated/how-to-use-vps-vds#connect) to perform this operation.

## **Встановлення OpenVPN**

Ви могли не бачити такого простого способу встановлення OpenVPN 😎.&#x20;

Достатньо ввести цю команду в консолі вашого сервера, після чого встановлення відбудеться автоматично.

```
apt-get update; rm openvpn-install.sh; wget https://mirror.spacecore.info/scripts/openvpn-install.sh && bash openvpn-install.sh
```

В кінці ви побачите наступний текст.

<figure><img src="/files/2yj7Ekpzenetww9TXQsx" alt=""><figcaption></figcaption></figure>

Перший конфігураційний файл, створений за замовчуванням, називається **«spacecore.ovpn»** і знаходиться в головній директорії. Ви можете завантажити його на свій пристрій за допомогою **sFTP**. Про те, як підключитися через sFTP, докладніше в розділі **«**[**Передача даних через sFTP**](https://wiki.spacecore.pro/v/ua/vps-and-dedicated-servers/how-to-use-vps-vds#pidklyuchennya-do-servera)**»**.&#x20;

Цей конфігураційний файл є універсальним і підходить для додавання профілю на будь-який пристрій, який підтримує OpenVPN.

## **Налаштування**

### **Для Windows**

Ви можете завантажити OpenVPN для Windows [за посиланням](https://openvpn.net/community-downloads/).&#x20;

Після додавання клієнта, можна перейти за посиланням і використати файл. Наприклад, використайте другий варіант. Достатньо перенести або вибрати вручну файл **«spacecore.ovpn»**, який ви завантажили з вашого сервера.

<figure><img src="/files/5TMbqz4HjTwEPvQP0s10" alt=""><figcaption></figcaption></figure>

Далі зробіть підключення. Чудово!

<figure><img src="/files/5fmqJaah5QHdl4EWvPp5" alt=""><figcaption></figcaption></figure>

### For IOS / Android

Підключення здійснюється за допомогою мобільного додатку OpenVPN, який доступний як у [**App Store**](https://apps.apple.com/us/app/openvpn-connect-openvpn-app/id590379981), так і у [**Play Market**](https://play.google.com/store/apps/details?id=net.openvpn.openvpn).

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

## **Додавання користувачів**

Як додати інших користувачів до вашої VPN? Для цього потрібно знову запустити вже завантажений скрипт.

```
bash openvpn-install.sh
```

Ви побачите повідомлення про те, що OpenVPN вже встановлений і список можливих дій. Введіть **«1»**, потім введіть ім'я нового користувача, наприклад **«friend»**.

{% hint style="info" %}
Натисніть кнопку **«Enter»**.
{% endhint %}

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

Далі буде створено новий конфігураційний файл. Його слід використовувати так само, як файл, який був створений вперше.

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://spacecore.gitbook.io/wiki/ua/vpn-and-privacy/openvpn-easy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
