Giter Site home page Giter Site logo

zinglau / mandos-helper Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.4 MB

Helper scripts that enable remote processing (e.g. on mobile phone) of luks password requests received by Mandos servers.

License: GNU General Public License v3.0

Python 100.00%
mandos-server mandos authy

mandos-helper's Introduction

mandos-helper

Helper scripts that enable remote processing (e.g. on mobile phone) of luks (Linux Unified Key Setup) password requests received by Mandos server.

Prerequisites

  • A working installation of Mandos server: Patching of mandos script (usually located at /usr/sbin/) with mandos_report_ip.diff is required if IP reporting is needed. The helper needs to be installed on the same machine as Mandos server.
  • Python3 and python3-dbus
  • For Authy helper: a Twillo account with a registered authy application.
  • For Telegram bot helper: a Telegram account and a registered bot.

Usage

  1. Clone the git repository, or download and extract the files.
  2. Go into the folder and create a virtualenv:
    python3 -m venv --system-site-packages env
    source env/bin/activate
    
  3. Run pip3 install -r requirements/authy.txt or pip3 install -r requirements/tg.txt in the folder to install dependencies for respective helper.
  4. Modify settings.example.py with relevant settings and save as settings.py.
  5. To run manually for testing or debugging purpose, just run mandos-helper.
  6. To run as a systemd service, modify ExecStart in mandos-helper.service with correct file location and command line arguments, and then:
    cp mandos-helper.service /etc/systemd/system/
    systemctl enable mandos-helper
    systemctl start mandos-helper
    

Demo of approving mandos client through Authy OneTouch authentication

Demo of authy helper

Demo of approving mandos client through Telegram bot

Demo of telegram bot helper

mandos-helper's People

Contributors

zinglau avatar

Stargazers

 avatar

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.