Reverse proxy

Installation is carried out from the image ibatyr-ubuntu-2X.04-v2.XX.0.iso (OC+WAF) on a virtual or physical server. Servers on which you plan to install iBatyr WAF must meet the minimum system requirements from the section 2.1 section.

First you need to install the OS (an example of OS installation is given in the B appendix). After installation and authentication to the OS, the WAF installation will automatically start. Next you need to do the following:

  1. In the window that appears, select installation on one node (see screenshot 1).

image5

Screenshot 1 – Single Node Installation Selection Window

  1. Then in the installation mode selection window, select Reverse proxy (see screenshot 2).

image6

Screenshot 2 – Selecting Installation Mode

  1. Then, in the appropriate windows, specify the IP address (see screenshot 3) and port of the protected application (see screenshot 4). The values entered at this stage can be changed after installation.

image7

Screenshot 3 – IP addresses of the protected application

image8

Screenshot 4 – Protected Application Port

  1. Display an overview of the installation results for review using the command (see screenshot 5):

sudo grep -A 1 RECAP /var/tmp/install.log

image9

Screenshot 5 – Command to check

The indicator of successful installation will be the absence of installation errors (failed=0).

  1. Then, to check the ports correspond to the services, you need to use the command (see screenshot 6):

ss -ntl

image10

Screenshot 6 – Port Check Compliance

Ports for services must correspond to:

  • nginx: port 8443;

  • ibatyr-dashboard: port 5088;

  • mongod: port 27017;

  • ibatyr-analyzer@0: port 6666;

  • ibatyr-redis@mgmt: port 6378;

  • ibatyr-redis@0: port 6379;

  • ibatyr-nginx: the port you specified when installing WAF;

  • sshd: port 22;

  • postgresql: port 5432.

For security reasons, SSH access was denied to the waf user during installation. If you need to allow such access, then in the configuration file /etc/sshd/sshd_config you should delete the last line DenyUsers waf and restart the service using the command (see screenshot 7):

sudo systemctl restart sshd

42

Screenshot 7 – SSH Permission