Environment
Retain 3.5.1
Social Messaging Proxy Server
Situation
Do you have a sample of a PAC file I could deploy in my environment to point my users' browsers to the proxy?
Resolution
Below is a sample proxy.pac. This would need to be modified towards the end to point to the actual IP address of the VM for the browser to connect to. Lines for platforms that shouldn't be captured can be excluded with a comment (using "//"). This can then be put into the custom proxy.pac field at the bottom of the Configuration | Web Proxy screen (assuming the system is up to date).
function FindProxyForURL(url, host) {
// If the hostname matches, send to proxy.
if (
//AIM
dnsDomainIs(host, "s.aolcdn.com") ||
shExpMatch(host, "*.aim.net") ||
shExpMatch(host, "*.twimg.com") ||
shExpMatch(host, "*.twitter.com") ||
shExpMatch(host, "*.twitter.co.uk") ||
//Yammer
shExpMatch(host, "*.yammer.com") ||
shExpMatch(host, "*.assets-yammer.com") ||
shExpMatch(host, "*.talkgadget.google.com") ||
shExpMatch(host, "*.mail.google.com") ||
shExpMatch(host, "*.google.*") ||
shExpMatch(host, "*.talkgadget.google.com") ||
shExpMatch(host, "*.mail.google.com") ||
shExpMatch(host, "*.clients1.google.com") ||
shExpMatch(host, "*.clients2.google.com") ||
shExpMatch(host, "*.clients3.google.com") ||
shExpMatch(host, "*.clients4.google.com") ||
shExpMatch(host, "*.clients5.google.com") ||
shExpMatch(host, "*.clients6.google.com") ||
shExpMatch(host, "*.licdn.com") ||
shExpMatch(host, "*.linkedin.com")
shExpMatch(host, "*.facebook.com") ||
shExpMatch(host, "*.fbcdn.net")
)
return "PROXY 192.168.0.254:8080";
else
return "DIRECT";
}
Additional Information
This article was originally published in the GWAVA knowledgebase as article ID 2591.