SV-282747r1201386_rule
V-282747
SRG-OS-000480-GPOS-00227
TOSS-05-000378
CAT II
10
Configure TOSS 5 to not receive remote logs using rsyslog.
Remove the lines in "/etc/rsyslog.conf" and any files in the "/etc/rsyslog.d" directory that match any of the following:
$ModLoad imtcp
$ModLoad imudp
$ModLoad imrelp
$InputTCPServerRun [0-9]*
$UDPServerRun [0-9]*
$InputRELPServerRun [0-9]*
Restart the rsyslog daemon for the changes to take effect.
$ sudo systemctl restart rsyslog.service
Verify TOSS 5 is not configured to receive remote logs using rsyslog with the following commands:
$ grep -i modload /etc/rsyslog.conf /etc/rsyslog.d/*
$ModLoad imtcp
$ModLoad imrelp
$ grep -i serverrun /etc/rsyslog.conf /etc/rsyslog.d/*
$InputTCPServerRun 514
$InputRELPServerRun 514
Note: An error about no files or directories may be returned. This is not a finding.
If any lines are returned by the command, then rsyslog is configured to receive remote messages, and this is a finding.
V-282747
False
TOSS-05-000378
Verify TOSS 5 is not configured to receive remote logs using rsyslog with the following commands:
$ grep -i modload /etc/rsyslog.conf /etc/rsyslog.d/*
$ModLoad imtcp
$ModLoad imrelp
$ grep -i serverrun /etc/rsyslog.conf /etc/rsyslog.d/*
$InputTCPServerRun 514
$InputRELPServerRun 514
Note: An error about no files or directories may be returned. This is not a finding.
If any lines are returned by the command, then rsyslog is configured to receive remote messages, and this is a finding.
M
5738