What A VPN Tunnel Is & How To Set One Up
Whatsapp Pinterest

A VPN, or Virtual Private Network The Best VPN Services The Best VPN Services We've compiled a list of what we consider to be the best Virtual Private Network (VPN) service providers, grouped by premium, free, and torrent-friendly. Read More , is a method of linking two locations like they are on a local private network. There are several reasons why you might want to set one up. Usually there is an aspect of convenience and you might also want to add security to your connection.

Let’s go over several reasons why you might want to set up a VPN tunnel and then look at the differences between running a tunnel versus running a complete VPN service on your machine.

What Is A VPN Tunnel?

A “tunnel” is simply a link between two locations through some other material. A good analogy is a tunnel that goes under a mountain. Both sides of the mountain are linked up through a direct path; in this case the “mountain” is the Internet. So essentially a tunnel is a direct shortcut through the Internet.

Although by definition a tunnel is not encrypted, typically the reason that you are creating one is that you want to add some encryption to it. Let’s say you have a branch office in one location using a regular Internet connection and then you want to connect to a server somewhere at your main office location. Since the data you are transferring between offices is likely sensitive, you wouldn’t want someone to be able to view that data while travelling over the Internet. That is where a VPN tunnel comes into play.

Why You Might Want To Set Up A VPN Tunnel

There are many reasons you might want to set up a VPN tunnel. The first reason many people use this for is to encrypt a TCP/IP connection from an application to a server. Some applications, mainly ones based on a client/server protocol, need to connect to a database server to access their data. Using a tunnel is an excellent way to not only make the connection easier for the end user but also to secure the communications.

The second reason is that you want to encrypt all of your traffic leaving some location. A tunnel can be set up, by using a regular or transparent proxy, to transfer all of your Internet data via that tunnel.

How To Set Up A VPN Tunnel

Jorge wrote up an excellent tutorial on how to tunnel web traffic with SSH Secure Shell How to Tunnel Web Traffic with SSH Secure Shell How to Tunnel Web Traffic with SSH Secure Shell Read More . That tutorial is for forwarding all traffic in a web browser, but we are only using a local port forward to create a simple “tunnel” between machines. For this example, let’s say we want to forward local port 5555 to remote port 80, to securely access a web application on a remote machine. This tutorial also assumes we have a working SSH connection on the machine to encrypt the traffic.

  • First download Putty and run the executable. Fill in the hostname (IP) and other access information for SSH access.
  • Now enter the Connection->SSH->Tunnels menu. Here is where we configure the SSH tunnels. Enter your port information, for the above example the number and settings are shown below.

vpn tunnel

  • Once you connect, Putty will open a screen connecting to the remote location. You could also set it up so that it does not launch a shell – it will then just show a blank screen, but the tunnel will still be open.

free vpn tunnel

  • Your tunnel is now ready for use. Open a web browser, or point whatever application you are configuring to localhost, and the port to whatever you set to forward. In this example it is port 5555 and forward it to the web server.

vpn tunnel
Even though you are not running a web server locally, you will see that you are connecting to the remote server just like it is running on your local machine. That is why it is called a tunnel – it is a direct connection to a remote place through a mountain of the Internet.

If you are interested in a more feature robust VPN tunnel, check out the excellent VPN resources we have here on MakeUseOf. They vary from free VPNs The Best Unlimited Free VPN Services (And Their Hidden Costs) The Best Unlimited Free VPN Services (And Their Hidden Costs) Looking for a free unlimited VPN to protect your online privacy? Here are the top choices, along with their hidden costs. Read More to the best VPNs for torrenting The Best VPN for Torrenting: ExpressVPN vs. CyberGhost vs. Mullvad The Best VPN for Torrenting: ExpressVPN vs. CyberGhost vs. Mullvad With hundreds of VPN providers out there, it can be difficult to find the right one to meet your needs. For torrenting, you'll want to stick to one of these. Read More .

Do you have any other unique reasons for setting up a VPN tunnel between two machines? Please share your ideas below, and as always let us know if you have any questions about setting this up!

Image credit: Geograph

Explore more about: Computer Networks, Encryption, Online Privacy, VPN.

Enjoyed this article? Stay informed by joining our newsletter!

Enter your Email

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Alex
    February 8, 2019 at 2:27 am

    Hey I tried to get putty to go around my school's blocked pages, but they blocked that too. What do I do?

  2. carlos
    January 25, 2018 at 11:16 pm

    How tf do I know my source port?

  3. lj
    November 5, 2016 at 12:53 am

    how does one undo a "tunnel"? I ask because my boyfriend (ex) has done this to my cellphone with out my permission. please, any advise is great.

  4. imran
    August 11, 2016 at 7:52 am

    how many people use 1 vpn

  5. Goder1980
    April 28, 2015 at 10:22 am

    High speed, low price, never disconnected. Never being in touch with support, so can’t say anything about it. Highly recommended this service!

  6. Glany1947
    April 28, 2015 at 10:17 am

    Great service and support! This is the best VPN provider that I used. Easy setup, no issues, got it running in a few minutes. Support answers to all my numerous questions within 30 minutes each time.

  7. Thenetiong
    April 28, 2015 at 9:36 am

    Have been using this service for almost six months. Speed is great. Each protocol is working perfect. It is the most secure vpn. The connection drops very rarely. The prices are pretty low. I can tell this is the best Vpntunnel service I’ve ever tried.

  8. OMG Eureka
    March 27, 2011 at 12:29 pm

    In which category Team Viewer software falls?

  9. SpeedDaemon
    March 24, 2011 at 7:12 pm

    Thanks for this. I really appreciate the simplicity of your articles.