🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
10 messages
10 total messages Started by bugzilla-noreply Thu, 05 Nov 2026 15:45
[Bug 300530] blocklistd: not handling sshd failed logins
#376
Author: bugzilla-noreply
Date: Thu, 05 Nov 2026 15:45
34 lines
2874 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

            Bug ID: 300530
           Summary: blocklistd: not handling sshd failed logins
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: quentin.thebault@defenso.fr

Failed logins due to invalid usernames are not processed by blocklistd and do
not result in a ban.

This bug was previously referenced here:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270928

It was fixed, but the fixing commit was later reverted by 4d56eb0, bringing the
problem back.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#378
Author: bugzilla-noreply
Date: Thu, 05 Nov 2026 16:08
28 lines
3159 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zarychtam@plan-b.pwste.edu.
                   |                            |pl

--- Comment #1 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> ---
Created attachment 277014
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277014&action=edit
0001-bl-a-o-cklistd-add-runtime-U-option-to-mark-BL_BADUS.patch

I was using this patch in the past; it introduces the -U option. I tried to
submit it upstream, but it was rejected, and the upstream team solved it in
another way. So, since we rejected the solution proposed by upstream, we are
stuck.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#379
Author: bugzilla-noreply
Date: Thu, 05 Nov 2026 16:48
17 lines
2637 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

--- Comment #2 from Jose Luis Duran <jlduran@FreeBSD.org> ---
Thank you for the patch.

Unfortunately, we generally cannot accept patches that are not also accepted
upstream.  Please consider resubmitting it upstream, or modifying it so it
meets both their requirements and your use case.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#380
Author: bugzilla-noreply
Date: Thu, 05 Nov 2026 16:54
24 lines
2832 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

--- Comment #3 from Jose Luis Duran <jlduran@FreeBSD.org> ---
Sorry, I forgot to mention.

If this is something specific to SSH, it is likely that a probe is missing in
our SSH implementation.  Note that we are missing two probes from upstream due
to async signal-safety issues.

If this is indeed the case, or better yet, if you have a way to easily
reproduce the underlying issue, the best approach is perhaps to try to make our
implementation complete in that regard.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#393
Author: bugzilla-noreply
Date: Tue, 10 Nov 2026 05:14
25 lines
2911 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

--- Comment #14 from Quentin Thébault <quentin.thebault@defenso.fr> ---
(In reply to Jose Luis Duran from comment #12)

Sure, happy to have a look and put my offender to useful work if he's still
attempting by then!

One of the things that I think could have helped debug my case is making sure
the firewall's tables are properly updated and match blocklistd's. It could be
a check and warning if the entry is not there, or retry adding to the table if
we keep getting failures from probes, or maybe just setting the -r flag by
default in base so a service restart fixes it.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#395
Author: bugzilla-noreply
Date: Tue, 10 Nov 2026 11:28
20 lines
2686 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

Jose Luis Duran <jlduran@FreeBSD.org> changed:

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

--- Comment #15 from Jose Luis Duran <jlduran@FreeBSD.org> ---
I'll close this issue then! Thank you!

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#412
Author: 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
[Bug 300530] blocklistd: not handling sshd failed logins
#416
Author: bugzilla-noreply
Date: Wed, 11 Nov 2026 13:56
27 lines
3029 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

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

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

--- Comment #17 from Quentin Thébault <quentin.thebault@defenso.fr> ---
Found the cause! I had a -s option in my rc.conf to make a blocklistd socket
available in a jail. Except in that case, the default socket on the host is not
used.

I think the manpage is misleading (-s says "Add sockpath to the list of Unix
sockets blocklistd listens to.", not that it replaces the default) and will
propose an improvement upstream.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#417
Author: bugzilla-noreply
Date: Wed, 11 Nov 2026 14:30
15 lines
2457 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

--- Comment #18 from Jose Luis Duran <jlduran@FreeBSD.org> ---
(In reply to Quentin Thébault from comment #17)

Nice! Please @-mention me on GitHub, so I can MFV as soon as possible.

-- 
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
[Bug 300530] blocklistd: not handling sshd failed logins
#428
Author: bugzilla-noreply
Date: Thu, 12 Nov 2026 04:35
13 lines
2407 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300530

--- Comment #19 from Quentin Thébault <quentin.thebault@defenso.fr> ---
Here we go: https://github.com/zoulasc/blocklist/pull/40

-- 
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads