PC Review


Reply
 
 
Adrian Marsh (NNTP)
Guest
Posts: n/a
 
      10th Apr 2005
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 ftpvia
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.



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;" ;
}

}
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan autoconfig bug Sunyatha Windows Vista General Discussion 0 2nd Oct 2007 01:29 PM
autoconfig Adrian Marsh (NNTP) Microsoft Windows 2000 0 10th Apr 2005 11:50 PM
nic & autoconfig larry Microsoft Windows 2000 Hardware 1 29th Sep 2004 09:55 PM
tcpip autoconfig -- don't want it John Windows XP Networking 1 17th Nov 2003 07:45 AM
Re: Autoconfig of IP Address null Windows XP Customization 1 7th Jul 2003 08:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:41 AM.