From owner-freebsd-pf@FreeBSD.ORG Tue Nov 28 21:45:21 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1B8B16A403 for ; Tue, 28 Nov 2006 21:45:21 +0000 (UTC) (envelope-from jsimola@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8491343CAA for ; Tue, 28 Nov 2006 21:45:11 +0000 (GMT) (envelope-from jsimola@gmail.com) Received: by wr-out-0506.google.com with SMTP id i28so524726wra for ; Tue, 28 Nov 2006 13:45:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JZP0d5C5PEO6K0/swydkOHsrEewyHncNREfDv5aPrZ/0WoRWD/eQwuajAhEbN+EkqzHk+Ji5baEdywMYq1Fs2zSu1n36OGsl+TVf4aZE/kKqUPHaagH3+qtDarsavzvW77aMxojhGukv+LLk6XgkiIFM2e6qb9ryUXZdLE9q6t8= Received: by 10.78.128.11 with SMTP id a11mr1396653hud.1164750314622; Tue, 28 Nov 2006 13:45:14 -0800 (PST) Received: by 10.78.153.10 with HTTP; Tue, 28 Nov 2006 13:45:14 -0800 (PST) Message-ID: <8eea04080611281345m5a2587a8i8acfe5a0d219a8f3@mail.gmail.com> Date: Tue, 28 Nov 2006 13:45:14 -0800 From: "Jon Simola" To: "Charles Lacroix" In-Reply-To: <200611281632.05280.clacroix@cegep-ste-foy.qc.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200611281632.05280.clacroix@cegep-ste-foy.qc.ca> Cc: FreeBSD Subject: Re: Question about 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: Tue, 28 Nov 2006 21:45:22 -0000 On 11/28/06, Charles Lacroix wrote: > table {} persist > block quick on $ext_if proto tcp from to $external_addr port 23 > pass in on $ext_if proto tcp to $external_addr port 23 flags S/SA modulate \ > state (max-src-conn-rate 5/60, overload flush global) > > 1. I wanted to do is make sure the ip's get unbanned after let's say 30 > minutes or so. You need an external utility, http://expiretable.fnord.se/ is one I've looked at, there are a couple other similar ones. > 2. When my ip gets into badhosts, most of my current ssh connections hang. > it's kinda strange since my block rule is specific on the telnet port. That's exactly what you've asked pf to do with "flush global" -- Jon