tomcat on port 80 as user www:ww

Joshua Goodall joshua at roughtrade.net
Mon May 26 21:26:57 PDT 2003


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 at roughtrade.net                                       - Ana Susanj


More information about the freebsd-java mailing list