Nemesida WAF modules and auxiliary components updating guide.

Updating Nemesida WAF components
To keep the Nemesida WAF components up to date, it is recommended to install updates in a timely manner. In addition to the system environment, auxiliary PIP dependencies are required for the components to work.

Components update from the repository installed in the system by package manager (apt, yum or other)

Warning: updating may cause the Nemesida WAF crash.

For updating of Python3 PIP dependencies is following:

  • For Nemesida WAF dynamic module and Nemesida AI MLC:

    # /usr/share/nwaf/venv/pip_update.sh
    
  • For Nemesida WAF API:

    # /var/www/nw-api/pip_update.sh
    
  • For Nemesida WAF Cabinet:

    # /var/www/app/pip_update.sh
    
  • For Nemesida WAF Scanner:

    # /opt/nws/pip_update.sh
    

It is recommended to restart server and check the components’ status after updating:

  • For Nemesida WAF dynamic module and Nemesida AI MLC:

    # systemctl status nginx nwaf_update mla_main rabbitmq-server
    # service mlc_main status
    
  • For Nemesida WAF API:

    # systemctl status nw-api
    
  • For Nemesida WAF Cabinet:

    # systemctl status cabinet cabinet_ipinfo cabinet_attack_notification cabinet_cleaning_db cabinet_rule_update memcached
    
  • For Nemesida WAF Scanner:

    # systemctl status nws
    

If there are errors in operation, it is recommended to return to the Python3 versions of the PIP dependencies included in the distributive as follows:

  • For Nemesida WAF API:

    # cd /var/www/nw-api/ && . venv/bin/activate && python3 -m pip install --no-cache-dir -r requirements.txt && deactivate && cd -
    
  • For Nemesida WAF Cabinet:

    # cd /var/www/app/ && . venv/bin/activate && python3 -m pip install --no-cache-dir -r requirements.txt && deactivate && cd -
    
  • For Nemesida WAF Scanner:

    # cd /opt/nws/ && . venv/bin/activate && python3 -m pip install --no-cache-dir -r requirements.txt && deactivate && cd -