From owner-svn-doc-head@FreeBSD.ORG Wed Jul 25 19:16:40 2012 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 677581065672; Wed, 25 Jul 2012 19:16:40 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 479408FC16; Wed, 25 Jul 2012 19:16:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6PJGesA090905; Wed, 25 Jul 2012 19:16:40 GMT (envelope-from loader@svn.freebsd.org) Received: (from loader@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6PJGeGl090903; Wed, 25 Jul 2012 19:16:40 GMT (envelope-from loader@svn.freebsd.org) Message-Id: <201207251916.q6PJGeGl090903@svn.freebsd.org> From: Fukang Chen Date: Wed, 25 Jul 2012 19:16:40 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r39266 - head/zh_CN.GB2312/books/handbook/firewalls X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 19:16:40 -0000 Author: loader Date: Wed Jul 25 19:16:39 2012 New Revision: 39266 URL: http://svn.freebsd.org/changeset/doc/39266 Log: MFen: r37165 -> r38826 Fix typo. [1] Merging work done by: delphij Submitted by: Sutra Zhou (zhoushuqun at gmail dot com) [1] Obtained from: The FreeBSD Simplified Chinese Project Modified: head/zh_CN.GB2312/books/handbook/firewalls/chapter.sgml Modified: head/zh_CN.GB2312/books/handbook/firewalls/chapter.sgml ============================================================================== --- head/zh_CN.GB2312/books/handbook/firewalls/chapter.sgml Wed Jul 25 13:24:34 2012 (r39265) +++ head/zh_CN.GB2312/books/handbook/firewalls/chapter.sgml Wed Jul 25 19:16:39 2012 (r39266) @@ -2,7 +2,7 @@ The FreeBSD Documentation Project The FreeBSD Simplified Chinese Project - Original Revision: 1.96 + Original Revision: r38826 $FreeBSD$ --> @@ -316,7 +316,7 @@ device pfsync - 可用的 rc.conf 选项 + 可用的 <filename>rc.conf</filename> 选项 The following &man.rc.conf.5; statements configure PF and &man.pflog.4; at boot: @@ -352,8 +352,10 @@ pflog_flags="" # 启动时 在浏览 PF FAQ 时, 请时刻注意不同版本的 &os; 可能会使用不同版本的 PF。 目前, - &os; 使用的是与 - OpenBSD 4.1 相同的 PF版本。 + &os; 8.X 和之前的系统使用的是与 + OpenBSD 4.1 相同版本的 PF。 + &os; 9.X 和之后的系统使用的是与 + OpenBSD 4.5 相同版本的 PF&a.pf; 是一个提有关配置使用 PF @@ -389,7 +391,7 @@ pflog_flags="" # 启动时 pfctl all /etc/pf.conf - 清楚所有规则 (nat, filter, state, table, 等等。) + 清除所有规则 (nat, filter, state, table, 等等。) 并读取 /etc/pf.conf @@ -589,7 +591,7 @@ options IPFILTER_DEFAULT_BLOCK - 可用的 rc.conf 选项 + 可用的 <filename>rc.conf</filename> 选项 要在启动时激活 IPF, 需要在 /etc/rc.conf 中增加下面的设置: @@ -999,12 +1001,12 @@ sh /etc/ipf.rules.script - 当对防火墙规则进行操作时, 应该 + 当对防火墙规则进行操作时, 应 谨慎行事。 某些配置可能会 将您反锁在 服务器外面。 - 安全起见, 您可以考虑在第一次进行防火墙配置时在本地控制台上, - 而不是远程, 例如通过 - ssh 来进行。 + 保险起见, 您可以考虑在第一次进行防火墙配置时在本地控制台上, + 而不是远程, 如通过 + ssh 来进行。 @@ -1324,11 +1326,11 @@ sh /etc/ipf.rules.script如果记录的包的端口号并不是您所知道的, 可以在 /etc/services + url="http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers"> 了解端口号通常的用途。 - 参考下面的网页, 了解木马使用的端口: + 参考下面的网页, 了解木马使用的端口: 下面是我在自己的系统中使用的完整的, 非常安全的 明示允许 防火墙规则集。 直接使用这个规则集不会给您造成问题, @@ -2496,10 +2498,10 @@ ks="keep-state" # just too lazy t 无效的包应被丢弃和消失。 这样, 攻击者便无法知道包是否到达了您的系统。 攻击者对系统了解的越少, 其攻击的难度也就越大。 如果不知道端口号, 可以查阅 /etc/services/ 或到 + url="http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers"> 并查找一下端口号, 以了解其用途。 另外, 您也可以在这个网页上了解常见木马所使用的端口: + url="http://www.sans.org/security-resources/idfaq/oddports.php">。 @@ -2571,7 +2573,7 @@ pif="dc0" # public interface name of # Interface facing Public Internet (Outbound Section) # Interrogate session start requests originating from behind the # firewall on the private network or from this gateway server -# destine for the public Internet. +# destined for the public Internet. ################################################################# # Allow out access to my ISP's Domain name server. @@ -2609,7 +2611,7 @@ pif="dc0" # public interface name of # Allow out Time $cmd 00260 allow tcp from any to any 37 out via $pif setup keep-state -# Allow out nntp news (i.e. news groups) +# Allow out nntp news (i.e., news groups) $cmd 00270 allow tcp from any to any 119 out via $pif setup keep-state # Allow out secure FTP, Telnet, and SCP @@ -2899,7 +2901,7 @@ pif="rl0" # public interface name of # Allow out Time $cmd 090 $skip tcp from any to any 37 out via $pif setup keep-state -# Allow out nntp news (i.e. news groups) +# Allow out nntp news (i.e., news groups) $cmd 100 $skip tcp from any to any 119 out via $pif setup keep-state # Allow out secure FTP, Telnet, and SCP