From owner-freebsd-pf@FreeBSD.ORG Mon Jun 1 21:11:20 2009 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 3DC4210656A8 for ; Mon, 1 Jun 2009 21:11:20 +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 F1F518FC14 for ; Mon, 1 Jun 2009 21:11:19 +0000 (UTC) (envelope-from aftaha@cirp.usp.br) Received: from granito2.cirp.usp.br (granito2.cirp.usp.br [143.107.200.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by quartzo.cirp.usp.br (Postfix) with ESMTPSA id 506F733083F for ; Mon, 1 Jun 2009 17:52:41 -0300 (BRT) Message-ID: <4A2415EF.1070206@cirp.usp.br> Date: Mon, 01 Jun 2009 17:54:55 +0000 From: Ali Faiez Taha Organization: Centro de =?ISO-8859-1?Q?Inform=E1tica_-_USP_-_Ribe?= =?ISO-8859-1?Q?ir=E3o_Preto?= User-Agent: Thunderbird 2.0.0.18 (X11/20090129) MIME-Version: 1.0 To: freebsd-pf@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Connect to port 5432 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: Mon, 01 Jun 2009 21:11:20 -0000 Dear Sirs. What I need to redirect connections from any Internet valid IP and port 5432 to one intranet server running (PostgreSQL Database) on 5432 port ? I am using FreeBSD 7.2 with PF firewall. The rule on Linux iptables now is: iptables -t nat -A PREROUTING -p tcp -s 0/0 -d AAA.BBB.CCC.DDD --dport 5432 -j DNAT --to-destination 192.168.2.253:5432 thanks a lot