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).
- Espionage for Android and iOS
- Learn someone else’s IP
- How to hack a Wi-Fi network and protect it
- Creating a SOCKS5 server
- Creating a VPN:
- Softether VPN
- Algo VPN
- L2TP / IPsec
- Route all the traffic through TOR
- Turning Chrome into Tor
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
- Enter your email address
- Create and enter a password
Click Create an Account
Get into your email account and complete registration by clicking a link in the confirmation email
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.
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
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
At the end click CREATE to create Droplet (a server)
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.
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.
- Then you need to enter your login (root)
- You are required to change the received password immediately
ATTENTION! WHILE ENTERING THE PASSWORD, THE LINE REMAINS EMPTY AS IF YOU ENTER NOTHING
- 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 https://github.com/StreisandEffect/streisand.git && 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 S T R E I S A N D 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,
LOCAL PROVISIONING WILL OVERWRITE CONFIGURATION ON **THIS** MACHINE.
THE MACHINE YOU ARE CURRENTLY EXECUTING THIS SHELL SCRIPT ON.
ARE YOU 100% SURE THAT YOU WISH TO CONTINUE?
Please enter the word 'streisand' to continue: streisand
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:
- OpenConnect / Cisco AnyConnect
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 : 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.
Enter the web login and password to enter the system interface.
Настройка Windows, macOS, Android, iOS, Linux для использвания Streisand VPN
In the Streisand web interface, you can choose the type of VPN connection you need.
After 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.
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!