From owner-freebsd-java@FreeBSD.ORG Tue May 27 01:05:42 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CD4137B401 for ; Tue, 27 May 2003 01:05:41 -0700 (PDT) Received: from mail.die.supsi.ch (mail.die.supsi.ch [193.5.153.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB9143F93 for ; Tue, 27 May 2003 01:05:36 -0700 (PDT) (envelope-from nunnari@die.supsi.ch) Received: from die.supsi.ch (pcm2022.die.supsi.ch [193.5.152.22]) by mail.die.supsi.ch (8.11.6/8.11.6) with ESMTP id h4R85IU03448; Tue, 27 May 2003 10:05:18 +0200 Message-ID: <3ED31C3D.9040105@die.supsi.ch> Date: Tue, 27 May 2003 10:05:17 +0200 From: Roberto Nunnari User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joshua Goodall , Marc van Kempen References: <3ED20627.6090308@die.supsi.ch> <3ED21473.9020506@bowtie.nl> <20030527042654.GB538@roughtrade.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-java@freebsd.org Subject: Re: tomcat on port 80 as user www:ww X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 08:05:42 -0000 Joshua and Marc, Thank you very much for your helpful hints. I'm now running tomcat as user www:www on port 8180 and accessing it through port 80! Great! Best regards. Joshua Goodall wrote: > On Mon, May 26, 2003 at 03:19:47PM +0200, Marc van Kempen wrote: > >>Just run a port forwarder from 80 (ipfw can do it too) to 8080 (or >>whereever Tomcat lives). That way you don't have to trust it at all. > > > worked example: let's say Tomcat is running on 127.0.0.1:8080 > and your outside IP is 192.0.34.166, then > > # ipfw add fwd 127.0.0.1,8080 tcp from any to 192.0.34.166 80 > > should do the trick. You will need > options IPFIREWALL > options IPFIREWALL_FORWARD > in your kernel config. > > J > -- Roberto Nunnari -software engineer- mailto:nunnari@die.supsi.ch Scuola Universitaria Professionale della Svizzera Italiana Dipartimento di Informatica e Elettronica http://www.die.supsi.ch SUPSI-DIE Via Cantonale tel: +41-91-6108561 6928 Manno """ fax: +41-91-6108570 Switzerland (o o) =======================oOO==(_)==OOo========================