The following example describes the essential settings for the syslog proxy service (on the box) and the CC syslog server (on the box level of the CC). For more in-depth information see How to Configure Syslog Streaming.
- Log message streaming using TCP&UDP (non SSL)
- Log message streaming using SSL
- Relaying of log messages using SSL
Log Message Streaming using TCP&UDP (non SSL)
To specify the settings for log message streaming using TCP&UDP, proceed as follows:
Configuration of Syslog Streaming
- Log into the Barracuda Firewall Control Center at box level (select Box in the login window).
- Go to CONFIGURATION > Configuration Tree > Box > Infrastructure Services > Syslog Streaming .
- Click Lock.
In the Basic Setup section, set the parameter Idle Mode to no.
- From the Configuration menu on the left, select Logdata Filters.
- Click the + icon, enter a descriptive name and click OK.
- In the section Affected Box Logdata and Affected Service Logdata, specify the log file types to be sent to the CC Syslog server.
- Click OK.
- From the Configuration menu on the left, select Logstream Destinations.
- Click the + icon, enter a descriptive name and click OK.
- In the Destination Address section set the parameter Remote Loghost to explicit-IP. This setting causes the log files to be streamed to the CC-Server IP.
- Set the parameter Use SSL Encapsulation to no.
- Set parameter Add Range/Cluster Info to yes to maintain the log files structure Range/Cluster/Box. If set to no, the log files are saved in a directory labelled with the box' name below the Local Log Directory defined on the CC Syslog server (see below).
- Click OK.
- From the Configuration menu on the left, select Logdata Streams.
- Click the + icon, enter a descriptive name and click OK.
- Define combinations of Log Filters and Log Destinations in this section. Generally, this feature is useful when:
- Log files are streamed to multiple destinations.
Streaming is not required continuously for all log file types.
- Click OK .
- Click Send Changes and Activate.
Configuration of CC Syslog Service
- Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > servicename (msyslog) > CC Syslog Service .
- Click Lock.
- In the Basic Setup section, set the parameter Idle Mode to no.
Create Service Key and Service Certificate.
- Set parameter Support Trusted Data Reception to no.
- Set parameter Store on Disk to yes to enable saving of received log messages to harddisk.
- From the Configuration Mode menu on the left, select Active View (if not already selected).
- From the Configuration menu on the left, select Local Storage.
- Specify the Local Log Directory as saving location for received log messages. The default path is /var/phion/mlogs . You may leave the default settings.
- Click OK.
- Click Send Changes and Activate.
Log Message Streaming using SSL
To configure log message streaming using SSL proceed as follows:
Configuration of Syslog Streaming
- Log into the Barracuda Firewall Control Center at box level (select Box in the login window).
- Go to CONFIGURATION > Configuration Tree > Box > Infrastructure Services > Syslog Streaming .
- Click Lock.
- In the Basic Setup section, set the parameter Idle Mode to no.
- Set parameter Use Box Certificate/Key to yes.
- From the Configuration menu on the left, select Logdata Filters.
- Click the + icon, enter a descriptive name and click OK.
- In the section Affected Box Logdata and Affected Service Logdata, specify the log file types to be sent to the CC Syslog server.
- Click OK.
- From the Configuration menu on the left, select Logstream Destinations.
- Click the + icon, enter a descriptive name and click OK.
In the Destination Address section set the parameter Remote Loghost to Barracuda CC Control. This setting causes the log files to be streamed to the CC IP.
Configure the parameter Loghost Port to match the value in parameter SSL Listen Port (Trusted Data Reception view) on the CC Syslog Server. By default, port 5143 is used for SSL connections.
- Set parameter Transmission Mode to TCP.
- Set parameter Add Range/Cluster Info to yes to maintain the log files structure Range/Cluster/Box. If set to no, the log files are saved in a directory labelled with the box' name below the Local Log Directory defined on the CC Syslog server.
- Click OK.
- From the Configuration menu on the left, select Logdata Streams.
- Click the + icon, enter a descriptive name and click OK.
- Define combinations of Log Filters and Log Destinations in this section.
- Click OK.
Click Send Changes and Activate.
Configuration of CC Syslog Service
- Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > servicename (msyslog) > CC Syslog Service .
- Click Lock.
- In the Basic Setup section, set the parameter Idle Mode to no.
Create Service Key and Service Certificate.
- Set parameter Support Trusted Data Reception to yes.
- Set parameter Store on Disk to yes to enable saving of received log messages to harddisk.
- From the Configuration Mode menu on the left, select Active View (if not already selected).
- From the Configuration menu on the left, select Support Trusted Data Reception.
- Configure the parameter SSL Listen Port to match the value in parameter Loghost Port ( Logstream Destinations view) on the Syslog Proxy. By default, port 5143 is used for SSL connections. Pay attention to the limitations concerning port choice as described above.
- Set parameter Service Certificate to USE_MC_SSL_Cert. With this setting, boxes can authenticate themselves at the CC Syslog Server using their box certificates.
- Set parameter Client Authentication to verify_peer_with_locally_installed_certificate . The setting causes the box certificate to be authenticated against the CC certificate.
- Import the box certificate of every box, whose log messages are collected by the CC Syslog Server, into the Trusted Clients field.
- From the Configuration menu on the left, select Local Storage.
- Specify the Local Log Directory as saving location for received log messages. The default path is /var/phion/mlogs . You may leave the default settings.
- Click OK.
- Click Send Changes and Activate.
Relaying of Log Messages Using SSL
Relaying follows the streaming of log messages. Relaying can be configured with or without SSL encapsulation, regardless of encryption settings defined for streaming. Log messages can be relayed to an external host after they have been written to disk on the CC Syslog Server or they can immediately be passed to the external host without this intermediate step. The following example settings can succeed both of the configurations described above. To configure relaying using SSL proceed as follows.
Syslog Proxy Configuration
No further settings are required on the box where log messages are generated.
Configuration of CC Syslog Service
- Go to CONFIGURATION > Configuration Tree > Box > Assigned Services > servicename (msyslog) > CC Syslog Service .
- Click Lock.
- In the Basic Setup section, set the parameter External Relaying to yes.
Create Service Key and Service Certificate.
- From the Configuration Mode menu on the left, select Relaying Setup.
- From the Configuration menu on the left, select Support Trusted Data Reception.
- Set parameter SSL Peer Authentication to verify_peer_with_locally_installed_certificate.
From the Configuration menu on the left, select Relay Filters.
- Specify the parameter Affected Box Logfiles / Affected Service Logfiles. The all-embracing method easiest to configure, is to relay Affected Box Logfiles and Affected Service Logfiles. If unfiltered relaying is not desired, choose Selection in the Affected Box/Service Logfiles parameters and select the log file types to be relayed.
- Configure the parameter SSL Listen Port to match the value in parameter Loghost Port (Logstream Destinations view) on the Syslog Proxy. By default, port 5143 is used for SSL connections. Pay attention to the limitations concerning port choice as described above.
- Specify the parameter Special File Patterns (This setting allows setting relay filters on terms of filtering for character strings (for example box_Event).
- From the Configuration menu on the left, select Relay Destinations.
Using Destination Type Stream SSL to Passive Destination:
- Set parameter Connection Type to Stream SSL to passive destination, if the destination the CC Syslog server is relaying to, is passively awaiting log message delivery.
In the Destination SSL Certificate section, import the destination server's certificate in this place - define the destination IP through the parameter Destination SSL IP.
- From the Configuration menu on the left, select Local Storage.
In the Destination SSL IP section, define the connection port for relaying through the parameter Destination SSL Port. The standard port range for this purpose spans ports 5244 to 5253.
Set the parameter Keep Structural Info to yes to maintain the original names of the relayed log files.
Using Destination Type Stream SSL to Active Destination:
Set parameter Connection Type to Active SSL connect by destination if the external host is actively querying for log messages.
Specify a Local SSL Port (parameter requires Advanced View in order to be available). The connection between CC Syslog Server and destination system will be established on this port. The standard port range for this purpose spans ports 5244 to 5253.
In the Destination SSL Certificate section, set the parameter Keep Structural Info to yes to maintain the original names of the relayed log files.
From the Configuration menu on the left, select Relay Streams.
Define combinations of Relay Destinations and Relay Filters in this section. Generally, this feature is useful when log files are relayed to multiple destinations and/or relaying is not required continuously for all log file types.
- Click OK.
- Click Send Changes and Activate.