Upon execution and upon being restarted, iplog reads a list of configuration rules from its configuration file. The default location of this file is /etc/iplog.conf.
Throughout this document, required parameters will be denoted by enclosing the parame-ter in angle brackets <like this>. Optional parameters will be denoted by enclosing the parameter in square brackets [like this]. The '|' character is used to express exclusive or. For example [true|false] means you may give "true" or "false", but not both.
There are nine classes of rules supported in the iplog configuration file. These rules are: set rules, interface rule, priority rule, facility rule, user rule, group rule, promisc rule, logfile rule, and pid-file rule.
Set rules allow for boolean program options to be enabled or disabled at runtime.
The syntax for "set" rules is:
set <keyword> [true|false]
Set rules は有効か無効化のブールプログラムオプションをランタイム内で許可します。
"set" ルールの構文:
set <keyword> [true|false]
SET KEYWORDS
tcp
Log or ignore TCP traffic.
TCPトラフィックを記録または無視する。
udp
Log or ignore UDP traffic.
UDPトラフィックを記録または無視する。
icmp
Log or ignore ICMP traffic.
ICMPトラフィックを記録または無視する。
frag
Enable or disable detection of IP fragment attacks
(duplicated and overlapping fragments).
IPフラグメント攻撃検知機能を有効または無効にする。
(二重フラグメントとオーバーラップフラグメント)
smurf
Enable or disable detection of "smurf" attacks.
"smurf"攻撃の検知機能を有効または無効にする。
bogus
Enable or disable detection of TCP packets with invalid TCP flags set. Programs such as nmap and queso may set these flags while trying to perform OS detection.
Enable or disable the detection of UDP scans and UDP floods.
UDPスキャンとUDPフラッド攻撃の検知を有効または無効にする。
portscan
Enable or disable the detection of TCP port scans.
TCPポートスキャンの検知を有効または無効にする。
fool_nmap
Enable or disable a mechanism that attempts to fool programs, such as nmap and queso, that perform remote OS detection. As a side effect, enabling this option will also cause most of nmap's "stealth" scans to fail.
The pid-file rule is used to specify the location of iplog's pid file. The user that iplog will run as should have write access to the directory the specified file is in. The location of the pid file defaults to /var/run/iplog.pid.
This option should be used when iplog is set to run as a user that does not have write access to /var/run.
The sense of a keyword can be inverted by prefixing its argument with a '!' character.
'!'プリフィクスを変数と一緒にすることにより、逆のキーワードとすることができる。
log
Log packets matching the rule. Either this or ignore must be the first keyword specified in a rule. The log and ignore keywords cannot be used in the same rule.
Ignore packets matching the rule. Either this or log must be the first keyword specified in a rule. The log and ignore keywords cannot be used in the same rule.
The type keyword specifies an ICMP type. This keyword is applicable only to ICMP rules.
type キーワードはICMPタイプを指定する。このキーワードはICMPルールにのみ適応できる。
FILTER PARAMETER SYNTAX
An asterisk character ('*') may be used as a wildcard for any parameter.
アスタリスク文字('*')はいくつかのパラメータでワイルドカードとして使われるだろう。
Address parameters
The syntax for an address parameter is [!][/] . The addr tokenspecifies the address the rule will match. This token may be specified in quad-dot notation or as a fully qualified domain name (FQDN). The mask token is optional, and is used to specify a range of addresses the rule will match. The mask token may be specified either in quad-dot notation, as a FQDN or in CIDR notation. If the mask token is present, the addr token will be treated as a network address.
The syntax for a port parameter is [!]]]> . The port-start token specifies the port the rule will match. This token may be specified as either a decimal number or as a service name (e.g. "telnet"). The optional port-endtoken is used to define port ranges the rule will match. The port-end token also may be specified as either a decimal number or a service name. When the port-end token is present, the port-start token is interpreted as the first port the rule will match. Suffixing port-start witha ':' but omitting the port-end parameter causes port-end to be implicitly set to 65535 (i.e. all ports greater than or equal to port-start will be matched).In general, "port1:portN" will match all ports from port1 to portN, inclusive. "port1:" matches all ports from port1 to 65535, inclusive.
Either integers or a string can be used to specify a type parameter. Obviously, only an integer can be used to describe a type that has no name. "ICMP_" may precede any of the names. Legal type parameters follow:
typeパラメータには整数または文字列のどちらかを使用することができる。また特に整数だけが NAME の無い type を指定できる。いくつかの NAME の前には'ICMP_'を付加するだろう。 正しい type パラメータは以下の通りである。
* Case is ignored in all places, except for in a service name (i.e. "telnet").
* case はサービス名を除く全ての場所において無視される。
* All parameters are optional except "log" or "ignore" and "tcp" "udp" and "icmp". Either log or ignore must be specified for each rule. Exactly one of the "tcp" "udp" and "icmp" parameters must be specified for each rule.
* The order in which the rules are listed is not significant in regard to "log" or "ignore". The entries will be reordered such that all "log" statements precede all "ignore" statements.