There are four components in five source packages for the Realeyes IDS application:
The packages can all be installed on a single host, individual hosts, or any combination in between, although several would not make sense.
There are three steps to installing each Realeyes package and one step to deinstallation.
2. Install the appropriate Realeyes packages
3. Configure the Realeyes packages
4. Deinstallation is included and described in the last section
The configuration scripts are run automatically by the installation scripts, but may be run individually if necessary. See the man pages for realeyes_db_config, realeyes_dbd_config, and realeyes_ids_config.
After the installation is complete, see the README files in the system documentation directory (default: /usr/share/doc/package_name) for an explanation of each package.
The realeyesDB schema for the PostgreSQL database and the realeyesDBD application may also use significant memory and disk space if there are several Realeyes IDS sensors.
To account for these requirements, the recommended disk partitions are as follows (Option 1 will be sufficient for most installations, but Option 2 is described for those that need it):
The /data partition in Option 2 should be defined as follows for the specified packages, BEFORE THE PACKAGES ARE INSTALLED:
Edit the Realeyes.ini file for the RealeyesIDS package (see the installation instructions below) and set:
Edit the PostgreSQL configuration file, postgresql.conf, which should be found in a directory such as /etc/postgresql or /var/lib/postgres, and set:
NOTE: It is expected that the security information for the Realeyes application will be maintained in a separate database from any other data.
The header directory is postgres_source_dir/src/include. The database configuration will attempt to locate it, but may require the path to be entered manually.
Regardless of the version, rename the JDBC file to:
On the Eclipse download page, scroll down to the section 'Platform Runtime Binary' and choose the eclipse-platform archive for the desired platform. The archive file is approximately 40 Megabytes.
NOTE: Supported operating systems are listed on this eclipse web page.
It is important that the library can be found by the Realeyes GUI application. This is done automatically by the package manager, but if installing manually, it is accomplished by installing the library in an existing system library directory, or setting the user's LD_LIBRARY_PATH environment variable to include the actual path, or using the ldconfig command.
Optionally, it may be easier to install eclipse. However, this does not eliminate the requirement to download the eclipse-platform.
Regardless of the version, rename the JDBC file to:
Only the following two files are needed by the RealeyesDBD application:
In this case, both interfaces should be defined to use static IP addresses, with the monitoring interface set to 0.0.0.0. It is advisable to establish a site standard for using the first or second interface for monitoring.
Login as the system superuser and extract each package with the command:
NOTE: The RealeyesAE and RealeyesIDS packages must be extracted in the same directory.
Each package comes with the initialization file, Realeyes.ini, where directories and other information is defined for the installation. This file should be edited to conform to the distribution's and site's standards.
All initialization files all the same, so a master copy can be created and copied as needed. In fact, if multiple packages are installed on the same host, a single copy of the Realeyes.ini is saved to be used with the deinstallation script
The initialization file is divided into sections to make it easier to identify the changes that are necessary for a particular installation. The sections and their uses are:
This will install scripts and documentation in the directories defined in the Realeyes.ini file, and the automatically start the configuration scripts, which are described below.
There are three installation methods which all install the same Realeyes directories and files. However, the two GUI installers will also download required files, if desired.
This will install programs and documentation in the directories defined in the Realeyes.ini file.
This will install programs and documentation in the directories defined in the Realeyes.ini file, and the automatically start the configuration scripts, which are described below.
There are explanations of what to expect, and many prompts have a preset default, which is selected by pressing Enter.
Several user IDs and passwords are set in this script. If each user ID is given a unique password, be sure to keep track of them.
The Realeyes user management feature provides administrators the status of users logged into the database. Full functionality of this feature allows administrators to logout users from the user interface. This is provided by database extension functions. Otherwise, users can only be logged out by the DBA from the database host, using the process ID of sessions, which are displayed along with the user IDs.
When the database configuration is complete, it can be tested by logging in to the DBA ID, running the psql program to interact with the database, and displaying Realeyes tables. Note that the configuration defines the alias "redb" to simplify starting the psql program using the realeyesDB database schema.
To start the user interface on Linux, the following command is executed:
To start the user interface on Microsoft Windows, select the application from the Start -> Programs menu.
The login window will be displayed and all of the fields must be filled in:
If successfully logged in, all fields except the password can be set from the menu selection Edit -> Preferences.
The initial information that must be defined, in the order that it must be defined is found in the following menu selections:
When the Save button is clicked for any entry, the information is immediately saved in the database and available for use. However, windows that build popup menus of selections from database information do not have these automatically refreshed, so each of the above should be opened after the previous one has been completed.
There are explanations of what to expect, and many prompts have a preset default, which is selected by pressing Enter.
Note that some selections must be coordinated with the database configuration and others with the IDS configuration.
In particular, ports may be configured for both connections, but note that if the IDS data and control ports are changed, it affects all IDS sensors.
Encryption between the DBD and the IDS is unnecessary if both are on the same host. Otherwise, it is strongly recommended. The private key and certificate is generated on the DBD and copied to each IDS sensor host during that configuration.
There are explanations of what to expect, and many prompts have a preset default, which is selected by pressing Enter.
Note that some selections must be coordinated with the DBD. Especially note that if the data and control ports are changed from the default, all IDS sensors must use the new values.
The memory allocation value is a percentage. Therefore, if there is 1G of memory installed, the 33% default will allocate 333M of memory for the IDS. If the IDS is the only application running on the host, this value can be as high as 90%. The following general rules may be applied:
NOTE: This must be running for either RealeyesDBD or RealeyesGUI to start successfully
NOTE: It has been observed that the first (and possibly second) time the IDS is started, the operating system fails to initialize shared memory. Once it starts working, the problem is not seen again, even after reboots.
Follow the instructions in the README file.
Although it is technically allowable to run the script from a directory that it will remove, it is advisable to copy the deinstallation script and the Realeyes.ini file to a temporary location and execute them from there.
To deinstall a package, change to the directory where the script and the Realeyes.ini file are located and run the script:
If the script and Realeyes.ini file were copied to a temporary location, they may be deleted on successful completion of the deinstallation.