Open‑VPN
You will need a server running Debian 12 or Cent OS 8.
Do instalacji potrzebny będzie serwer z systemem Debian 12 lub Cent OS 8.
Für die Installation benötigen Sie einen Server mit Debian 12 oder Cent OS 8.
Note that all commands below must be executed as root
or with sudo
.
Zwracamy uwagę, że wszystkie poniższe polecenia muszą być wykonywane jako root
lub z sudo
.
Beachten Sie, dass alle unten aufgeführten Befehle als root
oder mit sudo
ausgeführt werden müssen.
Update the server:
Aktualizujemy serwer:
Server aktualisieren:
Debian:
apt update && apt upgrade -y
CentOS:
yum update
yum upgrade
The server must have the curl
package installed.
Na serwerze musi być zainstalowany pakiet curl
.
Auf dem Server muss das Paket curl
installiert sein.
You can check this by running:
Można to sprawdzić, uruchamiając:
Sie können dies überprüfen, indem Sie ausführen:
curl --version
If the package is missing, install it with:
Jeśli pakietu nie ma, zainstaluj go poleceniem:
Falls das Paket fehlt, installieren Sie es mit:
Debian:
apt install curl
CentOS:
yum install curl
Next, download the universal (works on Debian and CentOS) script from the repository:
Następnie pobierz uniwersalny (działa na Debianie i CentOS) skrypt z repozytorium:
Laden Sie als Nächstes das universelle Skript (funktioniert unter Debian und CentOS) aus dem Repository herunter:
Go to the home directory:
Przejdź do katalogu domowego:
Wechseln Sie in das Home‑Verzeichnis:
cd /home/{username}
Download the script:
Pobierz skrypt:
Skript herunterladen:
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
Make the script executable:
Ustaw skrypt jako wykonywalny:
Machen Sie das Skript ausführbar:
chmod +x openvpn-install.sh
Run the installer script from the directory:
Uruchom instalator w tym katalogu:
Führen Sie das Installationsskript im Verzeichnis aus:
./openvpn-install.sh
The installer will detect the server IP address and ask a few configuration questions.
Instalator wykryje adres IP serwera i zada kilka pytań konfiguracyjnych.
Der Installer erkennt die Server‑IP‑Adresse und stellt einige Konfigurationsfragen.
We recommend choosing the following options:
Zalecamy wybrać następujące opcje:
Wir empfehlen folgende Einstellungen:
Do you want to enable IPv6 support (NAT)? [y/n]: n
What port do you want OpenVPN to listen to? - 1 Default
What protocol do you want OpenVPN to use? - 1 UDP
What DNS resolvers do you want to use with the VPN? - 3 Cloudflare
Enable compression? [y/n]: n
Customize encryption settings? [y/n]: n
Then press any key to start the installation.
Następnie naciśnij dowolny klawisz, aby rozpocząć instalację.
Drücken Sie anschließend eine beliebige Taste, um die Installation zu starten.
Wait until the packages are installed; the installer will then ask for a client name. Enter any convenient name and press Enter.
Poczekaj, aż pakiety zostaną zainstalowane; instalator poprosi o nazwę klienta. Wpisz dowolną nazwę i naciśnij Enter.
Warten Sie, bis die Pakete installiert sind; der Installer fragt dann nach einem Client‑Namen. Geben Sie einen beliebigen Namen ein und drücken Sie Enter.
The installer will ask whether to protect the configuration file with a password. In this example we choose “No,” but you can protect it if you wish.
Instalator zapyta, czy chcesz zabezpieczyć plik konfiguracyjny hasłem. W tym przykładzie wybieramy „Nie”, ale możesz go zabezpieczyć, jeśli chcesz.
Der Installer fragt, ob die Konfigurationsdatei mit einem Passwort geschützt werden soll. In diesem Beispiel wählen wir „Nein“, Sie können sie aber schützen, wenn Sie möchten.
Do you want to protect the configuration file with a password?
Select an option [1-2]: 1
The installer finishes and tells you where the configuration file is located:
Instalator zakończy konfigurację i poda lokalizację pliku konfiguracyjnego:
Der Installer beendet die Einrichtung und zeigt den Speicherort der Konfigurationsdatei an:
The configuration file has been written to /root/Example-1.ovpn.
Move the configuration file to your home directory so you can download it to your computer:
Przenieś plik konfiguracyjny do katalogu domowego, aby móc pobrać go na komputer:
Verschieben Sie die Konfigurationsdatei in Ihr Home‑Verzeichnis, damit Sie sie auf Ihren Computer herunterladen können:
mv /root/Example-1.ovpn /home/user/
On your main computer, copy the configuration file from the server using scp
:
Na swoim komputerze pobierz plik z serwera poleceniem scp
:
Kopieren Sie auf Ihrem Hauptrechner die Datei mit scp
vom Server:
scp [email protected]:/home/user/Example-1.ovpn /path/on/your/computer
Import the obtained file into the VPN Run app.
Zaimportuj otrzymany plik do aplikacji VPN Run.
Importieren Sie die erhaltene Datei in die VPN‑Run‑App.