Skip to content
/ unlock Public

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.

Notifications You must be signed in to change notification settings

bablat/unlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published