From owner-freebsd-questions Wed Jan 24 5:34:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from news.lucky.net (news.lucky.net [193.193.193.102]) by hub.freebsd.org (Postfix) with ESMTP id A395237B402 for ; Wed, 24 Jan 2001 05:34:06 -0800 (PST) Received: (from mail@localhost) by news.lucky.net (8.Who.Cares/8.Who.Cares) id PNC02639 for freebsd-questions@freebsd.org; Wed, 24 Jan 2001 15:34:02 +0200 (envelope-from mccloud@vimas.com) From: "Andrey Voitenkov" To: freebsd-questions@freebsd.org Subject: Re: ipfw question Date: Wed, 24 Jan 2001 15:06:13 +0200 Organization: Unknown Message-ID: <94mk02$1oi$1@news.lucky.net> References: X-Trace: news.lucky.net 980341571 1810 193.193.200.206 (24 Jan 2001 13:06:11 GMT) X-Complaints-To: usenet@news.lucky.net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG HI, Andre' Try to use natd daemon with -redirect_port option. "Andre' van Schalkwyk" wrote in message news:Pine.LNX.4.10.10101232159210.25359-100000@femail.ddsecurity.co.za... > > hi, > i have a freebsd box that is sitting on the outside of the network. the > freebsd box has two network interfaces. one interface on the internet side > with a ip of 196.38.x.x and the other interface with an ip of 10.0.0.1. > the freebsd box is running squid, exim and apache with ipfw enabled. all > the webpages are hosted on the the fbsd box and works well as can only be > expected from apache. the problem is, there is a website running on a > winNT machine on LAN. the machine has an ip of 10.0.0.2. the page has to > run on the winNT machine. people from the outside (internet) must be able > to see this webpage. > > i was thinking in the lines of using ipfw to redirect all data going to > 196.38.x.x :70 to 10.0.0.2:80. > these are the commands i've tried useing. > > ipfw add 600 fwd 10.0.0.2,80 tcp from any to 196.38.x.x 70 > ipfw add 600 fwd 10.0.0.2,80 tcp from any to 196.38.x.x 70 via fxp0 > > i've also made sure that all packets are allowed to 196.38.x.x,10.0.0.2 > and 127.0.0.1 > > i don't know what to do any more. > > i have had a look at apache's reverse proxy, but that is even more > confusing than ipfw :) > > > any help would greatly be appreciated. > > thanks > > Andre' > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message