From owner-freebsd-pf@FreeBSD.ORG Thu Nov 23 18:59:23 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 63E2516A403 for ; Thu, 23 Nov 2006 18:59:23 +0000 (UTC) (envelope-from jsimola@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24DD543D5A for ; Thu, 23 Nov 2006 18:58:45 +0000 (GMT) (envelope-from jsimola@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so489920uge for ; Thu, 23 Nov 2006 10:59:21 -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=cROseY/JDU5Px8eq34/EhZpDtUE/G796vCKuhtdvtH7WLE0DVVzZHgeHxcWbU6+WGS9xkHdHOLq+RaLchZcIuFv6nFDAGyBuJNpn76SSewA5XbiImthIQHBhtA/z1W/8xLacRFMTrRq2aZ0WiZh2Xv1E41+Qg2OFhIKW+Xr32ts= Received: by 10.78.117.10 with SMTP id p10mr9404809huc.1164308360686; Thu, 23 Nov 2006 10:59:20 -0800 (PST) Received: by 10.78.153.10 with HTTP; Thu, 23 Nov 2006 10:59:20 -0800 (PST) Message-ID: <8eea04080611231059x6e229d09lfd3f25965511d7ee@mail.gmail.com> Date: Thu, 23 Nov 2006 10:59:20 -0800 From: "Jon Simola" To: "John Smith" In-Reply-To: <499c70c0611231047k84747frf91def08d509cba6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <499c70c0611231047k84747frf91def08d509cba6@mail.gmail.com> Cc: freebsd-pf@freebsd.org Subject: Re: rate limit with pf instead of IPFW 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, 23 Nov 2006 18:59:23 -0000 On 11/23/06, John Smith wrote: > Greetings BPF gurus! PF? bpf is different and has little to do with firewalling. > Could someone please give me full example to setup > limit {src-addr | src-port | dst-addr | dst-port} to do what IPFW > 01000 allow tcp from any to me setup limit src-addr 5 currently does I use something like this: pass in on $ext_if proto tcp from any to $ext_if port smtp flags S/SA keep state (source-track rule, mac-src-states 5) -- Jon