🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #412

[Bug 300530] blocklistd: not handling sshd failed logins

#412
From: bugzilla-noreply
Date: Wed, 11 Nov 2026 04:54
109 lines
6532 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

Quentin Thébault <quentin.thebault@defenso.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|Works As Intended           |---
             Status|Closed                      |Open

--- Comment #16 from Quentin Thébault <quentin.thebault@defenso.fr> ---
Sorry after receiving this morning's periodic e-mail I can see it is actually
not working. I had not touched the server since comment #11.

The block expired and attempts resumed right away:
# grep -h 'Nov 10 10:1' /var/log/*.log | sort -u | grep -v dhclient
Nov 10 10:17:45 sv-hi-fg-1 blocklistd[4188]: released 45.147.248.189/32:65522
after 86400 seconds
Nov 10 10:17:56 sv-hi-fg-1 sshd-session[10862]: Invalid user admin from
45.147.248.189 port 54294
Nov 10 10:17:57 sv-hi-fg-1 sshd-session[10862]: Connection closed by invalid
user admin 45.147.248.189 port 54294 [preauth]
Nov 10 10:18:24 sv-hi-fg-1 sshd-session[10866]: Invalid user xc from
45.147.248.189 port 58652
Nov 10 10:18:25 sv-hi-fg-1 sshd-session[10866]: Connection reset by invalid
user xc 45.147.248.189 port 58652 [preauth]
Nov 10 10:18:50 sv-hi-fg-1 sshd-session[10868]: Connection closed by
authenticating user root 45.147.248.189 port 37356 [preauth]
Nov 10 10:19:14 sv-hi-fg-1 sshd-session[10870]: Invalid user admin from
45.147.248.189 port 49770
Nov 10 10:19:15 sv-hi-fg-1 sshd-session[10870]: Connection closed by invalid
user admin 45.147.248.189 port 49770 [preauth]
Nov 10 10:19:39 sv-hi-fg-1 sshd-session[10872]: Invalid user user from
45.147.248.189 port 39726
Nov 10 10:19:40 sv-hi-fg-1 sshd-session[10872]: Connection closed by invalid
user user 45.147.248.189 port 39726 [preauth]

No other blocklistd logs after that. The attempts are still on-going as I
write.

Here is my blocklistd.conf:
# cat /etc/blocklistd.conf
# Blocklist rule
# adr/mask:port type    proto   owner           name    nfail   duration
[local]
#ssh            stream  *       *               *       3       24h
#ftp            stream  *       *               *       3       24h
#smtp           stream  *       *               *       3       24h
#submission     stream  *       *               *       3       24h
#6161           stream  tcp6    christos        *       2       10m
65522           stream  *       *               *       3       24h
2222            stream  *       *               *       3       24h
*               *       *       *               *       3       60

# adr/mask:port type    proto   owner           name    nfail   duration
[remote]
#129.168.0.0/16 *       *       *               =       *       *
#[2001:db8::]/32:ssh    *       *       *               =       *       *
#6161           =       =       =               =/24    =       =
#*              stream  tcp     *               =       =       =
10.0.1.2:2222   stream  *       *               *       *       *

sshd config:
# grep -vE '^#|^$' /etc/ssh/sshd_config
Port 65522
AuthorizedKeysFile      .ssh/authorized_keys
PasswordAuthentication no
PermitEmptyPasswords no
KbdInteractiveAuthentication no
UsePAM no
AllowTcpForwarding no
UseDNS no
UseBlocklist yes
Subsystem       sftp    /usr/libexec/sftp-server

Blocklistd is working for other attackers hitting a sshd server on another
port, running in one of the jails:
# blocklistctl dump -b
rulename                address/ma:port id      nfail   last access
blocklistd         45.64.134.75/32:2222 OK      3/3     2026/11/10 17:39:42
blocklistd       35.206.140.186/32:2222 OK      3/3     2026/11/11 02:40:01

And correctly feeding pf:
# pfctl -a blocklistd/2222 -t port2222 -T show
   35.206.140.186
   45.64.134.75

Blocklistd is not even registering attempts:
# blocklistctl dump -a | grep 45.147 ; echo END
END

I can reproduce these logs by running this in a jail:
$ ssh -p 65522 notavaliduser@10.0.1.1
notavaliduser@10.0.1.1: Permission denied (publickey).

Attempts do not appear in `blocklistctl dump -a` nor in /var/log/daemon.log
where blocklistd logs and I never get banned.
Adding `-o PubkeyAuthentication=no` does not change anything.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300530-227-OElq1PJcos@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-300530-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 300530] blocklistd: not handling sshd failed logins
Date: Wed, 11 Nov 2026 04:54:42 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300530-227-OElq1PJcos@https.bugs.freebsd.org/bugzilla/>
References: <bug-300530-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="90658"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1794372883;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=GUSxTUmhwKlVcMVgrZRDWzVF8HrGMjfCY4LV/QH95ZY=;
	b=PLoHnHnXIgC3C8LKzVwaRHPjPcG46nBFNnqHx7M1ci/r0odOPKo37hi3R6bWrblLAWwfMl
	7SLSNSnIT35ZcpZoLNPXnsbdxRccK8v8NwE0BHWHUiGPcWeV4R89vZKE0nX21nn+q4CSt1
	UAL5PHWCuoDc0kU0o9oYqOQD8+zWpirifKhCBoGGuMe2CSp1zMTwhHQ3Cf5iELxYNXUV+k
	1S4M1GinwXNQCk19QlDYKAUdmPDKVrDbARnWQSsydgPE97QQBAfIfzDh+Vbif4N5+vGhe5
	WWpAbVJqhRJGjYqMVu9dxK04yxMuOd3Jw+QsAsWwk2EFMYH3GUuKyE30TUF4lA==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-300530-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes