Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.sh

Arguments:
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.