in Docker, Linux, Security, Ubuntu, VPN, Windows

How to setup an Outline VPN Server on Ubuntu

This guide will show you how to install Outline Server on an Ubuntu 16.04/18.04 Server, use Outline Manager for Windows and connect to your Outline Server on Windows and Android.

Install Outline Manager

Outline Manager supports Windows, macOS and Linux.

Outline Manager for Windows

Outline Manager for macOS

Install Outline Server


  • An Ubuntu 16.04/18.04 Server
  • Sudo non-root user
  • Docker installed

Mainly, there are two ways to install Outline Server on an Ubuntu Server.

Simple way

Install Outline Manager on your computer, login to Digital Ocean using your own account and follow the instruction on the screen.

Die Hard

If you wanna use your own server or just don’t like DO, this is for you.

Install Docker

You will need to install Docker on your server first. If not, run the following command:

sudo curl -sS | sh

Install Outline

All you need to do is run this command:

sudo wget -qO- | bash

When you finished, the output should be like:

Please copy the following configuration to your Outline Manager:
  "apiUrl": "", 

Just leave it there. You will need these information in the next step. That’s enough for the server side. Now, we will move to the client side.

Get the access key

  1. Open Outline Manager. Scrool down to the Advanced Mode and click on Get started button;
  2. Copy everything within (include) the {} of the key on your server at the last step and paste it the field at the next screen;
  3. Click Done;
  4. There is a key automatically created for you (named ‘My Access Key’). If you click ‘Get Connected’ next to it, you will be walked through how to download the appropriate client for your platform without needing to open up a new page. (Thanks to r/sandrigo);
  5. If you want to get a new key to share with your friends, Click Add key, and you will get something like “Key 1”, click Share, it will show you the link to get the access key, click Copy to Clipboard and send it to your friends. (HEADS UP: EVERYONE WHO HAS THE LINK WILL BE ABLE TO CONNECT TO YOUR SERVER)
  1. Paste it to browser
  2. Click on Connect this device, it will show you the key, click Copy to get the key.

Connect to Outline

Outline supports macOS, Windows, iOS, Android and Chrome OS.


Windows 7.0+

Use this link to download Outline for Windows
  1. Install Outline for Windows to your computer. Open it.
  2. Click on + button at the upright corner.
  3. Paste the key you copied above to the field and click Add server
  4. Click Connect at the next screen, wait until it connected.
  5. Enjoy.

Note: If it shows “key invaild”, just try to reconnect several times.


macOS 10.11+

Use this link to download Outline for macOS

Download Outline for macOS from Mac AppStore, and repeat the steps for Windows above.


iOS 9.0+

Download Outline for iOS from AppStore, and repeat the steps for Windows above.


Android 5.0+

Download Outline for Android from the CH Play or Github, and repeat the steps for Windows above.

Thanks @okeehou for the great tutorial: