From owner-freebsd-questions@FreeBSD.ORG Fri Nov 30 15:39:30 2007 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 CF19816A419 for ; Fri, 30 Nov 2007 15:39:30 +0000 (UTC) (envelope-from bitabyss@gmail.com) Received: from cartman.xxiii.com (cartman.xxiii.com [208.62.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 779A913C4D5 for ; Fri, 30 Nov 2007 15:39:30 +0000 (UTC) (envelope-from bitabyss@gmail.com) Received: from [172.23.23.190] (lan23.xxiii.com [208.62.177.50]) by cartman.xxiii.com (8.13.8/8.13.8) with ESMTP id lAUFdTtw013876 for ; Fri, 30 Nov 2007 10:39:29 -0500 (EST) (envelope-from bitabyss@gmail.com) Message-ID: <47502EB2.4010007@gmail.com> Date: Fri, 30 Nov 2007 10:39:30 -0500 From: Rob User-Agent: Thunderbird 1.5.0.13 (Windows/20070809) MIME-Version: 1.0 To: FreeBSD Questions References: <49eaeb190711300559u34557d6bha38a72d84a65caca@mail.gmail.com> In-Reply-To: <49eaeb190711300559u34557d6bha38a72d84a65caca@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Firewall Redirect 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: Fri, 30 Nov 2007 15:39:30 -0000 Lucas Neves Martins wrote: > Redirect requests from the port 80, to the port 8082. - for apache tomcat. > [[snip]] > 422 ipfw add 950 divert 8082 tcp from any to any 80 via em0 > 425 ipfw add 950 divert 8082 tcp from any to any 80 via em0 > 428 ipfw add 950 divert 80 tcp from any to any 8082 via em0 It's not as "clean" as doing it with ipfw, but there a port redirect utilty in ports/net/redir that might do might accomplish what you want. -RW