Różnice
Różnice między wybraną wersją a wersją aktualną.
| en:vps:jak-zainstalowac-wireguard-nat [11/09/2023 03:29] – Automatic push translation reconv | en:vps:jak-zainstalowac-wireguard-nat [11/10/2026 00:06] (aktualna) – Automatic push translation reconv | ||
|---|---|---|---|
| Linia 1: | Linia 1: | ||
| - | Handbook | + | 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 | + | 1. First, update the package |
| - | apt-get update | + | apt-get update |
| - | | + | |
| | | ||
| \\ | \\ | ||
| - | | + | |
| - | mkdir -p / | + | mkdir -p / |
| - | | + | |
| | | ||
| \\ | \\ | ||
| - | | + | |
| wget -4 https:// | wget -4 https:// | ||
| Linia 24: | Linia 22: | ||
| | | ||
| Installer options: | Installer options: | ||
| - | - This server is behind NAT. What is the public IPv4 address or hostname? | + | - This server is behind NAT. What is the public IPv4 address or hostname? |
| - | - 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 | + | - What port should WireGuard listen to?\\ You can find a list of available ports assigned to your server in the VPS control |
| - | - Enter a name for the first client\\ Enter your preferred | + | - Enter a name for the first client\\ Enter your preferred name for the device |
| - | - Select a DNS server for the client\\ We recommend selecting 1, as it has optimised | + | - Select a DNS server for the client\\ We recommend selecting 1, as it has DNS optimisation |
| - | - Should automatic updates be enabled for it?\\ Select Y (we will receive | + | - Should automatic updates be enabled for it?\\ Select Y (you will receive updates |
| - | == 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 / | + | == The installation is complete. A QR code will be displayed, which you can scan – for example, using your mobile |