⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.docbook

📁 linux系统下的一个防火墙guarddog
💻 DOCBOOK
📖 第 1 页 / 共 5 页
字号:
files and disk space.</para><para>The <guilabel>Rate limit logging</guilabel> checkbox controls whetherpacket logging should be rate limited or not. It is recommended that this beleft on.</para><para>The <guilabel>Rate</guilabel> widget allows you to specify the maximumaverage rate that packet log entries may be added to the system log. The ratemay be specified in terms of the number of entries per second, minute, hour orday.</para><para>The <guilabel>Rate</guilabel> widget allows you to specify the<emphasis>average</emphasis> maximum logging rate. Packets to be logged oftencome in bursts of many packets in very quick succession. The<guilabel>Burst</guilabel> widget allows you to specify how many packetsin a burst may be logged. Once the burst limit has been reached, theaverage logging rate is enforced.</para><tip><para>For more information on exactly how this works, consult the<command>iptables</command> documentation and the Linux kernel source<filename>/net/ipv4/netfilter/ipt_limit.c</filename> file.</para></tip><para>The <guilabel>Warn when limiting</guilabel> check box controls whether&kappname; should put warning messages in the system log when it has beenforced to apply rate limiting to the packet log messages. When rate limitingis applied to packet log messages, only a limited number of messages appearin the log, while the rest are omitted.  When you come to view the system log,it useful to know if packet log messages have been omitted due to rate limiting.</para><para>The <guilabel>Warning rate</guilabel> widget allows you to specify howoften warning messages should be placed in the system log when rate limitingis being used.</para><tip><para>The warning messages in the system log have the word<literal>LIMITED</literal> at the start of the line.</para></tip></sect2><sect2><title>Logging Options</title><para>The <guilabel>Log IP Options</guilabel> checkbox controls whether theoptions field in the IP header of a packet should be included in a packet logmessage.</para><para>The <guilabel>Log TCP Options</guilabel> checkbox controls whether theoptions field in the TCP header of a packet should be included in a packetlog message.</para><para>The <guilabel>Log TCP sequence numbers</guilabel> checkbox controlswhether the TCP sequence number for a packet should be included in a packetlog message.</para><para>The <guilabel>Logging Priority</guilabel> selector specifies the loggingpriority used when sending log messages to the system log. See thedocumentation for <filename>syslog.conf</filename> for more information.</para></sect2></sect1><sect1 id="guarddog-advancedtab"><title>The Advanced Tab</title><para>The <guilabel>Advanced</guilabel> tab holds many miscellaneous advancedoptions. Here you can also set up your own simple protocols for opening asmall hole through your firewall to support an <emphasis>ad hoc</emphasis>protocol. For example, accessing a remote administration web interface thatis served from a non-standard port number.</para><para>When the <guilabel>Show advanced protocol help</guilabel> check box isticked, extra information is given in the help text for protocols on the<guilabel>protocol</guilabel> tab.  The extra information includes the whatkinds of network connections the protocols uses.</para><para>The <guilabel>Allow TCP timestamps</guilabel> check box lets you turnTCP timestamps on or off. Leaving TCP timestamps turned on makes it possiblefor outsiders to calculate how long your machine has been running since itwas last booted. <command>nmap</command> <option>-O</option> can do this.Generally, unless you are connected to a high speed network connection chancesare you have no good reason to have TCP timestamps turned on.</para><para>The <guilabel>Restore to factory defaults</guilabel> clears thefirewall configuration and resets it back to how it was the first time&kappname; was run.</para><sect2><title>Local Dynamic Port Range</title><para>The two input fields next to <guilabel>Local Dynamic Port Range</guilabel>allow you to specify the range of port numbers used by the operating systemfor the source port of new out-going connections. When a connection is made toa port on an external machine, the source port of the connection is usuallynot specified by the application. It is left up to the operating system to choosea suitable free source port number. The local dynamic port range is just a rangeof port numbers that the operating system will use when looking for anavailable source port.</para><para>Generally, there is little reason to change this. It might only becomeimportant on machines that need to have an unusually high number ofconnections active at the same time.</para></sect2><sect2 id='dhcp'><title>DHCP (Dynamic Host Configuration Protocol)</title><para>If you are using DHCP to configure a network interface, then you willneed to specify the name of the interface(s) in the <guilabel>Enable DHCP oninterfaces:</guilabel> widget.</para> <para>If you are running a DHCP server on a network interface, then you willneed to specify the name of the interface(s) in the <guilabel>Enable DHCP serveron interfaces:</guilabel> widget.</para> <para>When entering multiple interface names, separate them using a comma ",".</para></sect2><sect2><title>Import/Export</title><para><guilabel>Import</guilabel> and <guilabel>Export</guilabel> allow youto save the current configuration to a file, and read it back into &kappname;again. When you click on either of these buttons, a file dialog appears andyou can choose the file to import from, or export to.</para><para>The <guilabel>Description</guilabel> text box allows you enter a shortnote about the current firewall configuration.</para><tip><para><guilabel>Export</guilabel> doesn't just export the currentfirewall configuration, it actually outputs an entire firewall script.The firewall script can then be moved onto another machine and manuallyinstalled and run.</para></tip></sect2><sect2><title>User Defined Protocols</title><para>In addition to all the protocols that &kappname; supports, it is alsopossible to specify your own custom protocols.</para><para>In the middle of the <guilabel>User Defined Protocols</guilabel>group is the current list of user defined protocols. Use the <guilabel>NewProtocol</guilabel> button to create a new blank protocol. The <guilabel>DeleteProtocol</guilabel> button naturally deletes the currently selected userdefined protocol.</para><para>After creating a new protocol you can give it a name using the<guilabel>Name</guilabel> text field. The <guilabel>Type</guilabel> widget letsyou specify what IP protocol your user defined protocol uses. You have thechoice between TCP and UDP.  In the <guilabel>Port</guilabel> widget youspecify the TCP or UDP port on the server or remote machine that theprotocol must connect to.  For UDP protocols use the<guilabel>bidirectional</guilabel> check box to specify if the protocol isbidirectional and requires packets to travel in both directions. Once auser defined protocol has been specified here, it becomes available on the<guilabel>Protocol</guilabel> tab under the <guilabel>User Defined</guilabel>category. There it can be turned on or off just like any otherbuilt-in protocol.</para><tip><para>This feature is intended for simple protocols where a server isjust serving from a single TCP or UDP port. If you feel that you need tospecify a more complex protocol, consider contacting the author so thatdirect support for it can be added in a future &kappname; release.</para></tip></sect2></sect1></chapter><!--<chapter id="developers"><title>Developer's Guide to Guarddog</title><para>Programming &guarddog; plugins is a joy to behold. Just read through the next66 pages of API's to learn how!</para><refentry id="re-1007-unmanagechildren-1"><refmeta><refentrytitle>XtUnmanageChildren</refentrytitle><refmiscinfo>Xt - Geometry Management</refmiscinfo></refmeta><refnamediv><refname>XtUnmanageChildren</refname><refpurpose>remove a list of children from a parent widget's managed list.</refpurpose><indexterm id="ix-1007-unmanagechildren-1"><primary>widgets</primary><secondary>removing</secondary></indexterm><indexterm id="ix-1007-unmanagechildren-2"><primary>XtUnmanageChildren</primary></indexterm></refnamediv><refsynopsisdiv><refsynopsisdivinfo><date>4 March 1996</date></refsynopsisdivinfo><synopsis>void XtUnmanageChildren(<replaceable parameter>children</replaceable>, <replaceable parameter>num_children</replaceable>)    WidgetList <replaceable parameter>children</replaceable>;    Cardinal <replaceable parameter>num_children</replaceable>;</synopsis><refsect2 id="r2-1007-unmanagechildren-1"><title>Inputs</title><variablelist><varlistentry><term><replaceable parameter>children</replaceable></term><listitem><para>Specifies an array of child widgets. Each child must be ofclass RectObj or any subclass thereof.</para></listitem></varlistentry><varlistentry><term><replaceable parameter>num_children</replaceable></term><listitem><para>Specifies the number of elements in <replaceable parameter>children</replaceable>.</para></listitem></varlistentry></variablelist></refsect2></refsynopsisdiv><refsect1 id="r1-1007-unmanagechildren-1"><title>Description</title><para><function>XtUnmanageChildren()</function> unmaps the specified widgetsand removes them from their parent's geometry management.The widgets will disappear from the screen, and (dependingon its parent) may no longer have screen space allocated forthem.</para><para>Each of the widgets in the <replaceable parameter>children</replaceable> array must havethe same parent.</para><para>See the &ldquo;Algorithm&rdquo; section below for full details of thewidget unmanagement procedure.</para></refsect1><refsect1 id="r1-1007-unmanagechildren-2"><title>Usage</title><para>Unmanaging widgets is the usual method for temporarilymaking them invisible.  They can be re-managed with<function>XtManageChildren()</function>.</para><para>You can unmap a widget, but leave it under geometrymanagement by calling <function>XtUnmapWidget()</function>.  You candestroy a widget's window without destroying the widget bycalling <function>XtUnrealizeWidget()</function>.  You can destroy awidget completely with <function>XtDestroyWidget()</function>.</para><para>If you are only going to unmanage a single widget, it ismore convenient to call <function>XtUnmanageChild()</function>.  It isoften more convenient to call <function>XtUnmanageChild()</function>several times than it is to declare and initialize an arrayof widgets to pass to <function>XtUnmanageChildren()</function>.  Calling<function>XtUnmanageChildren()</function> is more efficient, however,because it only calls the parent's <function>change_managed()</function>method once.</para></refsect1><refsect1 id="r1-1007-unmanagechildren-3"><title>Algorithm</title><para><function>XtUnmanageChildren()</function> performs the following:</para><variablelist><varlistentry><term>-</term><listitem><para>Ignores the child if it already is unmanaged or is beingdestroyed.</para></listitem></varlistentry><varlistentry><term>-</term><listitem><para>Otherwise, if the child is realized, it makes it nonvisibleby unmapping it.</para></listitem></varlistentry></variablelist><para></para></refsect1><refsect1 id="r1-1007-unmanagechildren-4"><title>Structures</title><para>The <type>WidgetList</type> type is simply an array of widgets:</para><screen id="sc-1007-unmanagechildren-1">typedef Widget *WidgetList;</screen></refsect1></refentry></chapter>--><chapter id="faq"><title>Questions and Answers</title>&reporting.bugs;&updating.documentation;<qandaset id="faqlist"><qandaentry><question><para>Does &kappname; need to be running for it to protect my computer?</para></question><answer><para>&kappname; provides a user friendly way of configuring your computer'sbuilt-in firewalling capabilities. &kappname; itself doesn't need to berunning continously to protect your computer.</para></answer></qandaentry><qandaentry><question><para>How can I see which ports a given protocol uses? or How can I see which portsa given protocol opens up?</para></question><answer><para>Go to the <guilabel>Advanced</guilabel> tab and tick the checkbox at<guilabel>Show advanced protocol help</guilabel>. Now when yougo back to the <guilabel>Protocol</guilabel> tab and click on the na

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -