From owner-freebsd-questions Sun Jan 9 23: 9:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from exchange.prism.co.za (exchange.prism.co.za [196.34.63.66]) by hub.freebsd.org (Postfix) with ESMTP id 9F7A115232 for ; Sun, 9 Jan 2000 23:09:52 -0800 (PST) (envelope-from alwyns@littlecruncher.prizm.dhs.org) Received: from littlecruncher.prizm.dhs.org (196.34.63.201 [196.34.63.201]) by exchange.prism.co.za with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id CKVJLPRZ; Mon, 10 Jan 2000 09:00:01 +0200 Received: by littlecruncher.prizm.dhs.org (Postfix, from userid 1001) id 58358B9; Mon, 10 Jan 2000 08:59:08 +0200 (SAST) Date: Mon, 10 Jan 2000 08:59:07 +0200 From: Alwyn Schoeman To: Stan Brown Cc: Free BSD Questions list Subject: Re: Help with Netscape proxy config, please. Message-ID: <20000110085906.A7053@littlecruncher.prizm.dhs.org> References: <200001071632.IAA14289@netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200001071632.IAA14289@netcom.com>; from stanb@netcom.com on Fri, Jan 07, 2000 at 11:32:08AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, You need to add a configuration entry in you Apache file that will add the mime-type of a automatic configuration file. Extension is .pac I think. On Fri, Jan 07, 2000 at 11:32:08AM -0500, Stan Brown wrote: > I have several FreeBSD machines which live behind a coporate firewall. > Untill recently access to http browsing was on "need only" basis. It > was throught a SOCKS firewall that did some sort of authentication. > > Now it has been opened up to "everyon", except the MIS types on > "support' microsloth machines :-( > > After having looked at one of thes machines, I see that Nescape on the > is configured to use "automatic proxyin" and this proxy is pointed to a > file on a Novell fileserver. Here are the contents of this file: > > > function FindProxyForURL(url, host) > { > if (isInNet(host, "170.85.18.11", "255.255.255.128")) > return "SOCKS 170.85.17.10:1080; DIRECT"; > else > if (isInNet(host, "170.85.0.0", "255.255.0.0")) > return "DIRECT"; > > else > return "SOCKS 170.85.17.10:1080; DIRECT"; > > > } > > Now, what this does is pretty obvious, if the reference is outside our > corporate net (170.85.*) it calls a SOCKS proxy, otherwise, it goes > direct. > > I need to be able to replicate this behavior for the UNIX machines > behind the firewall. I have a internal FreeBSD machine that runs > Apache, that I think I can do this with, but just putting this file on > it, and pointing my UNIX clients to it results in nescape error, > referencing a MIME type error. > > Can someone please educate me on how to make this work? > > Thanks > > -- > Stan Brown stanb@netcom.com 404-996-6955 > Factory Automation Systems > Atlanta Ga. > -- > Look, look, see Windows 95. Buy, lemmings, buy! > Pay no attention to that cliff ahead... Henry Spencer > (c) 1998 Stan Brown. Redistribution via the Microsoft Network is prohibited. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message