From owner-freebsd-questions Tue Jan 19 16:52:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA03235 for freebsd-questions-outgoing; Tue, 19 Jan 1999 16:52:36 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pop2-rme.xtra.co.nz (pop3.xtra.co.nz [203.96.92.7] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA03224 for ; Tue, 19 Jan 1999 16:52:32 -0800 (PST) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker ([203.96.56.57]) by mta2-rme.xtra.co.nz (InterMail v04.00.02.07 201-227-108) with SMTP id <19990120001929.JVLT678125.mta2-rme@wocker>; Wed, 20 Jan 1999 13:19:29 +1300 From: "Dan Langille" Organization: The FreeBSD Diary To: Mujtaba Ali Date: Wed, 20 Jan 1999 13:19:23 +1300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Redirecting port 80? Reply-to: junkmale@xtra.co.nz CC: In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.01d) Message-Id: <19990120001929.JVLT678125.mta2-rme@wocker> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 19 Jan 99, at 18:49, Mujtaba Ali wrote: > Hello there, > > I tried searching through the mailing lists but couldn't get a > concrete answer. Basically I have a machine with a public IP, say > x.x.x.x, and I need to redirect all request on port 80 of that machine to > an internal private IP, say y.y.y.y, that is actually running the web > server on port 80. Then I need y.y.y.y to send back the information to > x.x.x.x which will send the information back to the original requester. > Any ideas? I heard this might come under tunneling. Basically I want the > requester to be "fooled" in thinking that the web server is running on > x.x.x.x when in reality it's actually behind the firewall on y.y.y.y. Easily done if you are using natd, which I assume you are. It can also be done with ipfilter. if you are using natd, try the following with natd: redirect_port tcp y.y.y.y:80 redirect_port udp y.y.y.y:80 That should do it. If you are using ipfilter, lemme know and I'll figure that one out for you. The above was taken from http://www.freebsddiary.com/freebsd/http.htm cheers. -- Dan Langille The FreeBSD Diary http://www.FreeBSDDiary.com/freebsd To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message