From owner-freebsd-pf@FreeBSD.ORG Mon Jun 1 21:17:23 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 21E921065670 for ; Mon, 1 Jun 2009 21:17:23 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id A8C518FC0C for ; Mon, 1 Jun 2009 21:17:22 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: by ewy8 with SMTP id 8so4701383ewy.43 for ; Mon, 01 Jun 2009 14:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=iO395PY+KRoHFZTxXkSkrvSM8LLOPFG5MwBW4NenGpA=; b=YOWJVwTmH79O1YYBdgfOnxC+6H9KTmGGC5O4g8fSdWibii23wleYf6iMCpoJ5jCHqH VvkIOemF0uVrVTf24qDe+ZhI1QbO5C7TjDdGtZhJFN8KHRGltHpNFVjv9SO+KhImf1No bzQDLWeI+XLjTbjgLI8ZQTOQa1j15BolZVuRo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WnTjJ7IWBUAOaykLgGGO4LcamwJzj2ar6DZ6i/+oJEd4kMjMsWMMsXnj4hWZ9g5mn8 n4cXQBDwsWP6pKlaS6huutDgl4mvqN/xy8YTCt6BoLfl1BdsFV/+IDh0m+/4Gnd23xCl 4m8r9PhA6QpCwTQuz+Sc/0TFFOZ2GVrc3KXs4= MIME-Version: 1.0 Received: by 10.216.10.73 with SMTP id 51mr1921635weu.167.1243891041481; Mon, 01 Jun 2009 14:17:21 -0700 (PDT) In-Reply-To: <4A2415EF.1070206@cirp.usp.br> References: <4A2415EF.1070206@cirp.usp.br> Date: Mon, 1 Jun 2009 16:17:21 -0500 Message-ID: From: Espartano To: aftaha@cirp.usp.br Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-pf@freebsd.org Subject: Re: Connect to port 5432 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: Mon, 01 Jun 2009 21:17:23 -0000 2009/6/1 Ali Faiez Taha : > =A0 =A0 =A0 =A0Dear Sirs. > > What I need to redirect connections from any Internet valid IP and port 5= 432 to one intranet server running (PostgreSQL Database) on > 5432 port ? > I am using =A0FreeBSD 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 54= 32 -j DNAT --to-destination 192.168.2.253:5432 > > > thanks a lot > Maybe you have to see this page: http://www.openbsd.org/faq/pf/rdr.html --=20 "Linux is for people who hate Windows, BSD is for people who love UNIX". "Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing." Sent from Veracruz, Ver, Mexico