https://github.com/hwdsl2/wireguard-install/raw/master/wireguard-install.sh https://gitlab.com/hwdsl2/wireguard-install/-/raw/master/wireguard-install.sh 如果无法下载,打开wireguard-install.sh,然后点击右边的Raw按钮。按快捷键C
Updated Jun 4, 2025 TypeScript angristan / wireguard-install Star 9.3k Code Issues Pull requests Discussions WireGuard VPN installer for Linux servers linux privacy nat vpn wireguard Updated May 28, 2025 Shell pivpn / pivpn Star 7.6k Code Issues Pull requests Discussions The Simplest VP...
# https://github.com/angristan/wireguard-installRED='\033[0;31m'ORANGE='\033[0;33m'NC='\033[0m'functionisRoot() {if["${EUID}"-ne0];thenecho"You need to run this script as root"exit1fi}functioncheckVirt() {if["$(systemd-detect-virt)"=="openvz"];thenecho"OpenVZ is not suppo...
WireGuard can be configured to run as asystemdservice using its built-inwg-quickscript. While you could manually use thewgcommand to create the tunnel every time you want to use the VPN, doing so is a manual process that becomes repetitive and error prone. Instead, you can usesystemctlto ...
if [ "${install_flag[0]}" = "0" ] && [ "${install_flag[1]}" = "0" ]; then return 3 fi } get_latest_module_ver() { wireguard_ver="$(wget --no-check-certificate -qO- https://api.github.com/repos/WireGuard/wireguard-linux-compat/tags | grep 'name' | head -1 ...
wireguardScript wireguard安装卸载脚本 wireguard没有服务端和客户端之分,这里把有公网的服务器称为服务端 使用方法 服务端使用前修改参数 修改脚本中的几个参数 ipv4ServerAddress:服务端ipv4 ip ipv6ServerAddress:服务端ipv6 ip publicAddress:域名或者公网ip ...
First, download the script on your Linux server*: wget -O wireguard.sh https://get.vpnsetup.net/wg * A cloud server, virtual private server (VPS) or dedicated server. Option 1:Auto install WireGuard using default options. sudo bash wireguard.sh --auto ...
Run the script and follow the assistant: wget https://git.io/wireguard -O wireguard-install.sh && bash wireguard-install.sh Once it ends, you can run it again to add more users, remove some of them or even completely uninstall WireGuard. I want to run my own VPN but don't have a ...
Run the script and follow the assistant:wget https://raw.githubusercontent.com/l-n-s/wireguard-install/master/wireguard-install.sh -O wireguard-install.sh bash wireguard-install.sh Once it ends, you can run it again to add more users. Reboot your server to apply all settings....
First, download the script on your Linux server*: wget -O wireguard.sh https://get.vpnsetup.net/wg * A cloud server, virtual private server (VPS) or dedicated server. Option 1: Auto install WireGuard using default options. sudo bash wireguard.sh --auto See the script in action (terminal...