From owner-freebsd-ports@freebsd.org Wed Oct 18 06:21:12 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E272BE2C2F6 for ; Wed, 18 Oct 2017 06:21:12 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B70046C64E for ; Wed, 18 Oct 2017 06:21:12 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id B6512E2C2F5; Wed, 18 Oct 2017 06:21:12 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5F4DE2C2F3 for ; Wed, 18 Oct 2017 06:21:12 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 36D356C64A for ; Wed, 18 Oct 2017 06:21:12 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id 75so4518644lfx.1 for ; Tue, 17 Oct 2017 23:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fEhiuwnDZ0HHL6L+WMAulumeXJHCvaFDoOjl3lysL/0=; b=bapMFZV4rKyeveiegykYHp5aoB0ot8tIIMOzmV8HN/iYAH6znonBGhZHRwj/8U5z8J 6EVsqzaajTT87MNXH2oUGnkKyOQehOFG8LFWGAkb2K3FRkqnKNb/bxrxhULMlnfOCmdP FZRcxQFSFplO/JoWSd69nN3LP3iX/Wk82jbrmtAosKE7E61oe6AyXdJXe7ev5sSCsFge pGVwSV4I/ifZsfBumJzxVJuRrphGRHFZp+rEqV9bJMCYFj9TE47qv4G+wJ753E9SXNrF 7liAfwiLHfqs9uHqlnho0HzkqwdtH5OdXWBqdNnRRZknR/QtLiBTQskdgE7zVb/Oo1Vy pqRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fEhiuwnDZ0HHL6L+WMAulumeXJHCvaFDoOjl3lysL/0=; b=so/q0nSZrmdPUIJRO41rBX6G0TO0G4Gaei+eZptYJp5Wme89gSZVhrRMy6paURv3u1 oRIg+QUUJE5WC3CX4PrJ3JUDQhSQcIOEwfPUuOwXKKIf+ICGJaD244ubeSuw4Z3imMCZ Jg5USWQVOuGH5+9x/JMly3GiGVbNyXpPwEIZCvDPBMOPpUb5Bw+kx1s4znOOUro/ygOG ICyOPQJDxwYnZ3dujQEk4GuQnMdrD/A1t/4TC8nOi02cfK75SKRR1zmJTW0n/RlvXflb bbR9w7J5wS6cUYlCDlPEhGdpg+/Y16ABLsC94mIC/BJqK8+6+eLmSetLRoTeCqzDt+WB Knug== X-Gm-Message-State: AMCzsaVtdiaVjMVpZuMSAOe9xHdNTEyEm2R+h9e0VA0n2iXMZfW5Pq01 28eOqkedxKVEB+m0IyMl4siEd42R X-Google-Smtp-Source: ABhQp+QDqQe18n/MPwNOfqeBtMM+TRddqoW5Sg2gDbM0AonZCzs0B57SJYlXPqbtqPeoh6iGKbweog== X-Received: by 10.46.86.195 with SMTP id k64mr1884113lje.81.1508307670248; Tue, 17 Oct 2017 23:21:10 -0700 (PDT) Received: from alex.super (stone.g-service.ru. [84.22.141.217]) by smtp.googlemail.com with ESMTPSA id 129sm2331736ljj.9.2017.10.17.23.21.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Oct 2017 23:21:09 -0700 (PDT) Subject: Re: FreeBSD Port: py27-fail2ban-0.10.1 To: Matthias Fechner , theis@gmx.at Cc: ports@FreeBSD.org References: <49fbc280-f598-6734-0bdb-dfd24de4fa56@gmail.com> From: "Alex V. Petrov" Message-ID: <9b7084e8-fd66-4512-aa76-836e1bc30b7d@gmail.com> Date: Wed, 18 Oct 2017 13:21:07 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2017 06:21:13 -0000 Yes, it works! That's what you need. Thank you all. 18.10.2017 13:02, Matthias Fechner пишет: > Hi Alex, > > Am 17.10.17 um 14:20 schrieb Alex V. Petrov: >> Need a working sample for the new version of the port for pf. > > I have it working now. > Put into your pf.conf where the rules from fail2ban be added the line: > # Anchor for fail2ban > anchor "f2b/*" > > In your jail.local: > [DEFAULT] > banaction = pf[actiontype=] > > The rest you can keep on standard. Just add and enable your jails into > fail2ban that should run. > This configuration will block all connections from the IP. If you want > to only specific on some ports you can use another actiontype, but there > is another bug that will cause this not to work in 0.10.1. > > > Gruß, > Matthias > -- ----- Alex.