Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l-n-s/wireguard-install
WireGuard VPN server installer
https://github.com/l-n-s/wireguard-install
networking privacy security self-hosted vpn wireguard
Last synced: about 2 months ago
JSON representation
WireGuard VPN server installer
- Host: GitHub
- URL: https://github.com/l-n-s/wireguard-install
- Owner: l-n-s
- License: mit
- Archived: true
- Created: 2018-12-10T07:36:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T14:13:14.000Z (almost 5 years ago)
- Last Synced: 2024-08-05T09:14:55.762Z (5 months ago)
- Topics: networking, privacy, security, self-hosted, vpn, wireguard
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 657
- Watchers: 38
- Forks: 166
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-network-stuff - **452**星
README
# wireguard-install
This repository is **no longer maintained** due to lack of time. Use [some other scripts](https://github.com/angristan/wireguard-install) instead.
[WireGuard](https://www.wireguard.com) [road warrior](http://en.wikipedia.org/wiki/Road_warrior_%28computing%29) installer for Ubuntu 18.04 LTS, Debian 9 and CentOS 7.
This script will let you setup your own VPN server in no more than a minute, even if you haven't used WireGuard before. It has been designed to be as unobtrusive and universal as possible.
## Usage
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.
## Options
The script can be configured by setting the following environment variables:
* INTERACTIVE - if set to "no", the script will not prompt for user input
* PRIVATE\_SUBNET - private subnet configuration, "10.9.0.0/24" by default
* SERVER\_HOST - public IP address, detected by default
* SERVER\_PORT - listening port, picked random by default
* CLIENT\_DNS - comma separated DNS servers to use by the client## Setting up clients
### Ubuntu PC
Install WireGuard and reboot your computer:
sudo add-apt-repository ppa:wireguard/wireguard -y && sudo apt update && sudo apt install wireguard resolvconf -y
sudo rebootCopy the file `/root/client-wg0.conf` from a remote server to your local PC path `/etc/wireguard/wg0.conf` and run
`sudo systemctl start [email protected]`To show VPN status, run `sudo wg show`.
## Credits
Inspired by [Nyr's openvpn-install](https://github.com/Nyr/openvpn-install).