5.2.6 Accept Remote rsyslog Messages Only on Designated Log Hosts - $ModLoad imtcp.so

Information

By default, rsyslog does not listen for log messages coming in from remote systems. The ModLoad tells rsyslog to load the imtcp.so module so it can listen over a network via TCP. The InputTCPServerRun option instructs rsyslogd to listen on the specified TCP port.

Rationale:

The guidance in the section ensures that remote log hosts are configured to only accept rsyslog data from hosts within the specified domain and that those systems that are not designed to be log hosts do not accept any remote rsyslog messages. This provides protection from spoofed log data and ensures that system administrators are reviewing reasonably complete syslog data in a central location.

Solution

For hosts that are designated as log hosts, edit the /etc/rsyslog.conf file and add or modify the following lines:

$ModLoad imtcp.so
$InputTCPServerRun 514

Execute the following command to restart rsyslogd:

# pkill -HUP rsyslogd




Default Value:

OS Default: No

See Also

https://workbench.cisecurity.org/files/3096

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-12, CSCv6|9.1, CSCv7|6.3

Plugin: Unix

Control ID: cce869b14b06e9daf300bc36da582c0aa072a048ee5066c44d54d5c1ba2566fa