Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 14:26:54 +1000
From:      Joshua Goodall <joshua@roughtrade.net>
To:        Marc van Kempen <marc@bowtie.nl>
Cc:        freebsd-java@freebsd.org
Subject:   Re: tomcat on port 80 as user www:ww
Message-ID:  <20030527042654.GB538@roughtrade.net>
In-Reply-To: <3ED21473.9020506@bowtie.nl>
References:  <3ED20627.6090308@die.supsi.ch> <3ED21473.9020506@bowtie.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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

-- 
Joshua Goodall                                      "tea makes itself"
joshua@roughtrade.net                                       - Ana Susanj



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030527042654.GB538>