Information
Logging data for Firewall Events should be saved to a local file.
Rationale:
The JUNOS Device's built in Firewall (configured under [edit firewall] and discussed in more detail elsewhere in this Benchmark) can be the first line of defense, so the logging it produces can be vital in responding to a security incident as well as a useful tool for diagnosing faults relating to the Firewall.
A local SYSLOG file should be configured to record all firewall related events.
Impact:
Logging of Firewall events may record a large volume of messages. You may wish to specify the size of files to be recorded, the number of zipped older files the JUNOS Devices should keep and automatic archiving settings to appropriate values for the device and environment you are using. Details of the related commands are linked in the References section.
Solution
To configure a local SYSLOG file for Firewall events, issue the following command from the [edit system syslog] hierarchy;
[edit system syslog]
user@host#set file <filename> firewall any
Where <filename> is the file, in the default /var/log/ folder, that should be used to log these messages. You may, for example, choose to call the file firewall, in which case it can be read with the show log firewall command.
Default Value:
SYSLOG for Firewall events is not sent to a separate file by default.