+ Post New Thread
Results 1 to 8 of 8
Internet Related/Filtering/Firewall Thread, WPAD Issues in Technical; I'm going to try and set this out as logically as I can because I've been working on it for ...
  1. #1
    gsk
    gsk is offline

    Join Date
    Apr 2009
    Posts
    163
    Thank Post
    37
    Thanked 7 Times in 7 Posts
    Rep Power
    0

    WPAD Issues

    I'm going to try and set this out as logically as I can because I've been working on it for some hours now...

    I want to implement WPAD so that teachers can use their local user account both on our network and have internet access and also when they get home without having to do anything. At the moment, the proxy settings are defined in the profile and through GPO meaning they have to untick the 'use proxy server' box in LAN settings each time they want to use the net at home and then re-tick it when they want to use it at work.

    Background info:
    Windows Server 2003 R2 with IIS 6 as the main intranet server. computer name= intranet
    Server2 has Windows Server 2003 R2 installed
    DNS hosted on 'server2'
    DHCP hosted on 'server2'
    External proxy: proxy.embc.uk.com:80
    I'm using IE7 to do the bulk of the testing, and will be using IE7, IE8, Firefox and Netscape once it's done.

    What I've done so far.

    *Created a .pac file called proxy.pac and put it on the the root of intranet
    Code:
    function FindProxyForURL(url, host)
    {
    var proxy_yes = "PROXY proxy.embc.uk.com:80";
    var proxy_no = "DIRECT";
    if (shExpMatch(url, "http://intranet*")) { return proxy_no; }
    if (shExpMatch(url, "http://*.embc.uk.com*")) { return proxy_no; }
    if (shExpMatch(url, "http://10.56.*")) { return proxy_no; }
    if (shExpMatch(url, "http://eregistration*")) { return proxy_no; }
    if (isInNet(myIpAddress(), "10.56.0.0", "255.255.252.0"))
    return "PROXY proxy.embc.uk.com:80";
    else
    return "DIRECT";
    }
    *Created a .dat filed called wpad.dat and put it on the root of intranet (contents are the same as above)
    *Added MIME Types in IIS for .pac and .dat with type value "application/octet-stream"
    *Created option 252 in DHCP with value "http://intranet/wpad.dat"
    *Created Cname record in DNS called wpad with FQDN of wpad.curriculum.school.co.uk pointing to intranet.curriculum.school.co.uk
    *Created indentities in IIS for wpad.intranet to point to the same IP as intranet



    I think I've got it all in there. Now the problems I'm having are:

    *when I visit http://intranet/proxy.pac I get the options to Find, Save or Cancel. The same happens if I visit http://intranet/wpad.dat.
    *when I add http://intranet/proxy.pac to 'Use automatic configuration script' it doesn't seem to work or do anything. No errors or anything, it's just as if I hadn't put anything in.
    *When I check the box to 'Automatically detect proxy settings', it doesn't seem to do anything.
    *When I visit http://wpad/ it loads the main intranet page but when i visit http://wpad/proxy.pac it doesn't do anything.

    I think that's everything but if I come up with any more, i'll edit my post. Any help would be much appreciated.

    Thanks.

    Edits are in Italics
    Last edited by gsk; 20th May 2009 at 06:30 PM. Reason: Added more info

  2. #2
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,456
    Thank Post
    10
    Thanked 494 Times in 434 Posts
    Rep Power
    112
    Two things I can think of:

    If it's IE6 then it's probably broken as wpad/pac detection can cut off the last letter of the file name.

    If the DNS server is 2008 it will block the wpad dns entry (along with various others) by default and will need changing.

  3. #3
    gsk
    gsk is offline

    Join Date
    Apr 2009
    Posts
    163
    Thank Post
    37
    Thanked 7 Times in 7 Posts
    Rep Power
    0
    Hi,

    Thanks for your reply. I'm testing it on IE7 and will be using on IE7 and IE8. The DNS server is also on 2003 R2 and I've edited my post to add this in. Thanks again.

  4. #4


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,475
    Thank Post
    866
    Thanked 849 Times in 671 Posts
    Rep Power
    196
    Suggest it might be a filetype issue... i'm not an iis man myself, but yu may need to tell the web server that this is a pac file, so it gives the browser the right MIME type.

    FindProxyForURL.com - PAC & WPAD Resource might help.

  5. Thanks to tom_newton from:

    contink (3rd December 2010)

  6. #5
    User3204's Avatar
    Join Date
    Aug 2006
    Location
    Wirral
    Posts
    769
    Thank Post
    55
    Thanked 66 Times in 62 Posts
    Rep Power
    34
    I tried to set a wpad file up ages back, but in the end I gave up (If there was a bug with IE6, then this was probably my problem ), I may go back and try again.

    What I did find later, when running Ethereal (sorry wireshark), there were references in there looking for wpad.sch.uk and wpad.region.sch.uk, but nothing I could see for wpad.network.school.region.sch.uk. According to the docs, it is supposed to go through them all (our AD is set as computername.network.school.region.sch.uk, so it does make sense).
    It may be a good idea to load up wireshark and see if the machines are asking for the right thing, and then you can be sure that it is the server that is the problem (or not, as the case may be).

  7. #6


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,475
    Thank Post
    866
    Thanked 849 Times in 671 Posts
    Rep Power
    196
    Sounds like gsk's problems are at a stage earlier than that - but if you do find DNS based distribution a bit problematic, I have found DHCP option 252 more reliable.

  8. #7

    Join Date
    Jan 2007
    Location
    Nottinghamshire
    Posts
    530
    Thank Post
    1
    Thanked 84 Times in 58 Posts
    Rep Power
    38
    As long as "ping wpad" works and "wget http://wpad/wpad.dat" works I've not had a problem, you can try setting the autoconfig proxy url to be http://wpad/wpad.dat and see if that works.

    I have found problems when any static proxy is defined, even if it's unticked, fails to load anything the first time IE loads, waiting for timeout then reload/home works.

  9. #8
    gsk
    gsk is offline

    Join Date
    Apr 2009
    Posts
    163
    Thank Post
    37
    Thanked 7 Times in 7 Posts
    Rep Power
    0
    Quote Originally Posted by mavhc View Post
    As long as "ping wpad" works and "wget http://wpad/wpad.dat" works I've not had a problem, you can try setting the autoconfig proxy url to be http://wpad/wpad.dat and see if that works.

    I have found problems when any static proxy is defined, even if it's unticked, fails to load anything the first time IE loads, waiting for timeout then reload/home works.
    I had 'ping wpad' working yesterday but then obviously got the wrong end of the stick when I was looking on the net further, because I changed it so that http://wpad.intranet.curriculum.school.co.uk/wpad.dat resolved properly. I still couldn't get IE to pick it up though.

    I've been using ethereal today to have a look at the traffic the machine is sending out when I open IE. When i trie dto use the auto configure script using the .pac method it did the GET function but still didn't work and I can't see why. When i've had auto-detect proxy settings enabled, it didn't do any DHCP inform stuff, or any GET functions or anything containing WPAD, so I don't know what's happening there either.

SHARE:
+ Post New Thread

Similar Threads

  1. WPAD File, Auto Detect Proxy Server
    By steveo2000 in forum Windows Server 2000/2003
    Replies: 6
    Last Post: 14th July 2010, 01:40 PM
  2. No Issues :?
    By Galway in forum Yorkshire & Humberside Grid for Learning (YHGfL)
    Replies: 2
    Last Post: 8th December 2009, 01:24 PM
  3. Replies: 2
    Last Post: 23rd February 2008, 05:17 PM
  4. WPAD.DAT
    By k-strider in forum Coding
    Replies: 0
    Last Post: 4th July 2007, 03:12 PM
  5. Gentoo issues
    By _Bob_ in forum *nix
    Replies: 1
    Last Post: 31st October 2005, 02:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •