Compare commits

..

No commits in common. "3ccdc864cbd73a0a7b1a7e451558f478d1e5c9a5" and "e8e3df738d9bdeb2f6da00bd9306be3c6d6aae3c" have entirely different histories.

5 changed files with 23 additions and 57 deletions

View File

@ -8,15 +8,15 @@ Ansible playbook for network vault.
* How long the data will be kept depends on settings in rsnapshot.conf * How long the data will be kept depends on settings in rsnapshot.conf
## Use-Case: ## Use-Case:
* Create a immutable, WORM-Like Network-Share that holds REALLY!!! sensitive data like disaster-recovery-plans, password databases, network-plans, contact-lists - all the data that should not be encrypted and you need in case of ransomware-attack to bootstrap youself. * Create a immutable, WORM-Like Network-Share that holds REALLY!!! sensitive data like desaster-recovery-plans, password databases, network-plans, all the data you need in worst case and that should not be encrypted by any ransomware.
* When ransomware locks down your systems, this is your machine to go, plug in a console and start recovery. * When ransomware locks down your systems, this is your machine to go, plug in a console and start recovery.
* When sealing the vault, you can not access it over ssh any more, change settings, access system over network so no ransomware can to this either. * When sealing the vault, you can not access it over ssh any more, change settings, access system over network so no ransomware can to this either.
* You should **NOT NOT NOT NOT** have a KVM-Console connected because this can be used to access the system over the network * You should **NOT NOT NOT NOT** have a KVM-Console connected because this can be used to access the system over the network
* Place this machine on something like an Intel NUC, paint it red and put it into a safe place where you have network connection. * Place this machine on something like an Intel NUC, paint it red and put it into a safe place.
* Create any job to copy your DR-plans there regular. * Create any job to copy your DR-plans there regular.
* It uses cron-apt to update the system and reboots at 6 in the morning to keep kernel up to date * It uses cron-apt to update the system and reboots at 6 in the morning to keep kernel up to date
Variables: Varialbes:
* networkvault_vault_password -> password for user to access shares * networkvault_vault_password -> password for user to access shares
* networkvault_seal_vault -> when set to "true" it will uninstall ssh-server to prevent any access via network * networkvault_seal_vault -> when set to "true" it will uninstall ssh-server to prevent any access via network
@ -24,9 +24,6 @@ ToDo:
* Quota to ensure, space*backup-copies can not be exceed disk space and break backups by abusing share * Quota to ensure, space*backup-copies can not be exceed disk space and break backups by abusing share
* Check diff-size and do some kind of alter * Check diff-size and do some kind of alter
* Add monitoring-agent/SNMP-support to be able to monitor system (alive? disk OK?) * Add monitoring-agent/SNMP-support to be able to monitor system (alive? disk OK?)
* Add more interfaces like WebDAV, FTP, email to receive data * Add more interfaces like WebDAV, FTP
* Only reboot if required * Only reboot if required
* check no unneeded ports open/block with firewall * check no unneeded ports open/block with firewall
* encrypt harddrive
* copy date on flash drive to have some kind of "rescue-dongle"
* build checksums and signatures of data

View File

@ -1,10 +0,0 @@
---
- name: restart smbd
service:
name: smbd
state: restarted
- name: restart cron
service:
name: cron
state: restarted

View File

@ -30,27 +30,6 @@
New SMB password: "{{ networkvault_vault_password }}" New SMB password: "{{ networkvault_vault_password }}"
Retype new SMB password: "{{ networkvault_vault_password }}" Retype new SMB password: "{{ networkvault_vault_password }}"
- name: generate /etc/samba/smb.conf
template:
src: smb.conf.j2
dest: /etc/samba/smb.conf
notify:
- restart smbd
- name: set permission for ro-share
file:
path: /var/cache/rsnapshot
mode: '0755'
state: directory
recurse: yes
- name: generate /etc/rsnapshot.conf
template:
src: rsnapshot.conf.j2
dest: /etc/rsnapshot.conf
notify:
- restart cron
- name: reboot at 6 in the morning to activate kernel-updates - name: reboot at 6 in the morning to activate kernel-updates
cron: cron:
name: "reboot" name: "reboot"

View File

@ -245,11 +245,11 @@ create mask = 0755
public = no public = no
[roshare] [roshare]
comment = Read Only Share comment = Vault
path = /var/cache/rsnapshot path = /var/cache/rsnapshot
browsable = yes browsable = yes
guest ok = no guest ok = no
read only = yes read only = yes
read list = vault read list = vault
create mask = 0644 create mask = 0755
public = no public = no