GithubHelp home page GithubHelp logo

guyromb / openvpn-wifi-access-point-for-raspberry-pi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wlucha/openvpn-wifi-access-point-for-raspberry-pi

0.0 3.0 0.0 15 KB

OpenVPN Wifi Access Point for Raspberry Pi

License: MIT License

Shell 100.00%

openvpn-wifi-access-point-for-raspberry-pi's Introduction

OpenVPN-Wifi-Access-Point-for-Raspberry-Pi

OpenVPN Wifi Access Point for Raspberry Pi

This is a bash script based on "Hotspot โ€“ WiFi Access Point" from JACEK TOKAR.
Link to the original script: http://raspberry-at-home.com/hotspot-wifi-access-point/

Description

This script installs a Wifi Access Point on your Raspberry Pi which tunnels your traffic through OpenVPN.
Additionally it's possible to install VPNBOOK.com OpenVPN certificates.

Hardware

- Raspberry Pi Version 1 or 2 - Ethernet cable - WiFi adapter - Not all WiFi adapters work - SD Card (4GB or greater) with Raspbian on it - Power supply for your Pi & a Micro USB cable - USB Console cable (optional) - this makes it a little easier to debug the system - Case for your Pi (optional) - A SD or MicroSD card reader (optional)

Preparations

- Install the OS (Raspbian) onto your SD card - Boot the Pi and configure - Don't forget to change the default password for the 'pi' acccount! - Set up and test the Ethernet and Wifi connection

Installation

- Download the script to your Raspberry Pi - `chmod +x openvpn_gateway.sh` - `sudo ./openvpn_gateway.sh`

Troubleshooting

- `sudo service hostapd status` - `sudo service isc-dhcp-server status` - `sudo hostapd -d /etc/hostapd/hostapd.conf` - `iw list` - For some reason, sometimes tun1 is used instead tun0, therefore you need to change the iptables rules to: - `sudo iptables --flush` - `sudo iptables --list` - `sudo iptables -t nat -A POSTROUTING -o tun1 -j MASQUERADE` - `sudo iptables -A FORWARD -i tun1 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT` - `sudo iptables -A FORWARD -i wlan0 -o tun1 -j ACCEPT`

openvpn-wifi-access-point-for-raspberry-pi's People

Contributors

wlucha avatar

Watchers

James Cloos avatar Guy Rombaut 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.