From owner-freebsd-questions@FreeBSD.ORG Tue Oct 28 06:35:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38EF116A4CE for ; Tue, 28 Oct 2003 06:35:42 -0800 (PST) Received: from cloudburst.umist.ac.uk (cloudburst.umist.ac.uk [130.88.119.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id D02FB43FD7 for ; Tue, 28 Oct 2003 06:35:40 -0800 (PST) (envelope-from lewiz@black.lewiz.org) Received: from lh014.halls.umist.ac.uk ([130.88.163.14] helo=yellow.lewiz.org) by cloudburst.umist.ac.uk with esmtp (Exim 4.24) id 1AEUwd-0002ky-Ny for questions@freebsd.org; Tue, 28 Oct 2003 14:35:39 +0000 Received: from black.lewiz.org ([192.168.0.12]) by mail.lewiz.org with smtp (Exim 4.22) id 1AEUwV-0002GA-Ak for questions@freebsd.org; Tue, 28 Oct 2003 14:35:31 +0000 Received: (nullmailer pid 3424 invoked by uid 4001); Tue, 28 Oct 2003 14:35:31 -0000 Date: Tue, 28 Oct 2003 14:35:31 +0000 From: Lewis Thompson To: FreeBSD-questions Message-ID: <20031028143531.GH288@lewiz.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C94crkcyjafcjHxo" Content-Disposition: inline X-GPG-Fingerprint: 90A4 939E 3847 A3E4 8103 2A48 22DA B428 542F ED3F X-GPG-Info: http://www.westwood.karoo.net/pgpkey / horowitz.surfnet.nl User-Agent: Mutt/1.5.4i X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean Subject: Complicated ipfw/ipf forwarding. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2003 14:35:42 -0000 --C94crkcyjafcjHxo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have a public IP address and a couple of machines sitting behind a FreeBSD router doing NAT. I'm using ipnat and ipf right now (although I used to use natd/ipfw so I don't mind switching -- I started using ipf/ipnat because of an odd problem with 5.1-RELEASE but I'm switching back to 4.9 now) and wondered if it was possible to do forwarding based on DNS. For example Apache is clever enough to support virtual hosts based on the address requested. Is there any way at all to do this for forwarding on the router? For example if I had three CNAMES for the same IP red, pink and blue. Could I have red.foo.bar forwarded to 192.168.0.2, pink.foo.bar forwarded to 192.168.0.3 and say blue.foo.bar go to the local machine (i.e. the router)? Thanks very much, -lewiz. --=20 I was so much older then, I'm younger than that now. --Bob Dylan, 1964. ------------------------------------------------------------------------ -| msn:purple@lewiz.net | jabber:lewiz@jabber.org | url:www.lewiz.org |- --C94crkcyjafcjHxo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/nn6zItq0KFQv7T8RAvIhAJ9hizg3IBi0AdQXGc5x6hRs6kJPewCgqIlN VG9H4Oqz8vSbEXxOLhpr3IU= =qPzv -----END PGP SIGNATURE----- --C94crkcyjafcjHxo--