From owner-freebsd-isp Wed Dec 19 11:20:57 2001 Delivered-To: freebsd-isp@freebsd.org Received: from thor.ghim.org (thor.ghim.org [209.249.182.115]) by hub.freebsd.org (Postfix) with ESMTP id 9479837B419 for ; Wed, 19 Dec 2001 11:20:48 -0800 (PST) Received: from electra (electra.nexus [192.168.1.126]) by thor.ghim.org (8.11.3/8.11.3) with SMTP id fBJJKOc03335; Wed, 19 Dec 2001 19:20:24 GMT Received: by electra (sSMTP sendmail emulation); Wed, 19 Dec 2001 19:20:24 +0000 Date: Wed, 19 Dec 2001 19:20:24 +0000 From: George Lewis To: Matiss Elsbergs Cc: freebsd-isp@FreeBSD.ORG Subject: Re: forwarding surfers.. Message-ID: <20011219192023.D30870@schvin.net> References: <007c01c188ba$cb94dd70$0300a8c0@weird> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <007c01c188ba$cb94dd70$0300a8c0@weird>; from matiss@astranet.lv on Wed, Dec 19, 2001 at 08:27:13PM +0200 X-PGP-Fingerprint: 3D79 875A 9E33 E7BE E868 7EFA A703 5DDA A7C0 9E2C Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Matiss Elsbergs (matiss@astranet.lv) wrote: > Hello there, fellow owners of many system processes.. > > Explanation: > > I have a web server, which must display a one page to one network [ let's > say network A ], and the other one - to all other internet. And, it must be > done like that: some application [ perhaps ipfw ] checks if the IP belongs > to network A. If yes, then nothing's altered, and it goes to web page > sitting right there on let's say 159.148.108.4. If it belongs to other > Internet, [ which accesses the page by the same URL ], it goes to let's say > 159.148.108.5. Is it possible? Matiss, You'd probably be best off to let an HTTP server like apache make the distinctions, you can setup rules based on the inbound IP... that should do quite nicely for what you need. If you are not using Apache, other HTTP servers may have similar features, or you could always put an Apache server with mod_proxy/mod_rewrite in front of the "real" HTTP server. HTH, George > > > > With best regards - > Matiss Elsbergs, > Astranet IS Hostmaster > +371 6435911 > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message -- http://schvin.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message