Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Nov 2003 19:30:43 -0800
From:      Chip <chip@wiegand.org>
To:        Chris Hill <chris@monochrome.org>
Cc:        FreeBSD Questions List <questions@freebsd.org>
Subject:   Re: Divert port 80 to internal server
Message-ID:  <3FA5CBE3.1090500@wiegand.org>
In-Reply-To: <20031102191139.F40186-100000@frambozen.monochrome.org>
References:  <20031102191139.F40186-100000@frambozen.monochrome.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Chris Hill wrote:
<snip>
> Any idea of a useable ipfw rule that will work for this application?

Best let natd.conf handle the redirect, like this (I have an old fbsd4.0 
box) -

use_sockets yes
port 8668
alias_address outside.nic.address
redirect_port tcp 192.168.1.10:80 80

192.168.1.10 is the inside web server ip address. Change it to whatever 
yours is. Alias is the nic facing the internet on the firewall box. 
Change it accordingly.
Your rc.firewall (whatever you called the rules file) should have the 
lines in it to read the natd.conf file before loading the firewall rules.
Hope that helps,
Chip

> Thanks in advance.
> 
> --
> Chris Hill               chris@monochrome.org
> **                     [ Busy Expunging <|> ]
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> .
> 




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