GithubHelp home page GithubHelp logo

peoplesale / vpn-config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matiaskorhonen/vpn-config

0.0 0.0 0.0 240 KB

Generate iOS/OS X configuration profiles for VPNs

Home Page: http://github.matiaskorhonen.fi/vpn-config/

License: MIT License

Ruby 99.19% Shell 0.81%

vpn-config's Introduction

VPN Config

Build Status Gem Version Code Climate Test Coverage

Generate iOS/OS X configuration profiles for VPNs.

Only L2TP Private Internet Access VPNs are supported out of the box at the moment, but it's possible to provide your own data file (pull requests are also welcome, if you want to add support for your VPN provider).

Installation

A working Ruby is required (preferably Ruby 2.2.0 or above).

Install it in the usual manner:

gem install vpn-config

Usage

To get basic help, run: vpn-config help

For information on a specific command: vpn-config help COMMAND

Generate a signed configuration file

To generate a configuration file for the default VPN Provider (Private Internet Access), run:

vpn-config generate test.mobileconfig --username=foo --password=bar

To sign the configuration file, also give the --sign argument:

vpn-config generate test.mobileconfig --username=foo --password=bar --sign

To select specific endpoints, use the --endpoints option:

vpn-config generate test.mobileconfig --username=foo --password=bar --sign  \
--endpoints "US East" "Canada" "Hong Kong"

To sign with your own certificate, simply provide the path and passphrase (the certificate must be a PKCS12 file):

vpn-config generate test.mobileconfig --username=foo --password=bar --sign \
--certificate-path my.p12 --certificate-pass SuperSecret

Supply your own data file

If you wish, you can use your own VPN list instead of the built-in list:

vpn-config generate test.mobileconfig --username=foo --password=bar --sign \
--data-file mydata.yml --provider "My Provider"

Use the data/providers.yml file as an example of how to format your list.

Private Internet Access L2TP credentials

Don't try to use your PIA account credentials to log in to PIA VPNs. Instead you will find a separate set of credentials on the Client Control Panel:

PPTP/L2TP/SOCKS Username and Password

Generate the credentials if you haven't already…

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Unit tests

Run the Minitest/Minispec tests with: rake test

Contributing

  1. Fork it ( https://github.com/matiaskorhonen/vpn-config/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Copyright & License

Licensed under the MIT License. See the LICENSE.txt file for details.

Copyright (c) 2015 Matias Korhonen

vpn-config's People

Contributors

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