From owner-freebsd-questions@FreeBSD.ORG Tue Nov 25 13:38:11 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 270861065678 for ; Tue, 25 Nov 2008 13:38:11 +0000 (UTC) (envelope-from nino80@gmail.com) Received: from mail-gx0-f12.google.com (mail-gx0-f12.google.com [209.85.217.12]) by mx1.freebsd.org (Postfix) with ESMTP id DCC698FC3E for ; Tue, 25 Nov 2008 13:38:10 +0000 (UTC) (envelope-from nino80@gmail.com) Received: by gxk5 with SMTP id 5so289728gxk.19 for ; Tue, 25 Nov 2008 05:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=QeeKvv5i665WsC4q4pdH/yDsBuOWEpCaqO4kgON/P94=; b=Q3XLHpWOcdbzV5qBW39rgzj3jWpnzXaNh8DqlLsSGrMlNuhPP611iIXPgtjxcy73TR CvmoQNYxYvpbYhV0KLe4vvgMXOlHJBRgbp4zq1fy02pnSkkRNcwQAQ9CGaULbr7XLI6A g/EuvIm2u4CfVG2+QtUTvQPoGBz2G33lRCMYE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=se+bMMJPBbIm3Ww9DXMo//6vb7dtC7u8ozNmA2yU0+Tqgw0mGk+svjWaYiqzgMQHDE maNADVi91rrGtOwpxfKe+BxmSEjxePJh9jBb330n5+kiQg+bZ0vSXrB5npFNLcVNgdo1 pgYoX30WgwNOMvdQJsCBoa3xS/mw6xvk2mqpU= Received: by 10.150.133.18 with SMTP id g18mr9195744ybd.142.1227619504854; Tue, 25 Nov 2008 05:25:04 -0800 (PST) Received: by 10.151.131.4 with HTTP; Tue, 25 Nov 2008 05:25:04 -0800 (PST) Message-ID: <92bcbda50811250525p48a07f50i59e02a60c7179931@mail.gmail.com> Date: Tue, 25 Nov 2008 14:25:04 +0100 From: "n j" To: on@cs.ait.ac.th In-Reply-To: <20081125132120.p65bo336048kcwo0@wwws.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081125132120.p65bo336048kcwo0@wwws.cs.ait.ac.th> Cc: User Questions Subject: Re: Ipfw forward X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 13:38:11 -0000 > I'd like to have a clarification about the forward command in ipfw. > > From what I read in the man, I understand that on hitting a fwd rule, the > lookup in the routing table will be done according to the IP address in the > fwd rule, and not according to the IP destination address of the packet. > > AM I right? The man page suggests that's correct: "If ipaddr is not a local address, then the port number (if speci- fied) is ignored, and the packet will be forwarded to the remote address, using the route as found in the local routing table for that IP." -- Nino