Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To move a DualShield server to a new machine that runs on a different OS from the old machine, you basically need to install a fresh new 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 old Windows machine:

1. Stop the DualShield service

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

...

3. Install the latest DualShield server with EXACTLY the same FQDN as the one on the  old machine - Please refer to to Installation on Linux Console

4. Stop the DualShield service 

Code Block
sudo systemctl/etc/init.d/dualshield stop dualshield



5. If the DualShield uses a local MySQL database, then copy the database file "dualshield.sql" from the Windows machine to the home folder of the Linux machine, and import it into the database

Please note:- If you are using Ubuntu you will need to install libncurses5 dependency, first.


Code Block
sudo apt-get install libncurses5

You can then 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

Code Block
    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/administrator[username]/dualshield.sql


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

    C:\Program Files\Deepnet DualShield\certs\*.*    C:\Program Files\Deepnet DualShield\config\appsso-metadata.xml

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

...

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

    to the new machine in the same folders and overwrite those files on the new machine.

7. Copy the "cacerts" file in the folder below from the old machine,

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


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

Code Block
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


8. Edit the storeconf.xml file...

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

and change the store location to

Code Block
/opt/dualshield/config/dbenc.jks

Image Added




9. Import the cacerts file.  Run the following commands, but ignore the warnings about the JKS store using a proprietary format.    to the new machine in a folder, say: C:\temp
8. Execute the following commands in the Windows console on the new machine:

Code Block
    cd C:\Program Files\Deepnet DualShield\jre\lib\security\/opt/dualShield/jre/lib/security/     
    ..\/..\/bin\/keytool -importkeystore -srckeystore c:\temp\/home/[username]/cacerts -srcstorepass changeit -destkeystore cacerts -deststorepass changeit -srcalias dualultimateca -noprompt
	  
    ..\/..\/bin\/keytool -importkeystore -srckeystore c:\temp\/home/[username]/cacerts -srcstorepass changeit -destkeystore cacerts -deststorepass changeit -srcalias deepnetownca -noprompt


 9 10. Start the DualShield service on the new machine

Code Block
sudo /etc/init.d/dualshield start

 11 10. Start the DualShield service on the old machine

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

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

...