From owner-freebsd-pf@FreeBSD.ORG Tue Dec 14 21:58:01 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 DE90B16A4CE for ; Tue, 14 Dec 2004 21:58:00 +0000 (GMT) Received: from hotmail.com (bay103-dav16.bay103.hotmail.com [65.54.174.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8386F43D5A for ; Tue, 14 Dec 2004 21:58:00 +0000 (GMT) (envelope-from zeno_lee@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 14 Dec 2004 13:58:00 -0800 Message-ID: Received: from 68.236.191.168 by BAY103-DAV16.phx.gbl with DAV; Tue, 14 Dec 2004 21:57:00 +0000 X-Originating-IP: [68.236.191.168] X-Originating-Email: [zeno_lee@hotmail.com] X-Sender: zeno_lee@hotmail.com From: "Zeno Lee" To: References: <200412141647.01789.pathiaki@pathiaki.com> Date: Tue, 14 Dec 2004 16:57:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-OriginalArrivalTime: 14 Dec 2004 21:58:00.0346 (UTC) FILETIME=[FA422FA0:01C4E227] 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 21:58:01 -0000 That's a good try, however, I had gateway_enabled="YES" # sysctl -a |grep forward net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 ----- Original Message ----- From: "Paul J. Pathiakis" To: Sent: Tuesday, December 14, 2004 4:47 PM Subject: Re: NAT works but port forwarding does not > Hi, > > just getting back into the networking side of things, but did you turn on > packet > forwarding? (it should be on if you turned on gateway enable <-I think) > Do a: > sysctl -a | grep forward > do you get a "1". > > I may be way off, but I am trying to help. :-) > > P. > > > > On Tuesday 14 December 2004 16:34, Zeno Lee wrote: >> I am just starting off with PF. I had it compiled into the kernel in 5.3 >> stable. I have not setup any rules yet. I'm just trying to set up NAT >> and >> forwarding. >> >> 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. >> >> Am I missing anything here? >> _______________________________________________ >> freebsd-pf@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-pf >> To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" >> > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" >