<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
  <title>FreeBSD笔记.bak</title>
  <link>http://funpower.blogbus.com</link>
  <description><![CDATA[<a><img src=http://funpower.blogbus.com/files/1128045666.jpg></a>]]></description>
  <generator> by blogbus.com </generator>
  <lastBuildDate>Mon, 30 Nov 2009 00:38:11 +0800</lastBuildDate>
  <image>
									<url>http://public.blogbus.com/profile/3/9/5/28593/avatar_28593_96.jpg</url>
									<title>FreeBSD笔记.bak</title>
									<link>http://funpower.blogbus.com</link>
								</image>  <item>
   <title>FreeBSD6.1Release下利用BIND架设DNS服务器</title>
   <description><![CDATA[<font size="2">通过此服务器，使内网用户能正常访问INTERNET，这里我们使用FreeBSD自带的BIND来实现DNS的解析，事实上INTERNET上很多DNS都使用了这个软件。基本的操作步骤如下：<br /><br /><span style="COLOR: rgb(51,102,255)">◇</span> DNS父域（edu.cn）给我的信息如下：<br />域 -&gt; wxicab.edu.cn<br />DNS主服务器 -&gt; 58.193.128.55 [dns1.wxicab.edu.cn]<br />DNS辅服务器 -&gt; 58.193.128.56 [dns2.wxicab.edu.cn]<br />（本笔记中只架设主服务器的配置过程）<br /><br /><span style="COLOR: rgb(51,102,255)">◇</span> 网卡接口说明：<br />xl0：3com外网网卡接口<br /><br /><span style="COLOR: rgb(51,102,255)">◇</span> 预先想好的DNS信息表：<br />Domain：wxicab.edu.cn<br />DNS Server：dns1.wxicab.edu.cn（58.193.128.55） dns2.wxicab.edu.cn（58.193.128.56）<br />58.193.128.55 -&gt; dns1.wxicab.edu.cn （DNS主服务器）<br />58.193.128.56 -&gt; dns2.wxicab.edu.cn （DNS辅服务器）<br />58.193.128.53 -&gt; wxicab.edu.cn （WEB服务器）<br />58.193.128.53 -&gt; www.wxicab.edu.cn （WEB服务器）<br />58.193.128.52 -&gt; mail.wxicab.edu.cn （邮件服务器）<br />58.193.128.51 -&gt; ftp.wxicab.edu.cn （文件服务器）<br />58.193.128.50 -&gt; windowsupdate.wxicab.edu.cn （Windows升级服务器）<br />58.193.128.49 -&gt; virus.wxicab.edu.cn （防病毒服务器）<br /><br /><br />开始安装：<br /><br />1、下载并安装FreeBSD6.1Release<br />从ftp: //ftp.FreeBSD.org/pub/FreeBSD/下载FreeBSD6.1Release镜像文件，然后刻成光盘，将服务器设置成从光驱启动，开始安装，安装时我选择最小化安装，开通ftp及ssh。其它的默认安装就可以。具体可参考这篇文章。安装完后重启机器。<br /><br />2、基本的配置<br />配置/etc/rc.conf</font> <blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><font size="2"># cd /etc<br /># ee rc.conf</font></blockquote><font size="2">内容如下：<br /><span style="COLOR: rgb(51,102,255)">hostname=&quot;dns1.wxicab.edu.cn&quot;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">defaultrouter=&quot;58.193.128.254&quot;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">ifconfig_xl1=&quot;inet 58.193.128.55 netmask 255.255.248.0&quot;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">inetd_enable=&quot;YES&quot;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">linux_enable=&quot;YES&quot;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">sshd_enable=&quot;YES&quot;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">usbd_enable=&quot;YES&quot;</span><br /><br />3、 配置DNS<br /><br />（1）新建并配置/etc/named/db.wxicab.edu.cn（从主机名到IP的映射）<br /></font><blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><font size="2"># cd /etc/namedb<br /># ee db.wxicab.edu.cn</font></blockquote><font size="2">内容如下：<br /><span style="COLOR: rgb(51,102,255)">$TTL 3d</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">@ IN SOA dns1.wxicab.edu.cn. hostmaster.wxicab.edu.cn. (</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">2006626</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">3h</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1h</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1w</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1h )</span><br style="COLOR: rgb(51,102,255)" /><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN NS dns1</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN NS dns2</span><br style="COLOR: rgb(51,102,255)" /><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN A 58.193.128.53</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN MX 10 mail.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">dns1 IN A 58.193.128.55</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">dns2 IN A 58.193.128.56</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">mail IN A 58.193.128.52</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">ftp IN A 58.193.128.51</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">windowsupdate IN A 58.193.128.50</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">virus IN A 58.193.128.49</span><br style="COLOR: rgb(51,102,255)" /><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">www IN CNAME wxicab.edu.cn.</span><br /><br />（2）新建并配置/etc/named/db.58.193.128（从IP到主机名的映射）<br /></font><blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><font size="2"># cd /etc/namedb<br /># ee db.58.193.128</font></blockquote><font size="2">内容如下：<br /><span style="COLOR: rgb(51,102,255)">$TTL 3d</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">@ IN SOA dns1.wxicab.edu.cn. hostmaster.wxicab.edu.cn. (</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">2006626</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">3h</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1h</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1w</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1h )</span><br style="COLOR: rgb(51,102,255)" /><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN NS dns1.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN NS dns2.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">56 IN PTR dns1.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">55 IN PTR dns2.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">53 IN PTR wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">52 IN PTR mail.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">51 IN PTR ftp.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">50 IN PTR windowsupdate.wxicab.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">49 IN PTR virus.wxicab.edu.cn.</span><br /><br />（3）配置locahost.rev文件：</font> <blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><font size="2"># cd /etc/namedb<br /># chmod 755 make-localhost<br /># ./make-localhost</font></blockquote><font size="2">运行后在/etc/namedb/master目录下会自动生成localhost.rev和localhost-v6.rev两个文件；localhost-v6.rev是针对下一代IP，暂时用不到，我的localhost.rev文件的内容为：<br /><br /><span style="COLOR: rgb(51,102,255)">$TTL 3600</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">@ IN SOA dns1.wxicab.edu.cn. root.dns1.wxicab.edu.cn. (</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">20060627 ; Serial</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">3600 ; Refresh</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">900 ; Retry</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">3600000 ; Expire</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">3600 ) ; Minimum</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">          IN NS dns1.wxiabc.edu.cn.</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">1 IN PTR localhost.wxicab.edu.cn.</span><br /><br />（4）配置/etc/namedb/named.conf文件：<br /></font><blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><font size="2"># cd /etc/namedb<br /># ee named.conf</font></blockquote><font size="2">内容如下：<br /><span style="COLOR: rgb(51,102,255)">options {</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">directory &quot;/etc/namedb&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">pid-file &quot;/var/run/named/pid&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">dump-file &quot;/var/dump/named_dump.db&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">statistics-file &quot;/var/stats/named.stats&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">};</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">zone &quot;.&quot; {</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">type hint;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">file &quot;named.root&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">};</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">zone &quot;0.0.127.IN-ADDR.ARPA&quot; {</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">type master;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">file &quot;master/localhost.rev&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">};</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">zone &quot;wxicab.edu.cn&quot; {</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">type master;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">file &quot;db.wxicab.edu.cn&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">};</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">zone &quot;128.193.58.in-addr.arpa&quot; {</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">type master;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">file &quot;db.58.193.128&quot;;</span><br style="COLOR: rgb(51,102,255)" /><span style="COLOR: rgb(51,102,255)">};</span><br /><br />（5）开启named服务器，并使其和系统一起启动<br />在/etc/rc.conf中加入如下一行：<br /><br /><span style="COLOR: rgb(51,102,255)">named_enable=&quot;YES&quot;</span><br /><br />编辑后保存退出。<br /><br />重启服务器，利用top命令查看，如果有named进程，说明启动正常。然后找一台客户机，将DNS设置成本机IP：58.193.128.55，然后ping edu.cn测试，如果能ping通，说明解析正常。也可以使用nslookup工具测试。<br /><br /><span style="COLOR: rgb(128,128,128)">作者：老管（funpower） email：funpower@gmail.com 2006-7-1</span><br style="COLOR: rgb(128,128,128)" /><span style="COLOR: rgb(128,128,128)">参考文章：<a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/network-dns.html">25.6 域名系统 (DNS)</a> <a href="http://www.oreilly.com.cn/book.php?bn=7-5083-0980-4">《DNS与BIND（第四版）》</a></span></font> <br><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/2733360.html">FreeBSD6.1Release下利用route和ipfilter架设路由</a> 2006-07-01</div><div><a href="http://funpower.blogbus.com/logs/1795387.html">FreeBSD6.0Release+Squid+Socks5服务器架设笔记</a> 2006-01-06</div><div><a href="http://funpower.blogbus.com/logs/1679377.html">FreeBSD 6.0-RELEASE下建立高速DNS缓存服务器</a> 2005-12-08</div><div><a href="http://funpower.blogbus.com/logs/1642558.html">FreeBSD5.4Release下安装wiki</a> 2005-11-28</div><div><a href="http://funpower.blogbus.com/logs/1528720.html">ipfilter+ipnat包过滤、转发和DHCP服务器架构笔记</a> 2005-10-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F2733362.html&title=FreeBSD6.1Release%E4%B8%8B%E5%88%A9%E7%94%A8BIND%E6%9E%B6%E8%AE%BEDNS%E6%9C%8D%E5%8A%A1%E5%99%A8">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/2733362.html</link>
   <author>funpower</author>
   <pubDate>Sat, 01 Jul 2006 14:26:00 +0800</pubDate>
  </item>
  <item>
   <title>FreeBSD6.1Release下利用route和ipfilter架设路由</title>
   <description><![CDATA[<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align="left"><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">架设此服务器，使内网用户通过本服务器与外界通讯；基本原理为内网用户通过</span><span lang="EN-US"><a href="http://www.freebsd.org/">FreeBSD</a></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">内自带的</span><span lang="EN-US"><a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/network-routing.html"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">网关路由功能（</span>route<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">）</span></a></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">与外网进行通讯，服务器的安全性及病毒的防护控制通过</span><span lang="EN-US">FreeBSD</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">的</span><span lang="EN-US"><a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/firewalls-ipf.html">ipfilter</a></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">来完成。初步架设过程如下：</span></font><span lang="EN-US"><br /><br /></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">网卡接口说明：</font></span><span lang="EN-US"><br /><font size="2">vr0</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">：外网网卡接口</font></span><span lang="EN-US"><br /><font size="2">vr1</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">：内网网卡接口</font></span><span lang="EN-US"><br /><br /><font size="2">1</font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">、</span><span lang="EN-US">    </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">最小化安装</span></font><span lang="EN-US"><a href="http://www.freebsd.org/releases/6.1R/announce.html"><font size="2">FreeBSD6.1Release</font></a><br /></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">从</span><span lang="EN-US">ftp://ftp.FreeBSD.org/pub/FreeBSD/</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">下载</span><span lang="EN-US"><a href="http://www.freebsd.org/releases/6.1R/announce.html">FreeBSD6.1Release</a></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">镜像文件，然后刻成光盘，将服务器设置成从光驱启动，开始安装，安装时我选择最小化安装，开通</span><span lang="EN-US">ftp</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">及</span><span lang="EN-US">ssh</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">。其它的默认安装就可以。具体可参考</span><span lang="EN-US"><a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/install-start.html"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">这篇文章</span></a></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">。安装完后重启机器。</span></font><span lang="EN-US"><br /><br /><font size="2">2</font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">、</span><span lang="EN-US">    </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">安装内核</span></font><span lang="EN-US"><br /></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">将安装光盘放入光驱，然后：</span><span lang="EN-US" style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt"></span></font></p><p><font size="2"></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># /usr/sbin/sysinstall</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">然后选择</span><span lang="EN-US">Configure --&gt; Distributions -&gt; src -&gt; sys</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，点</span><span lang="EN-US">install</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，安装完成后重启机器。</span></font><span lang="EN-US"><br /><br /><font size="2">3</font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">、</span><span lang="EN-US">    </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">基本的配置</span></font><span lang="EN-US"><br /></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">配置</span><span lang="EN-US">/etc/rc.conf</span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># cd /etc<br /># ee rc.conf</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">内容如下：</font></span><span lang="EN-US"><br /><font size="2"><span style="COLOR: #3366ff">hostname=&quot;gatewall.wxic.edu.cn&quot;<br />defaultrouter=&quot;172.16.252.17&quot;<br />ifconfig_vr0=&quot;inet 172.16.252.x netmask 255.255.255.252&quot;<br />ifconfig_vr1=&quot;inet 58.193.11x.25x netmask 255.255.248.0&quot;<br />inetd_enable=&quot;YES&quot;<br />linux_enable=&quot;YES&quot;<br />sshd_enable=&quot;YES&quot;<br />usbd_enable=&quot;YES&quot;<br />sendmail_enable=&quot;NONE&quot;</span><br /> <br /></font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">配置</span><span lang="EN-US">/etc/resolv.conf</span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># ee /etc/rc.conf</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">内容如下：</font></span><span lang="EN-US"><br /><font size="2"><span style="COLOR: #3366ff">nameserver 58.193.112.1</span><br /><br />4</font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">、</span><span lang="EN-US">    </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">配置内核，加入对</span><span lang="EN-US">ipfilter</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">的支持</span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># cd /usr/src/sys/i386/conf<br /># cp GENERIC funpower<br /># ee funpower</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">然后开始编辑内核文件，机器和应用方面的不同会有不同的内核文件，因为需要用到</span><span lang="EN-US">ipfilter</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，我们加入对</span><span lang="EN-US">ipfilter</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">的支持。在内核中加入如下内容：</span></font><span lang="EN-US"><br /><font size="2"><span style="COLOR: #3366ff">options   IPFILTER<br />options   IPFILTER_LOG<br />options   IPFILTER_DEFAULT_BLOCK</span><br /></font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">其它选项可以参考</span><span lang="EN-US"><a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/kernelconfig.html"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">这篇文章</span></a></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，然后自己定制。编辑完后保存退出。然后进行如下操作：</span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># /usr/sbin/config funpower<br /># cd ../compile/funpower<br /># make cleandepend<br /># make depend<br /># make<br /># make install</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">编译完后重启服务器</span><span lang="EN-US">(</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">因为</span><span lang="EN-US">ipfilter</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">默认是阻止所有通讯，所以确保你是在服务器前操作</span><span lang="EN-US">)</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">。</span></font><span lang="EN-US"><br /><br /><font size="2">5</font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">、</span><span lang="EN-US">    </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">在</span><span lang="EN-US">/etc/rc.conf</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">中加入路由选项</span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># cd /etc<br /># ee rc.conf</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">在最后加入如下几行：</font></span><span lang="EN-US"><br /><span style="COLOR: #3366ff"><font size="2">gateway_enable=&quot;YES&quot;<br />static_routes=&quot;static1&quot;<br />route_static1=&quot;-net 58.193.11x.0/21 172.16.252.x/30&quot; //</font></span></span><font size="2"><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">说明第一个</span><span lang="EN-US" style="COLOR: #3366ff">IP</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">为内网</span><span lang="EN-US" style="COLOR: #3366ff">IP</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">范围；第二个</span><span lang="EN-US" style="COLOR: #3366ff">IP</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">为外网网卡的网关地址</span></font><span lang="EN-US"><br /><br /><font size="2">6</font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">、</span><span lang="EN-US">    </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">配置</span></font><font size="2"><span lang="EN-US">ipfilter<br /></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">在</span><span lang="EN-US">/etc/rc.conf</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">中加入：</span></font><span lang="EN-US"><br /><font size="2"><span style="COLOR: #3366ff">ipfilter_enable=&quot;YES&quot;<br />ipfilter_rules=&quot;/etc/ipf.conf&quot;</span><br /></font></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">然后编辑</span><span lang="EN-US">/etc/ipf.conf</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">文件</span></font></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><span lang="EN-US"><font size="2"># cd /etc/<br /># ee ipf.conf</font></span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">内容如下：</font></span><span lang="EN-US"><br /><span style="COLOR: #3366ff"><font size="2">#</font></span></span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">环路网卡</font></span><font size="2"><span lang="EN-US" style="COLOR: #3366ff">lo0  <br />#out in </span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">全部通过</span></font><span lang="EN-US" style="COLOR: #3366ff"><br /><font size="2">pass in quick on lo0 all<br />pass out quick on lo0 all<br /><br />#</font></span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">外网网卡</font></span><font size="2"><span lang="EN-US" style="COLOR: #3366ff">vr0<br />#out </span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">只让开通的</span><span lang="EN-US" style="COLOR: #3366ff">IP</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">通讯</span></font><span lang="EN-US" style="COLOR: #3366ff"><br /><font size="2">block out quick on vr0 from any to 192.168.0.0/16<br />block out quick on vr0 from any to 0.0.0.0/8<br />block out quick on vr0 from any to 169.254.0.0/8<br />block out quick on vr0 from any to 10.0.0.0/8<br />block out quick on vr0 from any to 127.16.0.0/12<br />block out quick on vr0 from any to 127.0.0.0/8<br />block out quick on vr0 from any to 192.0.2.0/24<br />block out quick on vr0 from any to 204.152.64.0/23<br />block out quick on vr0 from any to 224.0.0.0/3<br /><br />#</font></span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">开通</font></span><font size="2"><span lang="EN-US" style="COLOR: #3366ff">58.193.112.1<br />pass out quick on vr0 proto tcp/udp from 58.193.112.1/32 to any keep state<br />pass out quick on vr0 proto icmp from 58.193.112.1/32 to any keep state<br /><br />#</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">开通</span></font><font size="2"><span lang="EN-US" style="COLOR: #3366ff">58.193.112.3<br />pass out quick on vr0 proto tcp/udp from 58.193.112.3/32 to any keep state<br />pass out quick on vr0 proto icmp from 58.193.112.3/32 to any keep state<br /><br />#</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">开通</span></font><font size="2"><span lang="EN-US" style="COLOR: #3366ff">58.193.113.1<br />pass out quick on vr0 proto tcp/udp from 58.193.113.1/32 to any keep state<br />pass out quick on vr0 proto icmp from 58.193.113.1/32 to any keep state<br /><br />#</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">开通</span></font><font size="2"><span lang="EN-US" style="COLOR: #3366ff">58.193.113.2<br />pass out quick on vr0 proto tcp/udp from 58.193.113.2/32 to any keep state<br />pass out quick on vr0 proto icmp from 58.193.113.2/32 to any keep state<br /><br />block out on vr0 all<br /><br />#in </span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">阻止一些</span><span lang="EN-US" style="COLOR: #3366ff">IP(</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">比如私有</span><span lang="EN-US" style="COLOR: #3366ff">IP)</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">和一些病毒攻击端口</span><span lang="EN-US" style="COLOR: #3366ff">(</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">如</span><span lang="EN-US" style="COLOR: #3366ff">138139445</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">等</span></font><font size="2"><span lang="EN-US" style="COLOR: #3366ff">)<br />block in quick on vr0 from 192.168.0.0/16 to any<br />block in quick on vr0 from 172.16.0.0/12 to any<br />block in quick on vr0 from 10.0.0.0/8 to any<br />block in quick on vr0 from 127.0.0.0/8 to any<br />block in quick on vr0 from 0.0.0.0/8 to any<br />block in quick on vr0 from 169.254.0.0/16 to any<br />block in quick on vr0 from 192.0.2.0/24 to any<br />block in quick on vr0 from 204.152.64.0/23 to any<br />block in quick on vr0 from 224.0.0.0/3 to any<br />block in quick on vr0 from 58.193.112.0/21 to any<br /><br />block in quick on vr0 proto udp from any to any port = 69<br />block in quick on vr0 proto tcp/udp from any to any port = 135<br />block in quick on vr0 proto udp from any to any port = 137<br />block in quick on vr0 proto udp from any to any port = 138<br />block in quick on vr0 proto tcp/udp from any to any port = 139<br />block in quick on vr0 proto tcp/udp from any to any port = 445<br />block in quick on vr0 proto tcp/udp from any to any port = 593<br />block in quick on vr0 proto tcp from any to any port = 1022<br />block in quick on vr0 proto tcp from any to any port = 1023<br />block in quick on vr0 proto tcp from any to any port = 1025<br />block in quick on vr0 proto tcp from any port = 1034 to any port = 80<br />block in quick on vr0 proto tcp from any to any port = 1068<br />block in quick on vr0 proto tcp from any to any port = 1433<br />block in quick on vr0 proto udp from any to any port = 1434<br />block in quick on vr0 proto tcp from any to any port = 1871<br />block in quick on vr0 proto tcp from any to any port = 2745<br />block in quick on vr0 proto tcp from any to any port = 3208<br />block in quick on vr0 proto tcp from any to any port = 3127<br />block in quick on vr0 proto tcp from any to any port = 4331<br />block in quick on vr0 proto tcp from any to any port = 4334<br />block in quick on vr0 proto tcp from any to any port = 4444<br />block in quick on vr0 proto tcp from any port = 4444 to any<br />block in quick on vr0 proto tcp from any to any port = 4510<br />block in quick on vr0 proto tcp from any to any port = 4557<br />block in quick on vr0 proto tcp from any to any port = 5554<br />block in quick on vr0 proto tcp from any to any port = 5800<br />block in quick on vr0 proto tcp from any to any port = 5900<br />block in quick on vr0 proto tcp from any to any port = 6129<br />block in quick on vr0 proto tcp from any to any port = 6667<br />block in quick on vr0 proto tcp from any to any port = 9995<br />block in quick on vr0 proto tcp from any to any port = 9996<br />block in quick on vr0 proto tcp from any to any port = 10080<br /><br />block in quick on vr0 all with frags<br />block in quick on vr0 proto tcp all with short<br />block in quick on vr0 all with opt lsrr<br />block in quick on vr0 all with opt ssrr<br />block in log first quick on vr0 proto tcp from any to any flags FUP<br />block in quick on vr0 all with ipopts<br /><br />pass in quick on vr0 proto tcp from any to any port = 80 flags S keep state<br />pass in quick on vr0 proto tcp from any to any port = 23 flags S keep state<br />pass in quick on vr0 proto tcp from any to any port = 22 flags S keep state<br />pass in quick on vr0 proto tcp from any to any port = ftp flags S/SA keep state<br />pass in quick on vr0 proto tcp from any to any port = ftp-data flags S/SA keep state<br />pass in quick on vr0 proto tcp from any to any port 30000 &gt;&lt; 50001 flags S/SA keep state<br /><br />pass in quick on vr0 proto icmp from any to any icmp-type 0<br />pass in quick on vr0 proto icmp from any to any icmp-type 11<br />block in log quick on vr0 proto icmp from any to any<br /><br />block in log on vr0 all<br /><br /><br />#</span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">内网网卡</span></font><font size="2"><span lang="EN-US" style="COLOR: #3366ff">vr1<br />#out </span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: ">全部通过</span></font><span lang="EN-US" style="COLOR: #3366ff"><br /><font size="2">pass out on vr1 all<br />#in </font></span><span style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">全部通过</font></span><span lang="EN-US" style="COLOR: #3366ff"><br /><font size="2">pass in on vr1 all</font></span><span lang="EN-US"><br /><br /></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "><font size="2">配置完后重启服务器。</font></span><span lang="EN-US"><br /><br /></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">找一台客户机测试，首先使用</span><span lang="EN-US">ipf.conf</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">中开通的</span><span lang="EN-US">IP</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，然后</span><span lang="EN-US">ping edu.cn</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，可以</span><span lang="EN-US">ping</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">通，说明可以连接外网了。</span></font><span lang="EN-US"><br /></span><font size="2"><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">然后将</span><span lang="EN-US">IP</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">设置为不是开通列表中的</span><span lang="EN-US">IP</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">，如果</span><span lang="EN-US">ping</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">不通，则说明</span><span lang="EN-US">ipf.conf</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: ">的设置生效了。</span></font><span lang="EN-US"><br /><br /></span><font size="2"><span style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: ">作者：老管（</span><span lang="EN-US" style="COLOR: gray">funpower</span><span style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: ">）</span><span lang="EN-US" style="COLOR: gray">     email</span><span style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: ">：</span></font><font size="2"><span lang="EN-US" style="COLOR: gray">funpower@gmail.com  2006-6-30<br /></span><span style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: ">参考文章：</span><span lang="EN-US"><a href="http://www.cnfug.org/journal/systems/2004/000073.html"><span style="COLOR: gray">IP Filter Based Firewalls HOWTO</span></a><span style="COLOR: gray"> </span><a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/firewalls-ipf.html"><span style="COLOR: gray">26.5 IPFILTER (IPF) </span><span style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: ">防火墙</span><span style="COLOR: gray">(freebsd handbook)</span></a><span style="COLOR: gray"> </span><a href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/network-routing.html"><span style="COLOR: gray">27.2 </span><span style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: ">网关和路由</span></a></span></font></p><br><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/2733362.html">FreeBSD6.1Release下利用BIND架设DNS服务器</a> 2006-07-01</div><div><a href="http://funpower.blogbus.com/logs/1795387.html">FreeBSD6.0Release+Squid+Socks5服务器架设笔记</a> 2006-01-06</div><div><a href="http://funpower.blogbus.com/logs/1679377.html">FreeBSD 6.0-RELEASE下建立高速DNS缓存服务器</a> 2005-12-08</div><div><a href="http://funpower.blogbus.com/logs/1642558.html">FreeBSD5.4Release下安装wiki</a> 2005-11-28</div><div><a href="http://funpower.blogbus.com/logs/1528720.html">ipfilter+ipnat包过滤、转发和DHCP服务器架构笔记</a> 2005-10-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F2733360.html&title=FreeBSD6.1Release%E4%B8%8B%E5%88%A9%E7%94%A8route%E5%92%8Cipfilter%E6%9E%B6%E8%AE%BE%E8%B7%AF%E7%94%B1">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/2733360.html</link>
   <author>funpower</author>
   <pubDate>Sat, 01 Jul 2006 14:25:00 +0800</pubDate>
  </item>
  <item>
   <title>FreeBSD6.0下通过squid的acl语句对上网用户作进一步设置</title>
   <description><![CDATA[<font size="2">去年末写过&lt;</font><a href="http://blog.donews.com/funpower/archive/2005/12/29/676330.aspx" _fcksavedurl="http://blog.donews.com/funpower/archive/2005/12/29/676330.aspx"><font size="2">FreeBSD6.0Release+Squid+Socks5服务器架设笔记</font></a><font size="2">&gt;, 但对某些用户的上网还没作进一步的限制. 今天完成这项工作.<br /><br />以下为通过squid的acl语句对上网用户进行限制:<br /><br /><span style="FONT-WEIGHT: bold">1. 先列出表格:</span><br /><br /></font><table cellspacing="1" cellpadding="1" width="500" border="1"><tbody><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">--------</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期一</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期二</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期三</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期四</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期五</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期六</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期天</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">特殊用户<br /></font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00<br /></font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00 </font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户1</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户2</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户3</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户4</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr></tbody></table><br /><br /><span style="FONT-WEIGHT: bold"><font size="2">2. 编辑/usr/local/squid/etc/squid.conf文件, 从1475行开始, 加入如下内容: </font><blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><p><font size="2"><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl tieshuyonghu src 192.168.121.210/32 192.168.121.211/32 192.168.121.212/32 </span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu1 src 192.168.120.1-192.168.120.52/255.255.255.255</span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu2 src 192.168.120.53-192.168.120.104/255.255.255.255</span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu3 src 192.168.120.105-192.168.120.157/255.255.255.255</span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu4 src 192.168.120.158-192.168.120.208/255.255.255.255</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl 8:30-23:00 time MTHF 8:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl 14:30-23:00 time MTHF 14:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl 16:00-23:00 time MTHF 16:00-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl shan time W 12:00-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl zm time AS 8:00-21:30</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl all src 0.0.0.0/0.0.0.0</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl manager proto cache_object</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl localhost src 127.0.0.1/255.255.255.255</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl to_localhost dst 127.0.0.0/8</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl SSL_ports port 443 563</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 80          # http</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 21          # ftp</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 443 563     # https, snews</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 70          # gopher</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 210         # wais</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 1025-65535  # unregistered ports</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 280         # http-mgmt</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 488         # gss-http</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 591         # filemaker</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 777         # multiling http</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl CONNECT method CONNECT</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access allow manager localhost</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access deny manager</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access deny !Safe_ports</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access deny CONNECT !SSL_ports</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow tieshuyonghu</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu1 8:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu1 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu2 14:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu2 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu3 16:00-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu3 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu3 zm</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu4 16:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu4 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu4 zm</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access deny all</span><br style="FONT-WEIGHT: normal" /><br style="FONT-WEIGHT: normal" /></font></p></blockquote><font size="2"><span style="FONT-WEIGHT: normal">这里利用了squid的acl中的src和time两个标签, time对星期的表示为 </span>S<span style="FONT-WEIGHT: normal">-Sunday(星期天)  </span>M<span style="FONT-WEIGHT: normal">-Monday(星期一) </span>T<span style="FONT-WEIGHT: normal">-Tuesday(星期二)  </span>W<span style="FONT-WEIGHT: normal">-Wednesday(星期三) </span>H<span style="FONT-WEIGHT: normal">-Thursday(星期四)  </span>F<span style="FONT-WEIGHT: normal">-Friday(星期五)  </span>A<span style="FONT-WEIGHT: normal">-Saturday(星期六), 对acl更多的信息可看</span></font><a style="FONT-WEIGHT: normal" href="http://funpower.blogbus.com/logs/2005/08/1378504.html" _fcksavedurl="http://funpower.blogbus.com/logs/2005/08/1378504.html"><font size="2">这里</font></a><span style="FONT-WEIGHT: normal"><font size="2">.</font></span></span> <br><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/1998084.html">Windows2000中毒，重新架设FreeBSD桌面系统(FreeBSD6.1_beta2 + Gnome-2.12.3)</a> 2006-03-03</div><div><a href="http://funpower.blogbus.com/logs/1795971.html">禁止某ip使用socks5服务</a> 2006-01-06</div><div><a href="http://funpower.blogbus.com/logs/1712492.html">优化后的ipfilter想卸载时还需要还原</a> 2005-12-16</div><div><a href="http://funpower.blogbus.com/logs/1642558.html">FreeBSD5.4Release下安装wiki</a> 2005-11-28</div><div><a href="http://funpower.blogbus.com/logs/1632453.html"> FreeBSD6.0Release下查看带宽使用情况的几个命令</a> 2005-11-25</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F2733348.html&title=FreeBSD6.0%E4%B8%8B%E9%80%9A%E8%BF%87squid%E7%9A%84acl%E8%AF%AD%E5%8F%A5%E5%AF%B9%E4%B8%8A%E7%BD%91%E7%94%A8%E6%88%B7%E4%BD%9C%E8%BF%9B%E4%B8%80%E6%AD%A5%E8%AE%BE%E7%BD%AE">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/2733348.html</link>
   <author>funpower</author>
   <pubDate>Sat, 01 Jul 2006 14:19:00 +0800</pubDate>
  </item>
  <item>
   <title>FreeBSD6.1Release下利用route和ipfilter架设路由</title>
   <description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>架设此服务器，使内网用户通过本服务器与外界通讯；基本原理为内网用户通过</SPAN><SPAN lang=EN-US><A href="http://www.freebsd.org/">FreeBSD</A></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>内自带的</SPAN><SPAN lang=EN-US><A href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/network-routing.html"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>网关路由功能（</SPAN>route<SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>）</SPAN></A></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>与外网进行通讯，服务器的安全性及病毒的防护控制通过</SPAN><SPAN lang=EN-US>FreeBSD</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>的</SPAN><SPAN lang=EN-US><A href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/firewalls-ipf.html">ipfilter</A></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>来完成。初步架设过程如下：</SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>网卡接口说明：</SPAN><SPAN lang=EN-US><BR>vr0</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>：外网网卡接口</SPAN><SPAN lang=EN-US><BR>vr1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>：内网网卡接口</SPAN><SPAN lang=EN-US><BR><BR>1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>、</SPAN><SPAN lang=EN-US>&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>最小化安装</SPAN><SPAN lang=EN-US><A href="http://www.freebsd.org/releases/6.1R/announce.html">FreeBSD6.1Release</A><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>从</SPAN><SPAN lang=EN-US>ftp://ftp.FreeBSD.org/pub/FreeBSD/</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>下载</SPAN><SPAN lang=EN-US><A href="http://www.freebsd.org/releases/6.1R/announce.html">FreeBSD6.1Release</A></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>镜像文件，然后刻成光盘，将服务器设置成从光驱启动，开始安装，安装时我选择最小化安装，开通</SPAN><SPAN lang=EN-US>ftp</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>及</SPAN><SPAN lang=EN-US>ssh</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>。其它的默认安装就可以。具体可参考</SPAN><SPAN lang=EN-US><A href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/install-start.html"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>这篇文章</SPAN></A></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>。安装完后重启机器。</SPAN><SPAN lang=EN-US><BR><BR>2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>、</SPAN><SPAN lang=EN-US>&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>安装内核</SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>将安装光盘放入光驱，然后：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt">
<P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># /usr/sbin/sysinstall</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>然后选择</SPAN><SPAN lang=EN-US>Configure --&gt; Distributions -&gt; src -&gt; sys</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，点</SPAN><SPAN lang=EN-US>install</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，安装完成后重启机器。</SPAN><SPAN lang=EN-US><BR><BR>3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>、</SPAN><SPAN lang=EN-US>&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>基本的配置</SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>配置</SPAN><SPAN lang=EN-US>/etc/rc.conf</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># cd /etc<BR># ee rc.conf</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>内容如下：</SPAN><SPAN lang=EN-US><BR><SPAN style="COLOR: #3366ff">hostname="gatewall.wxic.edu.cn"<BR>defaultrouter="172.16.252.17"<BR>ifconfig_vr0="inet 172.16.252.x netmask 255.255.255.252"<BR>ifconfig_vr1="inet 58.193.11x.25x netmask 255.255.248.0"<BR>inetd_enable="YES"<BR>linux_enable="YES"<BR>sshd_enable="YES"<BR>usbd_enable="YES"<BR>sendmail_enable="NONE"</SPAN><BR>&nbsp;<BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>配置</SPAN><SPAN lang=EN-US>/etc/resolv.conf</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># ee /etc/rc.conf</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>内容如下：</SPAN><SPAN lang=EN-US><BR><SPAN style="COLOR: #3366ff">nameserver 58.193.112.1</SPAN><BR><BR>4</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>、</SPAN><SPAN lang=EN-US>&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>配置内核，加入对</SPAN><SPAN lang=EN-US>ipfilter</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>的支持</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># cd /usr/src/sys/i386/conf<BR># cp GENERIC funpower<BR># ee funpower</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>然后开始编辑内核文件，机器和应用方面的不同会有不同的内核文件，因为需要用到</SPAN><SPAN lang=EN-US>ipfilter</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，我们加入对</SPAN><SPAN lang=EN-US>ipfilter</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>的支持。在内核中加入如下内容：</SPAN><SPAN lang=EN-US><BR><SPAN style="COLOR: #3366ff">options&nbsp;&nbsp; IPFILTER<BR>options&nbsp;&nbsp; IPFILTER_LOG<BR>options&nbsp;&nbsp; IPFILTER_DEFAULT_BLOCK</SPAN><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>其它选项可以参考</SPAN><SPAN lang=EN-US><A href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/kernelconfig.html"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>这篇文章</SPAN></A></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，然后自己定制。编辑完后保存退出。然后进行如下操作：</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># /usr/sbin/config funpower<BR># cd ../compile/funpower<BR># make cleandepend<BR># make depend<BR># make<BR># make install</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>编译完后重启服务器</SPAN><SPAN lang=EN-US>(</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>因为</SPAN><SPAN lang=EN-US>ipfilter</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>默认是阻止所有通讯，所以确保你是在服务器前操作</SPAN><SPAN lang=EN-US>)</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>。</SPAN><SPAN lang=EN-US><BR><BR>5</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>、</SPAN><SPAN lang=EN-US>&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>在</SPAN><SPAN lang=EN-US>/etc/rc.conf</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>中加入路由选项</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># cd /etc<BR># ee rc.conf</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>在最后加入如下几行：</SPAN><SPAN lang=EN-US><BR><SPAN style="COLOR: #3366ff">gateway_enable="YES"<BR>static_routes="static1"<BR>route_static1="-net 58.193.11x.0/21 172.16.252.x/30" //</SPAN></SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>说明第一个</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">IP</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>为内网</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">IP</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>范围；第二个</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">IP</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>为外网网卡的网关地址</SPAN><SPAN lang=EN-US><BR><BR>6</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>、</SPAN><SPAN lang=EN-US>&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>配置</SPAN><SPAN lang=EN-US>ipfilter<BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>在</SPAN><SPAN lang=EN-US>/etc/rc.conf</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>中加入：</SPAN><SPAN lang=EN-US><BR><SPAN style="COLOR: #3366ff">ipfilter_enable="YES"<BR>ipfilter_rules="/etc/ipf.conf"</SPAN><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>然后编辑</SPAN><SPAN lang=EN-US>/etc/ipf.conf</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>文件</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 36pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><SPAN lang=EN-US># cd /etc/<BR># ee ipf.conf</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>内容如下：</SPAN><SPAN lang=EN-US><BR><SPAN style="COLOR: #3366ff">#</SPAN></SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>环路网卡</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">lo0&nbsp; <BR>#out in </SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>全部通过</SPAN><SPAN lang=EN-US style="COLOR: #3366ff"><BR>pass in quick on lo0 all<BR>pass out quick on lo0 all<BR><BR>#</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>外网网卡</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">vr0<BR>#out </SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>只让开通的</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">IP</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>通讯</SPAN><SPAN lang=EN-US style="COLOR: #3366ff"><BR>block out quick on vr0 from any to 192.168.0.0/16<BR>block out quick on vr0 from any to 0.0.0.0/8<BR>block out quick on vr0 from any to 169.254.0.0/8<BR>block out quick on vr0 from any to 10.0.0.0/8<BR>block out quick on vr0 from any to 127.16.0.0/12<BR>block out quick on vr0 from any to 127.0.0.0/8<BR>block out quick on vr0 from any to 192.0.2.0/24<BR>block out quick on vr0 from any to 204.152.64.0/23<BR>block out quick on vr0 from any to 224.0.0.0/3<BR><BR>#</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>开通</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">58.193.112.1<BR>pass out quick on vr0 proto tcp/udp from 58.193.112.1/32 to any keep state<BR>pass out quick on vr0 proto icmp from 58.193.112.1/32 to any keep state<BR><BR>#</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>开通</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">58.193.112.3<BR>pass out quick on vr0 proto tcp/udp from 58.193.112.3/32 to any keep state<BR>pass out quick on vr0 proto icmp from 58.193.112.3/32 to any keep state<BR><BR>#</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>开通</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">58.193.113.1<BR>pass out quick on vr0 proto tcp/udp from 58.193.113.1/32 to any keep state<BR>pass out quick on vr0 proto icmp from 58.193.113.1/32 to any keep state<BR><BR>#</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>开通</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">58.193.113.2<BR>pass out quick on vr0 proto tcp/udp from 58.193.113.2/32 to any keep state<BR>pass out quick on vr0 proto icmp from 58.193.113.2/32 to any keep state<BR><BR>block out on vr0 all<BR><BR>#in </SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>阻止一些</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">IP(</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>比如私有</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">IP)</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>和一些病毒攻击端口</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">(</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>如</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">138\139\445</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>等</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">)<BR>block in quick on vr0 from 192.168.0.0/16 to any<BR>block in quick on vr0 from 172.16.0.0/12 to any<BR>block in quick on vr0 from 10.0.0.0/8 to any<BR>block in quick on vr0 from 127.0.0.0/8 to any<BR>block in quick on vr0 from 0.0.0.0/8 to any<BR>block in quick on vr0 from 169.254.0.0/16 to any<BR>block in quick on vr0 from 192.0.2.0/24 to any<BR>block in quick on vr0 from 204.152.64.0/23 to any<BR>block in quick on vr0 from 224.0.0.0/3 to any<BR>block in quick on vr0 from 58.193.112.0/21 to any<BR><BR>block in quick on vr0 proto udp from any to any port = 69<BR>block in quick on vr0 proto tcp/udp from any to any port = 135<BR>block in quick on vr0 proto udp from any to any port = 137<BR>block in quick on vr0 proto udp from any to any port = 138<BR>block in quick on vr0 proto tcp/udp from any to any port = 139<BR>block in quick on vr0 proto tcp/udp from any to any port = 445<BR>block in quick on vr0 proto tcp/udp from any to any port = 593<BR>block in quick on vr0 proto tcp from any to any port = 1022<BR>block in quick on vr0 proto tcp from any to any port = 1023<BR>block in quick on vr0 proto tcp from any to any port = 1025<BR>block in quick on vr0 proto tcp from any port = 1034 to any port = 80<BR>block in quick on vr0 proto tcp from any to any port = 1068<BR>block in quick on vr0 proto tcp from any to any port = 1433<BR>block in quick on vr0 proto udp from any to any port = 1434<BR>block in quick on vr0 proto tcp from any to any port = 1871<BR>block in quick on vr0 proto tcp from any to any port = 2745<BR>block in quick on vr0 proto tcp from any to any port = 3208<BR>block in quick on vr0 proto tcp from any to any port = 3127<BR>block in quick on vr0 proto tcp from any to any port = 4331<BR>block in quick on vr0 proto tcp from any to any port = 4334<BR>block in quick on vr0 proto tcp from any to any port = 4444<BR>block in quick on vr0 proto tcp from any port = 4444 to any<BR>block in quick on vr0 proto tcp from any to any port = 4510<BR>block in quick on vr0 proto tcp from any to any port = 4557<BR>block in quick on vr0 proto tcp from any to any port = 5554<BR>block in quick on vr0 proto tcp from any to any port = 5800<BR>block in quick on vr0 proto tcp from any to any port = 5900<BR>block in quick on vr0 proto tcp from any to any port = 6129<BR>block in quick on vr0 proto tcp from any to any port = 6667<BR>block in quick on vr0 proto tcp from any to any port = 9995<BR>block in quick on vr0 proto tcp from any to any port = 9996<BR>block in quick on vr0 proto tcp from any to any port = 10080<BR><BR>block in quick on vr0 all with frags<BR>block in quick on vr0 proto tcp all with short<BR>block in quick on vr0 all with opt lsrr<BR>block in quick on vr0 all with opt ssrr<BR>block in log first quick on vr0 proto tcp from any to any flags FUP<BR>block in quick on vr0 all with ipopts<BR><BR>pass in quick on vr0 proto tcp from any to any port = 80 flags S keep state<BR>pass in quick on vr0 proto tcp from any to any port = 23 flags S keep state<BR>pass in quick on vr0 proto tcp from any to any port = 22 flags S keep state<BR>pass in quick on vr0 proto tcp from any to any port = ftp flags S/SA keep state<BR>pass in quick on vr0 proto tcp from any to any port = ftp-data flags S/SA keep state<BR>pass in quick on vr0 proto tcp from any to any port 30000 &gt;&lt; 50001 flags S/SA keep state<BR><BR>pass in quick on vr0 proto icmp from any to any icmp-type 0<BR>pass in quick on vr0 proto icmp from any to any icmp-type 11<BR>block in log quick on vr0 proto icmp from any to any<BR><BR>block in log on vr0 all<BR><BR><BR>#</SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>内网网卡</SPAN><SPAN lang=EN-US style="COLOR: #3366ff">vr1<BR>#out </SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>全部通过</SPAN><SPAN lang=EN-US style="COLOR: #3366ff"><BR>pass out on vr1 all<BR>#in </SPAN><SPAN style="COLOR: #3366ff; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>全部通过</SPAN><SPAN lang=EN-US style="COLOR: #3366ff"><BR>pass in on vr1 all</SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>配置完后重启服务器。</SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>找一台客户机测试，首先使用</SPAN><SPAN lang=EN-US>ipf.conf</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>中开通的</SPAN><SPAN lang=EN-US>IP</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，然后</SPAN><SPAN lang=EN-US>ping edu.cn</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，可以</SPAN><SPAN lang=EN-US>ping</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>通，说明可以连接外网了。</SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>然后将</SPAN><SPAN lang=EN-US>IP</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>设置为不是开通列表中的</SPAN><SPAN lang=EN-US>IP</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>，如果</SPAN><SPAN lang=EN-US>ping</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>不通，则说明</SPAN><SPAN lang=EN-US>ipf.conf</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>的设置生效了。</SPAN><SPAN lang=EN-US><BR><BR></SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>作者：老管（</SPAN><SPAN lang=EN-US style="COLOR: gray">funpower</SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>）</SPAN><SPAN lang=EN-US style="COLOR: gray">&nbsp;&nbsp;&nbsp;&nbsp; email</SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>：</SPAN><SPAN lang=EN-US style="COLOR: gray">funpower@gmail.com&nbsp; 2006-6-30<BR></SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>参考文章：</SPAN><SPAN lang=EN-US><A href="http://www.cnfug.org/journal/systems/2004/000073.html"><SPAN style="COLOR: gray">IP Filter Based Firewalls HOWTO</SPAN></A><SPAN style="COLOR: gray"> \ </SPAN><A href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/firewalls-ipf.html"><SPAN style="COLOR: gray">26.5 IPFILTER (IPF) </SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>防火墙</SPAN><SPAN style="COLOR: gray">(freebsd handbook)</SPAN></A><SPAN style="COLOR: gray"> \ </SPAN><A href="http://cnsnap.cn.freebsd.org/doc/zh_CN.GB2312/books/handbook/network-routing.html"><SPAN style="COLOR: gray">27.2 </SPAN><SPAN style="COLOR: gray; FONT-FAMILY: 宋体; mso-ascii-font-family: " Roman?? New ?Times mso-hansi-font-family: Roman?; Times>网关和路由</SPAN></A></SPAN></P><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="/logs/1810995.html">2006-01-11</a> 2006-01-11</div><div><a href="/logs/1576228.html">2005-11-08</a> 2005-11-08</div><div><a href="/logs/1542737.html">测试php方法</a> 2005-10-28</div><div><a href="/logs/1378530.html">设置CMOS使服务器断电来电后自动开机</a> 2005-08-22</div><div><a href="/logs/1378526.html">freebsd下安装GIMP</a> 2005-08-22</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F2728727.html&title=FreeBSD6.1Release%E4%B8%8B%E5%88%A9%E7%94%A8route%E5%92%8Cipfilter%E6%9E%B6%E8%AE%BE%E8%B7%AF%E7%94%B1">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/2728727.html</link>
   <author>funpower</author>
   <pubDate>Fri, 30 Jun 2006 19:23:33 +0800</pubDate>
  </item>
  <item>
   <title>FreeBSD6.0下通过squid的acl语句对上网用户作进一步设置</title>
   <description><![CDATA[<font size="2">去年末写过&lt;</font><a href="http://blog.donews.com/funpower/archive/2005/12/29/676330.aspx" _fcksavedurl="http://blog.donews.com/funpower/archive/2005/12/29/676330.aspx"><font size="2">FreeBSD6.0Release+Squid+Socks5服务器架设笔记</font></a><font size="2">&gt;, 但对某些用户的上网还没作进一步的限制. 今天完成这项工作.<br /><br />以下为通过squid的acl语句对上网用户进行限制:<br /><br /><span style="FONT-WEIGHT: bold">1. 先列出表格:</span><br /><br /></font><table cellspacing="1" cellpadding="1" width="500" border="1"><tbody><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">--------</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期一</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期二</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期三</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期四</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期五</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期六</font></td><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">星期天</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2">特殊用户<br /></font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00</font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00<br /></font></td><td style="TEXT-ALIGN: center"><font size="2">00:00-24:00 </font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户1</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户2</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">14:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户3</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr><tr><td style="BACKGROUND-COLOR: rgb(204,204,204); TEXT-ALIGN: center"><font size="2"> 用户4</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">12:00-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">16:30-23:00</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td><td style="TEXT-ALIGN: center"><font size="2">8:00-21:30</font></td></tr></tbody></table><br /><br /><span style="FONT-WEIGHT: bold"><font size="2">2. 编辑/usr/local/squid/etc/squid.conf文件, 从1475行开始, 加入如下内容: </font><blockquote dir="ltr" style="MARGIN-RIGHT: 0px"><p><font size="2"><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl tieshuyonghu src 192.168.121.210/32 192.168.121.211/32 192.168.121.212/32 </span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu1 src 192.168.120.1-192.168.120.52/255.255.255.255</span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu2 src 192.168.120.53-192.168.120.104/255.255.255.255</span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu3 src 192.168.120.105-192.168.120.157/255.255.255.255</span><br style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(0,0,255)">acl yonghu4 src 192.168.120.158-192.168.120.208/255.255.255.255</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl 8:30-23:00 time MTHF 8:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl 14:30-23:00 time MTHF 14:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl 16:00-23:00 time MTHF 16:00-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl shan time W 12:00-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(153,51,102)">acl zm time AS 8:00-21:30</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl all src 0.0.0.0/0.0.0.0</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl manager proto cache_object</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl localhost src 127.0.0.1/255.255.255.255</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl to_localhost dst 127.0.0.0/8</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl SSL_ports port 443 563</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 80          # http</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 21          # ftp</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 443 563     # https, snews</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 70          # gopher</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 210         # wais</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 1025-65535  # unregistered ports</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 280         # http-mgmt</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 488         # gss-http</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 591         # filemaker</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl Safe_ports port 777         # multiling http</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">acl CONNECT method CONNECT</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access allow manager localhost</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access deny manager</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access deny !Safe_ports</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal">http_access deny CONNECT !SSL_ports</span><br style="FONT-WEIGHT: normal" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow tieshuyonghu</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu1 8:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu1 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu2 14:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu2 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu3 16:00-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu3 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu3 zm</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu4 16:30-23:00</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu4 shan</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access allow yonghu4 zm</span><br style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)" /><span style="FONT-WEIGHT: normal; COLOR: rgb(128,128,0)">http_access deny all</span><br style="FONT-WEIGHT: normal" /><br style="FONT-WEIGHT: normal" /></font></p></blockquote><font size="2"><span style="FONT-WEIGHT: normal">这里利用了squid的acl中的src和time两个标签, time对星期的表示为 </span>S<span style="FONT-WEIGHT: normal">-Sunday(星期天)  </span>M<span style="FONT-WEIGHT: normal">-Monday(星期一) </span>T<span style="FONT-WEIGHT: normal">-Tuesday(星期二)  </span>W<span style="FONT-WEIGHT: normal">-Wednesday(星期三) </span>H<span style="FONT-WEIGHT: normal">-Thursday(星期四)  </span>F<span style="FONT-WEIGHT: normal">-Friday(星期五)  </span>A<span style="FONT-WEIGHT: normal">-Saturday(星期六), 对acl更多的信息可看</span></font><a style="FONT-WEIGHT: normal" href="http://funpower.blogbus.com/logs/2005/08/1378504.html" _fcksavedurl="http://funpower.blogbus.com/logs/2005/08/1378504.html"><font size="2">这里</font></a><span style="FONT-WEIGHT: normal"><font size="2">.</font></span></span><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="/logs/1707598.html">2005-12-15</a> 2005-12-15</div><div><a href="/logs/1496156.html">FreeBSD 6.0-RC1正式命名</a> 2005-10-10</div><div><a href="/logs/1493988.html">cnfug.org改版</a> 2005-10-09</div><div><a href="/logs/1490298.html">安装lilina续 - 更改首页显示天数</a> 2005-10-08</div><div><a href="/logs/1382247.html">FreeBSD 6.0九月推出</a> 2005-08-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F2728719.html&title=FreeBSD6.0%E4%B8%8B%E9%80%9A%E8%BF%87squid%E7%9A%84acl%E8%AF%AD%E5%8F%A5%E5%AF%B9%E4%B8%8A%E7%BD%91%E7%94%A8%E6%88%B7%E4%BD%9C%E8%BF%9B%E4%B8%80%E6%AD%A5%E8%AE%BE%E7%BD%AE">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/2728719.html</link>
   <author>funpower</author>
   <pubDate>Fri, 30 Jun 2006 19:21:10 +0800</pubDate>
  </item>
  <item>
   <title>2006-04-07</title>
   <description><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;"><a href="http://www.flickr.com/photos/joshu/39978667/" title="photo sharing"><img src="http://static.flickr.com/22/39978667_0977dfdba6_m.jpg" alt="" style="border: 2px solid rgb(0, 0, 0);"></a><br><span style="font-size: 0.9em; margin-top: 0px;"><a href="http://www.flickr.com/photos/joshu/39978667/">panorama of nyc</a><br>Originally uploaded by<a href="http://www.flickr.com/people/joshu/">joshua</a>.</span></div><br clear="all"><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/1989727.html">2006-03-01</a> 2006-03-01</div><div><a href="http://funpower.blogbus.com/logs/1826972.html">Linux不是Windows</a> 2006-01-16</div><div><a href="http://funpower.blogbus.com/logs/1816565.html">2006-01-13</a> 2006-01-13</div><div><a href="http://funpower.blogbus.com/logs/1810995.html">2006-01-11</a> 2006-01-11</div><div><a href="http://funpower.blogbus.com/logs/1741019.html">2005-12-23</a> 2005-12-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F2219549.html&title=2006-04-07">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/2219549.html</link>
   <author>funpower</author>
   <pubDate>Fri, 07 Apr 2006 15:32:42 +0800</pubDate>
  </item>
  <item>
   <title>Windows2000中毒，重新架设FreeBSD桌面系统(FreeBSD6.1_beta2 + Gnome-2.12.3)</title>
   <description><![CDATA[<p><a href="http://static.flickr.com/47/106121126_eac222101b_o.png"><img src="http://static.flickr.com/47/106121126_eac222101b_m.jpg" border="0" /></a><span style="COLOR: rgb(255,255,255)">aaa</span><a href="http://static.flickr.com/49/106102002_7897a76c82_o.png"><img src="http://static.flickr.com/49/106102002_7897a76c82_m.jpg" border="0" /></a><br /><br /><a href="http://static.flickr.com/36/106142962_8b38318dc9_o.png"><img src="http://static.flickr.com/36/106142962_8b38318dc9_m.jpg" border="0" /></a><span style="COLOR: rgb(255,255,255)">aaa</span><a href="http://static.flickr.com/43/106150470_5534dbf6a5_o.png"><img src="http://static.flickr.com/43/106150470_5534dbf6a5_m.jpg" border="0" /></a><br /><br />最近MS的windows2000一直病毒发作，想换到<a href="http://blog.donews.com/funpower/archive/2005/12/27/672960.aspx">前段时间安装的Solaris10</a>上，但可用软件实在太少，于是决定加一个FreeBSD + Gnome系统，步骤基本上按以前写的<a href="http://funpower.blogbus.com/logs/2005/10/1523154.html">《FreeBSD5.4Release中文工作站安装笔记 (Freebsd5.4R+Gnome2.10.0) 》</a>安装笔记进行安装，只是FreeBSD版本换成<a href="http://www.freebsd.org/where.html#helptest">FreeBSD6.1_beta2</a>。<br /><br />另外，以前登陆系统都是先登陆字符界面系统，然后运行startx命令来启动Gnome。这次准备利用<a href="http://www.gnome.org/projects/gdm/">GDM</a>来登陆系统，一般安装完GNOME后GDM已经在你的系统中，但默认是禁用的。通过在/etc/rc.conf中加入gdm_enable=&quot;YES&quot;就可以启用了。还有一些中文输入及GDM外观设置等具体可参考Freebsdchina.org上<span class="name">OneZ写的<a href="http://www.freebsdchina.org/forum/topic_9048.html">《</a></span><a href="javascript:void(0);/*1141352308093*/"><span class="maintitle">FreeBSD 5.x下GDM的安装</span></a><span class="name"><a href="javascript:void(0);/*1141352308093*/">》</a><b>，</b>我在更换GDM的主题（一般是运行/usr/X11R6/bin下的gdmsetup来更换）时参考OneZ文章，但我在他所说的/usr/X11R6/bin下没有找到gdmsetup程序，难道是文章有问题，在GNOME中国站中说<a href="http://www.gnome-cn.org/documents/howto/install_gdm_theme">只需用root帐号运行gdmsetup即可</a>，但我也不成功。于是就想到会不会是版本原因一些文件放的位置不一样，最后，终于在/usr/X11R6/sbin中找到了gdmsetup，运行./gdmsetup命令，GDM的更换主题GUI程序终于&quot;现身&quot;。<br /></span><a href="new.php?BlogID=19140"></a></p><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/2733348.html">FreeBSD6.0下通过squid的acl语句对上网用户作进一步设置</a> 2006-07-01</div><div><a href="http://funpower.blogbus.com/logs/1795971.html">禁止某ip使用socks5服务</a> 2006-01-06</div><div><a href="http://funpower.blogbus.com/logs/1712492.html">优化后的ipfilter想卸载时还需要还原</a> 2005-12-16</div><div><a href="http://funpower.blogbus.com/logs/1642558.html">FreeBSD5.4Release下安装wiki</a> 2005-11-28</div><div><a href="http://funpower.blogbus.com/logs/1632453.html"> FreeBSD6.0Release下查看带宽使用情况的几个命令</a> 2005-11-25</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F1998084.html&title=Windows2000%E4%B8%AD%E6%AF%92%EF%BC%8C%E9%87%8D%E6%96%B0%E6%9E%B6%E8%AE%BEFreeBSD%E6%A1%8C%E9%9D%A2%E7%B3%BB%E7%BB%9F%28FreeBSD6.1_beta2+%2B+Gnome-2.12.3%29">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/1998084.html</link>
   <author>funpower</author>
   <pubDate>Fri, 03 Mar 2006 10:28:26 +0800</pubDate>
  </item>
  <item>
   <title>2006-03-01</title>
   <description><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;"><a href="http://www.flickr.com/photos/funpower/106102002/" title="photo sharing"><img src="http://static.flickr.com/49/106102002_7897a76c82_m.jpg" alt="" style="border: 2px solid rgb(0, 0, 0);"></a><br><span style="font-size: 0.9em; margin-top: 0px;"><a href="http://www.flickr.com/photos/funpower/106102002/">FreeBSD6.1-beta2 + Gnome-2.12.3</a><br>Originally uploaded by<a href="http://www.flickr.com/people/funpower/">老管&amp;aposs photo</a>.</span></div><br clear="all"><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/2219549.html">2006-04-07</a> 2006-04-07</div><div><a href="http://funpower.blogbus.com/logs/1826972.html">Linux不是Windows</a> 2006-01-16</div><div><a href="http://funpower.blogbus.com/logs/1816565.html">2006-01-13</a> 2006-01-13</div><div><a href="http://funpower.blogbus.com/logs/1810995.html">2006-01-11</a> 2006-01-11</div><div><a href="http://funpower.blogbus.com/logs/1741019.html">2005-12-23</a> 2005-12-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F1989727.html&title=2006-03-01">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/1989727.html</link>
   <author>funpower</author>
   <pubDate>Wed, 01 Mar 2006 11:07:04 +0800</pubDate>
  </item>
  <item>
   <title>Linux不是Windows</title>
   <description><![CDATA[<span style="color: rgb(153, 0, 0);">贡献人:
            来源：http://linux.oneandoneis2.org/LNW.htm, 中文：http://www.ubuntu.org.cn/lnw, 翻译：laborer</span><br>
<br>
laborer翻译的中文版有些难打开，所以转载过来，方便后来人查询。如您觉得侵害了您的版权，请来信(funpower at gmail.com)告知，我立即删除。<!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/2219549.html">2006-04-07</a> 2006-04-07</div><div><a href="http://funpower.blogbus.com/logs/1989727.html">2006-03-01</a> 2006-03-01</div><div><a href="http://funpower.blogbus.com/logs/1816565.html">2006-01-13</a> 2006-01-13</div><div><a href="http://funpower.blogbus.com/logs/1810995.html">2006-01-11</a> 2006-01-11</div><div><a href="http://funpower.blogbus.com/logs/1741019.html">2005-12-23</a> 2005-12-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F1826972.html&title=Linux%E4%B8%8D%E6%98%AFWindows">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/1826972.html</link>
   <author>funpower</author>
   <pubDate>Mon, 16 Jan 2006 12:01:46 +0800</pubDate>
  </item>
  <item>
   <title>2006-01-13</title>
   <description><![CDATA[<div style="float: right; margin-left: 10px; margin-bottom: 10px;"><a href="http://www.flickr.com/photos/funpower/85603725/" title="photo sharing"><img src="http://static.flickr.com/40/85603725_47a082f736_m.jpg" alt="" style="border: 2px solid rgb(0, 0, 0);"></a><br><span style="font-size: 0.9em; margin-top: 0px;"><a href="http://www.flickr.com/photos/funpower/85603725/">freebsd官方中文网</a><br>Originally uploaded by<a href="http://www.flickr.com/people/funpower/">老管&amp;aposs photo</a>.</span></div>地址: http://cnsnap.cn.freebsd.org/zh_CN/<br clear="all"><!--sp--><div class="relpost"><br/><h3>随机文章：</h3><div><a href="http://funpower.blogbus.com/logs/2219549.html">2006-04-07</a> 2006-04-07</div><div><a href="http://funpower.blogbus.com/logs/1989727.html">2006-03-01</a> 2006-03-01</div><div><a href="http://funpower.blogbus.com/logs/1826972.html">Linux不是Windows</a> 2006-01-16</div><div><a href="http://funpower.blogbus.com/logs/1810995.html">2006-01-11</a> 2006-01-11</div><div><a href="http://funpower.blogbus.com/logs/1741019.html">2005-12-23</a> 2005-12-23</div></div><div class="addfav"><br />收藏到：<span class= "delicious"><a href="http://delicious.com/save?url=http%3A%2F%2Ffunpower.blogbus.com%2Flogs%2F1816565.html&title=2006-01-13">Del.icio.us</a></span></div><br /><br /><div class="sysmsg"><b><a href="http://www.blogbus.com" target="_blank">博客大巴，你的个人传媒早班车</a></b></div><br /><br />]]></description>
   <link>http://funpower.blogbus.com/logs/1816565.html</link>
   <author>funpower</author>
   <pubDate>Fri, 13 Jan 2006 08:36:32 +0800</pubDate>
  </item>
 </channel>
</rss>
