Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zbo14/wirevpn-client
Run a WireGuard VPN client on Ubuntu
https://github.com/zbo14/wirevpn-client
bash ubuntu vpn wireguard
Last synced: 5 days ago
JSON representation
Run a WireGuard VPN client on Ubuntu
- Host: GitHub
- URL: https://github.com/zbo14/wirevpn-client
- Owner: zbo14
- License: mit
- Created: 2020-02-20T18:44:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T19:03:12.000Z (almost 5 years ago)
- Last Synced: 2024-12-04T14:07:13.395Z (2 months ago)
- Topics: bash, ubuntu, vpn, wireguard
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wirevpn-client
Some scripts to run a WireGuard VPN client on Ubuntu.
## Install
`$ sh scripts/install.sh`
This script installs WireGuard and [resolvconf](http://manpages.ubuntu.com/manpages/trusty/man8/resolvconf.8.html) (required for using VPN DNS).
## Setup
```
$ sh scripts/setup.shArguments:
gateway - the public IP address/hostname of the VPN server
ip - the desired tunnel IP address for the client
pubkey - the server's public key
```This script does the following:
1. Generate public, private, and preshared keys and write them to `~/.wireguard`
1. Encrypt the private and preshared keys with GPG keys of your choosing
1. Write the WireGuard config and the server's public key to `/etc/wireguard`
1. Write the client's public key and unencrypted preshared key to stdout## Start
`$ sh scripts/start.sh`
This script does the following:
1. Bring up the WireGuard interface
1. Decrypt your private and preshared keys with the GPG keys you chose
1. Set the private and preshared keys on the interface## Stop
`$ sh scripts/stop.sh`
Bring down the WireGuard interface.