Skip to content

How do I automatically sync the Nanitor server with the customer portal?

Syncing with the customer portal

Sync with the Nanitor customer portal is optional but highly recommended, for example, the vulnerability database is updated every day so not syncing means you do not receive the latest vulnerability feed.

The sync functionality is built into the nanitor-manager which will sync at 3 AM on the server time.

Setting up sync

The sync is configured in /etc/nanitor/nanitor_common.ini. To set it up automatically you only have to run:

/usr/lib/nanitor-server/bin/nanitor-server-ctl customer_sync_add
systemctl restart nanitor-manager.service

An automatic sync is now set up. The manager needs to restart to apply the new configuration.

Verification

Now manually the sync setup.

/usr/lib/nanitor-server/bin/nanitor-server-ctl customer_portal_sync

This will try to contact  https://hub.nanitor.com. We recommend that the data is synced. When there is no direct internet connectivity we recommend the use of a proxy. The proxy can then have an ACL to restrict what sites are being accessed.

Turning off

If for some reason you need to turn off the sync you can edit /etc/nanitor/nanitor_common.ini and find the [customer_portal] section and change the sync param from true to false. Then restart the manager to apply the new configuration.