Solved

Question on PAC files

Posted on 2007-12-01
3
662 Views
Last Modified: 2010-07-27
Hi

We are using PAC files in our environment. The .pac file has a list of sites that should be directed back, other requests should be sent out to the proxies.

We have a problem with clients downloading DAT files via the McAfee ftp site. If we don't use the PAC file (and configure the proxy directly in) then there is no problem.

I have run a packet capture on a laptop using the PAC file, and it appears that the requests for ftp.mcafee.com are being sent back to the internal DNS servers - not to the proxies. The internal DNS servers can't resolve the address, and the request fails.

I understand the PAC file we use is for HTTP requests only. Is this generally the case with PAC files, or can we add a line so that FTP requests are handled too?

Any help would be much appreciated!

Thanks
0
Comment
Question by:kam_uk
  • 2
3 Comments
 
LVL 7

Expert Comment

by:Wod
ID: 20388156
Setting a proxy for specific protocols example:

        function FindProxyForURL(url, host)
        {
            if (url.substring(0, 5) == "http:") {

                return "PROXY http-proxy.mydomain.com:8080";
            }
            else if (url.substring(0, 4) == "ftp:") {

                return "PROXY ftp-proxy.mydomain.com:8080";
            }
            else if (url.substring(0, 7) == "gopher:") {

                return "PROXY gopher-proxy.mydomain.com:8080";
            }
            else if (url.substring(0, 6) == "https:" ||
                     url.substring(0, 6) == "snews:") {

                return "PROXY security-proxy.mydomain.com:8080";
            }
            else {

                return "DIRECT";
            }
        }
0
 
LVL 3

Author Comment

by:kam_uk
ID: 20388250
Thanks...

  else if (url.substring(0, 4) == "ftp:") {

                return "PROXY ftp-proxy.mydomain.com:8080";

Am I correct in thinking that this line will send *all* FTP requests to the proxies? I wouldn't want to do that, just the one for ftp.mcafee.com

Do you know how I could put this in?

Many thanks - hugely appreciated

0
 
LVL 7

Accepted Solution

by:
Wod earned 500 total points
ID: 20388695
you could probably use this:

if (url.substring(0, 20) == "ftp://ftp.mcafee.com") {
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How VPC help preventing STP Loops 4 99
eigrp - not allow a subnet from advertising 1 38
Non Distrubtive Core Switch Repacement 8 24
Freeproxy running on Server 2012 R2 2 55
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question