第一步,修改接入点为CMWAP:Settings->General->Network->EDGE
APN:cmwap
Username:空
Password:空
第二步,创建一个名为proxy.pac的文本文件,或者下载我创建好的。内容为: Quote:
function FindProxyForURL(url, host)
{
if (host == '127.0.0.1' || host == 'localhost'
{
return "DIRECT";
}
if (myIpAddress() == '0.0.0.0' || isInNet(myIpAddress(), '10.0.0.0', '255.0.0.0'
)
{
return "PROXY 10.0.0.172:80";
}
return "DIRECT";
}然后把这个文件传到/var/root/下。
第三步,修改/var/root/Library/Preferences/SystemConfiguration/preferences.plist,或者下载我修改好的。
在 Quote:
<key>Interface</key>
<dict>
<key>DeviceName</key>
<string>ip1</string>
<key>Hardware</key>
<string>com.apple.CommCenter</string>
<key>Type</key>
<string>com.apple.CommCenter</string>
</dict>
下添加: Quote:
<key>Proxies</key>
<dict>
<key>ProxyAutoConfigEnable</key>
<integer>1</integer>
<key>ProxyAutoConfigURLString</key>
<string>file:///private/var/root/proxy.pac</string>
</dict>
第四步,重启。
APN:cmwap
Username:空
Password:空
第二步,创建一个名为proxy.pac的文本文件,或者下载我创建好的。内容为: Quote:
function FindProxyForURL(url, host)
{
if (host == '127.0.0.1' || host == 'localhost'
{
return "DIRECT";
}
if (myIpAddress() == '0.0.0.0' || isInNet(myIpAddress(), '10.0.0.0', '255.0.0.0'
{
return "PROXY 10.0.0.172:80";
}
return "DIRECT";
}然后把这个文件传到/var/root/下。
第三步,修改/var/root/Library/Preferences/SystemConfiguration/preferences.plist,或者下载我修改好的。
在 Quote:
<key>Interface</key>
<dict>
<key>DeviceName</key>
<string>ip1</string>
<key>Hardware</key>
<string>com.apple.CommCenter</string>
<key>Type</key>
<string>com.apple.CommCenter</string>
</dict>
下添加: Quote:
<key>Proxies</key>
<dict>
<key>ProxyAutoConfigEnable</key>
<integer>1</integer>
<key>ProxyAutoConfigURLString</key>
<string>file:///private/var/root/proxy.pac</string>
</dict>
第四步,重启。