How to Install Outline VPN on Debian 12

Outline VPN is an open-source, user-friendly VPN solution designed to help users securely access the internet. It offers a simple setup process and a dedicated management application to configure and manage your VPN server.

Prerequisites

  • An Debian 12 server with root access.
  • Basic knowledge of terminal commands.
  • An active internet connection.

Install Docker

Update Your System: Open your terminal and ensure your package list is up-to-date:

apt update && apt upgrade -y

Install Required Packages: Install the necessary packages for Docker installation:

apt install apt-transport-https ca-certificates curl software-properties-common -y

Add Docker's Official GPG Key: Add Docker's official GPG key to your system:

curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -

Add Docker Repository: Add the Docker repository to your system:

echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list

Update Package List Again: Update the package list to include the Docker repository:

apt update

Install Docker: Install Docker with the following command:

apt install docker-ce -y

Start and Enable Docker: Start the Docker service and enable it to run at startup:

systemctl start docker
systemctl enable docker

Verify Docker Installation: Check that Docker is installed correctly by running:

docker --version

Output:

root@vps:~# docker --version
Docker version 27.3.1, build ce12230
root@vps:~# 

Outline Installation Steps

Step 1: Download the Installation Script

Open your terminal and run the following command to download the Outline installation script:

wget https://raw.githubusercontent.com/AmirOVH/outline-install/main/outline-install.sh

Output:

root@vps:~# wget https://raw.githubusercontent.com/AmirOVH/outline-install/main/outline-install.sh
--2024-09-23 08:35:51--  https://raw.githubusercontent.com/AmirOVH/outline-install/main/outline-install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2860 (2.8K) [text/plain]
Saving to: ‘outline-install.sh’

outline-install.sh                   100%[====================================================================>]   2.79K  --.-KB/s    in 0s      

2024-09-23 08:35:51 (14.5 MB/s) - ‘outline-install.sh’ saved [2860/2860]

Step 2: Make the Script Executable

Change the permissions of the downloaded script to make it executable:

chmod +x outline-install.sh

Step 3: Run the Script

Execute the script by running:

./outline-install.sh

Output:

root@vps:~# ./outline-install.sh
Welcome to Outline VPN Auto Installer script by Amir.OVH
Outline VPN installation is ready to begin, press any key to start.
Do you want to remove the firewall from the system? (y/N): y
Removing the firewall from the system...
.
.
.
To manage your Outline server, please copy the following line (including curly
brackets) into Step 2 of the Outline Manager interface:

{"apiUrl":"https://104.238.57.181:25488/PeXWRoqD2b6Z5SDTchCqZw","certSha256":"1E85C7611EC76852D67DFE77BF1406CC70F092074D61FDD07B3D72F095167334"}

If you have connection problems, it may be that your router or cloud provider
blocks inbound connections, even though your machine seems to allow them.

Make sure to open the following ports on your firewall, router or cloud provider:
- Management port 25488, for TCP
- Access key port 56054, for TCP and UDP

Outline VPN has been installed successfully.

Step 4: Configure the Firewall

During the installation process, the script will prompt you to configure the firewall. Follow the on-screen instructions to allow the necessary ports and complete the installation.

Step 5: Access the Outline Manager

  • Download the Outline Manager: Visit the Outline Website to download the Outline Manager application for your operating system.

  • Open Outline Manager: Launch the Outline Manager application on your computer.

  • Paste the API URL: In the Outline Manager interface, look for a prompt or field where you can enter the API URL. This is usually in Step 2 of the setup process.

  • Use the Entire JSON: Copy and paste the entire JSON string (including the curly brackets) into that field.

Conclusion:

You have successfully installed Outline VPN on your Debian 12 server. You can now manage your VPN server through the Outline Manager application and ensure a secure browsing experience.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS