Update 'README.md'
This commit is contained in:
28
README.md
28
README.md
@@ -1,6 +1,34 @@
|
||||
# FreeNAS-Network-Unlock
|
||||
Configuration variables are changed within the [config.py](config.py) file.
|
||||
|
||||
#### Setup Luks Volume with Recovery Keys
|
||||
You are responsible for setting up the luks volume and copying the recovery keys to it. You can use the following as a base.
|
||||
Create a 128Mb file containing random data, this will be the file we will encrypt and use to store the keys. This file is way bigger than required, but hey, we might use it for something else later
|
||||
```
|
||||
dd if=/dev/urandom of=~/secure.luks bs=1M count=128
|
||||
```
|
||||
Set this file to be an encrypted LUKS container
|
||||
We will be asked for a passphrase for the encryption. Let's make it long and complicated and we'll use it later to decrypt this volume from FreeNAS
|
||||
```
|
||||
cryptsetup -y luksFormat ~/secure.luks
|
||||
```
|
||||
Let's open our encrypted volume and so we can access it as a device within /dev/mapper
|
||||
We'll need to use our passphrase to open the file
|
||||
```
|
||||
sudo cryptsetup luksOpen ~/secure.luks secure
|
||||
```
|
||||
Now we can create a filesystem within the device
|
||||
```
|
||||
sudo mkfs.ext4 -j /dev/mapper/secure
|
||||
```
|
||||
Create somewhere to mount this filesystem in future
|
||||
```
|
||||
sudo mkdir /mnt/secure
|
||||
```
|
||||
At last, we can mount our encrpyted file system
|
||||
```
|
||||
sudo mount /dev/mapper/secure /mnt/secure
|
||||
```
|
||||
|
||||
#### Setup password-less SSH connection
|
||||
You are responsible for setting up the password-less ssh connection from freenas to the other computer. You can use the following as a base.
|
||||
|
||||
Reference in New Issue
Block a user