Code Monkey home page Code Monkey logo

ccvpn's Introduction

CCrypto VPN

CCVPN is all the software we use at CCrypto to provide our VPN.

It is made of a Pyramid web app you can see live at http://vpn.ccrypto.org/ including an API, and OpenVPN config/scripts that checks user accounts and passwords with the API.

Getting Started

    git clone https://github.com/CCrypto/ccvpn.git
    cd ccvpn/

    pyvenv ccvpn_env
    source ./ccvpn_env/bin/activate
    ./setup.py develop
    
    # Prepare the database
    initialize_ccvpn_db development.ini
    
    # Run the dev web server
    pserve development.ini

The default "admin" account has the password "admin".

OpenVPN

    # Generate a secret token for your OpenVPN server
    ccvpn_apiacl ./development.ini add localhost

    cd openvpn/
    
    # You can copy and customize settings.py, or use this script:
    ./configure.py
    
    # run make.py. it renders config files to config/ for each profile
    ./make.py

    # On a standard GNU/Linux distribution, OpenVPN config files are stored in
    # /etc/openvpn. Copy them or make links:
    ln -s $(pwd)/config/alpha.conf /etc/openvpn/ccvpn-alpha.conf
    ln -s $(pwd)/config/beta.conf /etc/openvpn/ccvpn-beta.conf

    # On Debian/Ubuntu:
    service openvpn start ccvpn-alpha
    service openvpn start ccvpn-beta

Bitcoin Payments

You will need to run a script regularly to check for verified transaction. With this app installed in /home/vpn/ccvpn/, add this in your crontab:

*/5 * * * * /home/vpn/ccvpn/cron_checkbtcorders.sh /home/vpn/ccvpn/development.ini

ccvpn's People

Contributors

0xa avatar cubox avatar graoumpf avatar

Watchers

 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.