From: Randy Bush <randy@psg.com>
To: "Kerin Millar" <kfm@plushkava.net>
Cc: netfilter@vger.kernel.org
Subject: Re: prefix len confusion
Date: Tue, 09 Jun 2026 18:01:33 -0700 [thread overview]
Message-ID: <m21pef2ope.wl-randy@psg.com> (raw)
In-Reply-To: <7b1ed82b-3bdd-4cae-bb08-7f8479778a7a@app.fastmail.com>
>> tl;dr:
>> o ipv4 ssh dict attacker getting through
>> o i am not an nftables guru; but a few of this have stared at this
>> for many days
>> o do i not understand cidr prefix notation?
>>
>> essentially, i am seeing the traditional ssh dict attcak to
>> 42.642.11.82, when i think i am filtering 42.642.11.80/30, which should
>> cover 42.642.11.82
>
> Getting through to where? If you mean to an instance of sshd(8) that's
> running on the nftables box itself, such is to be expected because you
> have no chain bearing an "input" hook. The input path is currently
> wide open.
>
> It could also be that you're expecting your "forward" chain to cover
> your proxmox guests. But if they are bridged, you may need to perform
> your filtering at layer 2 instead (or also). That would entail
> creating a table in the bridge family.
>
> table bridge filter {
> chain wan-in {
> type filter hook forward priority filter;
> ...
> }
> }
sorry for being insufficiently explicit
the ssh attacker is getting through to 42.642.11.82, which is a piece of
hardware, not a vm. it is the ssh port of a hardware switch whose
security profile i prefer not to expose to attackers.
define VULN4 = {
42.642.11.34/31,
42.642.11.36/31,
42.642.11.40/29,
42.642.11.48/29,
42.642.11.80/30 # <<<====
}
ip daddr $VULN4 drop
and nothing to do with proxmox. that is a separate security boundary
with its own code.
> Incidentally, the iifname "lo" rule serves no purpose in your
> "forward" chain and can safely be removed.
thanks. i am mot sure why/where we invented that. probably some
example.
randy
next prev parent reply other threads:[~2026-06-10 1:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 0:10 prefix len confusion Randy Bush
2026-06-10 0:51 ` Kerin Millar
2026-06-10 1:01 ` Randy Bush [this message]
2026-06-10 1:26 ` Kerin Millar
2026-06-10 1:32 ` Randy Bush
2026-06-10 1:38 ` Kerin Millar
2026-06-10 6:20 ` Reindl Harald
2026-06-10 10:09 ` Kerin Millar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m21pef2ope.wl-randy@psg.com \
--to=randy@psg.com \
--cc=kfm@plushkava.net \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.