[SOLVED] Auto Proxy script (PAC) not working properly
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Team,
We had configured Auto proxy setting script, its work with mozila and google chrome browser, but not open with internet browser.
Mozilla and Chrome ARE 'internet browsers'...or do you mean "Internet EXPLORER???"
Quote:
Deatils:-
OS :- Cent OS 6.4, SQUID3 with NTLM authentication, Squidgurd, Samba configured
====================proxy.pac==output
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "10.211.0.0", "255.255.0.0"))
return "PROXY 10.211.1.100:8080";
else return "DIRECT";
}
==========================================
Refrence Link http://www.linuxquestions.org/questi...86-4175515085/
...and in your other thread, you had NTLM authentication problems, which you STILL haven't solved, and never bothered to answer the questions asked about whether or not you were getting those websites, AFTER you REMOVED the NTLM functionality in Squid.
AGAIN, since Squid isn't authenticating with NTLM, your Windows systems aren't going to get automatic configurations, since IE isn't being notified of a PAC file. That's why Mozilla and Chrome ARE working. Amazingly, there are MANY people facing the same issue...and the 'fix' for all of them is to get NTLM working, rather than commenting it out.
Mozilla and Chrome ARE 'internet browsers'...or do you mean "Internet EXPLORER???"
...and in your other thread, you had NTLM authentication problems, which you STILL haven't solved, and never bothered to answer the questions asked about whether or not you were getting those websites, AFTER you REMOVED the NTLM functionality in Squid.
AGAIN, since Squid isn't authenticating with NTLM, your Windows systems aren't going to get automatic configurations, since IE isn't being notified of a PAC file. That's why Mozilla and Chrome ARE working. Amazingly, there are MANY people facing the same issue...and the 'fix' for all of them is to get NTLM working, rather than commenting it out.
2) now script is working fine. Please find the proxy1.pac script.
Quote:
function FindProxyForURL(url, host)
{
if (isInNet(myIpAddress(), "10.211.0.0", "255.255.0.0"))
return "PROXY 10.211.1.100:8080";
else return "DIRECT";
}
3)Need change windows registry level.
Quote:
2)It also works with IE , if face issue we had to create DWORD value for proxy script in registry.
Key: HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\
Value: EnableLegacyAutoProxyFeatures
Type: REG_DWORD
Data: 1
4) reference link.
Quote:
2) It also works with IE , if face issue we had to create DWORD value for proxy script in registry.
Key: HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\
Value: EnableLegacyAutoProxyFeatures
Type: REG_DWORD
Data: 1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.