From owner-freebsd-pf@FreeBSD.ORG Thu Oct 1 13:41:37 2009 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F091106568B for ; Thu, 1 Oct 2009 13:41:37 +0000 (UTC) (envelope-from roberto@keltia.freenix.fr) Received: from keltia.freenix.fr (keltia.freenix.org [IPv6:2001:660:330f:f820:213:72ff:fe15:f44]) by mx1.freebsd.org (Postfix) with ESMTP id C7CAA8FC1D for ; Thu, 1 Oct 2009 13:41:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by keltia.freenix.fr (Postfix/TLS) with ESMTP id F018039F9D for ; Thu, 1 Oct 2009 15:41:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at keltia.freenix.fr Received: from keltia.freenix.fr ([127.0.0.1]) by localhost (keltia.freenix.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B5dy2pYXDT1c for ; Thu, 1 Oct 2009 15:41:35 +0200 (CEST) Received: from rron.freenix.org (unknown [IPv6:2001:660:330f:f820:21b:63ff:fec4:43fc]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: roberto) by keltia.freenix.fr (Postfix/TLS) with ESMTPSA id 5BB7C39E17 for ; Thu, 1 Oct 2009 15:41:35 +0200 (CEST) Date: Thu, 1 Oct 2009 15:41:34 +0200 From: Ollivier Robert To: freebsd-pf@freebsd.org Message-ID: <20091001134134.GD1539@rron.freenix.org> References: <200908230132343.SM01728@W500.Go2France.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200908230132343.SM01728@W500.Go2France.com> X-Operating-System: MacOS X / Macbook Pro - FreeBSD 7.2 / Dell D820 SMP User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: something like bruteblock for pf? X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Oct 2009 13:41:37 -0000 According to Len Conrad: > Anybody know of anything similar for pf? postdandee does such manipulations for Postfix and you can configure it to add/remove pf rules for each address. http://traveler.com.br/blogs/ze/postdandee/ ----- ... my $BLOCKHOSTCOMMAND = 'pfctl -qt blackhole -Tadd $offendingHost 2>\&1 > /dev/null'; my $RELEASEHOSTCOMMAND = 'pfctl -qt blackhole -Tdelete $offendingHost 2>\&1 > /dev/null'; # $ROUTECHECKCOMMAND : # the command you'd like to use when checking for existing routes # postdandee will not try to add a route over an existing one my $ROUTECHECKCOMMAND = 'pfctl -qt blackhole -Tshow'; ... ----- -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr In memoriam to Ondine : http://ondine.keltia.net/