From owner-freebsd-current@FreeBSD.ORG Tue Nov 14 03:31:48 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BD0516A4B3 for ; Tue, 14 Nov 2006 03:31:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF96F43D46 for ; Tue, 14 Nov 2006 03:31:47 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kAE3Vkvk036308; Mon, 13 Nov 2006 21:31:46 -0600 (CST) (envelope-from dan) Date: Mon, 13 Nov 2006 21:31:46 -0600 From: Dan Nelson To: fulan Peng Message-ID: <20061114033146.GA61297@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-current@freebsd.org Subject: Re: Please help with ipfw to redirect port 443 to 8892! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 03:31:48 -0000 In the last episode (Nov 13), fulan Peng said: > I have recompiled the CURRENT and 6.1 kernel and added IPFIREWALL. > All I want to do is to redirect incoming 443 request to 8892 which is > listening and I have tested out https://breakevilaxis.org:8892 > working. > I added one line in the /etc/rc.firewall file with > ipfw add 400 fwd 66.29.75.29,443 tcp from any to any 8892 in via "rl0" keep-state You probably want "fwd 66.29.75.29,8892 tcp from any to any 443" here. The command you have would redirect port 8892 to port 443. -- Dan Nelson dnelson@allantgroup.com