From nobody Mon Apr 17 20:51:59 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q0fPP3s9xz459y2 for ; Mon, 17 Apr 2023 20:52:09 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0fPN1SYyz46qX for ; Mon, 17 Apr 2023 20:52:08 +0000 (UTC) (envelope-from pete@nomadlogic.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=RxpevI5G; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org; dmarc=pass (policy=quarantine) header.from=nomadlogic.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1681764721; 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=EAistNIrM/A/tZVjEW4bvXnbgmFrMhFeeJDEPD0CoEE=; b=RxpevI5GXNwbP4MSfkwQVK68z8OghH8iAedCbihakUeYF/jmySLFF32z4Fi0yVtlCShLj0 nuScBBEAFCTuQeGRkiFoOBiM1qLipge46wzYm3LaPvSAL+ueNwZmV1bewMtTTolwGl+hif igCpLFNTovoqCwV5pX+xlc2OgW7PNIU= Received: from [192.168.1.160] (cpe-24-24-168-214.socal.res.rr.com [24.24.168.214]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id e6c01b09 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 17 Apr 2023 20:52:00 +0000 (UTC) Message-ID: Date: Mon, 17 Apr 2023 13:51:59 -0700 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Blacklistd Issues Content-Language: en-US To: questions@freebsd.org References: From: Pete Wright In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[nomadlogic.org:+]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Q0fPN1SYyz46qX X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 4/17/23 13:38, Doug Hardie wrote: > I have been implementing blacklistd.  It works fine with postfix and > my web server.  However, sshd is not working.  I have enabled the > UseBlacklistd configuration line.  However, no amount of invalid > id/passwords generate an entry in either blacklistd or pf.  Running > ktrace with invalid web requests on blacklistd shows that it obtains > the endpoints properly and calls the helper to do the work.  However, > when sending invalid id/passwords via ssh, blacklistd does receive the > proper packets from sshd and it obtains the endpoints, but just ends. >  It never calls the helper.  I have the entry in blacklistd.conf for > that port, and blacklistd has been restarted many times.  Any ideas > what I need to do to get blacklistd to record the calls.  There is no > table in pf for that port.  However, it appears there needs to be at > least one call to make the table appear. > > -- Doug > shot in the dark - did you set: UseBlacklist yes in /etc/ssh/sshd_conf then restart sshd? -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA