+ Post New Thread
Results 1 to 4 of 4
Internet Related/Filtering/Firewall Thread, Pac File Creation in Technical; Hi Is there anyone here who can help me create a pac file?? Basically want my Ipads to by-pass the ...
  1. #1

    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    76
    Thank Post
    22
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Pac File Creation

    Hi Is there anyone here who can help me create a pac file??

    Basically want my Ipads to by-pass the proxy ... for i.e Spice works and other local systems etc...

    Thanks

    Si

  2. #2

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,467
    Thank Post
    606
    Thanked 2,191 Times in 1,006 Posts
    Blog Entries
    23
    Rep Power
    633
    Moving to Internet Related forum.

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    can you put the ipads on a different SSID and vlan?. If they are on another subnet it should be fairly trivial.

  4. #4
    grant_girdwood's Avatar
    Join Date
    Jun 2012
    Location
    Bloxx HQ
    Posts
    54
    Thank Post
    2
    Thanked 11 Times in 10 Posts
    Rep Power
    6
    A useful website for reference is here - FindProxyForURL

    I would of thought you could use a rule which checks the browser header for iPad however to the best of my knowledge I don't believe WPAD/Pac files support this

    Example WPAD file for you
    Code:
    //Pac File
    function FindProxyForURL(url, host)
    {
    //Setting the proxy variables
    var proxy_yes = "PROXY 10.1.1.254:8881";
    var proxy_no = "DIRECT";
    var resolved_ip = dnsResolve(host);
    var myip = myIpAddress();
    //Debug Info
    //alert("My Addr: " + myIpAddress() + "\nURL: " + url + "\nHost: " + host);
    // All ftp requests go DIRECT - can be adapted for other protocols 
    if (url.substring(0, 4) == "ftp:") {
        return proxy_no;
        }
    //Bypass for local domains
        if (shExpMatch( host, "127.*" )
        ||  shExpMatch( host, "localhost" )
        ||  shExpMatch( host, "*.domain.com" )
        ||  shExpMatch( host, "*.domain.co.uk" )
        ||  isPlainHostName( host )
        ||  dnsDomainIs( host, ".domain.co.uk")
        ||  dnsDomainIs( host, ".domain.com)) {
           return proxy_no; 
        }
    //If you are on the 10.111.x.x network use the proxy
    if (isInNet(myip, "10.111.0.0", "255.255.0.0"))
            {
            return proxy_yes;
            }
    //if not browse direct
    else    {
            return proxy_no;
            }
    }
    You can test your PAC/WPAD files using pactester very useful for finding errors - http://code.google.com/p/pactester/

    Cheers!
    Last edited by grant_girdwood; 30th July 2012 at 12:49 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Auditing file creation & deletion
    By SpuffMonkey in forum Windows
    Replies: 7
    Last Post: 28th November 2012, 02:19 AM
  2. proxy .pac file
    By sted in forum Windows
    Replies: 12
    Last Post: 24th September 2009, 07:50 PM
  3. .pac files
    By jamiet147 in forum Coding
    Replies: 3
    Last Post: 26th November 2008, 08:51 AM
  4. Replies: 2
    Last Post: 29th April 2008, 03:17 PM
  5. Creating a PAC file
    By u8dmtm in forum Coding
    Replies: 4
    Last Post: 2nd March 2006, 03:49 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •