From owner-freebsd-pf@FreeBSD.ORG Thu Nov 23 19:01:14 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 576B716A40F for ; Thu, 23 Nov 2006 19:01:14 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4159343D46 for ; Thu, 23 Nov 2006 19:00:36 +0000 (GMT) (envelope-from almarrie@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so490282uge for ; Thu, 23 Nov 2006 11:01:12 -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=BIYIwZAImHthZHEC9ScluS6KLu/xtIq8Xz9lRnCCDgWO35yaiQX8dswgMCTdneCBLriqIorwRp27zUbRyBH4aL1nmadFcJ2k9wHvNnixvJcrt8VK7juhMzuAaDZrZyXsg0K+DbVGX/GT77uUulKZd68mymobKsfTSOh29KMyUZw= Received: by 10.67.101.10 with SMTP id d10mr5521154ugm.1164308471526; Thu, 23 Nov 2006 11:01:11 -0800 (PST) Received: by 10.66.255.10 with HTTP; Thu, 23 Nov 2006 11:01:10 -0800 (PST) Message-ID: <499c70c0611231101k68429053l40ec68712ca66263@mail.gmail.com> Date: Thu, 23 Nov 2006 22:01:10 +0300 From: "John Smith" To: "Jon Simola" In-Reply-To: <8eea04080611231059x6e229d09lfd3f25965511d7ee@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> <8eea04080611231059x6e229d09lfd3f25965511d7ee@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 19:01:14 -0000 On 11/23/06, Jon Simola wrote: > 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) > > -- Greetings Jon, Could you please post your pf.conf with the rules so I can use it as a guide? Thank you, -J > Jon >