From owner-freebsd-pf@FreeBSD.ORG Fri May 6 13:58:22 2011 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 6A5641065674 for ; Fri, 6 May 2011 13:58:22 +0000 (UTC) (envelope-from aftaha@cirp.usp.br) Received: from quartzo.cirp.usp.br (quartzo.cirp.usp.br [143.107.200.45]) by mx1.freebsd.org (Postfix) with ESMTP id 235698FC16 for ; Fri, 6 May 2011 13:58:21 +0000 (UTC) Received: from granito2.cirp.usp.br (granito2.cirp.usp.br [143.107.200.101]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by quartzo.cirp.usp.br (Postfix) with ESMTPSA id 0A347330840 for ; Fri, 6 May 2011 10:39:21 -0300 (BRT) Message-ID: <4DC3FA08.6020700@cirp.usp.br> Date: Fri, 06 May 2011 10:39:20 -0300 From: Ali Faiez Taha Organization: Centro de =?ISO-8859-1?Q?Inform=E1tica_-_USP_-_Ribe?= =?ISO-8859-1?Q?ir=E3o_Preto?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100408 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-pf@freebsd.org X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: update rules X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aftaha@cirp.usp.br 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: Fri, 06 May 2011 13:58:22 -0000 I am trying to set up a PF in OpenBSD 4.9 and using old rules from OpenBSD 3.9 There are some SYNTAX ERRORS : no rdr on $ext_if inet proto tcp from to any rdr on $ext_if inet proto tcp from to any port smtp -> 127.0.0.1 port spamd rdr on $ext_if inet proto tcp from ! to any port smtp -> 127.0.0.1 port spamd rdr on $ext_if inet proto tcp from any to any port 21 -> $ftp_server port 21 pass in on $ext_if route-to lo0 inet proto tcp from any to 127.0.0.1 port spamd I am new on PF and need some help to solve this problem. Some book to understand the changes in PF ? Thanks a lot.