Установка на Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS и Fedora выполняется одной командой:
# wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh
Протестировано успешно на
CentOS 7 Ubuntu 18.04 Ubuntu 20.04 Ubuntu 22.04 Debian 11
По-умолчанию wireguard работает на 51820 порту
Проверить статус работы сервиса wireguard:
# systemctl status wg-quick@wg0.service
- wg-quick@wg0.service - WireGuard via wg-quick(8) for wg0
Loaded: loaded (/lib/systemd/system/wg-quick@.service; enabled; vendor preset: enabled) Active: active (exited) since Fri 2022-12-16 05:55:46 UTC; 7min ago Docs: man:wg-quick(8) man:wg(8) https://www.wireguard.com/ https://www.wireguard.com/quickstart/ https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8 https://git.zx2c4.com/wireguard-tools/about/src/man/wg.8 Process: 15695 ExecStart=/usr/bin/wg-quick up wg0 (code=exited, status=0/SUCCESS) Main PID: 15695 (code=exited, status=0/SUCCESS)
Ссылка на github скрипта:
https://github.com/Nyr/wireguard-install