Showing posts with label VPN. Show all posts
Showing posts with label VPN. Show all posts




Eyes are everywhere online.

The websites you visit often track where you came from and watch where you head off to next.

A VPN – or virtual private network – helps you browse the internet more anonymously by routing your traffic through a server that is not your point of origin.

It is a bit like switching cars to shake off someone who is tailing you.

There are plenty of companies offering services with varying degrees of security and varying degrees of cost, but if you are willing to roll your sleeves up and get technical with some basic coding and a £30 Raspberry Pi computer, you can build your own VPN server at home.

You can then connect external devices like a smartphone to this VPN tunnel to browse the internet more securely through your home network, and access shared files and media on your home computer.

Make no mistake, this is not a quick and easy process.


Watch this Tip Shared on BBC CLick   ---

Below is a step-by-step guide you will need to follow to the letter, symbol and space if you want to follow in my footsteps.

To follow this guide you will need:

  • 1 x Raspberry Pi/Pi 2
  • 1 x 8GB micro SD card
  • 1 x SD card reader
  • 1 x 5 volt mini USB power supply (a suitable phone charger will do)
  • 1 x HDMI monitor (your TV or computer monitor)
  • 1 x USB keyboard
  • 1 x Ethernet network cable

Prepare to install your operating system

Insert the micro SD card in your card reader.

If you are reusing an old SD card make sure it is fully formatted to remove any old files using the free tool at

Install Raspbian on your Raspberry Pi

Download NOOBS (New Out Of the Box Software) from the Raspberry Pi website ( This is an easy operating system installation manager.

Open the .zip you downloaded and select all files, then just drag and drop them onto your SD card.

Insert the SD card in the Raspberry Pi then connect a monitor, keyboard and power cable.

Connecting the power will cause the Raspberry Pi to boot up and the green and red LEDs on the board should light up.

If the files are copied properly onto the SD card the green light will start flashing as the computer reads the data.

After a few seconds you will see a window open on the monitor with a range of operating systems to install – use the arrow keys on the keyboard to choose Raspbian and hit ENTER to install.

N.B. If you have trouble getting the NOOBS installation manager to work, you can also install Raspbian by copying the disk image of the operating system onto your micro SD card. Follow the instructions at to do this.

Change the default password

Before you go any further, make sure you change the default password, or anyone who knows the default will be able to access your home network.

You can do this from the options screen you are shown the first time you boot up your Raspberry Pi after Raspbian is installed.

When you next reboot your Raspberry Pi the login will be “pi” and the password whatever you have set.

Give your Raspberry Pi a static IP address

The IP address is what tells devices where to find your Raspberry Pi on your home network.

Networks usually issue a dynamic IP address, which can change each time you power up the device. If you want to be able to consistently connect to your Raspberry Pi from outside your home network you need to fix its IP address so that it is always the same – a static IP address.

Connect your Raspberry Pi to your router with an Ethernet cable.

At command prompt type:


A bunch of information will come up and you need to note down what it says for your set against the following:

inet addr [Current IP Address]

bcast [Broadcast Range]

mask [Subnet Mask]

Next at the command prompt type:

sudo route -n

This tells you information about your router. Note down:



You now have all the information you need about your current IP set up and can edit the network configuration file to make the IP static.

At command prompt type:

sudo nano /etc/network/interfaces

Look for the line that reads “iface eth0 inet dhcp” or “iface eth0 inet manual”.

The “dhcp” bit is requesting a dynamic IP or if your file says “manual” it is a manual setting, so use the arrow keys on your keyboard to move the cursor so you can delete this and replace it with “static”.

Next put your cursor at the end of this line and hit Enter, then add the following lines directly below the line you just altered, filling the [square brackets] with the information you just noted down.

address [your current IP address]

netmask [your subnet mask]

network [your destination]

broadcast [your broadcast range]

gateway [your gateway]

To save the file press CTRL and X together, when prompted to save type “y” and hit Enter to accept the file name without changing it.

At the command prompt type:

sudo reboot

Your Raspberry Pi will now restart with the new, static IP address.

If you liked this article, please subscribe to our YouTube Channel for tech news, reviews and video tutorials. You can also find us on TwitterInstagram and Facebook.

Read more:


How to Create a VPN Server With Raspberry Pi


How to Create a VPN Server With Raspberry Pi

When you think of a VPN, you might imagine a subscription service that tunnels your internet traffic through a server located elsewhere in the world. However, those services aren't the only way to encrypt your online activity.

One-click VPN services can be great, and there are a few VPNs we recommend if you want a simple solution that works out of the box. That service comes with a cost, though: usually about $5 to $10 per month, not to mention putting your trust in whoever's on the other end. For a cheaper option that you control, you can set up an OpenVPN server on a Raspberry Pi (or certain routers) and use your own home internet connection as a VPN while you're out and about.

Be aware that you won't be able to spoof your location to an overseas country, or hide your identity from prying eyes (since the traffic will appear to come from your regular home internet connection). However, it will still give you extra security when browsing on public Wi-Fi, and it's rather useful when you need to access your home network for, say, waking up a sleeping PC so you can Remote Desktop in. It's cheap, easy, and well worth doing if you have a Pi lying around.

What You'll Need

To set this up, you'll need the obvious: a Raspberry Pi with all the crucial accessories, like a power supply and SD card. This guide doesn't require a special operating system; you can just use Raspbian, so check out our beginner's guide to the Raspberry Pi for everything you need to know about setting up the basics. (Make sure you change the default password when you first boot up the Pi, as it's extremely important for security—which, after all, is the entire point of this project.)

