vt_techie2006
(Lurker)
2006-10-18 03:31 PM
Login Scripts : Proxy Exceptions for IE & Firefox

Hello All !

I've implemented a local Proxy which our users hit whilst using either Internet Explorer or Firefox on both Mac OSX & Windows (mainly XP) platforms :
the local domain controller batch file scripts control, or in my case do NOT control very well, the content permitted within the LAN, based on the registry writes performed. Here's the code that's executed on login :
Code:

$key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
WRITEVALUE($key,"ProxyEnable","1","REG_DWORD")
WRITEVALUE($key,"ProxyServer","192.168.0.164:8080","REG_SZ")
WRITEVALUE($key,"ProxyOverride", "server1.ourdomain.com;server2.ourdomain.com;192.168.0.0/24;192.168.10.0/24", "REG_SZ")

;Set Intranet as HomePage
$key = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\"
WRITEVALUE($key, "Start Page", "http://server1.ourdomain.com", "REG_SZ")


In testing, we can't get to, for example, http://192.168.10.5. And when going into the proxy settings for IE, IE crashes completely which leads me to believe there's syntax problems. Lastly, you can see there is NO firefox registry work done here which should be.

Hoping someone has some good pointers as I need to deploy company wide.

Thanks for your help !

-- VT.
[edit]
Added CODE Tags for the script code.
[/edit]


Björn
(Korg Regular)
2006-10-18 03:35 PM
Re: Login Scripts : Proxy Exceptions for IE & Firefox

Heyya. Been pondering about that since a earlier post regarding installing ff for several computers.. for IE you can use a GPO, and I know that on first startup of ff you can 'copy' settings and bookmarks, therefore you should be able to somehow ship out settings for ie and then run a script that makes ff swallow those changes / settings as well.

Oh, and welcome!

Have you verified that the inputed key-values are correct /written correctly?


Les
(KiX Master)
2006-10-18 03:57 PM
Re: Login Scripts : Proxy Exceptions for IE & Firefox

I use WPAD and GetRoutingScript.

Kdyer
(KiX Supporter)
2006-10-18 07:04 PM
Re: Login Scripts : Proxy Exceptions for IE & Firefox

In GPO, you can do this:
Quote:


User Configuration \ Windows Settings \ Internet Explorer Maintenance \ URLs \ Important URLs





HTH,

Kent


vt_techie2006
(Lurker)
2006-10-18 09:54 PM
Re: Login Scripts : Proxy Exceptions for IE & Firefox

Yeah, well reason we're going outside the GPO is due to a hosed GPO, otherwise I would; which would also restrict the user from making changes to their settings.

Does anyone have the appropriate Firefox subkeys ?

Thanks,

-- B.


Mart
(KiX Supporter)
2006-10-18 10:42 PM
Re: Login Scripts : Proxy Exceptions for IE & Firefox

Looks like Firefox does not use the registry for this but writes the stuff to a file in the users profile path.
If you write the line below to this file C:\Documents and Settings\[USERNAME]\Application Data\Mozilla\Firefox\Profiles\xd783jnw.default\prefs.js it has that site set to bypass the proxy. I'm not sure about the last bit of the path (xd783jnw.default) being the same on all computers because it looks kind of random.

Quote:


user_pref("network.proxy.no_proxies_on", "http://www.kixtart.org");