Welcome, Guest. Please login or register.
Did you miss your activation email?
Sunday 10 November 2024, 10:26:29 pm

Login with username, password and session length

The Latest Endian Firewall is now available for download HERE
14251 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  EFW SMTP, HTTP, SIP, FTP Proxy Support
| | |-+  wpad.dat enable problem
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: wpad.dat enable problem  (Read 18237 times)
soguknewale
Jr. Member
*
Offline Offline

Posts: 3


« 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
Logged
soguknewale
Jr. Member
*
Offline Offline

Posts: 3


« Reply #1 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 Sad
Logged
davvidde
Full Member
***
Offline Offline

Gender: Male
Posts: 68


« Reply #2 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.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com