Comment 7 for bug 1904362

Revision history for this message
Matthew D. Mower (mdmower) wrote :

@brian-murray - I performed the following test.

System info:
$ uname -a
Linux linodeusw01 5.4.0-74-generic #83-Ubuntu SMP Sat May 8 02:35:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

Package update:
$ wget https://launchpad.net/ubuntu/+source/logwatch/7.5.2-1ubuntu1.3/+build/21758051/+files/logwatch_7.5.2-1ubuntu1.3_all.deb
$ sudo dpkg -i logwatch_7.5.2-1ubuntu1.3_all.deb

Testing:
1) Removed my custom config /etc/logwatch/conf/services/sshd.conf and script /etc/logwatch/scripts/services/sshd
2) Ran logwatch and inspected section "Illegal users from:" within " --------------------- SSHD Begin ------------------------"
  Sample line:
  27.151.56.7 (7.56.151.27.broad.fz.fj.dynamic.163data.com.cn): 5 Times
3) Created /etc/logwatch/conf/services/sshd.conf with contents:
  # Set to No to disable IP lookups
  $sshd_ip_lookup = No
4) Ran logwatch and inspected section "Illegal users from:" within " --------------------- SSHD Begin ------------------------"
  Sample line:
  27.151.56.7: 5 Times

Results:
This patch is working as expected on focal.