Giter Club home page Giter Club logo

vpn_access_point's Introduction

VPN Access Point Setup

This script was developed on a fresh install of Raspbian on a Raspberry Pi 2B. When run on a fresh installation of Raspbian, it creates all the necessary files needed to start a VPN tunnel on boot, create a hotspot, and forward AP client traffic through the VPN

Verified Working Platforms

  • Raspberry Pi 2B

    • Raspbian
  • Raspberry Pi 3

    • Raspbian

Verified Working Wireless Adapters

  • Alfa AWUS036NEH

Setup

A word about DNS leakage: Always check http://dnsleak.com/ for DNS leakage after connecting to the Pi. I can't account for client/router settings to which the Pi will be connecting.

This setup assumes that the VPN client app is Openvpn, using *.ovpn files from Private Internet Access. You must have an active PIA account and configure the script with your credentials

  1. Create a file called ssh on the boot partition of the Pi's SD card from your laptop. Place it in the Pi. Sometime in 2016, SSH was switched off by default on Raspbian unless this file exists.

  2. Boot your Pi with Ethernet and WiFi adapter plugged in. Make sure your computer is on the same network.

  3. SSH in to the Pi. I used nmap --open -p 22 192.168.1.1/24 to find the IP.

    # default password is raspberry
    ssh -l pi 192.168.1.200
    
  4. CHANGE THE PASSWORD!

    sudo passwd pi
    
  5. Become root

    sudo su
    cd /root
  6. Download the setup script and run it as root. (Walkthrough of the script at the end of the post)

    # download
    wget https://raw.githubusercontent.com/audibleblink/vpn_access_point/master/setup.sh
    
    # read and configure it
    $EDITOR setup.sh
    
    # run it
    bash setup.sh
  7. Reboot

If everything went well, when the Pi boots back up, there should be a new WiFi network in the area. Log into it and visit https://www.privateinternetaccess.com/. You should see green text near the top that says you're protected.

vpn_access_point's People

Contributors

audibleblink avatar

Stargazers

Suri avatar Rotzbouf avatar  avatar  avatar Bernice Anne W. Chua avatar Zach Grossi avatar Maurizio Del Corno avatar  avatar Steve Abbagnaro avatar Nbosa avatar Carlo avatar  avatar Zach Harris avatar Peter Neve avatar Taylor Banks avatar  avatar  avatar ilya avatar easyKL avatar vc avatar

Watchers

James Cloos avatar Johnny Sprada avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.