?
Solved

Question on PAC files

Posted on 2007-12-01
3
Medium Priority
?
669 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 total points
ID: 20388695
you could probably use this:

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

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

777 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