<?xml version="1.0" encoding="GBK" ?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dcterms="http://purl.org/dc/terms/">
 <channel>
  	  <title><![CDATA[唐朝宰相~~~~]]></title>
	  <link>http://blog.163.com/shen012_</link>
	  <description><![CDATA[宰相肚里能撑船的！ 现正忙于在上班中开发unxmail system,所有的开发经历将在本博客中更新,及一些开发笔记等等~~]]></description>
	  <language>zh-CN</language>
	  <pubDate>Sat, 30 Aug 2008 04:16:56 +0800</pubDate>
	  <lastBuildDate>Sat, 30 Aug 2008 04:16:56 +0800</lastBuildDate>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <generator><![CDATA[NetEase Space]]></generator>
	  <managingEditor><![CDATA[shen012_]]></managingEditor>
	  <webMaster><![CDATA[唐朝宰相]]></webMaster>
		  <ttl>120</ttl>
	  <image>
	  	<title><![CDATA[唐朝宰相~~~~]]></title>
	  	<url>http://ava.blog.163.com/photo/6jVOpTnHmkidbc8-MF_QmA==/217017207043975269.jpg</url>
	  	<link>http://blog.163.com/shen012_</link>
	  </image>
  <item>
  	<title><![CDATA[linux要实现用户和winndows一样的感觉，还要待时日]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200872911575483</link>
    <description><![CDATA[<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近尝试逐渐熟悉和认可linux的桌面环境，当然包括一些基本的运用了。linux版本用的是ubuntu 8.04。比如上网，下载，看电影了。这3大应用一般是用户最常用的吧，至于好不好用，习不习惯，那就是另当一回事了！我说的是效率问题，就那我最常用的 ，下载来说吧，最基本的http下载，多线程的下载工具不是没有，图形界面和使用感觉都还不错，但是说要效率比迅雷比起来，那还是差了一大节！不光是多线程的问题，在国内的网络环境而言，一个下载连接经常失效那是很常见的，迅雷对付这类失效连接，照样可以下载，但是多线程的工具对这个就无能为力了！速度当然又是没的比的了！<br>&nbsp;&nbsp;&nbsp;&nbsp; 还是下载问题，我说的是bt和电驴，linux的bt软件效率还真的和windows下的没的比，用那个azureus，运行半个小时，速度基本上还算0。我说的前提是源》＝100的情况，而且我的还是外网ip。在windows下，用迅雷轻轻松松上满速，我不知道这个是咋回事！电驴就更别说了，用了好几个电驴的软件，效果都没有verycd版本的电驴好，速度半个小时都是几k。<br>&nbsp;&nbsp;&nbsp; linux不是在网络方面支持的很好么，我都不知道为什么这些基本的网络运用，都没有windows下作的好。<br>&nbsp;&nbsp;&nbsp; 看电影也不行，具体表现就是看那些外挂字幕的电影了，我看了n多的解决方法，都没有很好的解决字幕乱码的问题，windows下基本上很容易解决这些基本的问题，但是在windows下，解决起来就相当的麻烦，不知道杂回事。<br>&nbsp;&nbsp; 如果对基本最常用的功能都不能满足，很难想想linux如何和windows竞争。<br>&nbsp;&nbsp; 个人观点，完全是在使用后的基础上得来。<br>&nbsp;&nbsp; 不过ubuntu运行虚拟机的速度倒是很快。<br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200872911575483</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200872911575483</guid>
    <pubDate>Fri, 29 Aug 2008 23:57:54 +0800</pubDate>
    <dcterms:modified>2008-08-29T23:57:54+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[各地电视台的网址]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200878105731994</link>
    <description><![CDATA[<div><P>安徽卫视: <A href="http://www.ahtv.cn/vod/vod_live.shtml">http://www.ahtv.cn/vod/vod_live.shtml</A>&nbsp;&nbsp; </P>
<P>陕西卫视 <A href="http://live.sxtvs.com/">http://live.sxtvs.com/</A></P>
<P>山西卫视 <A href="http://news.sxrtv.com/index.jsp">http://news.sxrtv.com/index.jsp</A></P>
<P>深圳卫视 <A href="http://www.szmg.com.cn/szmg_video/index.do">http://www.szmg.com.cn/szmg_video/index.do</A></P>
<P>云南卫视 <A href="http://vod.yntv.cn/movie/435fd4937b6eaa4be9d13c811a4929ea.shtml">http://vod.yntv.cn/movie/435fd4937b6eaa4be9d13c811a4929ea.shtml</A></P>
<P>广西卫视 <A href="http://tv.gxtv.cn/">http://tv.gxtv.cn/</A></P>
<P>浙江卫视 <A href="http://www.cztv.com/item/ntv.html">http://www.cztv.com/item/ntv.html</A></P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200878105731994</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200878105731994</guid>
    <pubDate>Fri, 8 Aug 2008 10:57:31 +0800</pubDate>
    <dcterms:modified>2008-08-08T11:06:25+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[postfix 学习笔记]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200863135155173</link>
    <description><![CDATA[<div>postfix 虚拟网域搭配虚拟用户<br>在main.cf配置里面<span style="font-style: italic;"> v<span style="color: rgb(255, 0, 0);">irtual_mailbox_domains</span> </span>= mysql:/etc/postfix/mysql_virtual_domains_maps.cf&nbsp; 这个参数用来设置虚拟网域<br><br>定义虚拟邮箱基础目录的参数是&nbsp;<span style="font-style: italic; color: rgb(255, 0, 0);"> virtual_mailbox_base = </span>/var/mailbox <br>定义虚拟邮箱查询表的位置的参数是&nbsp;<span style="font-style: italic; color: rgb(255, 0, 0);"> virtual_mailbox_maps</span> = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf<br>此查询表描述每一位虚拟邮箱用户的邮件地址以及对应的邮箱文件的相对路径文件名,相对于<span style="font-style: italic; color: rgb(255, 0, 0);">virtual_mailbox_base &nbsp;</span> 定义的基础目录.<br><br>virtual_uid_maps = static:2525&nbsp;&nbsp; 决定postfix的虚拟mda投递邮件到虚拟邮箱时,所继承的系统帐户.<br>
virtual_gid_maps = static:2525<br><br>虚拟别名&nbsp; 用来转寄邮件的&nbsp; <br><span style="color: rgb(255, 0, 0); font-style: italic;">virtual_alias_maps</span> = mysql:/etc/postfix/mysql_virtual_alias_maps.cf&nbsp; <br>比如 虚拟转寄文件内容如下<br>a@abc.com&nbsp; abc@abc.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 假如postfix收到a@abc.com 的邮件,则会转发到abc@abc.com&nbsp;&nbsp; <br><br>无限别名虚拟邮箱&nbsp;&nbsp; 用来接受未知用户的邮箱<br><br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200863135155173</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200863135155173</guid>
    <pubDate>Thu, 31 Jul 2008 15:51:55 +0800</pubDate>
    <dcterms:modified>2008-07-31T15:51:55+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[unxmail system 依然在开发中]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200862111736373</link>
    <description><![CDATA[<div>&nbsp;&nbsp;&nbsp;&nbsp; 从年初开始想搞这个项目以来，到现在，已经有7个月的时间了，本来计划是在5月1前完成的，到现在，却依然没有完成。<br>&nbsp;&nbsp;&nbsp;&nbsp; 现在到深圳来上班了，感觉压力有点大，每天都是上班和下班，平时自己的时间有点少了，坐车坐好久，都没有什么精力来开发这个系统了。现在上班的工作任务我作起来也有些吃力，因为做的东西不是我的专长，我还必须学习我认为不值得我花时间学习的东西。哎，烦人的很啊！<br>&nbsp;&nbsp;&nbsp; 坚持吧，我认为坚持还是比较重要的，最近一直都没有睡好觉，吃饭也么有吃好，没有找到合适的房子，天天为了那点柴米油盐的小事争吵，真的划不来的。我还是喜欢一个人的生活，无拘无束的，哎，好像现在不是那么仅任意阿！<br>&nbsp;&nbsp; 我好久也没有在博客上写点什么东西了，也不知道有没有人来看，但是我想向大家表达下我的近况，unxmail system现在依然在开发中。我想我会坚持下去的，也许是几年，也许是很快。<br>&nbsp; 坚持就是胜利。<br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200862111736373</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200862111736373</guid>
    <pubDate>Mon, 21 Jul 2008 11:07:36 +0800</pubDate>
    <dcterms:modified>2008-07-21T11:07:36+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[更新ports]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200851934845581</link>
    <description><![CDATA[<div><strong><font size="4">更新ports<br></font></strong>============<br>1、安装cvsup<br>如果还没安装过cvsup，那么请执行以下命令安装：<br><font style="background-color: rgb(0, 0, 0);" color="#ffffff"># cd /usr/ports/net/cvsup<br># make install clean</font><p>2、然后拷贝ports的配置文件到/etc/ports-supfile<br><font style="background-color: rgb(0, 0, 0);" color="#ffffff"># cp /usr/share/examples/cvsup/ports-supfile /etc/ports-supfile<br># ee /etc/ports-supfile</font><br>将其中的<font style="background-color: rgb(211, 211, 211);"># host=CHANGE_THIS.FreeBSD.org</font>一行改为<font style="background-color: rgb(211, 211, 211);">host=cvsup.FreeBSD.org</font></p><p>3、更新ports<br><font style="background-color: rgb(0, 0, 0);" color="#ffffff"># /usr/local/bin/cvsup -g -L 2 /etc/ports-supfile</font></p><p>4、修改/etc/make.conf文件，加入中文支持（题外话：感谢Firefly所做出的贡献），如果不存在则可以参考/etc/defaults/make.conf文件新建一个，该文件主要是编译的时候需要用到。<br><font style="background-color: rgb(0, 0, 0);" color="#ffffff"># echo "WITH_CJK=yes" &gt;&gt; /etc/make.conf</font></p><p>以下为笔者的make.conf文件内容<br><font style="background-color: rgb(211, 211, 211);">SUP_UPDATE=&nbsp;yes<br>SUP=&nbsp;&nbsp;/usr/local/bin/cvsup<br>SUPFLAGS=&nbsp;-g -L 2<br>SUPHOST=&nbsp;cvsup.cn.FreeBSD.org<br>PORTSUPFILE=&nbsp;/etc/ports-supfile</font></p><p><font style="background-color: rgb(211, 211, 211);">WITH_CJK=&nbsp;yes</font></p></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200851934845581</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200851934845581</guid>
    <pubDate>Thu, 19 Jun 2008 15:48:45 +0800</pubDate>
    <dcterms:modified>2008-06-19T15:48:45+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[ubuntn 8.04 安装vmware 6失败的解决方法]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/106146120085531650888</link>
    <description><![CDATA[<div>安装的时候提示如下错误：<br>Using 2.6.x kernel build system.<br>
make: Entering directory `/tmp/vmware-config2/vmmon-only'<br>
make -C /lib/modules/2.6.24.4-64.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules<br>
make[1]: Entering directory `/usr/src/kernels/2.6.24.4-64.fc8-i686'<br>
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o<br>
CC [M] /tmp/vmware-config2/vmmon-only/linux/hostif.o<br>
CC [M] /tmp/vmware-config2/vmmon-only/common/comport.o<br>
CC [M] /tmp/vmware-config2/vmmon-only/common/cpuid.o<br>
In file included from include/asm/bitops.h:2,<br>
                 from /tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74,<br>
                 from /tmp/vmware-config2/vmmon-only/./include/modulecall.h:23,<br>
                 from /tmp/vmware-config2/vmmon-only/common/vmx86.h:18,<br>
                 from /tmp/vmware-config2/vmmon-only/common/hostif.h:18,<br>
                 from /tmp/vmware-config2/vmmon-only/common/cpuid.c:14:<br>
include/asm/bitops_32.h:9:2: error: #error only &lt;linux/bitops.h&gt; can be included directly<br>
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/cpuid.o] Error 1<br>
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2<br>
make[1]: Leaving directory `/usr/src/kernels/2.6.24.4-64.fc8-i686'<br>
make: *** [vmmon.ko] Error 2<br>
make: Leaving directory `/tmp/vmware-config2/vmmon-only'<br>
Unable to build the vmmon module.<br>
<br>
For more information on how to troubleshoot module-related problems, please<br>
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and<br>
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".<br>
<br>
Problem: include/asm/bitops_32.h:9:2: error: #error only
&lt;linux/bitops.h&gt; can be included directly, and vmmon-only compile
failes<br><br><span style="color: rgb(255, 0, 0);">解决方法：</span><br>Steps:<br>
<br>
   1. cd /usr/lib/vmware/modules/source<br>
   2. sudo cp vmmon.tar vmmon.tar.bak<br>
   3. sudo tar xvf vmmon.tar<br>
   4. cd vmmon-only/include/<br>
   5. sudo gedit vcpuset.h<br>
   6. change line 74 from: #include “asm/bitops.h” to: #include “linux/bitops.h”<br>
   7. rm vmmon.tar<br>
   8. sudo tar cvf vmmon.tar vmmon-only<br>
   9. sudo rm -rf vmmon-only<br>
  10. sudo vmware-config.pl<br>
<br>
That’s it, the compile will work now and vmware should be usable as normal<br><br>这个方法是在google上找的，经过我的测试，的确可以用～～<br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/106146120085531650888</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/106146120085531650888</guid>
    <pubDate>Thu, 5 Jun 2008 15:16:50 +0800</pubDate>
    <dcterms:modified>2008-06-05T17:09:51+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[mysql 处理中文遇到的一些通用问题的解决方法]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/10614612008425104630507</link>
    <description><![CDATA[<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近搞php编程，不得不面对的一个问题就是mysql处理中文时候的一些必需要遇到的问题，找了好多资料，总算是找到了，做个笔记，方便下次使用。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.就是当数据库是utf-8编码的时候，如果直接从数据库里面查询结果，mysql数据库返回的结果会是乱码，解决的方法就是在连接好数据库以后，执行一下语句。<br>mysql_query("SET NAMES UTF8");<br>然后查询就ok啦！<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.当使用select语句来搜索数据的时候，如果直接使用<span style="color: rgb(255, 153, 0);">select * from tables where name like '%汉字%' </span>来查询，发现查询不到结果，但是这个语句在用phpmyadmin时确没有任何问题，怎么办了，说明下，我处理这个问题搞了很久，最后找资料发现用下面这个方法可以，就是把这个语句改下，改成这样 <span style="font-weight: bold;">select * from tables where name like <span style="color: rgb(255, 0, 0);">binary</span> '%汉字%'</span>,就是在like后面加个binary就可以了。对了，还要说明下就是用汉字来查询的时候，一定要用 like '%汉字%' 的格式，就是说要两个%号哦！<br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/10614612008425104630507</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/10614612008425104630507</guid>
    <pubDate>Sun, 25 May 2008 22:46:30 +0800</pubDate>
    <dcterms:modified>2008-05-25T22:46:30+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[用链接来提交表单]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/106146120084114298398</link>
    <description><![CDATA[<div><P>网页代码如下：</P>
<P>&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&lt;META http-equiv='Content-Type' content='text/html; charset=gb2312'&gt;<BR>&lt;TITLE&gt;用链接来提交表单&lt;/TITLE&gt;<BR>&lt;/HEAD&gt;<BR>&lt;BODY &gt;</P>
<P>&lt;form name="<FONT color=#ff0000>welcomeform</FONT>" method="post" action="welcome.asp"&gt; <BR>&lt;input type=text&gt; <BR>&lt;/form&gt; <BR>&lt;a href="javascript:welcomeform.submit();"&gt;提交&lt;/a&gt;</P>
<P>&lt;/BODY&gt;&lt;/HTML&gt;</P>
<P>js代码如下：</P>
<P>&lt;!-- 要实现此效果需要 1 个步骤： --&gt;<BR><BR>&lt;!-- 第 1 步： --&gt;<BR>&lt;!-- 把下面的代码加到&lt;BODY&gt;&lt;/BODY&gt;区域中： --&gt;<BR><BR>&lt;form name="welcomeform" method="post" action="welcome.asp"&gt; <BR>&lt;input type=text&gt; <BR>&lt;/form&gt; <BR><FONT color=#ff0000>&lt;a href="javascript:welcomeform.submit();"&gt;提交&lt;/a&gt;</FONT> </P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/106146120084114298398</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/106146120084114298398</guid>
    <pubDate>Sun, 11 May 2008 16:29:08 +0800</pubDate>
    <dcterms:modified>2008-05-11T16:29:08+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[FreeBSD下安装Zend3.2.8提示File:./dialog does not exist!]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200841021226523</link>
    <description><![CDATA[<div><P style="TEXT-INDENT: 2em">FreeBSD下安装Zend3.2.8，如果用install.sh直接安装的话，会提示dialog文件不存在，如下：</P>
<P style="TEXT-INDENT: 2em">&nbsp;./install.sh</P>
<P style="TEXT-INDENT: 2em">Please, wait ...</P>
<P style="TEXT-INDENT: 2em">Zend Optimizer installation was NOT completed successfully.</P>
<P style="TEXT-INDENT: 2em">File: ./dialog does not exist!</P>
<P style="TEXT-INDENT: 2em">For further assistance, please contact Zend Support at</P>
<P style="TEXT-INDENT: 2em"><A href="https://www.zend.com/support/">https://www.zend.com/support/</A></P>
<P style="TEXT-INDENT: 2em">[To continue, press Enter]</P>
<P style="TEXT-INDENT: 2em">原因：这是官方的一个小失误，dialog是用来进行交互安装的一个文件，如果没有这个文件，交互安装将无法使用，所以这种情况下只能使用文本安装。</P>
<P style="TEXT-INDENT: 2em">解决方法：</P>
<P style="TEXT-INDENT: 2em">1：./install-tty</P>
<P style="TEXT-INDENT: 2em">或者：</P>
<P style="TEXT-INDENT: 2em">2：install.sh --text-mode</P>
<P style="TEXT-INDENT: 2em">============================================</P>
<P style="TEXT-INDENT: 2em">另外说明一下，网上有些人提供的方法说用不同的版本的dialog进行替换，其实这是一个很愚蠢的做法，因为不同版本的dialog是不一样的，这样做容易导致错误发生!</P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200841021226523</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200841021226523</guid>
    <pubDate>Sat, 10 May 2008 14:12:26 +0800</pubDate>
    <dcterms:modified>2008-05-10T14:12:26+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[bsd下安装php5]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/10614612008325113526542</link>
    <description><![CDATA[<div>/usr/ports/lang/php5-extensions</div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/10614612008325113526542</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/10614612008325113526542</guid>
    <pubDate>Fri, 25 Apr 2008 11:35:26 +0800</pubDate>
    <dcterms:modified>2008-04-25T11:35:26+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[freebsd 两个较快的ports镜像]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/106146120083169540288</link>
    <description><![CDATA[<div>/etc/make.conf<br>
MASTER_SITE_OVERRIDE?=http://ports.hshh.org/${DIST_SUBDIR}/<br>
MASTER_SITE_OVERRIDE?=http://ports.cn.freebsd.org/${DIST_SUBDIR}/<br><br>已经测试，速度真的很快，可以到我的最大带宽值！<br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/106146120083169540288</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/106146120083169540288</guid>
    <pubDate>Wed, 16 Apr 2008 09:54:00 +0800</pubDate>
    <dcterms:modified>2008-04-16T09:54:19+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[google地图看到阿拉伯国家一些很奇怪的圆圈]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200831232428551</link>
    <description><![CDATA[<div><P>没事看看google地图，看到阿拉伯国家的时候，发现很奇怪，怎么到处都是一圈一圈的啊，我刚开始还以为是油田，我说阿拉伯国家的油田是很多，但是好像也没有那么多吧，先搞个图片看看！</P>
<P><A href="http://img.photo.163.com/sZSKk7KgnU3MimKfRhsnJQ==/1892637743402453380.jpg" target=_blank><IMG src="http://img.photo.163.com/sZSKk7KgnU3MimKfRhsnJQ==/1892637743402453380.jpg"></A></P>
<P>&nbsp;</P>
<P>大家看了是不是很奇怪啊，哈哈，我在网上找了一些资料，发现不是油田，而是耕地，一种采取圆形技术的耕地，中间那个白色的东西应该是井口吧！阿拉伯国家到处是沙漠，水少，想出这么个办法，真是妙啊，哈哈！</P>
<P>再发个大图，更细致的看看单个圆圈是怎么样的，呵呵</P>
<P><A href="http://img.photo.163.com/JUxp4wsghp1UOyoa-JoM8g==/2882585236493830594.jpg" target=_blank><IMG src="http://img.photo.163.com/JUxp4wsghp1UOyoa-JoM8g==/2882585236493830594.jpg"></A></P>
<P>大家看这个应该仔细了吧，绿色的应该是某种植物哦！</P>
<P>今天长了个见识，呵呵！</P>
<P>然后发个google地图的网址，大家可以直接上去看看效果哦！</P>
<P><A href="http://maps.google.com/maps?ll=27.298376,42.914656&amp;z=16&amp;t=h&amp;hl=zh-TW">http://maps.google.com/maps?ll=27.298376,42.914656&amp;z=16&amp;t=h&amp;hl=zh-TW</A></P>
<P>&nbsp;</P>
<P>&nbsp;</P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200831232428551</comments>
    <slash:comments>1</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200831232428551</guid>
    <pubDate>Sat, 12 Apr 2008 15:24:28 +0800</pubDate>
    <dcterms:modified>2008-04-12T15:33:50+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[linux下忘记了mysql的root用户密码解决办法：]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200831110131151</link>
    <description><![CDATA[<div>linux下忘记了mysql的root用户密码解决办法： 
<P>　　一、以系统的root用户（什么，你的系统的root用户密码也忘了。那只好看我另外一篇linux下忘记root用户的解决办法了先解决这个问题）登陆系统，进入终端 
</P><P>　　[root@localhost /]# 
</P><P>　　二、杀掉mysql进程 
</P><P>　　方法1、[root@localhost /]#killall mysqld 
</P><P>　　方法2、[root@localhost /]#ps -aux&nbsp; //查看所有进程，找到mysql进程的pid 
</P><P>　　然后 
</P><P>　　[root@localhost /]#kill pid&nbsp;&nbsp; //pid是mysql的进程号 
</P><P>　　三、用--skip-grant-tables参数启动mysqld 
</P><P>　　[root@localhost /]#/usr/local/mysql/bin/mysqld_safe --skip-grant-tables&amp;&nbsp; 
</P><P>　　// 其中/usr..../bin是我的mysql安装目录 
</P><P>　　[root@localhost /]#/usr/local/mysql/bin/mysql&nbsp; //进入mysql 
</P><P>　　mysql&gt; use mysql&nbsp;&nbsp; //切换到mysql database</P>
<P>　　mysql&gt; UPDATE user SET password=password('123456') WHERE user='root'; 
</P><P>　　//将root密码该为123456了 
</P><P>　　四、注意事项 
</P><P>　　The full command to load MySQL like this is: 
</P><P>　　mysqld_safe --skip-grant-tables --autoclose 
</P><P>　　(Editor's Note: Our technical reviewer found that he had to launch the mysqld_safe command 
</P><P>　　without the '--autoclose' flag, otherwise the daemon never started.) 
</P><P>　　这是国外网站说的，我没用autoclosa也成功了 
</P><P>　　但是我在执行/usr/local/mysql/bin/mysqld_safe --skip-grant-tables&amp;即出现错误提示： 
</P><P>　　./mysqld_safe 
</P><P>　　starting mysqld daemon with databases from /usr/local/var 
</P><P>　　STOPPING server from pid file /usr/local/var/localhost.localdomain.pid 
</P><P>　　mysqld&nbsp; ended 
</P><P>　　然后进入/usr/local/var/ 
</P><P>　　vi ./localhost.localdomain.err 内容如下： 
</P><P>　　050410 04:02:59 mysqld started 
</P><P>　　050410 4:03:00 InnoDB:Operating system error number 13 in a file operation. 
</P><P>　　InnoDB:The error means mysqld does not have the access rights to 
</P><P>　　InnoDB:the directory. 
</P><P>　　InnoDB:File name ./ibdata1 
</P><P>　　InnoDB:File operation call:'create'. 
</P><P>　　InnoDB:Cannot continue operation. 
</P><P>　　050410 04:03:00 mysqld ended 
</P><P>　　怀疑是./var目录的访问权限，故如下操作： 
</P><P>　　chmod 777 ./var 
</P><P>　　然后重新执行后台，仍出以上错误，但在localhost.localdomain.err文件中的错误信息已改为找不到一个叫做 
</P><P>　　help.*的文件了(这个文件名我记不得了) 
</P><P>　　这是因为我的mysql安装目录的读写权限是这样造成的 
</P><P>　　mysql安装目录属于用户root，但是群组是mysql的 
</P><P>　　把群组也改为root即可。 </P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200831110131151</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200831110131151</guid>
    <pubDate>Fri, 11 Apr 2008 10:13:11 +0800</pubDate>
    <dcterms:modified>2008-04-11T10:13:11+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[关于freebsd的一些笔记]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/106146120083102427329</link>
    <description><![CDATA[<div><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 近期更换mail server，采用freebsd架构了，由于刚刚接触freebsd，里面还有些不是很明白，找了好多资料后，得到的一些结论特写下来，以方便后面查看。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;freebsd 6.2 平台下</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 安装完bsd以后呢，发现网卡没有配置上去，解决方法：</P>
<P>&nbsp;首先运行命令&nbsp; ifconfig ，查看网卡的名字是什么，我的输出如下：</P>
<P><FONT color=#ff0000>em0</FONT>: flags=8802&lt;BROADCAST,SIMPLEX,MULTICAST&gt; mtu 1500<BR>&nbsp;options=b&lt;RXCSUM,TXCSUM,VLAN_MTU&gt;<BR>&nbsp;ether 00:19:21:65:af:09<BR>&nbsp;media: Ethernet autoselect (100baseTX &lt;full-duplex&gt;)<BR>&nbsp;status: active<BR><FONT color=#ff0000>rl0</FONT>: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu 1500<BR>&nbsp;options=8&lt;VLAN_MTU&gt;<BR>&nbsp;inet6 fe80::219:e0ff:fe1c:1bb0%rl0 prefixlen 64 scopeid 0x2 <BR>&nbsp;inet 121.13.239.110 netmask 0xfffffff8 broadcast 121.13.239.111<BR>&nbsp;ether 00:19:e0:1c:1b:b0<BR>&nbsp;media: Ethernet autoselect (100baseTX &lt;full-duplex&gt;)<BR>&nbsp;status: active<BR>plip0: flags=108810&lt;POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT&gt; mtu 1500<BR>lo0: flags=8049&lt;UP,LOOPBACK,RUNNING,MULTICAST&gt; mtu 16384<BR>&nbsp;inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 <BR>&nbsp;inet6 ::1 prefixlen 128 <BR>&nbsp;inet 127.0.0.1 netmask 0xff000000 </P>
<P>&nbsp;&nbsp;如上所示，网卡的名字分别为 em0 和rl0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 编辑/etc/rc.conf 添加一行： ifconfig em0 192.168.0.7 netmask 255.255.255.0 up</P>
<P>输入以上命令就是说在开机的时候，加入一条更改ip的命令。</P>
<P>有时候会出现默认网关不能正常工作的情况，解决方法是添加一个默认路由，命令是：</P>
<P><FONT color=#0000ff>route add 0.0.0.0 121.13.239.105 1</FONT></P>
<P><FONT color=#000000>查看默认路由表的命令是： </FONT><FONT color=#333399><FONT color=#0000ff>netstat -r</FONT> </FONT></P>
<P><FONT color=#000000>如果出现如下：</FONT></P>
<P>0&amp;0x1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 121.13.239.105&nbsp;&nbsp;&nbsp;&nbsp; UGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp; rl0</P>
<P>表示配置成功了，同理，编辑/etc/rc.conf&nbsp;&nbsp; 加入一条 </P>
<P><FONT color=#0000ff>route add 0.0.0.0 121.13.239.105 1 </FONT></P>
<P><FONT color=#000000>表示在开机的时候自动添加</FONT></P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/106146120083102427329</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/106146120083102427329</guid>
    <pubDate>Thu, 10 Apr 2008 14:04:27 +0800</pubDate>
    <dcterms:modified>2008-04-10T14:04:27+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[将网络打印机映射为本机lpt1打印机的方法]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/10614612008224112847792</link>
    <description><![CDATA[<div>有时候在Windows连接网络打印机总是连不上尤其是Windows2000连接Windows XP的共享打印机时，这时可以采取另一种方法：<br>
就是使用windows的net use命令。<br><span style="color: rgb(153, 51, 0);">
net use i: \\192.168.1.1\print$ <br>这个可以不需要<br></span>
net use lpt1: \\192.168.1.1\hplaserj <br>
第一条命令将安装打印服务器的打印机驱动程序映射到i盘，第二条命令将打印机映射到本地的lpt1端口上，接下来所作的事情很简单了，就是到控制面板中添
加打印机，然后选择安装本地打印机，取消即插即用设备搜索，选择lpt1端口，然后选择从磁盘安装驱动程序，就是选择上面的i盘安装驱动程序，这样就把网
络打印机当作本地打印机安装了！<br>
<br>
上面命令中假设您网络上打印机服务器的IP地址是192.168.1.1，打印机共享的名字是hplaserj。<br>
</div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/10614612008224112847792</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/10614612008224112847792</guid>
    <pubDate>Mon, 24 Mar 2008 11:28:47 +0800</pubDate>
    <dcterms:modified>2008-03-24T11:30:39+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[用iptables控制上网权限]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200821993111588</link>
    <description><![CDATA[<div>网络架构一般是一个外网ip，内网的用的是192.168.0.0/16 段的ip。<br>在网关的机子上配置好了nat以后，要控制某些人不能上网，咋搞咧？呵呵，我把我的经验写下来吧，搞公司的电脑，搞了几个小时的成果。<br><br>比如网关的内网ip是 192.168.0.1&nbsp; ，客户机的则是0.2等等啦，现在我想让0.3ip的机子可以上网，其他的都不能上，这么来<br><br><font size="4"><span style="color: rgb(255, 0, 0);">iptables -I FORWARD 1 -s 192.168.0.2 -d 0.0.0.0/0 -j ACCEPT</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">iptables -I FORWARD 2 -s 192.168.0.0/24 -d 0.0.0.0/0 -j DROP</span></font><br><br>说明一下，第一条命令的意思就是：在filt表里面的FORWARD链的第一行加入允许0.2这个ip地址的机子访问任何ip地址。<br><br>第二条命令意思：拒绝局域网内所有的机子访问网络。<br><br>为什么非要这么设置呢？<br>大家注意了，iptables防火墙规则是有先后顺序的，防火墙匹配规则是从第一条开始匹配，如果符合，则不再匹配第二条，如果不符合，则接着匹配第二条，同理，如果匹配了，则结束匹配，如果仍然不匹配，则接着向下，一直到匹配为止。<br>所以这个顺序是相当重要的。<br><br>假如现在有个ip为0.3的机子想访问网络，iptables开始匹配第一行，发现不匹配，则继续匹配第二行，这个时候，匹配了，所以执行drop的动作。<br><br>同理，如果还想继续添加可以上网的机子，则应该如下命令<br>iptables -I FORWARD 2 -s 192.168.0.X -d 0.0.0.0/0 -j ACCEPT<br>这个地方注意了，为什么序号还是2呢？<br>这个命令的意思是在Forward链的第二行加入一行，等这个命令执行以后，用iptables -L查看的时候，就会发现<br>iptables -I FORWARD 2 -s 192.168.0.0/24 -d 0.0.0.0/0 -j DROP 这个命令已经变成第三行了，明白了，-I参数的作用就是插入的意思，以后的依次往后推。<br><br>最重要的一点，就是要保证最后的一条就是拒绝所有。<br><br>还有一点要注意，控制网络访问权限一定要用forward链，因为input链是控制本机的，forward链则是控制转发的链。<br></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200821993111588</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200821993111588</guid>
    <pubDate>Wed, 19 Mar 2008 21:31:11 +0800</pubDate>
    <dcterms:modified>2008-03-19T21:31:11+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[iptables 读书笔记]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200821221458398</link>
    <description><![CDATA[<div>iptables 指令<br>
语法：<br><font style="font-weight: bold;" size="5">
iptables [-t table] command [match] [-j target/jump]<br><span style="color: rgb(255, 153, 0);">要搞清楚语法格式，参数和命令的区别</span><br></font>
-t <font color="red">参数</font>用来指定规则表，内建的规则表有三个，分别是：nat、mangle 和 filter，当未指定规则表时，则一律视为是 filter。<br>
个规则表的功能如下：<br>
<br>
nat 此规则表拥有 Prerouting 和 postrouting 两个规则链，主要功能为进行一对一、一对多、多对多等网址转译工作（SNAT<br>
DNAT），由于转译工作的特性，需进行目的地网址转译的封包，就不需要进行来源网址转译，反之亦然，因此为了提升改写封包的<br>
率，在防火墙运作时，每个封包只会经过这个规则表一次。如果我们把封包过滤的规则定义在这个数据表里，将会造成无法对同一<br>
包进行多次比对，因此这个规则表除了作网址转译外，请不要做其它用途。<br>
<br>
mangle 此规则表拥有 Prerouting、FORWARD 和 postrouting 三个规则链。<br>
除了进行网址转译工作会改写封包外，在某些特殊应用可能也必须去改写封包（TTL、TOS）或者是设定 MARK（将封包作记号，以<br>
进行后续的过滤），这时就必须将这些工作定义在 mangle 规则表中，由于使用率不高，我们不打算在这里讨论 mangle 的用法。<br>
<br>
filter 这个规则表是预设规则表，拥有 INPUT、FORWARD 和 OUTPUT 三个规则链，这个规则表顾名思义是用来进行封包过滤的<br>
理动作（例如：DROP、 LOG、 ACCEPT 或 REJECT），我们会将基本规则都建立在此规则表中。<br>
<br>
常用<font color="green">命令</font>列表：<br>
<font color="green">命令</font> -A, --append<br>
范例 iptables -A INPUT ...<br>
说明 新增规则到某个规则链中，该规则将会成为规则链中的最后一条规则。<br>
<font color="green">命令</font> -D, --delete<br>
范例 iptables -D INPUT --dport 80 -j DROP<br>
iptables -D INPUT 1<br>
说明 从某个规则链中删除一条规则，可以输入完整规则，或直接指定规则编号加以删除。<br>
<font color="green">命令</font> -R, --replace<br>
范例 iptables -R INPUT 1 -s 192.168.0.1 -j DROP<br>
说明 取代现行规则，规则被取代后并不会改变顺序。<br>
<font color="green">命令</font> -I, --insert<br>
范例 iptables -I INPUT 1 --dport 80 -j ACCEPT<br>
说明 插入一条规则，原本该位置上的规则将会往后移动一个顺位。<br>
<font color="green">命令</font> -L, --list<br>
范例 iptables -L INPUT<br>
说明 列出某规则链中的所有规则。<br>
<font color="green">命令</font> -F, --flush<br>
范例 iptables -F INPUT<br>
说明 删除某规则链中的所有规则。<br>
<font color="green">命令</font> -Z, --zero<br>
范例 iptables -Z INPUT<br>
说明 将封包计数器归零。封包计数器是用来计算同一封包出现次数，是过滤阻断式攻击不可或缺的工具。<br>
<font color="green">命令</font> -N, --new-chain<br>
范例 iptables -N allowed<br>
说明 定义新的规则链。<br>
<font color="green">命令</font> -X, --delete-chain<br>
范例 iptables -X allowed<br>
说明 删除某个规则链。<br>
<font color="green">命令</font> -P, --policy<br>
范例 iptables -P INPUT DROP<br>
说明 定义过滤政策。 也就是未符合过滤条件之封包，预设的处理方式。<br>
<font color="green">命令</font> -E, --rename-chain<br>
范例 iptables -E allowed disallowed<br>
说明 修改某自订规则链的名称。<br>
常用封包比对<font color="red">参数</font>：<br>
<font color="red">参数</font> -p, --protocol<br>
范例 iptables -A INPUT -p tcp<br>
说明 比对通讯协议类型是否相符，可以使用 ! 运算子进行反向比对，例如：-p ! tcp ，意思是指除 tcp 以外的其它类型，包含<br>
udp、icmp ...等。如果要比对所有类型，则可以使用 all 关键词，例如：-p all。<br>
<font color="red">参数</font> -s, --src, --source<br>
范例 iptables -A INPUT -s 192.168.1.1<br>
说明 用来比对封包的来源 IP，可以比对单机或网络，比对网络时请用数字来表示屏蔽，例如：-s 192.168.0.0/24，比对 IP 时<br>
可以使用 ! 运算子进行反向比对，例如：-s ! 192.168.0.0/24。<br>
<font color="red">参数</font> -d, --dst, --destination<br>
范例 iptables -A INPUT -d 192.168.1.1<br>
说明 用来比对封包的目的地 IP，设定方式同上。<br>
<font color="red">参数</font> -i, --in-interface<br>
范例 iptables -A INPUT -i eth0<br>
说明 用来比对封包是从哪片网卡进入，可以使用通配字符 + 来做大范围比对，例如：-i eth+ 表示所有的 ethernet 网卡，也<br>
以使用 ! 运算子进行反向比对，例如：-i ! eth0。<br>
<font color="red">参数</font> -o, --out-interface<br>
范例 iptables -A FORWARD -o eth0<br>
说明 用来比对封包要从哪片网卡送出，设定方式同上。<br>
<font color="red">参数</font> --sport, --source-port<br>
范例 iptables -A INPUT -p tcp --sport 22<br>
说明 用来比对封包的来源埠号，可以比对单一埠，或是一个范围，例如：--sport 22:80，表示从 22 到 80 埠之间都算是符合<br>
件，如果要比对不连续的多个埠，则必须使用 --multiport <font color="red">参数</font>，详见后文。比对埠号时，可以使用 ! 运算子进行反向比对。<br>
<font color="red">参数</font> --dport, --destination-port<br>
范例 iptables -A INPUT -p tcp --dport 22<br>
说明 用来比对封包的目的地埠号，设定方式同上。<br>
<font color="red">参数</font> --tcp-flags<br>
范例 iptables -p tcp --tcp-flags SYN,FIN,ACK SYN<br>
说明 比对 TCP 封包的状态旗号，<font color="red">参数</font>分为两个部分，第一个部分列举出想比对的旗号，第二部分则列举前述旗号中哪些有被设<br>
，未被列举的旗号必须是空的。TCP 状态旗号包括：SYN（同步）、ACK（应答）、FIN（结束）、RST（重设）、URG（紧急）<br>
PSH（强迫推送） 等均可使用于<font color="red">参数</font>中，除此之外还可以使用关键词 ALL 和 NONE 进行比对。比对旗号时，可以使用 ! 运算子<br>
行反向比对。<br>
<font color="red">参数</font> --syn<br>
范例 iptables -p tcp --syn<br>
说明 用来比对是否为要求联机之 TCP 封包，与 iptables -p tcp --tcp-flags SYN,FIN,ACK SYN 的作用完全相同，如果使用 !<br>
运算子，可用来比对非要求联机封包。<br>
<font color="red">参数</font> -m multiport --source-port<br>
范例 iptables -A INPUT -p tcp -m multiport --source-port 22,53,80,110<br>
说明 用来比对不连续的多个来源埠号，一次最多可以比对 15 个埠，可以使用 ! 运算子进行反向比对。<br>
<font color="red">参数</font> -m multiport --destination-port<br>
范例 iptables -A INPUT -p tcp -m multiport --destination-port 22,53,80,110<br>
说明 用来比对不连续的多个目的地埠号，设定方式同上。<br>
<font color="red">参数</font> -m multiport --port<br>
范例 iptables -A INPUT -p tcp -m multiport --port 22,53,80,110<br>
说明 这个<font color="red">参数</font>比较特殊，用来比对来源埠号和目的埠号相同的封包，设定方式同上。注意：在本范例中，如果来源端口号为 80 <br>
目的地埠号为 110，这种封包并不算符合条件。<br>
<font color="red">参数</font> --icmp-type<br>
范例 iptables -A INPUT -p icmp --icmp-type 8<br>
说明 用来比对 ICMP 的类型编号，可以使用代码或数字编号来进行比对。请打 iptables -p icmp --help 来查看有哪些代码可<br>
用。<br>
<font color="red">参数</font> -m limit --limit<br>
范例 iptables -A INPUT -m limit --limit 3/hour<br>
说明 用来比对某段时间内封包的平均流量，上面的例子是用来比对：每小时平均流量是否超过一次 3 个封包。 除了每小时平均<br>
次外，也可以每秒钟、每分钟或每天平均一次，默认值为每小时平均一次，<font color="red">参数</font>如后： /second、 /minute、/day。 除了进行封<br>
数量的比对外，设定这个<font color="red">参数</font>也会在条件达成时，暂停封包的比对动作，以避免因骇客使用洪水攻击法，导致服务被阻断。<br>
<font color="red">参数</font> --limit-burst<br>
范例 iptables -A INPUT -m limit --limit-burst 5<br>
说明 用来比对瞬间大量封包的数量，上面的例子是用来比对一次同时涌入的封包是否超过 5 个（这是默认值），超过此上限的封<br>
将被直接丢弃。使用效果同上。<br>
<font color="red">参数</font> -m mac --mac-source<br>
范例 iptables -A INPUT -m mac --mac-source 00:00:00:00:00:01<br>
说明 用来比对封包来源网络接口的硬件地址，这个<font color="red">参数</font>不能用在 OUTPUT 和 Postrouting 规则炼上，这是因为封包要送出到网<br>
后，才能由网卡驱动程序透过 ARP 通讯协议查出目的地的 MAC 地址，所以 iptables 在进行封包比对时，并不知道封包会送到<br>
个网络接口去。<br>
<font color="red">参数</font> --mark<br>
范例 iptables -t mangle -A INPUT -m mark --mark 1<br>
说明 用来比对封包是否被表示某个号码，当封包被比对成功时，我们可以透过 MARK 处理动作，将该封包标示一个号码，号码最<br>
不可以超过 4294967296。<br>
<font color="red">参数</font> -m owner --uid-owner<br>
范例 iptables -A OUTPUT -m owner --uid-owner 500<br>
说明 用来比对来自本机的封包，是否为某特定使用者所产生的，这样可以避免服务器使用 root 或其它身分将敏感数据传送出<br>
，可以降低系统被骇的损失。可惜这个功能无法比对出来自其它主机的封包。<br>
<font color="red">参数</font> -m owner --gid-owner<br>
范例 iptables -A OUTPUT -m owner --gid-owner 0<br>
说明 用来比对来自本机的封包，是否为某特定使用者群组所产生的，使用时机同上。<br>
<font color="red">参数</font> -m owner --pid-owner<br>
范例 iptables -A OUTPUT -m owner --pid-owner 78<br>
说明 用来比对来自本机的封包，是否为某特定行程所产生的，使用时机同上。<br>
<font color="red">参数</font> -m owner --sid-owner<br>
范例 iptables -A OUTPUT -m owner --sid-owner 100<br>
说明 用来比对来自本机的封包，是否为某特定联机（Session ID）的响应封包，使用时机同上。<br>
<font color="red">参数</font> -m state --state<br>
范例 iptables -A INPUT -m state --state RELATED,ESTABLISHED<br>
说明 用来比对联机状态，联机状态共有四种：INVALID、ESTABLISHED、NEW 和 RELATED。<br>
<br>
INVALID 表示该封包的联机编号（Session ID）无法辨识或编号不正确。<br>
ESTABLISHED 表示该封包属于某个已经建立的联机。<br>
NEW 表示该封包想要起始一个联机（重设联机或将联机重导向）。<br>
RELATED 表示该封包是属于某个已经建立的联机，所建立的新联机。例如：FTP-DATA 联机必定是源自某个 FTP 联机。<br>
<br>
常用的处理动作：<br>
-j <font color="red">参数</font>用来指定要进行的处理动作，常用的处理动作包括：ACCEPT、REJECT、DROP、REDIRECT、MASQUERADE、LOG、DNAT、<br>
<br>
SNAT、MIRROR、QUEUE、RETURN、MARK，分别说明如下：<br>
ACCEPT 将封包放行，进行完此处理动作后，将不再比对其它规则，直接跳往下一个规则炼（natostrouting）。<br>
REJECT 拦阻该封包，并传送封包通知对方，可以传送的封包有几个选择：ICMP port-unreachable、ICMP echo-reply 或是 <br>
tcp-reset（这个封包会要求对方关闭联机），进行完此处理动作后，将不再比对其它规则，直接 中断过滤程序。 范例如下：<br>
iptables -A FORWARD -p TCP --dport 22 -j REJECT --reject-with tcp-reset<br>
DROP 丢弃封包不予处理，进行完此处理动作后，将不再比对其它规则，直接中断过滤程序。<br>
REDIRECT 将封包重新导向到另一个端口（PNAT），进行完此处理动作后，将 会继续比对其它规则。 这个功能可以用来实作通透式<br>
porxy 或用来保护 web 服务器。例如：iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080<br>
MASQUERADE 改写封包来源 IP 为防火墙 NIC IP，可以指定 port 对应的范围，进行完此处理动作后，直接跳往下一个规则<br>
（mangleostrouting）。这个功能与 SNAT 略有不同，当进行 IP 伪装时，不需指定要伪装成哪个 IP，IP 会从网卡直接读<br>
，当使用拨接连线时，IP 通常是由 ISP 公司的 DHCP 服务器指派的，这个时候 MASQUERADE 特别有用。范例如下：<br>
iptables -t nat -A POSTROUTING -p TCP -j MASQUERADE --to-ports 1024-31000<br>
LOG 将封包相关讯息纪录在 /var/log 中，详细位置请查阅 /etc/syslog.conf 组态档，进行完此处理动作后，将会继续比对其<br>
规则。例如：<br>
iptables -A INPUT -p tcp -j LOG --log-prefix "INPUT packets"<br>
SNAT 改写封包来源 IP 为某特定 IP 或 IP 范围，可以指定 port 对应的范围，进行完此处理动作后，将直接跳往下一个规则<br>
（mangleostrouting）。范例如下：<br>
iptables -t nat -A POSTROUTING -p tcp-o eth0 -j SNAT --to-source 194.236.50.155-194.236.50.160:1024-32000<br>
DNAT 改写封包目的地 IP 为某特定 IP 或 IP 范围，可以指定 port 对应的范围，进行完此处理动作后，将会直接跳往下一个规<br>
炼（filter:input 或 filter:forward）。范例如下：<br>
iptables -t nat -A PREROUTING -p tcp -d 15.45.23.67 --dport 80 -j DNAT --to-destination<br>
192.168.1.1-192.168.1.10:80-100<br>
MIRROR 镜射封包，也就是将来源 IP 与目的地 IP 对调后，将封包送回，进行完此处理动作后，将会中断过滤程序。<br>
QUEUE 中断过滤程序，将封包放入队列，交给其它程序处理。透过自行开发的处理程序，可以进行其它应用，例如：计算联机费<br>
.......等。<br>
RETURN 结束在目前规则炼中的过滤程序，返回主规则炼继续过滤，如果把自订规则炼看成是一个子程序，那么这个动作，就相当<br>
提早结束子程序并返回到主程序中。<br>
MARK 将封包标上某个代号，以便提供作为后续过滤的条件判断依据，进行完此处理动作后，将会继续比对其它规则。范例如下：<br>
iptables -t mangle -A PREROUTING -p tcp --dport 22 -j MARK --set-mark 2</div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200821221458398</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200821221458398</guid>
    <pubDate>Wed, 12 Mar 2008 14:14:58 +0800</pubDate>
    <dcterms:modified>2008-03-12T14:16:37+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[iptables+NAT+端口映射]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/1061461200821165631647</link>
    <description><![CDATA[<div><font size="2">实现目标： <br>&nbsp; &nbsp;利用iptabels给局域网做NAT透明代理，比如网吧或公司企业的上网代理服务器！同时实现了内网WEB服务器的端口映射！并且解决了WEB服务器访问者IP都为代理服务器IP的问题！同时内外网皆可正常通过公网IP访问内网的WEB服务器！</font><font size="2">实现目标： <br>&nbsp;
&nbsp;利用iptabels给局域网做NAT透明代理，比如网吧或公司企业的上网代理服务器！同时实现了内网WEB服务器的端口映射！并且解决了WEB服务器
访问者IP都为代理服务器IP的问题！同时内外网皆可正常通过公网IP访问内网的WEB服务器！（加了SQUID后还没有成功，努力中！） <br><br>软硬件环境如下： <br>&nbsp;
&nbsp;操作系统为 RHEL 4 ，3COM网卡两张，eth0为外网网卡，IP为：221.222.111.10; &nbsp;
eth1为内网网卡，IP为：192.168.0.1; &nbsp;内网WEB服务器IP为：192.168.0.200
。网络环境为：中国电信10M光纤，固定IP！ <br><br>方法为如下： <br>&nbsp; &nbsp;首先我注释掉了iptables文件原始的全部内容，然后在iptables文件中写入如下内容！ <br><br>##################################### Nat段开始 ######################################### <br>*nat <br>:PREROUTING ACCEPT [0:0] <br>:OUTPUT ACCEPT [0:0] <br>:POSTROUTING ACCEPT [0:0] <br># <br>#------------------------------ Web Server 端口映射 ------------------------------ <br># 192.168.0.200 端口80 <br>###################### <br># 用DNAT作端口映射！注意以下指令一定要在NAT透明代理的前面，否则无效！ <br>-A PREROUTING -i eth1 -p tcp -d 221.222.111.10 --dport 80 -j DNAT --to-destination 192.168.0.200:80 <br>-A PREROUTING -i eth0 -p tcp -d 221.222.111.10 --dport 80 -j DNAT --to-destination 192.168.0.200:80 <br># <br>#------------------------------ Iptables NAT 透明代理 ------------------------------ <br># <br>-A POSTROUTING -s 192.168.0.0/255.255.255.0 -j SNAT --to 221.222.111.10 <br># <br>COMMIT <br>##################################### Nat段结束 ######################################### <br><br>###################################### Filter段开始 ##################################### <br># <br>*filter <br>:INPUT ACCEPT [0:0] <br>:FORWARD ACCEPT [0:0] <br>:OUTPUT ACCEPT [0:0] <br># <br>#防止网络上其它计算机使用Ping命令探测本机： <br>-A INPUT -p icmp --icmp-type echo-request -i eth0 -j DROP <br># <br># 防止广播包从IP代理服务器进入局域网： <br>-A INPUT -s 255.255.255.255 -i eth0 -j DROP <br>-A INPUT -s 224.0.0.0/224.0.0.0 -i eth0 -j DROP <br>-A INPUT -d 0.0.0.0 -i eth0 -j DROP <br># 屏蔽掉以下的TCP和UDP端口： <br>-A INPUT -i eth1 -p udp -m udp --dport 3 -j DROP <br>-A INPUT -i eth1 -p tcp -m tcp --dport 3 -j DROP <br>-A INPUT -i eth1 -p tcp -m tcp --dport 111 -j DROP <br>-A INPUT -i eth1 -p udp -m udp --dport 111 -j DROP <br>-A INPUT -i eth1 -p udp -m udp --dport 587 -j DROP <br>-A INPUT -i eth1 -p tcp -m tcp --dport 587 -j DROP <br># <br>COMMIT <br>###################################### Filter段结束 ##################################### <br><br>修改完以上的文件后，再将<span style="color: rgb(255, 0, 0);">/etc/sysctl.conf </span>文件里面修改成 <span style="color: rgb(255, 0, 0);">net.ipv4.ip_forward = 1 </span>，这个很重要，不然NAT代理不能生效的！ <br><br>然后用#: service iptables restart 这个指令重起iptables 服务！！OK，你再试试看代理服务和WEB能否则正常访问，我想一定可以的！ <br><br><br>附： <br>&nbsp; &nbsp;Web Server 端口映射一定要在 Iptables NAT透明代理指令前面，否则内网用户将无法通过公网IP或域名访问内网的Web服务器！</font></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/1061461200821165631647</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/1061461200821165631647</guid>
    <pubDate>Tue, 11 Mar 2008 18:56:31 +0800</pubDate>
    <dcterms:modified>2008-03-11T18:58:10+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[关于couier的一些理解]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/10614612008073441675</link>
    <description><![CDATA[<div><P style="TEXT-INDENT: 2em">关于对courier的一些理解，这个玩意实在复杂，网上都没有完整介绍的中文版，都是这里抄袭一点，那里抄袭一点的，郁闷，想配置个mail服务器，真是麻烦。</P>
<P style="TEXT-INDENT: 2em">现在couier的主页不能访问了，通过google的缓存，找到关于这个软件包的一些信息。关于我的理解，我写下了，算是做个笔记吧。</P>
<P style="TEXT-INDENT: 2em">couier是一个软件包，里面有各种插件，各种插件来实现不同的功能。各类插件如下，我都做了标示了。</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">大家以后配置linux下的mail server ，配置相当的复杂，各类组件真是多，各个组件之间的关系和作用，一定要先搞清楚，我就上了当，看人家如何配置mail server，看的是云里雾里，就是没有搞清楚各个组件之间的相互关系。每个组件起什么作用等等，一定要搞清楚的。</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">英文原文如下，大概的翻译下</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">Courier Mail Server - latest releases</P>
<P style="TEXT-INDENT: 2em">
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/KEYS.bin">Distribution keys</A></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/courier-0.58.0.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/courier-0.58.0.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/courier/courier-0.58.0.torrent">torrent</A>* </P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/imap/bynari-connector.html">Outlook&#8482; plugin for Courier-IMAP</A> (commercial software)</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;and a <A href="http://www.courier-mta.org/imap/bynari-webclient.html">Plugin-compatible webmail server</A> (commercial beta software) </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This package includes the entire source code for the <A href="http://www.courier-mta.org/">Courier mail server</A> - the mail server, IMAP server, webmail server, and the maildrop mail filter. You do not need to install those individual packages if you download this package.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/courier-authlib-0.60.2.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/courier-authlib-0.60.2.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/courier-authlib/courier-authlib-0.60.2.torrent">torrent</A>* </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em"><FONT size=5><FONT color=#ff0000>The Courier Authentication</FONT> </FONT>Library is a generic authentication API that encapsulates the process of validating account passwords. In addition to reading the traditional account passwords from /etc/passwd, the account information can alternatively be obtained from an LDAP directory; a MySQL or a PostgreSQL database; or a GDBM or a DB file. The Courier authentication library must be installed before building any Courier packages that needs direct access to mailboxes (in other words, all packages except for courier-sox and courier-analog).</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/courier-analog-0.15.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/courier-analog-0.15.tar.bz2.sig">signature</A>) </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This is an optional package, the Courier log analyzer. Courier-analog generates log summaries for incoming and outgoing SMTP connections, and IMAP and POP3 activity. courier-analog can generate output in text or HTML format.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/courier-imap-4.3.0.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/courier-imap-4.3.0.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/courier-imap/courier-imap-4.3.0.torrent">torrent</A>* </P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/imap/bynari-connector.html"><FONT size=5>Outlook&#8482; plugin for Courier-IMAP</FONT></A> (commercial software)</P>
<P style="TEXT-INDENT: 2em">&nbsp;&nbsp;&nbsp;&nbsp;and a <A href="http://www.courier-mta.org/imap/bynari-webclient.html">Plugin-compatible webmail server</A> (commercial beta software) </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This package contains the standalone Courier IMAP server, which is used to provide IMAP access to local mailboxes. Courier-IMAP is provided here as a separate package that can be used with other mail servers as well.</P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/imap/">More information about the Courier-IMAP server</A>.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/sqwebmail-5.2.0.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/sqwebmail-5.2.0.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/sqwebmail/sqwebmail-5.2.0.torrent">torrent</A>* </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This package contains the SqWebMail webmail CGI. This CGI is used by the Courier mail server to provide webmail access to local mailboxes. SqWebMail is provided here as a separate package that can be used with other mail servers as well.</P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/sqwebmail/">More information about SqWebMail</A>.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/maildrop/maildrop-2.0.4.torrent">torrent</A>* </TD></TR></TBODY></TABLE>
<TABLE cellPadding=1 bgColor=#000000 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellPadding=16 bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD>NEW: Download the latest development snapshot (22-Jul-2007):
<P></P>
<P style="TEXT-INDENT: 2em">
<TABLE cellPadding=4 border=0>
<TBODY>
<TR>Filename: 
<TD>maildrop-2.0.4.20070721.tar.bz2 (2.2Mb)</TD></TR>
<TR>Download: 
<TD><A href="http://torrents.courier-mta.org/maildrop-dev/maildrop-2.0.4.20070721.torrent">BitTorrent download</A>*</TD></TR>
<TR>&nbsp; 
<TD>(<A href="http://courier.cvs.sourceforge.netcourier/courier/maildrop/ChangeLog">changelog</A>) </TD></TR></TBODY></TABLE></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This package contains the maildrop delivery agent/mail filter. This mail filter module is included in the Courier mail server, which uses it to filter incoming mail. Maildrop is provided here as a separate package that can be used with other mail servers as well.</P>
<P style="TEXT-INDENT: 2em"><A href="http://www.flounder.net/~mrsam/maildrop/">More information about maildrop</A>.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/courier-sox-0.07.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/courier-sox-0.07.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/courier-sox/courier-sox-0.07.torrent">torrent</A>* </TD></TR></TBODY></TABLE>
<TABLE cellPadding=1 bgColor=#000000 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellPadding=16 bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD>NEW: Download the latest development snapshot (22-Jul-2007):
<P></P>
<P style="TEXT-INDENT: 2em">
<TABLE cellPadding=4 border=0>
<TBODY>
<TR>Filename: 
<TD>courier-sox-0.07.20070721.tar.bz2 (533Kb)</TD></TR>
<TR>Download: 
<TD><A href="http://torrents.courier-mta.org/courier-sox-dev/courier-sox-0.07.20070721.torrent">BitTorrent download</A>*</TD></TR>
<TR>&nbsp; 
<TD>(<A href="http://courier.cvs.sourceforge.netcourier/courier/sox/ChangeLog">changelog</A>) </TD></TR></TBODY></TABLE></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This package contains the Courier Socks 5 Proxy client library, which allows Courier to send outgoing mail using a Socks 5 proxy. You will need to install this package before building Courier in order to use a Socks proxy to send outgoing mail.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/cone-0.74.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/cone-0.74.tar.bz2.sig">signature</A>), <A href="http://torrents.courier-mta.org/cone/cone-0.74.torrent">torrent</A>* </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">This package contains Cone, a text-based mail client based, in part, on Courier libraries.</P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/cone/index.html">More information about Cone</A>.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>

<P></P>
<P style="TEXT-INDENT: 2em"><A href="http://prdownloads.sourceforge.net/courier/sysconftool-0.15.tar.bz2">HTTP</A> (<A href="http://prdownloads.sourceforge.net/courier/sysconftool-0.15.tar.bz2.sig">signature</A>) </TD></TR></TBODY></TABLE></P>
<P style="TEXT-INDENT: 2em">The sysconftool utility contains an additional autoconf macro used by Courier to install configuration files. You only need to install sysconftool if you intend to check out Courier from CVS. You do not need to install sysconftool in order to compile and install tarballed releases.</P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.org/sysconftool/">More information about sysconftool</A>.</P>
<P style="TEXT-INDENT: 2em">(<A href="http://sourceforge.net/project/showfiles.php?group_id=5404">Download older/other releases</A>)
</P><HR>
*Development snapshots are available via <A href="http://www.bittorrent.com/">BitTorrent</A> only. BitTorrent content is published using <A href="http://eztorrent.courier-mta.com/">EZTorrent</A>. Tracker outages are temporary. If you can't connect, try again in a couple of hours. </div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/10614612008073441675</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/10614612008073441675</guid>
    <pubDate>Mon, 7 Jan 2008 15:44:01 +0800</pubDate>
    <dcterms:modified>2008-01-08T13:46:09+08:00</dcterms:modified>
  </item>    
  <item>
  	<title><![CDATA[Courier Mail Server]]></title>	
    <link>http://blog.163.com/shen012_/blog/static/106146120080731748532</link>
    <description><![CDATA[<div><P style="TEXT-INDENT: 2em"><A href="http://sourceforge.net/projects/courier/"><FONT size=6>Courier Mail Server</FONT></A>&nbsp;</P>
<P style="TEXT-INDENT: 2em"><A href="http://www.courier-mta.jp/"></A>&nbsp;<A href="http://www.intron.ac/cn/freesoft/courier.php"></A></P>
<P style="TEXT-INDENT: 2em"><FONT size=4>关于courier mail的介绍，由于是国外的东西，当然是英文了，呵呵，看起来有点费力哦！</FONT></P>
<P style="TEXT-INDENT: 2em"><FONT size=4>哎，现在的互联网，抄袭思想严重，用google搜一下，成堆的结果，但是呢，结果都一个，郁闷，根本找不到自己想要的，没办法，只有看英文原文，然后自己翻译，哎，真累啊！</FONT></P>
<P style="TEXT-INDENT: 2em"><FONT size=4>大概意思如下：couier是一个支持ESMTP, IMAP, POP3, LDAP, SSL, and HTTP等协议的邮件代理程序，基于linux平台，能在lan和internet上发送邮件，配置文件是文本格式和perl格式，有webmail配置管理界面。</FONT></P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">英文原文如下:</P>
<P style="TEXT-INDENT: 2em">&nbsp;</P>
<P style="TEXT-INDENT: 2em">Copyright 1998-2007 Double Precision, Inc. This software is distributed under the terms of the GNU General Public License. See COPYING for additional information.</P>
<P style="TEXT-INDENT: 2em">The Courier mail transfer agent (MTA) is an integrated mail/groupware server based on open commodity protocols, such as ESMTP, IMAP, POP3, LDAP, SSL, and HTTP. Courier provides ESMTP, IMAP, POP3, webmail, and mailing list services within a single, consistent, framework. Individual components can be enabled or disabled at will. Courier now implements basic web-based calendaring and scheduling services integrated in the webmail module. Advanced groupware calendaring services will follow soon.</P>
<P style="TEXT-INDENT: 2em">Courier's source code should compile on most POSIX-based operating systems based on Linux, and BSD-derived kernels. Courier should also compile on Solaris and AIX, with some help from Sun's or IBM's freeware add-on tools for their respective operating systems.</P>
<P style="TEXT-INDENT: 2em">Courier evolved out of several related projects, that merged together (more on that later). Courier implements SMTP extensions for mailing list management and spam filtering. Courier can function as an intermediate mail relay, relaying mail between an internal LAN and the Internet, or perform final delivery to mailboxes. Courier uses <A href="http://www.courier-mta.org/mbox-vs-maildir/">maildirs</A> as its native mail storage format, but it can also deliver mail to legacy mailbox files as well. Courier's configuration is set by plain text files and Perl scripts. Most of Courier's configuration can now be adjusted from a web browser, using Courier's web-based administration module.</P>
<P style="TEXT-INDENT: 2em">Courier can provide mail services for regular operating system accounts. Courier can also provide mail services for virtual mail accounts, managed by an LDAP, MySQL, or PostgreSQL-based authentication database.</P>
<P style="TEXT-INDENT: 2em">Certain portions of Courier - <A href="http://www.courier-mta.org/maildrop/">the mail filtering engine</A>, the <A href="http://www.courier-mta.org/sqwebmail/">webmail server</A> and <A href="http://www.courier-mta.org/imap/">IMAP server</A> - are also available are separate, smaller, packages that can be used with other mail servers.</P></div>]]></description>
	    <author><![CDATA[唐朝宰相]]></author>
	    <comments>http://blog.163.com/shen012_/blog/static/106146120080731748532</comments>
    <slash:comments>0</slash:comments>
    <guid isPermaLink="true">http://blog.163.com/shen012_/blog/static/106146120080731748532</guid>
    <pubDate>Mon, 7 Jan 2008 15:17:48 +0800</pubDate>
    <dcterms:modified>2008-01-07T15:17:48+08:00</dcterms:modified>
  </item>    
 </channel>
</rss>