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
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.
@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: /launchpad. net/ubuntu/ +source/ logwatch/ 7.5.2-1ubuntu1. 3/+build/ 21758051/ +files/ logwatch_ 7.5.2-1ubuntu1. 3_all.deb 7.5.2-1ubuntu1. 3_all.deb
$ wget https:/
$ sudo dpkg -i logwatch_
Testing: conf/services/ sshd.conf and script /etc/logwatch/ scripts/ services/ sshd ------- ------- SSHD Begin ------- ------- ------- ---" 27.broad. fz.fj.dynamic. 163data. com.cn) : 5 Times conf/services/ sshd.conf with contents: ------- ------- SSHD Begin ------- ------- ------- ---"
1) Removed my custom config /etc/logwatch/
2) Ran logwatch and inspected section "Illegal users from:" within " -------
Sample line:
27.151.56.7 (7.56.151.
3) Created /etc/logwatch/
# Set to No to disable IP lookups
$sshd_ip_lookup = No
4) Ran logwatch and inspected section "Illegal users from:" within " -------
Sample line:
27.151.56.7: 5 Times
Results:
This patch is working as expected on focal.