itgeek Posted March 4, 2014 Posted March 4, 2014 Hi We have laptops that are used in school and at home. I would like a method to set the proxy server when in school and automatic when at home. What would the best method to do this. Thanks in advance
snagrat Posted March 4, 2014 Posted March 4, 2014 We use 2 batch files that enables/disables the proxy registry key and then starts IE. Then we just put 2 shortcuts on the desktop - Internet @ Home and Internet @ School. Pretty straight forward for the teachers.
jamesfed Posted March 4, 2014 Posted March 4, 2014 Take a look at WPAD - Web Proxy Autodiscovery Protocol - Wikipedia, the free encyclopedia The basic idea is when your users connect to a network (be it inside or outside the school) the browser reaches out and looks for a wpad file - if it finds it the proxy settings from that file are used, if it doesn't find it then it makes a straight out connection to the internet (i.e. when at home). Easy enough to setup so long as you can spin up an internal web server and have control over your DHCP/DNS and best of all - totally transparent to your users! 1
Arthur Posted March 4, 2014 Posted March 4, 2014 What would the best method to do this. James is right. WPAD is definitely the way to go.
free780 Posted March 5, 2014 Posted March 5, 2014 Wpad is quite insecure. You have to hav a dns entry called wpad. A malicious hosts file could point the laptop to another proxy.
mac_shinobi Posted March 5, 2014 Posted March 5, 2014 Does WPad use a pac file or could you not create a pac file to suit and use gpo or gpp to assign the pac file path to IE ??
Arthur Posted March 5, 2014 Posted March 5, 2014 A malicious hosts file could point the laptop to another proxy. Hosts file - as in C:\Windows\System32\drivers\etc\hosts? Standard users wouldn't be able to make any changes to that.
smidsy Posted March 5, 2014 Posted March 5, 2014 We have wpad set up here and it works flawlessly for staff and students. It uses the Proxy.pac file hosted on our smoothwall server but have had a version hosted on a web server pointing to an external proxy when we experiencing internet issues. 1
free780 Posted March 6, 2014 Posted March 6, 2014 Ive seen cases of malware being able to write to the windows folders. Even through a standard user account.
Arthur Posted March 6, 2014 Posted March 6, 2014 I've seen cases of malware being able to write to the windows folders. Even through a standard user account. If the computer is infected with malware, then the hosts file is the least of your problems. The malware could do literally anything!
bslater Posted March 6, 2014 Posted March 6, 2014 Hi I use a simple VBScript in the startup folder. Asks the user if they are in school, if so loads proxy settings, otherwise removes proxy settings. Paste into notepad, alter 000.000.000.000:8080 to your Proxy settings and port, save as .vbs It's almost teacher proof. Option Explicit Dim valUserIn Dim objShell, RegLocate, RegLocate1 Set objShell = WScript.CreateObject("WScript.Shell") On Error Resume Next valUserIn = MsgBox("Use the SCHOOL settings?",4,"Cloaked Select") If valUserIn=vbYes Then RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer" objShell.RegWrite RegLocate,"http://000.000.000.000:8080","REG_SZ" RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable" objShell.RegWrite RegLocate,"1","REG_DWORD" MsgBox "SCHOOL setting is Enabled" else RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer" objShell.RegWrite RegLocate,"0.0.0.0:80","REG_SZ" RegLocate = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable" objShell.RegWrite RegLocate,"0","REG_DWORD" MsgBox "HOME setting is Enabled" End If WScript.Quit 1
LeMarchand Posted March 7, 2014 Posted March 7, 2014 I looked at WPAD but never got it working. Cheated by writing a .pac file and copying it to a local directory with a startup script and set the appropriate GPO to point IE at it. The .pac file enumerated various sites to bypass the proxy and then checked the machine's IP address/range and only applied the proxy if the machine was at school - so no user intervention required.
Synkrox Posted March 11, 2014 Posted March 11, 2014 I used proxyswitcher lite, then its just a right click in the system tray - but a WPAD kinda setup is better. Or transparent gateway even better! Chris
localzuk Posted March 11, 2014 Posted March 11, 2014 Wpad is quite insecure. You have to hav a dns entry called wpad. A malicious hosts file could point the laptop to another proxy. No you don't. You can define your WPAD location via a DHCP entry (Option 252). Then it can be at any IP address and path that you want. Ours is hosted by our Ruckus wireless controller, for example.
sparkeh Posted March 11, 2014 Posted March 11, 2014 Might be worth reading up on wpad security https://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol#Security WPAD Man in the Middle - NETRESEC Blog
Manny-Tech Posted March 12, 2014 Posted March 12, 2014 I personally use a PAC file. Specify our local network, if you're not on it then straight out to the Internet. You just need to store the PAC file somewhere on the user's laptop (We have a C:\Support folder) and then use a GPO to set the path.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now