EFW Support

Support => EFW SMTP, HTTP, SIP, FTP Proxy Support => Topic started by: soguknewale on Saturday 15 January 2011, 09:11:15 am



Title: wpad.dat enable problem
Post by: soguknewale on Saturday 15 January 2011, 09:11:15 am
Hi;

I want to enable wpad.dat proxy script on endian 2.4.0 and i have problem

First of all i tried this file on an xp intalled iis server 6.0

------------------------------------------------------------------------------------------------------------------------------
findproxyforurl.com/wpad_tutorial.html
Web Server Configuration
IIS Server
1. Login to the server through Terminal Services or Remote Desktop Connection.
2. Click Start, select Programs, and then click Administrative Tools.
For IIS 6.0: Open Internet Information Services.
3. In the left column you will see the Server Name.
In IIS 6.0: expand the Server Name and then Web Sites to find the domain name.
4. Right-click on the domain name and select Properties.
5. On the HTTP Headers tab click MIME Types.
6. Click New.
7. Enter the below information:
Extension: .dat
MIME type: application/x-ns-proxy-autoconfig
8. Click OK.

------------------------------------------------------------------------------------------------------------------------------

iis server ip adres              : 192.168.1.150
endian server ip adres       : 192.168.1.252
Proxy script conf on client  : 192.168.1.150/wpad.dat



wpad.dat
function FindProxyForURL(url, host) {

// If IP address is internal or hostname resolves to internal IP, send direct.

   var resolved_ip = dnsResolve(host);

   if (isInNet(resolved_ip, "10.0.0.0", "255.0.0.0") ||
      isInNet(resolved_ip, "172.16.0.0",  "255.240.0.0") ||
      //isInNet(resolved_ip, "192.168.0.0", "255.255.0.0") ||
      isInNet(resolved_ip, "127.0.0.0", "255.255.255.0"))
      return "DIRECT";
   
// Use a different proxy for each protocol.   
      if (shExpMatch(url, "http:*"))  return "PROXY 192.168.1.252:8080";
      if (shExpMatch(url, "https:*")) return "PROXY 192.168.1.252:8080";
      if (shExpMatch(url, "ftp:*")) return "PROXY 192.168.1.252:8080";
 
}


it's working like that.everything is fine to this step.

But when i equalized this wpad.dat file on endian server it's not working
root@efw:/var/efw/proxy # vi /home/httpd/html/wpad.dat

root@efw:/var/log/squid # tail -f /var/log/squid/access.log
Jan 14 23:44:39 efw squid[20960]: 1295041479.867      1 192.168.1.149 TCP_DENIED/403 2734 GET 192.168.1.252/wpad.dat - NONE/- text/html
Jan 14 23:44:43 efw squid[20960]: 1295041483.026      6 192.168.1.149 TCP_DENIED/403 2734 GET 192.168.1.252/wpad.dat - NONE/- text/html
Jan 14 23:44:43 efw squid[20960]: 1295041483.220      1 192.168.1.149 TCP_DENIED/403 2734 GET 192.168.1.252/wpad.dat - NONE/- text/html
Jan 14 23:44:49 efw squid[20960]: 1295041489.942      1 192.168.1.149 TCP_DENIED/403 2734 GET 192.168.1.252/wpad.dat - NONE/- text/html


is there anyone who experienced with this wpad.dat problem


Title: Re: wpad.dat enable problem
Post by: soguknewale on Wednesday 19 January 2011, 09:36:11 pm
Hi,

I still have same problem.
I'm going to publish wpad.dat file another iis server in that case :(


Title: Re: wpad.dat enable problem
Post by: davvidde on Tuesday 01 February 2011, 07:12:02 am
Did you change the DNS record on your DNS server to point to the endian firewall that host wpad.dat?
Also check that http://your_endian_ip_address/wpad.dat give you the ability to save the configuration scripts.

Davide.