I recommend having a mouse, keyboard, and monitor for this walkthrough as well—just for the initial setup—though it isn't strictly required. (You can SSH into your Pi to set up your VPN, but you may have to reconnect in the middle of the process, since changing network settings can cause the Pi to lose connection.)

         Everything you need to turn Raspberry Pi into a VPN server

That's all you technically need, though there are a few other things I recommend. First, it's a good idea to set up a DHCP reservation for your Raspberry Pi, so its internal IP address doesn't change over time.

Second, I recommend a dynamic DNS service. In order to access your Pi from afar, you'll need to point it to your public IP address at home. This isn't hard to find, but it can change from time to time, which could break your VPN until you re-configure it. Doing so is kind of a pain, so it's easier to use a dynamic DNS service that gives you an easy-to-remember address instead, which updates whenever your IP address changes. 

Check your router's settings to see if it supports any dynamic DNS services like DynDNS or No-IP— some of these are paid subscriptions, but others, like No-IP, are free for limited usage, which should work perfectly for our purposes. We won't walk through the entire process in this guide, but I recommend looking into it if you find your internet provider keeps changing your public IP address and breaking your VPN.

How to Install OpenVPN With PiVPN   

OpenVPN is an open-source set of software that allows you to set up a VPN on just about any type of hardware. If you wanted, you could install OpenVPN's Linux server on your Pi and tweak the configuration files manually, but there's an easier solution. PiVPN is a set of open-source scripts that turn OpenVPN's configuration into an easy-to-use wizard, so even if this if your first time working with OpenVPN, you shouldn't have too much trouble getting it set up.

Screenshot of Windows Terminal
Install PiVPN in the Windows Terminal window

So boot up your Pi, make sure all software is up to date, and open a new Terminal window. Installing PiVPN is as simple as running the following command:

curl -L | bash

The script will take a few minutes to install OpenVPN, and then it'll walk you through the configuration process. First, it will inform you that PiVPN requires a static IP address, so you can easily access your VPN server when you're out and about. If you set up a DHCP reservation, you can just say Yes when PiVPN asks if you're using one.

After choosing your user (the default Pi user is fine, unless you have another you wish to use), PiVPN will ask whether you want to use WireGuard, a new VPN protocol, or OpenVPN. I'm using OpenVPN for this guide, so use the arrow keys to move the cursor to OpenVPN, then press Space to select it before pressing Enter to continue.

WireGuard is fairly new, and shows a lot of promise, while OpenVPN is more popular and widely supported. If you want to give WireGuard a try, you can read more about it here.

Screenshot of PiVPN
Set up your VPN with PiVPN

For the next few steps, the default settings are fine for most users. You'll be asked whether you want to use UDP or TDP (you should choose UDP unless you have a good reason for not doing so), what port you want to use (1194 is fine unless something else is using it), and what DNS provider you want to use (any are suitable).

After rebooting, you’ll need to open a Terminal window and run: 

pivpn add 

Give the configuration file a name (I chose whitson-laptop), set how many days the certificate lasts (the default value is fine), and enter a password of your choice (make sure it's strong). It'll generate an .ovpn file for you under /home/pi/ovpns, which you'll need to connect to your VPN—copy it to your PC and keep it somewhere safe. 

PiVPN recommends repeating this process for other devices, so if you have other laptops or phones you want to use this VPN on, re-run this command to generate their own config files now.

screenshot of Notepad app
Replace the IP address with your custom URL

Here's where I had to make one edit to my .ovpn file. If you're using a dynamic DNS service like I am, open the file in Notepad (or the text editor of your choice), and replace your IP address in line 4 with your custom URL. If you have problems connecting to your VPN, this is the first line I'd mess with—it's caused problems for me in the past with a number of OpenVPN config generators.

From here, your Pi should be all set, but you'll need to do one more thing before you can connect: forward your VPN's port on your router. This process varies from router to router, but it goes like this: you log into your router's configuration page, find the port forwarding option, and forward port 1194 to the internal IP address of your Pi. You can find more detailed instructions for specific routers at

Connect to Your VPN From Anywhere

You're in the home stretch now because the rest is super easy. To connect to your VPN when you're away from home, you'll need a VPN app, or "client," capable of connecting to your OpenVPN server. OpenVPN has an official client called OpenVPN Connect, which is available on Windows, macOS, Linux, iOS, and Android.

You can grab it from OpenVPN's home page — just scroll down to Get Started with OpenVPN Connect and click the platform of your choice. There are also popular third-party programs like Viscosity(Windows/Mac) and Tunnelblick(Mac) that provide extra options for advanced users. You can see other OpenVPN clients on this page at the OpenVPN community.

Screenshot of OpenVPN
Manage your VPN with OpenVPN
Launch the OpenVPN Connect app and click the "File" tab to add a new profile. Navigate to the configuration file you copied from the Pi (again, mine was called whitson-laptop.ovpn) and select it. Click the Add button, and you can connect to your VPN by flipping the toggle switch on and entering your password.
Once you do, all your traffic will be encrypted, and routed through your home internet connection where the Pi resides. Your traffic will be secure from prying eyes on that coffee shop Wi-Fi, and you'll be able to access any resources on your home network as if you were there—no subscription fee necessary.


  Рефлексология АЛТЕРНАТИВНА МЕДИЦИНА Защо да слагате щипк...