ShareWAF, has been established for large-scale private cloud WAF, for cluster deployment.

ShareWAFv2.03 on, began to support remote configuration files are stored.

What does that mean?

Previously, ShareWAF configuration information read from the local, such as: protected sites, personalized configuration, etc., is stored locally. If it is as a software WAF, or a small private cloud WAF. There is no problem.

But if you build a large cloud WAF, cluster deployment, is somewhat inconvenient, because to be deployed on multiple machines ShareWAF, configuration information is not synchronized, we need to be independently configured for different machines.

After starting from v2.0.3 version, open mongodb database functionality, configuration information is also stored in a separate remote mongodb database.

Integration of configuration information, is not convenient to be used before the end of the elimination of measurement.

Multiple ShareWAF will share the same profile, the same report database ('d have the ability to share reporting database functionality in previous versions).

Use and effect

1, the initial use, to be set as use_mongodb config.js 1 (default is 0), and is provided mongodb server address (with password).

de5158edbe9d474ca917406b11e0e830

2, start ShareWAF, is displayed as follows:

1a78d0de5ca1447cb5acaccba9a15489

(Display debug turned on, do not display debug information when unopened) submit data to prompt the mongodb.

This is because the first run, mongodb remote database and there is no data in local configuration information ShareWAF will be uploaded to the database. After that, there will be a database of configuration information when other ShareWAF start, will use the configuration information in the database.

verification:

In mongodb view the data, then you see the data already in the database configuration information:

3037432c46434b99846d37d3d6a0c934

The current version, does not provide clear the mongodb database configuration information functions. To empty, the command may be used in the mongo: db.sharewaf_config.drop ().

3, user self registration, add, or delete an administrator by background configuration information for the remote database synchronization.

99eb31d5fa794ab3b1ab635a6ee6d9ff

4, the content is not currently synchronized with the remote database.

Management data detection background:

fcbe937df50943cfb1c7ebe345525d97

The data here is for a single machine deployment ShareWAF's.

Background database backup administrator, Backup trial diary for a single sqlite database and review the diary independent ShareWAF machine.


Guess you like

Origin blog.51cto.com/14237227/2475289