Translation

(itstool) path: sect2/para
To use <application>PF</application>, its kernel module must be first loaded. This section describes the entries that can be added to <filename>/etc/rc.conf</filename> to enable <application>PF</application>.
125/2080
Context English Chinese (Simplified) (zh_CN) State
The OpenBSD Project maintains the definitive reference for <application>PF</application> in the <link xlink:href="http://www.openbsd.org/faq/pf/">PF FAQ</link>. Peter Hansteen maintains a thorough <application>PF</application> tutorial at <link xlink:href="http://home.nuug.no/~peter/pf/">http://home.nuug.no/~peter/pf/</link>.
OpenBSD计划有维护一份官方参考文件于<link xlink:href="http://www.openbsd.org/faq/pf/">PF FAQ</link>,Peter Hansteen有维一份详尽的<application>PF</application>教学于<link xlink:href="http://home.nuug.no/~peter/pf/"> http://home.nuug.no/~peter/pf/</link>。
When reading the <link xlink:href="http://www.openbsd.org/faq/pf/">PF FAQ</link>, keep in mind that FreeBSD's version of <application>PF</application> has diverged substantially from the upstream OpenBSD version over the years. Not all features work the same way on FreeBSD as they do in OpenBSD and vice versa.
阅读 <link xlink:href="http://www.openbsd.org/faq/pf/">PF FAQ</link> 时,请注意,FreeBSD 的<application>PF</application>版本多年来与上游 OpenBSD 版本有很大不同。并非所有功能在 FreeBSD 上的工作方式与 OpenBSD 相同,反之亦然。
The <link xlink:href="http://lists.FreeBSD.org/mailman/listinfo/freebsd-pf">FreeBSD packet filter mailing list</link> is a good place to ask questions about configuring and running the <application>PF</application> firewall. Check the mailing list archives before asking a question as it may have already been answered.
要询问有关设定与执行<application>PF</application>防火墙的问题可至<link xlink:href="http://lists.FreeBSD.org/mailman/listinfo/freebsd-pf">FreeBSD packet filter邮递论坛</link>,在询问问题之前请先查看该邮递论坛的封存数据,因您的问题可能已有解答。
This section of the Handbook focuses on <application>PF</application> as it pertains to FreeBSD. It demonstrates how to enable <application>PF</application> and <application>ALTQ</application>. It also provides several examples for creating rulesets on a FreeBSD system.
本手册的这一部分主要介绍了与 FreeBSD 相关的 <application>PF</application>使用方法。它演示了如何启用 <application>PF</application> 和 <application>ALTQ</application>。它还提供了几个在 FreeBSD 系统上创建规则集的例子。
Enabling <application>PF</application>
开启<application>PF</application>
To use <application>PF</application>, its kernel module must be first loaded. This section describes the entries that can be added to <filename>/etc/rc.conf</filename> to enable <application>PF</application>.
要使用<application>PF</application>,必须首先加载其内核模块。本节介绍了可以添加到<filename>/etc/rc.conf</filename>的条目,以启用<application>PF</application>。
Start by adding <literal>pf_enable=yes</literal> to <filename>/etc/rc.conf</filename>:
首先将<literal>pf_enable=yes</literal>添加到<filename>/etc/rc.conf</filename>:
<prompt>#</prompt> <userinput>sysrc pf_enable=yes</userinput>
<prompt>#</prompt> <userinput>sysrc pf_enable=yes</userinput>
Additional options, described in <citerefentry><refentrytitle>pfctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>, can be passed to <application>PF</application> when it is started. Add or change this entry in <filename>/etc/rc.conf</filename> and specify any required flags between the two quotes (<literal>""</literal>):
其他选项(在<citerefentry><refentrytitle>pfctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>中描述)可在启动时传递给<application>PF</application>。在<filename>/etc/rc.conf</filename>中添加或更改此条目,并在两个引号之间指定任何必需的标志(<literal>""</literal>):
pf_flags="" # additional flags for pfctl startup
pf_flags="" # additional flags for pfctl startup
<application>PF</application> will not start if it cannot find its ruleset configuration file. By default, FreeBSD does not ship with a ruleset and there is no <filename>/etc/pf.conf</filename>. Example rulesets can be found in <filename>/usr/share/examples/pf/</filename>. If a custom ruleset has been saved somewhere else, add a line to <filename>/etc/rc.conf</filename> which specifies the full path to the file:
<application>PF</application> 如果找不到规则集配置文件, 则不会启动。默认情况下, FreeBSD 并没有附带规则集, 也没有 <filename>/etc/pf.conf</filename>。规则集的例子可以在 <filename>/usr/share/examples/pf/</filename> 中找到。如果自定义规则集已经保存在其他地方,请在<filename>/etc/rc.conf</filename>中添加一行指定文件的绝对路径:

Loading…

To use <application>PF</application>, its kernel module must be first loaded. This section describes the entries that can be added to <filename>/etc/rc.conf</filename> to enable <application>PF</application>.
要使用<application>PF</application>,必须首先加载其内核模块。本节介绍了可以添加到<filename>/etc/rc.conf</filename>的条目,以启用<application>PF</application>。
a month ago
Browse all component changes

Glossary

English Chinese (Simplified) (zh_CN)
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect2/para
Labels
No labels currently set.
Source string location
book.translate.xml:58022
Source string age
9 months ago
Translation file
books/zh_CN/handbook.po, string 9489