TopGit tracks hwdsl2/wireguard-install on GitHub as part of the Security family. The project has 3.6k stars. WireGuard VPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE and Raspberry Pi OS. Includes interactive setup and client management.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
English | 简体中文 | 繁體中文 | Русский | Video en Español
WireGuard VPN Server Auto Setup Script
WireGuard VPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE and Raspberry Pi OS.
This script will let you set up your own VPN server in just a few minutes, even if you haven't used WireGuard before. WireGuard is a fast and modern VPN designed with the goals of ease of use and high performance.
Features:
Fully automated WireGuard VPN server setup, no user input needed
Supports interactive install using custom options
Generates VPN profiles to auto-configure Windows, macOS, iOS and Android devices
Generates QR codes for easy mobile device setup
Supports managing WireGuard VPN users
Optimizes sysctl settings for improved VPN performance
If you are unable to download, open wireguard-install.sh, then click the Raw button on the right. Press Ctrl/Cmd+A to select all, Ctrl/Cmd+C to copy, then paste into your favorite editor.
Advanced: Auto install using custom options.
Advanced users can auto install WireGuard using custom options, by specifying command-line options when running the script. For more details, see the next section "view usage information for the WireGuard script".
Alternatively, you may provide a Bash "here document" as input to the setup script. This method can also be used to provide input to manage users after install.
First, install WireGuard interactively using custom options, and write down all your inputs to the script.
sudo bash wireguard.sh
If you need to remove WireGuard, run the script again and select the appropriate option.
Next, create the custom install command using your inputs. Example:
sudo bash wireguard.sh <<ANSWERS
n
51820
client
2
y
ANSWERS
Note: The install options may change in future versions of the script.
View usage information for the WireGuard script.
Usage: bash wireguard.sh [options]
Options:
--addclient [client name] add a new client
--dns1 [DNS server IP] primary DNS server for new client (optional, default: Google Public DNS)
--dns2 [DNS server IP] secondary DNS server for new client (optional)
--listclients list the names of existing clients
--removeclient [client name] remove an existing client
--showclientqr [client name] show QR code for an existing client
--uninstall remove WireGuard and delete all configuration
-y, --yes assume "yes" as answer to prompts when removing a client or removing WireGuard
-h, --help show this help message and exit
Install options (optional):
--auto auto install WireGuard using default or custom options
--serveraddr [DNS name or IP] server address, must be a fully qualified domain name (FQDN) or an IPv4 address
--port [number] port for WireGuard (1-65535, default: 51820)
--clientname [client name] name for the first WireGuard client (default: client)
--dns1 [DNS server IP] primary DNS server for first client (default: Google Public DNS)
--dns2 [DNS server IP] secondary DNS server for first client
To customize options, you may also run this script without arguments.
Community
📬 Get project updates and free deployment guides (1–2 emails/month)
💬 Join the r/selfhostedstack community for discussions
⭐ Star the repository if you find it useful — it helps others discover it
Next steps
After setup, you can run the script again to manage users or uninstall WireGuard.
Get your computer or device to use the VPN. Please refer to:
Configure WireGuard VPN Clients
Read 📘 VPN book to access extra content.
Enjoy your very own VPN! :sparkles::tada::rocket::sparkles:
Credits
This script is based on the great work of Nyr and contributors, with enhancements and changes for compatibility with the Setup IPsec VPN project.
List of enhancements over Nyr/wireguard-install.
Improved compatibility with Setup IPsec VPN
Improved script reliability, user input and output
Supports auto install using default or custom options
Supports using a DNS name as server address
Added support for openSUSE Linux
Supports listing existing VPN clients
Supports showing QR code for a client
Supports custom DNS server(s) for VPN clients
Supports command-line options for managing VPN clients
Optimizes sysctl settings for improved VPN performance
Improved creation of client config files when using sudo
How active is development on hwdsl2/wireguard-install?
The most recent commit recorded on hwdsl2/wireguard-install was 2 months ago, based on the GitHub push timestamp. The repository has 556 forks — one of the better signals of community interest.
How many stars does hwdsl2/wireguard-install have?
hwdsl2/wireguard-install has 3.6k GitHub stars — refresh the page for the live number, or check github.com/hwdsl2/wireguard-install. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What else is in the Security space?
hwdsl2/wireguard-install is tracked by TopGit under the Security category, alongside 20 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What language is hwdsl2/wireguard-install written in?
hwdsl2/wireguard-install is written primarily in Shell. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is hwdsl2/wireguard-install associated with?
Where do I read more about hwdsl2/wireguard-install?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/hwdsl2/wireguard-install is the definitive source.
Why is hwdsl2/wireguard-install categorized under Security?
TopGit places hwdsl2/wireguard-install in the Security category based on its GitHub topics and description (tagged: "bash", "centos", "debian"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Is wireguard-install worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of wireguard-install.