* SnortSMS Agent sensor side.
The biggest concerns are that you have curl support for the remote connections to the sensor, PEAR support for the database, and PCRE support in PHP.
The SnortSMS Agent is designed to reside on the remote Snort sensor. It allows the SnortSMS website server to communicate and remotely control the sensor.
Prerequsite: The SnortSMS Agent is written in the Webmin API, which means you must have Webmin installed on the remote sensor. You should have also installed Snort and Barnyard (optional) prior to installing the Agent Module.
Configure SnortSMS global settings
Create a Snort Daemon Profile
You MUST create at least one Snort Daemon Profile. This is used to tell SnortSMS how to launch the snort process on the remote sensor.
Populating the libraries
Before you can assign configurations to your sensors, you must populate the SnortSMS libraries. The easiest way is to import the Snort default rule snapshot file. You can either download it to your local desktop or import it from the web.
This will parse the snapshot file, finding all rules and directives, and populate the SnortSMS libraries accordingly. Once this is done, you should be able to browse the libraries and verify the imported resources. You may have to manually add the "Variables" manually.
Create a Rule Profile
Now that your resource libraries are full, we suggest you 1st create at least one rule profile. You cannot assign rules directly to sensors, only rule profiles can be assigned to each sensor.
Adding Sensors
Now you are ready to add sensors into the system. If you are managing multiple sen
Testing
At this point, SnortSMS should be properly configured. We also assume you have at least one functional Snort-base sensor defined. From the Administration Console, click anywhere on your sensor line. You should be able to get statistical data from the 'Status' tab.
Issue: | I get an error while trying to save the Global Settings. |
Resolution: | Be sure the "conf.php" file has read/write permissions by the webserver. |
Issue: | I cannot connect to the remote agent. |
Resolution: | A ton of reasons for this one: - Be sure to "Disable session authentication" in Webmin. - Are use using the correct protocol (http/https)? - Username exits within Webmin and the user has access granted to the SnortSMS Agent module. |
Issue: | I get an database connection error. |
Resolution: | Verify your database server and table installation. Insure you have the correct username and password configured in SnortSMS Global Settings and in your database permissions section. |
Issue: | "Missing DB.php". |
Resolution: | - Be sure the PEAR-DB abstraction layer is properly installed. - Check that your PHP "include" path is correct and includes the path to the PEAR files. |
Issue: | Importing snapshot file failed. |
Resolution: | - Verifiy your path setting for temporary files in 'SnortSMS Global Settings'. - Verify your temp path is read/writable by your web server userid (chmod 1777 /tmp/path). - Verify correct paths for 'curl' & 'tar' on your web server in 'SnortSMS Global Settings'. - Verify your max upload, max memory, and max execution parameters in 'php.ini' config file. |