Giter VIP home page Giter VIP logo

ec2_chromeos_openvpn's Introduction

EC2+OpenVPN+ChromeBooks

How is it done

  • Openvpn generates an .ovpn file which cannot be used by ChromeBooks.
  • This script generates a .onc file which chromebooks can understand.
  • This script will generate the certs and the openvpn server configuration required.
  • The file is sent by mail to the user who can just download it, import it and connect to openvpn server immediately.

Detailed setup

This script is specifically written for amazons EC2 instance using amazons linux distribution

  • Step 1: Boot up an EC2 instance using Amazon's linux distribution
    • Use t1.micro if you want the cheapest solution
    • Use one of the latest versions of "Amazon Linux AMI" images, which is what this set of scripts is compatible with.
    • Whatever "security group" you pick, make sure you have 443,1193-1194 opened up for both TCP/UDP
  • Step 2: Get the scripts...
curl https://nodeload.github.com/royans/ec2_chromeos_openvpn/zip/master > m.zip; unzip m.zip
  • Step 3: Update vars.sh
    • This step is optional.
  • Step 4: Run setup.sh <email_address>
    • When you get prompts, just press enter to select the default values
  • Step 5: Read the "What to do on chromebooks" below to see how to import the ONC file.

Quick setup

If you don't want to worry about customizing the certificate, just run this on EC2 instance.

curl https://raw.github.com/royans/ec2_chromeos_openvpn/master/quicksetup.sh > quicksetup.sh;
chmod +x quicksetup.sh;
sudo ./quicksetup.sh [email protected]

What to do on chromebooks

  • Download the onc file sent by the script.
  • Import ONC file from this page : chrome://net-internals/#chromeos
  • At this point you should be able to see the openvpn listed in your connection settings.

Notes

  • This is the bare minimum configuration. There are a lot of things you could improve.

    • Enable PAM based login if you want to do password checks. This would be very helpful if you want to share this ONC file with multiple users.
    • However, if you do have multiple users, you should create a unique client cert for everyone.
  • TLS-auth is disabled currently. I couldn't figure out how to enable it yet... I know it works, but its not there yet.

  • I picked Amazon's EC2 instance with Amazon's distribution because thats the cheapest and most stable distribution on that platform (my personal opinion)

    • The scripts could be adapted to other platforms as well. Few things to think about
      • package manager may be different.
      • I parse output from a few binaries to do things automatically... u may have to test them to make sure format changes don't break the script.
  • Updated info here: https://github.com/royans/ec2_chromeos_openvpn/blob/master/README.md

Contributors

ec2_chromeos_openvpn's People

Watchers

 avatar  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.