![]() Turn a Raspberry Pi into a Personal VPN for Secure Browsing Anywhere You Go. The tiny, inexpensive Raspberry Pi has a very low power consumption, which makes it a great always- on VPN (Virtual Private Network) server. With a VPN, you'll get secure access to your home network when you're on the go and can use it for secure web browsing when you're on public networks. Here's how to roll your own VPN with the Raspberry Pi. It's Raspberry Pi week at Lifehacker, and all week we'll be showing you some cool DIY projects you can put together with this little miracle of a device. If you haven't bought one yet, check out our introduction to the Pi to learn more about what it is, what you'll need, and the cool stuff you can do with it. For a basic introduction to VPNs, check out our guide to why you should start using a VPN (then come back here). The Raspberry Pi is a wonderful little computer that fits in the palm of your hand, yet packs…Read more Update: Raspberry Pi week is over! Check out these Raspberry Pi guides to see all the fun stuff we did, and check out our Raspberry Pi tag for more cool projects. This past week, we walked you through some of the common projects people tackle with their Raspberry Pi, like: What You'll Need. Setting up your Pi as a VPN and web proxy server doesn't require any new or special hardware beyond the basics. ![]() You'll need: A free Log. Me. In account since we're using Log. Me. In Hamachi to create our VPN. Create your free account, if you don't have one already, before you get started. Hamachi will create a VPN for you, so you don't have to mess with port forwarding on your router, getting a static IP address, or trying to bypass firewalls. Privoxy: We're pairing this application with Hamachi to enable the secure web browsing from either inside or outside the network. You'll download it in Step 5 below. A Raspberry Pi, naturally: See our intro guide for suggestions on where to buy one if you don't already have it. HDMI or composite cable: To connect the Pi to a television or monitor.
Once you've completed this project, you can disconnect the Pi from your display and use it as a "headless" server, since you can connect to the Pi over VPN. An 8. GB Class 1. SD card or better and a card reader: Your computer may have a built- into SD card reader; if not, you'll need an external one to set up the Pi. USB keyboard and mouse: I used old wired ones lying about the house, but Whitson was able to use wireless (non- Bluetooth) versions. An ethernet cable: For the best network performance, you'll want a wired connection to your router/modem (rather than looking at Wi- Fi solutions for the Pi). Having a broadband internet connection at home will make the proxy server as fast as possible as well. Micro USB power supply: Look for a good quality charger that can provide at least 7. A at 5. V. Most modern smartphone chargers will work, but check out the specs on the bottom of the charger brick to make sure. Besides the SD card, the power supply is one of the main troubleshooting elements if you have problems. We've walked you through the steps of setting up a personal VPN with Hamachi and using it with Privoxy for secure browsing before, but the steps below are updated for Linux and the Pi in particular. We'll be entering some commands in the command line and changing configuration files, but really this project is very easy to do. Thought I should quickly mention. As I am a Pi and Linux noob, I wasn’t sure hwo to delve into the inner workings of this project however, I came accross a simple. Raspberry Pi ([' r ɑ ː z b ə r ɪ p a ɪ], Ра́збери па́й) — одноплатный компьютер размером с банковскую. ![]() Hat tip to the Raspberry Pi community for the tips and troubleshooting used in this article.)Hamachi is a free, virtual private network (VPN) that makes it insanely easy to set up secure…Read more Step One: Hook Up and Configure Your Raspberry Pi. If you haven't already, follow the steps in our Beginner's Guide to DIYing with the Raspberry Pi to create the base system running Raspbian, the standard operating system for the Pi. Note, however, that there's one additional step you should take when following that guide, at the end in the configuration section (before step 3, finishing configuration). Change the default keyboard layout if you're not in the UK. The reason is some of our commands require special characters (e. UK layout changes. If you're following the setup guide above, you can change the keyboard layout in the configuration screen. Or, after you've set up the Pi, type in: sudo dpkg- reconfigure keyboard- configuration. Then follow the prompts to switch to your country's layout and then either restart (using the sudo reboot command) or reload the keymap without restarting by entering: invoke- rc. Step Two: Update the Raspberry Pi and Install Hamachi. Hamachi depends on a couple of packages that may not be present in your image, so we're going to first update the packages and hopefully save you time troubleshooting common errors. First, grab the latest update: sudo apt- get update. Then, install LSB (a requirement for Hamachi): sudo apt- get install —fix- missing lsb lsb- core. Be patient while it updates, and then you can download the latest Hamachi build for Linux: sudo wget https: //secure. If you get errors grabbing the Hamachi for Linux download, check the download page on Log. Me. In to verify the version number (e. Next, install Hamachi by entering: sudo dpkg - 1 logmein- hamachi_2. Step Three: Configure Hamachi on the Raspberry Pi. The last step for our VPN setup is to get Hamachi running on the Pi and on our client PCs. On the Raspberry Pi, run the following to get the Pi connected to your Log. Me. In account and create a new Hamachi network: sudo hamachi loginsudo hamachi attach [INSERT LOGMEIN. COM EMAIL HERE]sudo hamachi set- nick [INSERT A NICKNAME FOR YOUR RASPBERRY PI]Now, on another machine, head over to Log. Me. In and go to your "My Networks" section under networks. You'll see that the Pi (whatever you nicknamed it) is trying to connect and create a new network. Grant the Pi permissions and write down the network ID (a 9- digit number) for that network. Go back to the Raspberry Pi and enter: sudo hamachi do- join [THE NETWORK ID YOU WROTE DOWN]Then enter your Log. Me. In password (if requested). You might need to approve the join request on Log. Me. In from the other machine. Once you do so, the Pi will be part of the new VPN served by Hamachi. At Log. Me. In. com, look for the virtual IP address assigned to the Pi and write that down, because you'll need it later. To be able to SSH into it and remotely control the Raspberry Pi, start the SSH server: sudo /etc/init. Step Four: Install Hamachi on Your Computers. Almost done! For the Windows, Mac, or Linux computers you also want to connect to the VPN, you'll need to install the Hamachi client from the download page. After you do so, you can join the new VPN (Network > Join) and SSH into the Raspberry Pi or access network files, etc. In Windows, use a tool like Putty or in Mac/Linux use Terminal to SSH, using the Raspberry Pi's IP address assigned by Hamachi in the server field).(Optional) Step Five: Install Privoxy on the Pi and Use It as Your Computer's Web Proxy. Besides issuing remote commands to the Pi and accessing network files, you can use your Pi as a proxy server. By connecting Privoxy and Hamachi, you can secure and encrypt your browser sessions when you're using the public Wi- Fi at your local coffeeshop—keeping your data safe from prying eyes or malicious users. Here are the steps to set up Privoxy on the Pi: Install Privoxy: sudo apt- get install privoxy. Start Privoxy: etc/init. Open the configuration file in your text editor: sudo nano /etc/privoxy/config. Find the following line (easy in Nano if you do a search by hitting Ctrl+W): listen- address localhost: 8. Comment out that line by adding a # before it. Then add a new line below it with: listen- address [IP address of your Pi assigned by Hamachi]: 8. Save the configuration file (Ctrl+X) and restart Privoxy: sudo service privoxy restart. Now you have your Privoxy server set up on the Pi, running over the secure VPN via Hamachi. All that's left to do is set Privoxy as your proxy server on your other computers. To do that: In Google Chrome: Go to Settings > Show advanced settings.. Change proxy settings.. Network)In Firefox: Go to Preferences > Advanced tab > Network tab > Settings button (next to "Configure how Firefox connects to the Internet")Then enter the IP address of the Raspberry Pi, as assigned by Hamachi, in the proxy adress. The port is 8. 11. To test that the proxy is working, go to http: //config. This is Privoxy on Windows [IP address], port 8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |