Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨✨ Upgdare SELKS 6 to 7 tutorial (VM version) #418

Open
1 task done
alekdimitrov opened this issue Oct 17, 2022 · 3 comments
Open
1 task done

✨✨ Upgdare SELKS 6 to 7 tutorial (VM version) #418

alekdimitrov opened this issue Oct 17, 2022 · 3 comments

Comments

@alekdimitrov
Copy link

Is there an existing feature request that has already been created?

  • I have searched the exiting features requests

Is your feature request related to a problem? Please describe.

Is there any upgrade tutorial for SELKS 6 to 7? I had able to find 5 to 6 tutorial. My setup: Proxmox and clean VM without Docker on it. I want to switch to last version of software.
10x a lot

Describe the solution you would like?

Please make tutorial for upgrade SELKS 6 to 7. Thanks in advance.

Alternative Solutions

No response

Additional Context

No response

@woundride
Copy link

Selks 6 > Selks 7 migration

On Selks 6, backup your configuration :

  1. Use the manage.py script to open dbshell :

selks-user@computer:~$ sudo -s
root@computer:/home/selks-user# cd /usr/share/python/scirius/ && . bin/activate && python bin/manage.py
(scirius) root@computer:/usr/share/python/scirius# cd bin/
(scirius) root@computer:/usr/share/python/scirius/bin# python3 manage.py dbshell

  1. Backup configuration and export to /tmp for example :

sqlite> .backup /tmp/backup_selks6

  1. To verify integrity after import on Selks 7 :

(scirius) root@computer:/usr/share/python/scirius/bin# sha256sum /tmp/backup_selks6

On Selks 7 :

  1. Import backup_selks6 file on Selks 7 with scp or sftp for example.

  2. Install sqlite3 package on Scirius container :

selks-user@selks:~$ sudo docker exec -it scirius apt update ; sudo docker exec -it scirius apt full-upgrade -y ; sudo docker exec -it scirius apt install sqlite3 -y

  1. In this example, backup_selks6 is on selks-user home directory. Copy backup_selks6 on /tmp directory of Scirius container :

selks-user@selks:~$ sudo docker cp backup_selks6 scirius:/tmp

  1. To verify integrity :

selks-user@selks:~$ sudo docker exec -it scirius sha256sum /tmp/backup_selks6

  1. Open dbshell with manage.py script :

selks-user@selks:~$ sudo docker exec -it scirius python /opt/scirius/manage.py dbshell

  1. Restore configuration from backup_selks6 :

sqlite> .restore /tmp/backup_selks6

  1. Restart Scirius container :

selks-user@selks:~$ sudo docker restart scirius

  1. Push configuration to Suricata :

Open web interface https://selks

Go to Administration (on top) > Suricata (on top) > Ruleset actions (on left).

Check Build and Push and click on Apply

Enjoy !

@alekdimitrov
Copy link
Author

alekdimitrov commented Oct 17, 2022

@woundride thank you man! A really appreciated your fast and full respose.
I want to ask you a few more questions:

  • Can I use My SELKS 6 install and upgrade over it or I need clean SELKS 7 installation - something like Upgrade.sh in version 4 to 5?
  • Where Can I download SELKS-7-nodesktop.iso? Here I see only Docker ISO are they the same or not?

@woundride
Copy link

😉

The best way I think is install a clean SELKS 7 and import your SELKS 6 configuration.
You can download ISO here : https://www.stamus-networks.com/selks#Download
Sha256 sum are available here : https://github.com/StamusNetworks/SELKS/wiki/Docker-ISO-setup

In SELKS 7, installation need Docker, also with ISO versions. All components are in containers. It's different but very stable and powerful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants