From owner-freebsd-pf@FreeBSD.ORG Tue Dec 14 22:58:07 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E64C16A4CE for ; Tue, 14 Dec 2004 22:58:07 +0000 (GMT) Received: from smtp.uol.com.br (smtpout1.uol.com.br [200.221.4.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC2EA43D64 for ; Tue, 14 Dec 2004 22:58:05 +0000 (GMT) (envelope-from antonio.torres@newspace.net.br) Received: from thinkpad (200-221-52-129.speedy.speeduol.com.br [200.221.52.129]) by scorpion1.uol.com.br (Postfix) with SMTP id 519109FB1 for ; Tue, 14 Dec 2004 20:58:04 -0200 (BRST) Date: Tue, 14 Dec 2004 20:58:09 -0200 From: Antonio Torres To: freebsd-pf@freebsd.org Message-Id: <20041214205809.5bc3564f.antonio.torres@newspace.net.br> In-Reply-To: References: <200412141647.01789.pathiaki@pathiaki.com> X-Mailer: Sylpheed version 1.0.0beta3 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: NAT works but port forwarding does not X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 14 Dec 2004 22:58:07 -0000 On Tue, 14 Dec 2004 17:14:08 -0500 "Zeno Lee" wrote: ... > >> > My network setup > >> > > >> > Internet <----> em0 | FreeBSD | em1 <-----> LAN > >> > > >> > > >> > my pf.conf file only has: > >> > > >> > ext_if="em0" > >> > int_if="em1" > >> > webserver="192.168.1.54" > >> > > >> > nat on $ext_if from $int_if:network to any -> ($ext_if) > >> > rdr on $ext_if from any to any port 80 -> $webserver > >> > > >> > > >> > NAT works, however, I cannot get port forwarding to work. I am testing > >> > it > >> > vial a remote computer on the internet whose packets only come through > >> > em0 try a full sintax: rdr on $ext_if proto tcp from any to any port 80 -> $webserver port 80 works fine to me. Antonio Torres antonio.torres@newspace.net.br