Giter Site home page Giter Site logo

controllers's Introduction

IPOP Controllers

Prerequisites

Obtain IPOP-Controllers by downloading the latest archive from the releases or by cloning this repository: git clone https://github.com/ipop-project/controllers.git

Obtain IPOP-Tincan by downloading the latest archive from the releases or by building from source [2].

Usage

Running SocialVPN

  1. Change current directory to controller.

    cd controllers/controller/

  2. Copy sample-svpn-config.json to svpn-config.json and modify it as per your requirements to configure the controller [1].

    nano modules/svpn-config.json

  3. Run IPOP-Tincan.

    cd ../..; sudo ./ipop-tincan-x86_64 &> tin.log &

  4. Run SocialVPN Controller.

    Make sure you return to the /controllers/ directory.

    cd controllers
    python -m controller.Controller -c controller/modules/svpn-config.json &> log.txt &
    
  5. Check status.

    echo -e '\x02\x01{"m":"get_state"}' | netcat -q 1 -u 127.0.0.1 5800

Running GroupVPN

  1. Change current directory to controller.

    cd controllers/controller/

  2. Copy sample-gvpn-config.json to gvpn-config.json and modify it as per your requirements to configure the controller [1].

    nano modules/gvpn-config.json

  3. Run IPOP-Tincan.

    cd ../.. ; sudo ./ipop-tincan-x86_64 &> tin.log &

  4. Run GroupVPN Controller.

    Make sure you return to the /controllers/ directory.

    cd controllers
    python -m controller.Controller -c controller/modules/gvpn-config.json &> log.txt &
    
  5. Check status.

    echo -e '\x02\x01{"m":"get_state"}' | netcat -q 1 -u 127.0.0.1 5800

Killing IPOP

The following commands will search the PID of IPOP-Tincan and IPOP-Controller and dispatch a kill signal.

ps aux | grep -v grep | grep ipop-tincan-x86_64 | awk '{print $2}' | xargs sudo kill -9
ps aux | grep -v grep | grep controller.Controller.py | awk '{print $2}' | xargs sudo kill -9

Notes

[1] See https://github.com/ipop-project/documentation/wiki/Configuration for a detailed description of options for controller configuartion.

[2] See https://github.com/ipop-project/documentation/wiki under Building the code for guides on building IPOP-Tincan from source.

controllers's People

Contributors

kyuhojeong avatar kcratie avatar pstjuste avatar saumitraaditya avatar yagnasrinath avatar bgw avatar eomhes avatar smahesul avatar gingerninja23 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.