From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Bitsch To: development@lists.ipfire.org Subject: Re: [PATCH 1/2] log.dat: Fix bug13762 - ssh logins not shown in system logs Date: Thu, 29 Aug 2024 11:28:44 +0200 Message-ID: In-Reply-To: <20240828100446.6617-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2544350485280858653==" List-Id: --===============2544350485280858653== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Tested-by: Bernhard Bitsch Reviewed-by: Bernhard Bitsch Am 28.08.2024 um 12:04 schrieb Adolf Belka: > - With the update of openssh to version 9.8 in CU187 the daemon was changed= from sshd to > sshd-session. Therefore the log.dat no longer finds any info related to= the logins. > - This updates the section regex to look for both sshd and sshd-session. > - Tested out on my vm system and confirmed to work. > - This fix will make available all previous log info for sshd-session in th= e messages log > as it continued to be stored, just could not be read by the WUI system = log. >=20 > Fixes: bug13762 > Tested-by: Adolf Belka > Signed-off-by: Adolf Belka > --- > html/cgi-bin/logs.cgi/log.dat | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat > index 01c382a0d..41f81e99d 100644 > --- a/html/cgi-bin/logs.cgi/log.dat > +++ b/html/cgi-bin/logs.cgi/log.dat > @@ -75,7 +75,7 @@ my %sections =3D ( > 'samba' =3D> '(nmbd|smbd|winbind)\[\d+\]:', > 'suricata' =3D> '(suricata: )', > 'squid' =3D> '(squid\[.*\]: |squid: )', > - 'ssh' =3D> '(sshd(?:\(.*\))?\[.*\]: )', > + 'ssh' =3D> '(sshd(?:\(.*\))?\[.*\]: |sshd-session(?:\(.*\))?\[.*\]= :)', > 'unbound' =3D> '(unbound: \[.*?\])(.*:.*$)', > 'urlfilter bl' =3D> '(installpackage\[urlfilter\]: )', > 'wireless' =3D> '(hostapd:|kernel: ath.*:|kernel: wifi[0-9]:)', --===============2544350485280858653==--