<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>baalchina &#187; proxy</title>
	<atom:link href="http://www.baalchina.net/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.baalchina.net</link>
	<description>baalchina技术日志</description>
	<lastBuildDate>Tue, 27 Sep 2011 07:12:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>用了个代理服务器，结果各个软件开始抽风</title>
		<link>http://www.baalchina.net/2011/01/proxy-problem/</link>
		<comments>http://www.baalchina.net/2011/01/proxy-problem/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 07:51:10 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[PC]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.baalchina.net/2011/01/proxy-problem/</guid>
		<description><![CDATA[家里广电的网络，发现直接上网慢，于是弄了个简单的电信的代理，CCProxy做的，当然加了密码，于是各个软件开始不通程度的抽风。
&#160;
Internet选项里面设置了代理，FF/Chrome等自动调用，这个还好。不过默认似乎不能设置单独让Chrome不走代理。

大脚插件，直接提示无法连接到服务器。必须取消代理才行。 
大部分软件，比如迅雷的弹出窗口，会蹦出一个代理的认证窗口。这个估计是因为他直接调用系统环境造成的。 
搜狗最搞笑，浏览正常，但是账户无法登录，提示服务暂时不可用。取消代理一切OK。 
Windows Live Writer，无法检测服务器类型。虽然新建账户那里可以设置代理，但是不生效，关掉也不行，只好重装。      开开代理，这个文章都发不出去了…基础连接已经断开，我擦。 

&#160;
金山T盘：

招行专业版：

]]></description>
			<content:encoded><![CDATA[<p>家里广电的网络，发现直接上网慢，于是弄了个简单的电信的代理，CCProxy做的，当然加了密码，于是各个软件开始不通程度的抽风。</p>
<p>&#160;</p>
<p>Internet选项里面设置了代理，FF/Chrome等自动调用，这个还好。不过默认似乎不能设置单独让Chrome不走代理。</p>
<ol>
<li>大脚插件，直接提示无法连接到服务器。必须取消代理才行。 </li>
<li>大部分软件，比如迅雷的弹出窗口，会蹦出一个代理的认证窗口。这个估计是因为他直接调用系统环境造成的。 </li>
<li>搜狗最搞笑，浏览正常，但是账户无法登录，提示服务暂时不可用。取消代理一切OK。 </li>
<li>Windows Live Writer，无法检测服务器类型。虽然新建账户那里可以设置代理，但是不生效，关掉也不行，只好重装。      <br />开开代理，这个文章都发不出去了…基础连接已经断开，我擦。 </li>
</ol>
<p>&#160;</p>
<p>金山T盘：</p>
<p><a href="http://www.baalchina.net/wp-content/uploads/2011/01/image.png"><img style="background-image: none; border-right-width: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.baalchina.net/wp-content/uploads/2011/01/image_thumb.png" width="244" height="175" /></a></p>
<p>招行专业版：</p>
<p><a href="http://www.baalchina.net/wp-content/uploads/2011/02/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.baalchina.net/wp-content/uploads/2011/02/image_thumb.png" width="244" height="116" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2011/01/proxy-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>代理服务器自动配置脚本</title>
		<link>http://www.baalchina.net/2010/06/pac-script/</link>
		<comments>http://www.baalchina.net/2010/06/pac-script/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 02:09:35 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[pac]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.baalchina.net/2010/06/pac-script/</guid>
		<description><![CDATA[就是一个pac（Proxy Auto Config）文件。IE/FF都支持的，应该是一个标准吧。用的应该是js的语法。
写了个简单的，方便内网使用期刊网。
/*
This is an AutoProxy script for Nanjing Audit University
Created by baalchina@nic
Any suggestions,please mail:nic@nau.edu.cn
2010.06.11
*/

function FindProxyForURL(url, host)
{
/*中国学术期刊网*/
     if (shExpMatch(host, &#34;*.cnki.net&#34;))
       return &#34;PROXY proxy.nau.edu.cn:8080&#34;;
/*维普南大镜像*/
     else if (shExpMatch(host, &#34;202.195.136.17&#34;))
       return &#34;PROXY proxy.nau.edu.cn:8080&#34;;
/*维普矿大镜像*/
     else [...]]]></description>
			<content:encoded><![CDATA[<p>就是一个pac（Proxy Auto Config）文件。IE/FF都支持的，应该是一个标准吧。用的应该是js的语法。</p>
<p>写了个简单的，方便内网使用期刊网。</p>
<blockquote><pre>/*
This is an AutoProxy script for Nanjing Audit University
Created by baalchina@nic
Any suggestions,please mail:nic@nau.edu.cn
2010.06.11
*/

function FindProxyForURL(url, host)
{
/*中国学术期刊网*/
     if (shExpMatch(host, &quot;*.cnki.net&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*维普南大镜像*/
     else if (shExpMatch(host, &quot;202.195.136.17&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*维普矿大镜像*/
     else if (shExpMatch(host, &quot;202.119.47.6&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*维普苏大镜像*/
    else if (shExpMatch(host, &quot;202.195.136.17&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*读秀知识库*/
    else if (shExpMatch(host, &quot;*.duxiu.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*国研网教育版和企业版，端口怎么处理？*/
    else if (shExpMatch(host, &quot;211.65.227.58&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*中经网统计数据库*/
    else if (shExpMatch(host, &quot;db.cei.gov.cn&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*中经网产业数据库*/
    else if (shExpMatch(host, &quot;ceidata.cei.gov.cn&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*新东方多媒体*/
    else if (shExpMatch(host, &quot;library.koolearn.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*中国权威经济论文库*/
    else if (shExpMatch(host, &quot;thesis.cei.gov.cn&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*中国地区经济发展报告*/
    else if (shExpMatch(host, &quot;dqbg.cei.gov.cn&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*国泰安CSMAR*/
    else if (shExpMatch(host, &quot;www.gtarsc.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*起点数据库包库*/
    else if (shExpMatch(host, &quot;www.qdexam.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*起点数据库镜像*/
    else if (shExpMatch(host, &quot;172.17.61.200:&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*CSSCI*/
    else if (shExpMatch(host, &quot;202.119.47.137&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*人大报刊复印*/
    else if (shExpMatch(host, &quot;202.119.47.9&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*EBSCO*/
    else if (shExpMatch(host, &quot;search.ebscohost.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*Springer*/
    else if (shExpMatch(host, &quot;china.springerlink.com/&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*LexisNexis*/
    else if (shExpMatch(host, &quot;www.lexisnexis.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*Financial Management*/
    else if (shExpMatch(host, &quot;www.fma.org&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*Cambridge Law Journal*/
    else if (shExpMatch(host, &quot;journals.cambridge.org&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*Open Access*/
    else if (shExpMatch(host, &quot;www.socolar.com&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
/*CALIS外文期刊网*/
    else if (shExpMatch(host, &quot;ccc.calis.edu.cn&quot;))
       return &quot;PROXY proxy.nau.edu.cn:8080&quot;;
     else
       return &quot;DIRECT&quot;;
}</pre>
</blockquote>
<p>&#160;</p>
<p>很简单，就是特定的地址使用proxy.nau.edu.cn:8080这个服务器，否则返回DIRECT，也就是直接访问。</p>
<p>参考：</p>
<ol>
<li><a title="http://www.cnblogs.com/zhengyun_ustc/archive/2005/05/08/150758.html" href="http://www.cnblogs.com/zhengyun_ustc/archive/2005/05/08/150758.html">http://www.cnblogs.com/zhengyun_ustc/archive/2005/05/08/150758.html</a> </li>
<li><a title="http://en.wikipedia.org/wiki/Proxy_auto-config" href="http://en.wikipedia.org/wiki/Proxy_auto-config">http://en.wikipedia.org/wiki/Proxy_auto-config</a> </li>
</ol>
<p>如何在浏览器配置pac，可以参照这个：</p>
<ol>
<li><a title="内网使用期刊网等学术资源指南" href="http://net.nau.edu.cn/application/proxy-service/proxy/">内网使用期刊网等学术资源指南</a> </li>
</ol>
<ol></ol>
<blockquote>
<p>if (shExpMatch(url,&quot;*.google.com/*&quot;)) {&#160;&#160;&#160;&#160;&#160; return &quot;PROXY 192.168.1.1:3128&quot;;&#160;&#160;&#160; }&#160;&#160;&#160; <br />if (shExpMatch(url, &quot;*.wikipedia.com:*/*&quot;)) {&#160;&#160;&#160;&#160;&#160; return &quot;SOCKS5 lilinux.net:1080&quot;;&#160;&#160;&#160; }&#160;&#160;&#160; <br />if (isInNet(host, &quot;10.0.0.0&quot;,&#160; &quot;255.0.0.0&quot;)){&#160;&#160;&#160;&#160;&#160; return &quot;DIRECT&quot;;&#160;&#160;&#160; }&#160;&#160;&#160; return &quot;DIRECT; PROXY 192.168.1.1:3128; SOCKS5 lilinux.net:1080&quot;;&#160; }</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2010/06/pac-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

