You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 35 Current »

To move a DualShield server to a new machine that runs on a different OS from the old machine, you need to install a fresh DualShield server on the new machine, then transfer the DualShield database and some other files from the old machine to the new machine. Below is the guide in steps.

On the new Linux box:

1. Install the latest DualShield server with EXACTLY the same FQDN as the one on the  old machine - Please refer to Installation on Linux Console . Please note if you are using an external SQL database such as MS SQL but you are not planning on moving to a new SQL server then make sure you use a different name when you get to the section on creating a new database, to avoid corruption to the current live database.

2. Stop the DualShield service 

sudo systemctl stop dualshield

You will need to install libncurses5 dependency, before continuing.

sudo apt-get install libncurses5

For Ubuntu 24.04: (You may need to sudo su first)

sudo echo "deb http://security.ubuntu.com/ubuntu focal-security main universe" | sudo tee /etc/apt/sources.list.d/ubuntu-focal-sources.list
sudo apt-get update
sudo apt-get install libncurses5



On the old Windows machine:

3. Stop the DualShield service

If the DualShield uses a local MySQL database, then export the DaulShield database 

    cd C:\Program Files\Deepnet DualShield\mysql\bin\
    mysqldump -uroot -p dualshield > c:\dualshield.sql

Copy the database file "dualshield.sql" from the Windows machine to the home folder of the Linux machine, and import it into the database

Run the following commands to import the dualshield.sql file...  (for the last command replace [username] with the account name used to log into Linux CLI

    cd /opt/dualshield/mysql/bin/
    ./mysql -uroot -p -e "drop database dualshield"
	./mysql -uroot -p -e "create database dualshield DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"     
	./mysql -uroot -p dualshield < /home/[username]/dualshield.sql



4. Copy the following files from the Windows machine to the home folder of the Linux machine:

    C:\Program Files\Deepnet DualShield\certs\*.*

    C:\Program Files\Deepnet DualShield\config\dbenc.jks

    C:\Program Files\Deepnet DualShield\config\storeconf.xml

    C:\Program Files\Deepnet DualShield\config\server-uuid

    C:\Program Files\Deepnet DualShield\config\location.properties

     C:\Program Files\Deepnet DualShield\jre\lib\security\cacerts


5.   'cd' back to your home folder and copy the files from the home folder to inside the Dualshield installation folder

sudo cp -r certs /opt/dualshield/certs
sudo cp -r dbenc.jks /opt/dualshield/config/dbenc.jks
sudo cp -r storeconf.xml /opt/dualshield/config/storeconf.xml
sudo cp -r server-uuid /opt/dualshield/config/server-uuid
sudo cp -r location.properties /opt/dualshield/config/location.properties

6. Edit the storeconf.xml file...

sudo nano /opt/dualshield/config/storeconf.xml

and change the store location to..

/opt/dualshield/config/dbenc.jks

e.g.


7. Import the cacerts file.  Run the following commands, but ignore the warnings about the JKS store using a proprietary format.

cd /opt/dualshield/jre/lib/security/
/opt/dualshield/jre/bin/keytool -importkeystore -srckeystore /home/[username]/cacerts -srcstorepass changeit -destkeystore cacerts -deststorepass changeit -srcalias dualultimateca -noprompt
/opt/dualshield/jre/bin/keytool -importkeystore -srckeystore /home/[username]/cacerts -srcstorepass changeit -destkeystore cacerts -deststorepass changeit -srcalias deepnetownca -noprompt

8. Start the DualShield service on the new machine

sudo systemctl start dualshield

 9. Start the DualShield service on the old machine


Important steps to license new machine! 

10. Log onto the DualShield Console on the old machine, remove the license key.

11. Log onto the DualShield Console on the new machine, remove the license key and re-import the license key.




  • No labels