GithubHelp home page GithubHelp logo

praetorzero / unlock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bablat/unlock

0.0 0.0 0.0 1.76 MB

An offsite backup box that's essentially a Raspberry Pi 3 running Raspbian, that connects to my house using certificate-based OpenVPN, prompts for a password on a clean nodejs app, then mounts my encrypted LUKS filesystem. It also send me Pushover notifications whenever an attempt is made.

JavaScript 57.61% HTML 11.49% CSS 30.90%

unlock's Introduction

Unlock

I'm running an offsite backup box that's essentially a Raspberry Pi 3 running Raspbian, that connects to my house using certificate-based OpenVPN, prompts for a password on a clean nodejs app, then mounts my encrypted LUKS filesystem. It also send me Pushover notifications whenever an attempt is made.

This package includes the interface that allows me to enter the password whenever the system reboots for whatever reason.

I leave this running at a friend's house, nobody can login to this machine even if they're connected to the network as it's not running any services listening other than SSH, and if disconnected from power the disk is encrypted.

I use Syncthing to syncronize my photos and other stuff from all of my other machines. It's great in indexing content and very traffic efficient considering the amount of data I sync.

General Sequence:

  1. Rasbian boots
  2. OpenVPN dials home
  3. pm2 runs this module
  4. nginx serves the app
  5. Push notification is sent
  6. I connect and enter the correct password
  7. Encrypted LUKS volume is mounted
  8. Syncthing can now begin synchonizing this folder over the OpenVPN interface

Very cheap setup, at the price of an external USB HDD and a RPi.

Requirements:

  1. /secure/mounted file inside encrypted volume to identify a proper mount
  2. /etc/sudoers.d/unlock configuration allowing sudo commands to run the cryptsetup and mount commands for this volume

Pushover Configuration:

If you'd like to receive Pushover notifications then the following configuration file needs to be present:

/config/secret.json

Format is (replace with your API tokens):

{
    "pushover-user": "PUSHOVER-USER-TOKEN",
    "pushover-token": "PUSHOVER-APP-TOKEN"
}

unlock's People

Contributors

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