+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 34 of 34
Windows Thread, Enable/Disable Proxy Settings (Easy Way) in Technical; I sort this problem using an automated configuration script. I have a proxy.pac file stored on an internally (not externally) ...
  1. #31
    Irazmus's Avatar
    Join Date
    Feb 2006
    Location
    Suffolk
    Posts
    320
    Thank Post
    13
    Thanked 22 Times in 17 Posts
    Rep Power
    23
    I sort this problem using an automated configuration script. I have a proxy.pac file stored on an internally (not externally) accessible web server (if the script is available externally the proxy will always be used).

    When on the school network the settings in the .pac are used, when off site the file isn't available so no proxy settings are applied.

    The best thing is that no user action is needed so staff don't even know it's there, and thus can't forget to switch between home and school.

    Code:
    function FindProxyForURL (url, host) {
      if ( host.match("(helpdesk|booking|loki|webmail|artemis|cerberus|thor|sspr).school.county.sch.uk") || dnsDomainLevels(host) == 0 ) {
        return "DIRECT";
      } else {
        return "PROXY proxy.gfl.suffolk.org.uk:8084; DIRECT";
      }
    }

  2. Thanks to Irazmus from:

    kestrel1 (23rd June 2008)

  3. #32
    kestrel1's Avatar
    Join Date
    Jul 2005
    Location
    New Forest
    Posts
    294
    Thank Post
    3
    Thanked 11 Times in 11 Posts
    Rep Power
    20
    Irasmus:
    Must admit hadn't thought of using a pac file.
    I have got yours working with a bit of a tweak, but will look in to it further before deploying. I prefer to know what is going on first if you know what I mean.

  4. #33
    kestrel1's Avatar
    Join Date
    Jul 2005
    Location
    New Forest
    Posts
    294
    Thank Post
    3
    Thanked 11 Times in 11 Posts
    Rep Power
    20
    Using a slightly different pac file that could be used internally or externally, as it looks at the IP Address & subnet that you are on & uses the proxy as required.
    Looks like this:

    function FindProxyForURL(url, host)

    {

    if (isInNet(myIpAddress(), "192.168.0.0.", "255.255.255.0"))

    return "PROXY 192.168.0.1:80";

    else

    return "DIRECT";

    }

    I am now using the pac file on laptops & have a reg file that enters the relevant info for IE. Works on Vista as well. I still don't like Vista though. Give me Linux any day.

  5. #34
    thatley's Avatar
    Join Date
    Sep 2007
    Location
    Surrey
    Posts
    8
    Thank Post
    3
    Thanked 7 Times in 1 Post
    Rep Power
    0
    Hi Michael,

    This works really well. Could you do one for my LA (Wandsworth) proxy settings are:
    proxy1.equinoxsolutions.com:80

    Thanks )

    Trevor Hatley



SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Enable/Disable workstation internet access from shortcut
    By the_mighty_boosh in forum Netware
    Replies: 3
    Last Post: 28th January 2011, 10:34 AM
  2. Nagios plugin enable/disable interface
    By plexer in forum Wireless Networks
    Replies: 1
    Last Post: 4th March 2008, 02:54 PM
  3. Easy way to enable dialin access in AD
    By localzuk in forum Windows
    Replies: 5
    Last Post: 26th October 2007, 12:08 PM
  4. Proxy Settings
    By Jonny_sims in forum Windows
    Replies: 19
    Last Post: 25th May 2007, 08:12 AM
  5. Replies: 3
    Last Post: 7th February 2006, 02:51 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
  •