Use your Raspberry Pi from everywhere

Access to your private home server is always a long suffering story, some solution are the following:

  • use a Dynamic DNS and publish your services on the entire network – it’s a very fast solution but has some problems with privacy and with rolling IP
  • REMOT3.IT/DATAPLICITY and similar services that publish shell on the web – not very fast and use a connection to a central web service
  • TOR network – fast enough for SSH and simple web interfaces use the secure TOR network

TOR look very promising and secure, let’s try it.

TOR

 

What is Tor?
Tor is free software and an open network that helps you defend against traffic analysis, a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security.

Based on tunnel in TOR network you can also connect to other nodes that export various services.

Install Tor

Tor is available in the Debian/Armbian  repositories so you can install easily with the command:

The TOR daemon will automatically start on boot in the same manner other services are managed.

Configure Tor

Modify the file /etc/tor/torrc in order to export services

In this example I exported SSH server (port 22) and web server (port80).

Then you can get the unique name of your board with the following command.

Connect to your Raspberry Pi

It’s time to connect, with mast command you receive a unique name of the format xxxxxxxxxxxxxxxx.onion, this is the name of your board in the TOR net.

If you want connect start TOR on your computer and connect using the command:

Now you can use the board from everywhere in the world!

Email this to someoneShare on FacebookShare on Google+Share on LinkedInTweet about this on TwitterPin on PinterestPrint this page

Leave a Reply

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