Nas Apache Web Server
All NAS Series Use SSH to log in to the NAS as an administrator. Open the apache-default-modules.conf file: /etc/config/apache/apache.conf Add any additional modules.
Home
- Apache is a popular open-source, cross-platform web server that is, by the numbers, the most popular web server in existence. It’s actively maintained by the Apache Software Foundation.
- Go into your nas Control Panel, and then into Web Services. Then check the box Enable Web Station.
- Complete Apache HTTP Web Server with PHP 7.4.x branch and more 20 PECL php extension embedded, Generate and update ca-certificates automatically on your NAS Composer embedded and added to NAS $PATH command line.
Apache Web Server
What is Discovered and Monitored
Protocol | Information discovered | Metrics collected | Used for |
---|---|---|---|
SNMP | Application type | Process level metrics: CPU utilization, Memory utilization | Performance Monitoring |
HTTP(S) via the mod-status module | Apachemetrics: Uptime, CPU load, Total Accesses, Total Bytes Connections, Requests/sec, Bytes/sec, Bytes/req, Busy Workers, Idle Workers | Performance Monitoring | |
Syslog | Application type | W3C access logs: attributes include Client IP, URL, User Agent, Referrer, HTTP Version, HTTP Method, HTTP Status Code, Sent Bytes, Received Bytes, Connection Duration | Security Monitoring and compliance |
Home Nas Server
Event Types
In ADMIN > Device Support > Event, search for 'apache' in the Device Type and Description column to see the event types associated with this device.
Reports
InRESOURCE > Reports , search for 'apache' in the Name column to see the reports associated with this device.
Configuration
SNMP
FortiSIEM uses SNMP to discover and monitor this device. Make sure SNMP is enabled for the device as directed in its product documentation. For more information, refer to sections 'Discovery Settings' and 'Setting Credentials' in the User Guide.
HTTPS
To communicate with FortiSIEM over HTTPS, you must configure the mod_status module in your Apache web server.
- Log in to your web server as an administrator.
- Open the configuration file
/etc/Httpd.conf
. - Modify the file as shown in these code blocks, depending on whether you are connecting over HTTP without authentication, or over HTTPS with authentication.
Without AuthenticationWith Authentication - If you are using authentication, you will have to add user authentication credentials.
- Go to
/etc/httpd
, and if necessary, create anaccount
directory. - In the
account
directory, create two files,users
andgroups
. - In the
groups
file, enteradmin:admin
. Create a password for the admin user.
- Go to
- Reload Apache.
You can now configure FortiSIEM to communicate with your device. For more information, refer to sections 'Discovery Settings' and 'Setting Credentials' in the User Guide.
Syslog
Install and configure Epilog application to send syslog to FortiSIEM
- Download Epilog from Epilog download site and install it on your Windows Server.
- For Windows, launch Epilog from Start→All Programs→InterSect Alliance→Epilog for windows
- For Linux, type http://<yourApacheServerIp>:6162
- Configure Epilog application as follows
- Go to Log Configuration. Click Add button and add the following log files to be sent to FortiSIEM
- /etc/httpd/logs/access_log
- /etc/httpd/logs/ssl_access_log
- Go to Network Configuration
- Set AO System IP(all-in-1 or collector) in Destination Server address (10.1.2.20 here);
- Set 514 in Destination Port text area
- Click Change Configuration to save the configuration
- Apply the Latest Audit Configuration. Apache logs will now sent to FortiSIEM in real time.
- Go to Log Configuration. Click Add button and add the following log files to be sent to FortiSIEM
Define the Apache Log Format
You must define the format of the logs that Apache will send to FortiSIEM.
- Open the file
/etc/httpd/conf.d/ssl.conf
for editing. - Add this line to the file.
- Uncomment this line in the file.
- Add this line to the file.
- Reload Apache.
Apache Syslog Log Format
Settings for Access Credentials
SNMP Access Credentials for All Devices
Use these Access Method Definition settings to allow FortiSIEM to communicate with your device over SNMP. Set the Name and Community String.
Setting | Value |
---|---|
Name | <set name> |
Device Type | Generic |
Access Protocol | SNMP |
Community String | <your own> |
Settings for Apache Web Server HTTPS Access Credentials
Synology Nas Web Server
Use these Access Method Definition settings to allow FortiSIEM to communicate with your Apache web server over https.
Nas Vs File Server
Setting | Value |
---|---|
Name | Apache-https |
Device Type | generic |
Access Protocol | HTTP or HTTPS |
Port | 80 (HTTP) or 443 (HTTPS) |
URL | server-status?auto |
User Name | The admin account you created when configuring HTTPS |
Password | The password associated with the admin account |
Nas File Server
Copyright © 2020 Fortinet, Inc. All Rights Reserved. | Terms of Service | Privacy Policy