en:vps:jak-zainstalowac-wireguard-nat

Różnice

Różnice między wybraną wersją a wersją aktualną.

Odnośnik do tego porównania

en:vps:jak-zainstalowac-wireguard-nat [11/09/2023 03:29] – Automatic push translation reconven:vps:jak-zainstalowac-wireguard-nat [11/10/2026 00:06] (aktualna) – Automatic push translation reconv
Linia 1: Linia 1:
-Handbook compatible with **VPS LXC (NAT)**+Guide compatible with **LXC VPS (NAT)**
  
-====== How do I install WireGuard on the VPS LXC NAT? ====== +====== How to install WireGuard on an LXC NAT VPS? ====== 
-First connect to the server via an SSH connection.+First, connect to the server via SSH.
  
  
-===== Installing the WireGuard server ===== +===== Installing the WireGuard server =====  
- 1 First, update the package management system by entering the following commands (may take a while):+ 1. First, update the package manager by entering the following commands (this may take a moment):
  
-  apt-get update +  apt-get update && apt-get upgrade
-  apt-get upgrade+
      
 \\ \\
- 2. we create a clients folder where we will store our clients' configuration files and go:+ 2. Create a ‘clients’ folder, where we will store our clients’ configuration files, and navigate to it:
  
-  mkdir -p /home/wireguard/clients +  mkdir -p /home/wireguard && cd /home/wireguard
-  cd /home/wireguard/clients+
      
 \\ \\
- 3. run the command that will download the installation script and run it directly:+ 3. Run the command that will download the installation script and execute it directly:
  
   wget -4 https://git.io/wireguard -O /home/wireguard/wireguard-install.sh && bash wireguard-install.sh   wget -4 https://git.io/wireguard -O /home/wireguard/wireguard-install.sh && bash wireguard-install.sh
Linia 24: Linia 22:
      
 Installer options:   Installer options:  
-  - This server is behind NAT. What is the public IPv4 address or hostname?\\  The main IPv4 address will be detected automatically and shown in square brackets, proceed by clicking Enter   +  - This server is behind NAT. What is the public IPv4 address or hostname?\\  The primary IPv4 address will be detected automatically and will be displayed in square brackets; press Enter to continue   
-  - What port should WireGuard listen to?\\ You can find the list of available ports assigned to your server in the VPS panel by going to the Network tab.\\ Select the first one in the list that serves UDP or that is not occupied by another application on your server. +  - What port should WireGuard listen to?\\ You can find a list of available ports assigned to your server in the VPS control panel by going to the Network tab.\\ Select the first one on the list that supports UDP or is not already in use by another application on your server. 
-  - Enter a name for the first client\\ Enter your preferred device name from which you will connect to WireGuard +  - Enter a name for the first client\\ Enter your preferred name for the device you’ll be using to connect to WireGuard 
-  - Select a DNS server for the client\\ We recommend selecting 1, as it has optimised DNS for the server +  - Select a DNS server for the client\\ We recommend selecting 1, as it has DNS optimisation for the server 
-  - Should automatic updates be enabled for it?\\ Select Y (we will receive automatic updates)+  - Should automatic updates be enabled for it?\\ Select Y (you will receive updates automatically)
  
-== The installation is complete, a QR code will be displayed, which you can scan e.g. with your phone and connect automatically (requires the WireGuard mobile app) or use the generated configuration file, which will be located in /home/wireguard/clients ==+== The installation is complete. A QR code will be displayed, which you can scan – for example, using your mobile phone – to connect automatically (requires the WireGuard mobile app), or you can use the generated configuration file, which will be located in /home/wireguard/clients ==
  
  
  • en/vps/jak-zainstalowac-wireguard-nat.1694395785.txt.gz
  • ostatnio zmienione: 11/09/2023 03:29
  • przez reconv