notes:setup-wireguard-vpn-on-debian9
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
notes:setup-wireguard-vpn-on-debian9 [2018/09/06 12:09] – [Server Setup] admin | notes:setup-wireguard-vpn-on-debian9 [2019/02/02 21:47] – [Client Setup] admin | ||
---|---|---|---|
Line 2: | Line 2: | ||
-- //Tested with **Debian 9** (server side) and **Ubuntu 18.04** (client side) on **September 2018**// -- | -- //Tested with **Debian 9** (server side) and **Ubuntu 18.04** (client side) on **September 2018**// -- | ||
- | |||
==== Server Setup ===== | ==== Server Setup ===== | ||
- | === Install WireGuard === | + | === Install WireGuard |
Install WireGuard from Debian packages | Install WireGuard from Debian packages | ||
Line 78: | Line 77: | ||
If needed, you can kill the tunnel with | If needed, you can kill the tunnel with | ||
sudo wg-quick down wg0s | sudo wg-quick down wg0s | ||
- | | ||
- | === Install the Client === | ||
- | Install | + | ==== Client Setup ===== |
+ | |||
+ | === Install | ||
+ | |||
+ | Install wireguard on your Ubuntu client with | ||
sudo add-apt-repository ppa: | sudo add-apt-repository ppa: | ||
sudo apt-get update | sudo apt-get update | ||
sudo apt-get install wireguard | sudo apt-get install wireguard | ||
- | |||
=== Configure the Client === | === Configure the Client === | ||
Line 94: | Line 94: | ||
[Interface] | [Interface] | ||
- | Address = 172.16.16.3/24 | + | Address = 172.16.16.2/24 |
SaveConfig = true | SaveConfig = true | ||
ListenPort = 47824 | ListenPort = 47824 | ||
Line 120: | Line 120: | ||
- Do not mess up the keys - it's quite easy to switch client and server, public and private (and break the tunnel) | - Do not mess up the keys - it's quite easy to switch client and server, public and private (and break the tunnel) | ||
- If you have a firewall running on your server, open the corresponding UDP port (5544 in the example above) | - If you have a firewall running on your server, open the corresponding UDP port (5544 in the example above) | ||
- | - You are behind the Great Firewall | + | - If you are behind the Great Firewall, probably it will not work |
notes/setup-wireguard-vpn-on-debian9.txt · Last modified: 2019/02/02 21:48 by admin