Jump to content

GPO Proxy server settings (to not activate away from school0


Recommended Posts

Posted

Hi, we've been using a GPO to set the proxy settings necessary in school - this works fine

 

What i'd like though is for staff laptops to not use the proxy when away from the school, ie not logged into the domain

 

Our current solution is to use firefox out of school and explorer in - with some daft thingy (can't remember what but very usefull!) synching the bookmarks and faves from one to the other

We'd like to move away from this and use explorer wherever, but without the need for staff to change any settings on their laptops (however easy!)

 

Any advice greatfully received!!

 

Thanks

  • 2 weeks later...
Posted

Assuming you host your website internally, or at least host some sort of http:// site that is accessible inside and out, just put your proxy.pac on there. We host our website in our DMZ, and have the network set up so you don't need to be using the proxy to get to it. That way no matter whether the notebook is on campus or at home, it can access the proxy.pac file and know exactly what to do.

 

For example:

 


function FindProxyForURL(url, host)
{

          if (isPlainHostName(host)
           || isInNet(host, "123.123.123.0", "255.255.255.0")
           || isInNet(host, "192.168.211.0", "255.255.255.0")
           || isInNet(host, "172.17.0.0", "255.255.0.0")
           || isInNet(host, "172.18.0.0", "255.255.0.0")
           || dnsDomainIs(host, ".yourschool.edu"))
               return "DIRECT";

          if (isInNet(myIpAddress(), "172.16.0.0", "255.255.0.0") 
    || isInNet(myIpAddress(), "172.17.0.0", "255.255.0.0") 
    || isInNet(myIpAddress(), "172.18.0.0", "255.255.0.0") 
    || isInNet(myIpAddress(), "172.20.0.0", "255.255.252.0") 
    || isInNet(myIpAddress(), "172.24.0.0", "255.255.252.0") 
    || isInNet(myIpAddress(), "172.31.0.0", "255.255.0.0")
    || isInNet(myIpAddress(), "10.10.0.0", "255.255.248.0") 
           || isInNet(myIpAddress(), "10.10.8.0", "255.255.252.0")
    || isInNet(myIpAddress(), "10.20.0.0", "255.255.252.0") 
    || isInNet(myIpAddress(), "10.20.4.0", "255.255.252.0")
    || isInNet(myIpAddress(), "10.22.0.0", "255.255.255.0")
           || isInNet(myIpAddress(), "10.21.0.0", "255.255.255.0")
    || isInNet(myIpAddress(), "10.24.0.0", "255.255.224.0")  
    || isInNet(myIpAddress(), "10.24.60.0", "255.255.255.0") 
    || isInNet(myIpAddress(), "10.24.61.0", "255.255.255.0")
    || isInNet(myIpAddress(), "10.24.62.0", "255.255.255.0")
    || isInNet(myIpAddress(), "10.25.0.0", "255.255.252.0")
    || isInNet(myIpAddress(), "10.50.0.0", "255.255.224.0") 
    || isInNet(myIpAddress(), "10.51.0.0", "255.255.224.0") 
    || isInNet(myIpAddress(), "10.52.0.0", "255.255.224.0") 
    || isInNet(myIpAddress(), "192.168.212.0", "255.255.255.0")
    || isInNet(myIpAddress(), "192.168.192.0", "255.255.255.0")) 
               return "PROXY 123.123.123.123:80";        

       
return "DIRECT";

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...