How to install and configure Streisand VPN? (for Windows, macOS, Android, iOS, Linux)


Do you need a reliable and fast, and, above all, your personal VPN server? Then the Streisand script will help you! We’ve already told you how to create and configure your personal VPN server. The main disadvantage of this connection is the usage of a PPTP connection that is not secure, unlike other connections, and does not function on all operating systems (macOS and iOS).

Read also:

Creating Streisand VPN

As servers are provided by hosting providers, you need first to sign up for them to know who they are dealing with.

Signing up at hosting provider

The DigitalOcean provider is the most stable and efficient and has the most favourable tariffs. Click the link (get 10$ for free)  and sign up:

  • Enter your email address
  • Create and enter a passwordHow to install and configure Streisand VPN
  • Click Create an Account

  • Get into your email account and complete registration by clicking a link in the confirmation emailHow to install and configure Streisand VPN

The registration is completed. The next step is adding a bank card.

Adding a debit/credit card

After registration you have to enter payment information. You need to have a debit/credit card which is accepted for online payments.How to install and configure Streisand VPN

Use English while entering the data.

Then, we move on to the third step – choosing and creating a server.

Creating a personal server

Let’s get down to how to create a personal server (you can also create a website or personal cloud drive like Yandex disk or DropBox on this server). The DigitalOcean provider calls them Droplet.

Click Create Droplet and then you will be redirected to the page for creating server configurations:

  • In Choose an image section choose the Ubuntu distribution (16.04×64 recommended)
  • Choose a tariff of 5$ per month or 0,007 cents per hour

    Setting up your own VPN L2TP/IPsec server

  • Choose a datacenter region, which in the future will emulate your location (if you select the US city, the IP will be American). Moreover, it should be noted that the closer to the server you are, the faster you will load pages and files

    How to install and configure Streisand VPN

  • At the end click CREATE to create Droplet (a server)

    How to install and configure Streisand VPN

    Creating takes 2-5 minutes. Then you will receive an email with the server’s IP address, login (usually root), and a password.

    You can also learn IP on the main Droplet control page.

How to install and configure Streisand VPN

Let’s move on to creating from a regular server in the VPN.

Creating a VPN server

Further we will tell how to connect to the server and what packages need to be installed to make it work!

Connecting to the server

In order to somehow manage the server (command line), you need a tool. In our case it’s the PuTTY utility, which you need to download and install.

After installation, run PuTTY, specify the IP address and click OPEN.

How to install and configure Streisand VPN

  1. Then you need to enter your login (root)
  2. You are required to change the received password immediatelyHow to install and configure Streisand VPN


    • password – “old”, current password
    • (Curent) UNIX password – confirm password
    • Enter new UNIX password – enter a new password
    • Retype new Unix password – confirm a new password

Setting up the server for Streisand VPN

In the Putty window, enter the command to generate the keys for SSH


And press Enter several times. There is no need to enter anything!

Then update the list of available packages for installation and update

sudo apt-get update

Install the GIt package

sudo apt-get install git

Install Python and other required packages

sudo apt-get install python-paramiko python-pip python-pycurl python-dev build-essential
sudo pip install dopy==0.3.5

Perform the upgrade:

sudo pip install --upgrade pip

After installing Python, you need to install Ansible configuration management

sudo pip install ansible markupsafe

You have only to download the installation script of Streisand VPN on your server:

git clone && cd streisand

The first Streisand run and VPN installation

Run Streisand script


After that you will be offered to use automated scripts for various hosting providers:

root@wtst:~/streisand# ./streisand


Created new Streisand home directory: /root/.streisand
 Created new Streisand site vars file: /root/.streisand/site.yml
 Which provider are you using?
 1. Amazon
 2. Azure
 3. DigitalOcean
 4. Google
 5. Linode
 6. Rackspace
 7. Localhost (Advanced)
 8. Existing Server (Advanced)

Choose the 7th item “Localhost (Advanced)” (press 7).

Start the VPN installation by entering the word “streisand” and pressing Enter,


In addition to this, you will be asked:

  • the ssh key location, press Enter
  • how many users will use VPN (for 5 devices by default), specify the necessary number
  • Domain – if there is no domain, press Enter to skip
  • Your e-mail – press Enter to skip

Almost everything is ready. The script will ask what VPN connections to install for your server:

  • L2TP/IPsec
  • Monit
  • OpenSSH
  • OpenConnect / Cisco AnyConnect
  • OpenVPN
  • Shadowsocks
  • sslh
  • Stunnel
  • Tor

If you need this type of VPN connection, answer yes to each installation request, or no if not.

How many VPN client profiles should be generated per-service? Press enter for default [5]: 12
Enable L2TP/IPSec? Press enter for default [yes]: yes
Enable OpenConnect? Press enter for default [yes]: no
Enable OpenVPN? Press enter for default [yes]: yes
Enable Shadowsocks? Press enter for default [yes]: no
Enable SSH Forward User? Press enter for default [yes]: no
Enable stunnel? Press enter for default [yes]: no
Enable tinyproxy? Press enter for default [yes]: no
Enable Tor? Press enter for default [yes]: no
Enable WireGuard? Press enter for default [yes]: no

Now you have to wait about 20 minutes, until all the necessary files are installed on your server and the configuration is performed.

When it is completed, a message will appear:

TASK [streisand-gateway : Success!] ***************************** [streisand-gateway : Success!] Server setup is complete.

Now we will create a user and password for the web interface:

htpasswd -b -c /etc/nginx/htpasswd web_login web_password

service nginx reload

The web interface will contain all the data for setting up your VPN connection on Windows, macOS, Android, iOS, Linux and links to clients.

Now start the browser and go to the address


Chrome or another browser will scold the certificate is invalid, ignore this message and go to the website.
How to install and configure Streisand VPN

Enter the web login and password to enter the system interface.
How to install and configure Streisand VPN

Настройка Windows, macOS, Android, iOS, Linux для использвания Streisand VPN

In the Streisand web interface, you can choose the type of VPN connection you need.
How to install and configure Streisand VPNAfter that the detailed instructions and data for setting in Windows, macOS, Android, iOS, Linux appear. All you need is just to follow them to configure vpn on the required device.
How to install and configure Streisand VPN

Any questions left? Post them in comments and tell whether you’ve succeed or failed.

That’s it! More useful articles and instructions can be found in the articles section and Android Hacks. Stay with the Android + 1! It will be even more interesting!