=======語法如下===========
function FindProxyForURL(url, host)
{
if (isPlainHostName(host) ||
dnsDomainIs(host, ".xxx.com.tw") ||
isInNet(host, "10.1.1.0", "255.255.255.0"))
return "DIRECT";
isInNet(host, "10.1.2.0", "255.255.255.0"))
return "DIRECT";
isInNet(host, "10.1.3.0", "255.255.255.0"))
return "DIRECT";
isInNet(host, "10.1.4.0", "255.255.255.0"))
return "DIRECT";
else
return "PROXY 10.1.1.xxx:3128; DIRECT";
}
===============
說明如果是10.1.1.0 or 10.1.2.0 10.1.3.0 10.1.4.0 這幾個網段直接連接
其他通通連到10.1.1.xxx:3128這個proxy
將這個檔案放在/var/www/html/ 就可以了
REF:設定方法
Powered by Stuff-a-Blog
0 意見:
張貼留言