TMWS Default PAC File

TMWS provides a default PAC file.
  • If the domain of the contact email address provided in your CLP account is already registered in the TMWS database, the default PAC file is a global PAC file. It cannot be modified or deleted from the PAC Files screen. You can, however, duplicate this file and then use the duplicated copy to customize the content according to your network firewall policies.

  • If the domain of the contact email address provided in your CLP account is not registered in the TMWS database, the default PAC file is a unique PAC file distinguished by your company ID. It can be modified, deleted, and duplicated.

For a newly provisioned company, the default PAC file is always a company-specific PAC file distinguished by the company ID.

The default PAC file is not configured to allow users inside the organization's network to access the internal web servers. For information about setting the PAC file to allow internal sites, see Accessing Internal Sites.

Below is the content of the PAC file.

Note:

For an existing company using a company-specific default PAC file, the following domains will not be automatically added in SkipHosts: windowsupdate.microsoft.com, *.windowsupdate.microsoft.com, *.update.microsoft.com, *.windowsupdate.com, download.microsoft.com, ntservicepack.microsoft.com

function islocalip(ip) {    
   return isInNet(ip, "127.0.0.0", "255.0.0.0") ||
       isInNet(ip, "169.254.0.0", "255.255.0.0") ||
       isInNet(ip, "10.0.0.0", "255.0.0.0") ||
       isInNet(ip, "192.168.0.0", "255.255.0.0") ||
       isInNet(ip, "172.16.0.0", "255.240.0.0");
}
function FindProxyForURL(url, host) {
   var DefaultScanner = 
     "PROXY proxy.iws-hybrid.trendmicro.com:80; DIRECT";
   var HTTPSScanner   = 
     "PROXY proxy.iws-hybrid.trendmicro.com:80; DIRECT";
   var FTPScanner     = "DIRECT";
   var DNSNeedResolve = false;
   var SkipHosts = ["*.google.com", "*.google.co.*", "*.google.com.*", "windowsupdate.microsoft.com", 
                       "*.windowsupdate.microsoft.com", "*.update.microsoft.com", "*.windowsupdate.com", 
                       "download.microsoft.com", "ntservicepack.microsoft.com", "officecdn.microsoft.com", 
                       "officecdn.microsoft.com.edgesuite.net"];
      if (isPlainHostName(host)) {
        return "DIRECT";
      }
      for (var i in SkipHosts) {
         if (shExpMatch(host, SkipHosts[i])) {
           return 'DIRECT';
         }
      }
      if (/\d+\.\d+\.\d+\.\d+/.test(host)) {
        		if (islocalip(host)) {			
             return 'DIRECT';		
     }
      } else if (DNSNeedResolve) {
         		if (islocalip(dnsResolve(host))) {
            			return 'DIRECT';	
         	}
      }    
      // ftp URL
      if (url.substring(0, 3) == "ftp") {
        return FTPScanner;
      }    
      // https URL
      else if (url.substring(0, 5) == "https") {
         return HTTPSScanner;
      } 
      // others URL    
      else {
        return DefaultScanner;    
      }
   }