Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 19:20:24 +0000
From:      George Lewis <schvin@schvin.net>
To:        Matiss Elsbergs <matiss@astranet.lv>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: forwarding surfers..
Message-ID:  <20011219192023.D30870@schvin.net>
In-Reply-To: <007c01c188ba$cb94dd70$0300a8c0@weird>; from matiss@astranet.lv on Wed, Dec 19, 2001 at 08:27:13PM %2B0200
References:  <007c01c188ba$cb94dd70$0300a8c0@weird>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011219192023.D30870>