IE and Proxies

  • Thread starter Adrian Marsh (NNTP)
  • Start date
A

Adrian Marsh (NNTP)

I posted this onto the appropriate IE groups but got no reply, and am
expanding it out for comment:



I have the below script setup in my lab to sort out proxies, but I've a
problem with FTP. The script is picked up in the client by wpad

If I force proxies manually on the client then I can happily reach ftp
sites (ftp://ftp.microsoft.com has been my test), proving that ftp via
the proxy is ok. But if I switch back to wpad, then normal http
browsing works ok, but external ftp fails.

My clients IP is 172.19.242.29, which is private and should fall into
the isInNet check and the ftp request should get sent via the proxy. But
for some reason it doesn't and the client is trying to connect direct
(which fails because of the private intranet IP range)



function FindProxyForURL(url,host)
{
if (dnsDomainLevels(host)==0) {
return "DIRECT";
}

if (url.substring(0, 4) == "ftp:") {

if (isInNet(myIpAddress(),"172.19.0.0","255.255.0.0")) {
return "PROXY global.proxy.lucent.com:8000;" ;
}
else {
return "DIRECT";
}
}


if (dnsDomainIs(host, ".lucent.com") ||
isInNet(host,"172.19.0.0","255.255.0.0") || dnsDomainIs(host,"
..bell-labs.com")) {
return "DIRECT" ;
}
else {
return "PROXY global.proxy.lucent.com:8000;" ;
}

}
 
D

Dave Patrick

Wrong group. Ask them in one of the scripting groups.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I posted this onto the appropriate IE groups but got no reply, and am
| expanding it out for comment:
|
|
|
| I have the below script setup in my lab to sort out proxies, but I've a
| problem with FTP. The script is picked up in the client by wpad
|
| If I force proxies manually on the client then I can happily reach ftp
| sites (ftp://ftp.microsoft.com has been my test), proving that ftp via
| the proxy is ok. But if I switch back to wpad, then normal http
| browsing works ok, but external ftp fails.
|
| My clients IP is 172.19.242.29, which is private and should fall into
| the isInNet check and the ftp request should get sent via the proxy. But
| for some reason it doesn't and the client is trying to connect direct
| (which fails because of the private intranet IP range)
|
|
|
| function FindProxyForURL(url,host)
| {
| if (dnsDomainLevels(host)==0) {
| return "DIRECT";
| }
|
| if (url.substring(0, 4) == "ftp:") {
|
| if (isInNet(myIpAddress(),"172.19.0.0","255.255.0.0")) {
| return "PROXY global.proxy.lucent.com:8000;" ;
| }
| else {
| return "DIRECT";
| }
| }
|
|
| if (dnsDomainIs(host, ".lucent.com") ||
| isInNet(host,"172.19.0.0","255.255.0.0") || dnsDomainIs(host,"
| .bell-labs.com")) {
| return "DIRECT" ;
| }
| else {
| return "PROXY global.proxy.lucent.com:8000;" ;
| }
|
| }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top