WPAD using with Windows server 2012r2? (SOLVED)
-
EDIT: had to edit my firewall rules it was blocking email on outlook
-
I don't like the idea of running pfSense web interface on HTTP instead of HTTPS :-\
Something, at least to me, better could be to run an alternate web server instance, like described here, e.g.
However, the way this instance, in this example, is launched is perhaps not the best idea if compared to rc.dOr you could run DHCP from pfSense if your current infrastructure doesn't allow to push option 252 and still keep HTTP server exposing proxy.pac elsewhere ;)
-
Hi Chris,
Thank you for the reply,I guess its working right now with the 252 wpad.dat on the windows server I have managed to block the sites (https) no issue there, now for the other .da and proxy.pac howcome on other tutorials they show pfSense having those 3 on the DHCP?
Also i was reading the guide and there was a part that did interested me
To catch any PCs which aren't configured with 'auto configure' in their settings, you could implement a port forward for any traffic directed at port 80 to 3128
Does this mean that if the user does not configure auto proxy on firefox it would grab it automatic with "use system settings"?
True I prefer using pfSense https but on the guide of aGeekHere https://forum.pfsense.org/index.php?topic=93060.msg516254#msg516254
He does mention its "set pfsense Protocol to http (This is a MUST, it will not work if you do not do this)"
Everything is great but I guess i dont really understand the
WPAD.da and proxy.pac where would that come in? I do prefer windows server to handle the DHCP but because I can only use the WPAD.dat on the server options.
Even though KOM did say
The DHCP option 252 is just another way of getting the proxy address to the client. I find DNS to be more universal since I don't have a lot of DHCP clients on my network.
I would guess its not a necessary?
Thank you
-
there is no WPAD RFC but only draft (as far as I know)
As a result, implementation is not very consistent and varies from one OS or browser to another thus your own implementation really depends on your landscape.If you don't really know what will connect to your network, I do believe that offering at least both DHCP and well-known alias mechanisms is a very minimum.
This step describes how to find your proxy server.
Next step is to read proxy.pac which is the file describing how and when use proxy service.Here again, implementation varies.
Some browser are looking for wpad.dat or wpad.da or even proxy.pac (which is the initial name, even without any willingness to implement any automatic mechanism).
Because of this, here again, I strongly suggest to server, from your web server, same file exposed with different alias (logical link) so that you ensure wide coverage.What you describe in term of port redirection is no more than kind of transparent proxy. Notice that Squid could be configured to support both explicit and transparent proxy but as I really don't like transparent proxy and never use it, I can't really comment about this.
Sorry for my poor and broken English but I even don't understand this sentence:
I do prefer windows server to handle the DHCP but because I can only use the WPAD.dat on the server options.
-
Hi Chris,
Thank you again for the reply and sorry for asking too many questions as I am new to WPAD i have been using transperent proxy for a while it was decent never had an issue but because now these days everything is HTTPS I was thinking to make the change.The part where i said
I do prefer windows server to handle the DHCP but because I can only use the WPAD.dat on the server options.
Well in theory setting up a AD environment i have been told that DHCP and DNS windows server handles it while everything else could be handled by other services (pfSense). When i said Server options its the part where I have the 252 string on the DHCP service on the windows server as you can see the photo I can only host the WPAD.dat while on other guides pfSense hosts WPAD.dat, WPAD.da, Proxy.pac But because in my case I have my LAN disabled DHCP on pfSense.
The good thing about my network is that the on the LAN connects only Laptops, CPU with windows 8 or 7 the rest connects though guests VLAN. The only thing i would hate is configuring each computer on firefox or chrome of the settings to auto detect the proxy :( The rest seems to be fine
So i guess firefox looks for the WPAD.dat rather then the WPAD.da or the proxy.pac? But shouldn't DHCP force the client to use the WPAD automatically without changing any settings on firefox?
Thank you again for your response :)
EDIT: just tried it on chrome works perfect without changing any settings…welll this is awk on firefox
-
I'm not sure one can push, through DHCP, more than one single "252 option".
I never tried and don't understand how this would work.
All in sequence? Random?The wpad.dat vs. wpad.da is, as far as I understand, only related to the well known alias mechanism.
With DHCP mechanism, you push the full URL pointing to your proxy.pac file (whatever its name)
With Well Known Alias mechanism, you don't have any choice and this is a two steps approach:- first one is related to domain and search domain: using DNS, goal is to resolve wpad.your_search_domain
- second step is to look at… at this stage, it depends. some implementaitons look for wpad.dat, some others for wpad.da
This means that DHCP option 252 requires only one single value.
Same for DNS BTW: be sure that your DNS resolves one of the FQDN up to "wpad"
Dealing with wpad.dat and wpad.da (and proxy.pac) is done at web server level (and I achieve this with logical links so that I maintain only one single file)At least this is my understand but I might be wrong ;)
-
Hi Chris,
Thank you for the reply, so far everything is great on blocking, but not sure if you have issues with your Email And antivirus? Because of blocking 443 the antivirus cannot seem to update and one of my Emails (godaddy exchange) uses the port 443 would it be possible to create a invert rule?
Thank you
-
…/...but not sure if you have issues with your Email And antivirus? Because of blocking 443 the antivirus cannot seem to update and one of my Emails (godaddy exchange) uses the port 443 would it be possible to create a invert rule?
So topic changes ;)
We assume WPAD stuff is clear now and question if about proxy access control and filtering.
Regarding this, you question is not clear to me (sorry): what do you mean exactly?
You have configured proxy (Squid + Squidguard and wonder how to manage white-list or do you face different problem? -
Hi Chris,
Thank you for the reply, Sorry I will start a new topic :) a forum mod will scold me :(
Thank you again.
-
- Would it be possible instead of showing page cannot be found to redirect it to the blocked page as if it was http?
Is there any possibility to block https using ext redirect as well? The filter works fine, but I'd like to get the same message using either http or https.
Thank you!
Martin
-
wow how the time passed posting this more then a year ago :0
Well i tried the redirect URL but I just gave up and when a user cant get in a website they notify me and i fix it,