From owner-freebsd-questions Sun Dec 31 2:10: 9 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 02:10:06 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail1.rdc1.il.home.com (mail1.rdc1.il.home.com [24.2.1.76]) by hub.freebsd.org (Postfix) with ESMTP id 5E18F37B400 for ; Sun, 31 Dec 2000 02:10:06 -0800 (PST) Received: from marx.marvic.chum ([24.17.229.11]) by mail1.rdc1.il.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20001231101005.WYGZ11886.mail1.rdc1.il.home.com@marx.marvic.chum> for ; Sun, 31 Dec 2000 02:10:05 -0800 Received: (from vcardona@localhost) by marx.marvic.chum (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id EAA00792 for freebsd-questions@FreeBSD.ORG; Sun, 31 Dec 2000 04:11:14 -0600 Date: Sun, 31 Dec 2000 04:11:13 -0600 From: "Victor R. Cardona" To: FreeBSD Questions Subject: Re: Forwarding a port with IPFilter Message-ID: <20001231041113.A694@home.com> Mail-Followup-To: FreeBSD Questions References: <3302351628.978259927@[192.168.1.1]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3302351628.978259927@[192.168.1.1]>; from frank.sonnemans@euronet.be on Sun, Dec 31, 2000 at 10:52:07AM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Dec 31, 2000 at 10:52:07AM +0100, Frank Sonnemans wrote: > How do I forward port 80 from my Internet gateway to an unroutable address > on my internal network using the ipnat/ipfilter combo. My initial > experiments using the redirect statement, failed. > > > My configuration is as follows: > > Gateway: 192.168.1.2 on ep0 + 217.x.x.x dynamic IP on ed0 > Web server: 192.168.1.1 on ed0 I think this will work. Place the following in your /etc/ipnat.rules file. rdr ed0 0.0.0.0/0 port 80 -> 192.168.1.1 port 80 tcp HTH, Victor Cardona -- GPG Key fingerprint = 62B1 7995 A830 432C 74E8 1337 EDDB E682 3C76 7404 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message