2 .\" Man page written by Herve Eychenne <rv@wallfire.org> (May 1999)
3 .\" It is based on ipchains page.
4 .\" TODO: add a word for protocol helpers (FTP, IRC, SNMP-ALG)
6 .\" ipchains page by Paul ``Rusty'' Russell March 1997
7 .\" Based on the original ipfwadm man page by Jos Vos <jos@xos.nl>
9 .\" This program is free software; you can redistribute it and/or modify
10 .\" it under the terms of the GNU General Public License as published by
11 .\" the Free Software Foundation; either version 2 of the License, or
12 .\" (at your option) any later version.
14 .\" This program is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 .\" GNU General Public License for more details.
19 .\" You should have received a copy of the GNU General Public License
20 .\" along with this program; if not, write to the Free Software
21 .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 .\" Japanese Version Copyright (c) 2001, 2004 Yuichi SATO
25 .\" all right reserved.
26 .\" Translated Sun Jul 29 01:03:37 JST 2001
27 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
28 .\" Updated & Modified Wed Sep 12 06:22:55 JST 2001 by Yuichi SATO
29 .\" Updated on Wed May 28 01:51:45 JST 2003 by
30 .\" System Design and Research Institute Co., Ltd.
31 .\" Updated & Modified Sat Feb 21 23:28:25 JST 2004
32 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
34 .\"WORD: chain ¥Á¥§¥¤¥ó
35 .\"WORD: built-in chain ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó
36 .\"WORD: connection tracking ÀܳÄÉÀ×
37 .\"WORD: enslave ¥¹¥ì¡¼¥Ö¤Ë¤¹¤ë
38 .\"WORD: infrastructure ´ðÈ×
39 .\"WORD: round-robin ¥é¥¦¥ó¥É¡¦¥í¥Ó¥ó
40 .\"WORD: rule traverse ¥ë¡¼¥ë¤Î¸¡Æ¤
41 .\"WORD: non-terminating target Èó½ªÎ»¥¿¡¼¥²¥Ã¥È
42 .\"WORD: criteria ȽÃÇ(¤¹¤ë)´ð½à
44 .TH IPTABLES 8 "Mar 09, 2002" "" ""
47 .\"O iptables \- administration tool for IPv4 packet filtering and NAT
48 iptables \- IPv4 ¤Î¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¤È NAT ¤ò´ÉÍý¤¹¤ë¥Ä¡¼¥ë
51 .\"O .BR "iptables [-t table] -[AD] " "chain rule-specification [options]"
52 .BR "iptables [-t table] -[AD] " "¥Á¥§¥¤¥ó ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
54 .\"O .BR "iptables [-t table] -I " "chain [rulenum] rule-specification [options]"
55 .BR "iptables [-t table] -I " "¥Á¥§¥¤¥ó [¥ë¡¼¥ëÈÖ¹æ] ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
57 .\"O .BR "iptables [-t table] -R " "chain rulenum rule-specification [options]"
58 .BR "iptables [-t table] -R " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈÖ¹æ ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
60 .\"O .BR "iptables [-t table] -D " "chain rulenum [options]"
61 .BR "iptables [-t table] -D " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈÖ¹æ [¥ª¥×¥·¥ç¥ó]"
63 .\"O .BR "iptables [-t table] -[LFZ] " "[chain] [options]"
64 .BR "iptables [-t table] -[LFZ] " "[¥Á¥§¥¤¥ó] [¥ª¥×¥·¥ç¥ó]"
66 .\"O .BR "iptables [-t table] -N " "chain"
67 .BR "iptables [-t table] -N " "¥Á¥§¥¤¥ó"
69 .\"O .BR "iptables [-t table] -X " "[chain]"
70 .BR "iptables [-t table] -X " "[¥Á¥§¥¤¥ó]"
72 .\"O .BR "iptables [-t table] -P " "chain target [options]"
73 .BR "iptables [-t table] -P " "¥Á¥§¥¤¥ó ¥¿¡¼¥²¥Ã¥È [¥ª¥×¥·¥ç¥ó]"
75 .\"O .BR "iptables [-t table] -E " "old-chain-name new-chain-name"
76 .BR "iptables [-t table] -E " "µì¥Á¥§¥¤¥ó̾ ¿·¥Á¥§¥¤¥ó̾"
80 .\"O is used to set up, maintain, and inspect the tables of IP packet
81 .\"O filter rules in the Linux kernel. Several different tables
82 .\"O may be defined. Each table contains a number of built-in
83 .\"O chains and may also contain user-defined chains.
85 ¤Ï Linux ¥«¡¼¥Í¥ë¤Î IP ¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ë¡¼¥ë¤Î¥Æ¡¼¥Ö¥ë¤ò
86 ÀßÄꡦ´ÉÍý¡¦¸¡ºº¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
87 Ê£¿ô¤Î°Û¤Ê¤ë¥Æ¡¼¥Ö¥ë¤òÄêµÁ¤Ç¤¤ë¡£
88 ³Æ¥Æ¡¼¥Ö¥ë¤Ë¤Ï¤¿¤¯¤µ¤ó¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤Æ¤ª¤ê¡¢
89 ¤µ¤é¤Ë¥æ¡¼¥¶¡¼ÄêµÁ¤Î¥Á¥§¥¤¥ó¤ò²Ã¤¨¤ë¤³¤È¤â¤Ç¤¤ë¡£
91 .\"O Each chain is a list of rules which can match a set of packets. Each
92 .\"O rule specifies what to do with a packet that matches. This is called
93 .\"O a `target', which may be a jump to a user-defined chain in the same
95 ³Æ¥Á¥§¥¤¥ó¤Ï¡¢¥Ñ¥±¥Ã¥È·²¤Ë¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤Î¥ê¥¹¥È¤Ç¤¢¤ë¡£
96 ³Æ¥ë¡¼¥ë¤Ï¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ²¿¤ò¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
97 ¤³¤ì¤Ï¡Ö¥¿¡¼¥²¥Ã¥È¡×¤È¸Æ¤Ð¤ì¡¢
98 Ʊ¤¸¥Æ¡¼¥Ö¥ëÆâ¤Î¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Ë¥¸¥ã¥ó¥×¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
102 .\"O A firewall rule specifies criteria for a packet, and a target. If the
103 .\"O packet does not match, the next rule in the chain is the examined; if
104 .\"O it does match, then the next rule is specified by the value of the
105 .\"O target, which can be the name of a user-defined chain or one of the
112 ¤Ò¤È¤Ä¤Î¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¥ë¡¼¥ë¤Ç¤Ï¡¢
113 ¥Ñ¥±¥Ã¥È¤òȽÃǤ¹¤ë´ð½à¤È¥¿¡¼¥²¥Ã¥È¤È¤¬»ØÄꤵ¤ì¤ë¡£
114 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤Ê¤¤¾ì¹ç¡¢¥Á¥§¥¤¥óÆâ¤Î¼¡¤Î¥ë¡¼¥ë¤¬É¾²Á¤µ¤ì¤ë¡£
115 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¡¢
116 ¥¿¡¼¥²¥Ã¥È¤ÎÃͤ¬¼¡¤Î¥ë¡¼¥ë¤ò»ØÄꤹ¤ë¡£
117 ¥¿¡¼¥²¥Ã¥È¤ÎÃͤϡ¢¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Î̾Á°¡¢¤Þ¤¿¤ÏÆÃÊ̤ÊÃÍ
122 ¤Î¤¦¤Á¤Î 1 ¤Ä¤Ç¤¢¤ë¡£
125 .\"O means to let the packet through.
127 ¤Ï¥Ñ¥±¥Ã¥È¤òÄ̤¹¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
129 .\"O means to drop the packet on the floor.
131 ¤Ï¥Ñ¥±¥Ã¥È¤ò¾²¤ËÍ (¼Î¤Æ¤ë) ¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
133 .\"O means to pass the packet to userspace (if supported by the kernel).
135 ¤Ï¥Ñ¥±¥Ã¥È¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤ËÅϤ¹¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë
136 (¥«¡¼¥Í¥ë¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¤Ç¤¢¤ë¤¬)¡£
138 .\"O means stop traversing this chain and resume at the next rule in the
139 .\"O previous (calling) chain. If the end of a built-in chain is reached
140 .\"O or a rule in a built-in chain with target
142 .\"O is matched, the target specified by the chain policy determines the
143 .\"O fate of the packet.
145 ¤Ï¡¢¤³¤Î¥Á¥§¥¤¥ó¤Î¸¡Æ¤¤òÃæ»ß¤·¤Æ¡¢
146 °ÊÁ°¤Î (¸Æ¤Ó½Ð¤·¸µ) ¥Á¥§¥¤¥óÆâ¤Î
147 ¼¡¤Î¥ë¡¼¥ë¤«¤é¸¡Æ¤¤òºÆ³«¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
148 ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤ÎºÇ¸å¤ËÅþ㤷¤¿¾ì¹ç¡¢
149 ¤Þ¤¿¤ÏÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ç¥¿¡¼¥²¥Ã¥È
151 ¤ò»ý¤Ä¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¡¢
152 ¥Á¥§¥¤¥ó¥Ý¥ê¥·¡¼¤Ç»ØÄꤵ¤ì¤¿¥¿¡¼¥²¥Ã¥È¤¬
153 ¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤ò·èÄꤹ¤ë¡£
156 .\"O There are currently three independent tables (which tables are present
157 .\"O at any time depends on the kernel configuration options and which
158 .\"O modules are present).
159 ¸½ºß¤Î¤È¤³¤í 3 ¤Ä¤ÎÆÈΩ¤Ê¥Æ¡¼¥Ö¥ë¤¬Â¸ºß¤¹¤ë
160 (¤¢¤ë»þÅÀ¤Ç¤É¤Î¥Æ¡¼¥Ö¥ë¤¬Â¸ºß¤¹¤ë¤«¤Ï¡¢
161 ¥«¡¼¥Í¥ë¤ÎÀßÄê¤ä¤É¤¦¤¤¤Ã¤¿¥â¥¸¥å¡¼¥ë¤¬Â¸ºß¤¹¤ë¤«¤Ë°Í¸¤¹¤ë)¡£
163 .BI "-t, --table " "table"
164 .\"O This option specifies the packet matching table which the command
165 .\"O should operate on. If the kernel is configured with automatic module
166 .\"O loading, an attempt will be made to load the appropriate module for
167 .\"O that table if it is not already there.
168 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤³¤Î¥³¥Þ¥ó¥É¤òŬÍѤ¹¤ë
169 ¥Ñ¥±¥Ã¥È¥Þ¥Ã¥Á¥ó¥°¥Æ¡¼¥Ö¥ë¤ò»ØÄꤹ¤ë¡£
170 ¥«¡¼¥Í¥ë¤Ë¼«Æ°¥â¥¸¥å¡¼¥ë¥í¡¼¥Ç¥£¥ó¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
171 ¤½¤Î¥Æ¡¼¥Ö¥ë¤ËÂФ¹¤ëŬÀڤʥ⥸¥å¡¼¥ë¤¬¤Þ¤À¥í¡¼¥É¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
172 ¤½¤Î¥â¥¸¥å¡¼¥ë¤¬¥í¡¼¥É¤µ¤ì¤ë¡£
174 .\"O The tables are as follows:
175 ¥Æ¡¼¥Ö¥ë¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¢¤ë¡£
179 .\"O This is the default table (if no -t option is passed). It contains
180 .\"O the built-in chains
182 .\"O (for packets coming into the box itself),
184 .\"O (for packets being routed through the box), and
186 .\"O (for locally-generated packets).
187 (\-t ¥ª¥×¥·¥ç¥ó¤¬ÅϤµ¤ì¤Ê¤±¤ì¤Ð) ¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥Æ¡¼¥Ö¥ë¤Ç¤¢¤ë¡£
190 (¥Þ¥·¥ó¼«ÂΤËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
192 (¥Þ¥·¥ó¤ò·Ðͳ¤¹¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
194 (¥í¡¼¥«¥ë¥Þ¥·¥ó¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)
195 ¤È¤¤¤¦ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
198 .\"O This table is consulted when a packet that creates a new
199 .\"O connection is encountered. It consists of three built-ins:
201 .\"O (for altering packets as soon as they come in),
203 .\"O (for altering locally-generated packets before routing), and
205 .\"O (for altering packets as they are about to go out).
206 ¤³¤Î¥Æ¡¼¥Ö¥ë¤Ï¿·¤·¤¤Àܳ¤ò³«¤¯¤è¤¦¤Ê¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ»²¾È¤µ¤ì¤ë¡£
209 (¥Ñ¥±¥Ã¥È¤¬Æþ¤Ã¤Æ¤¤¿¾ì¹ç¡¢¤¹¤°¤Ë¤½¤Î¥Ñ¥±¥Ã¥È¤òÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
211 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ò¥ë¡¼¥Æ¥£¥ó¥°¤ÎÁ°¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
213 (¥Ñ¥±¥Ã¥È¤¬½Ð¤Æ¹Ô¤¯¤È¤¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
214 ¤È¤¤¤¦ 3 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
217 .\"O This table is used for specialized packet alteration. Until kernel
218 .\"O 2.4.17 it had two built-in chains:
220 .\"O (for altering incoming packets before routing) and
222 .\"O (for altering locally-generated packets before routing).
223 .\"O Since kernel 2.4.18, three other built-in chains are also supported:
225 .\"O (for packets coming into the box itself),
227 .\"O (for altering packets being routed through the box), and
229 .\"O (for altering packets as they are about to go out).
230 ¤³¤Î¥Æ¡¼¥Ö¥ë¤ÏÆÃÊ̤ʥѥ±¥Ã¥ÈÊÑ´¹¤Ë»È¤ï¤ì¤ë¡£
231 ¤³¤ì¤Ë¤Ï¡¢¥«¡¼¥Í¥ë 2.4.17 ¤Þ¤Ç¤Ï
233 (¥Ñ¥±¥Ã¥È¤¬Æþ¤Ã¤Æ¤¤¿¾ì¹ç¡¢¤¹¤°¤Ë¤½¤Î¥Ñ¥±¥Ã¥È¤òÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
235 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ò¥ë¡¼¥Æ¥£¥ó¥°¤ÎÁ°¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
236 ¤È¤¤¤¦ 2 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
237 ¥«¡¼¥Í¥ë 2.4.18 ¤«¤é¤Ï¡¢¤³¤ì¤é¤Î¾¤Ë
239 (¥Þ¥·¥ó¼«ÂΤËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
241 (¥Þ¥·¥ó¤ò·Ðͳ¤¹¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
243 (¥Ñ¥±¥Ã¥È¤¬½Ð¤Æ¹Ô¤¯¤È¤¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
244 ¤È¤¤¤¦ 3 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤â´Þ¤Þ¤ì¤ë¡£
248 .\"O The options that are recognized by
250 .\"O can be divided into several different groups.
252 ¤Ç»È¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥°¥ë¡¼¥×¤Ëʬ¤±¤é¤ì¤ë¡£
255 .\"O These options specify the specific action to perform. Only one of them
256 .\"O can be specified on the command line unless otherwise specified
257 .\"O below. For all the long versions of the command and option names, you
258 .\"O need to use only enough letters to ensure that
260 .\"O can differentiate it from all other options.
261 ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¼Â¹Ô¤¹¤ëÆÃÄê¤ÎÆ°ºî¤ò»ØÄꤹ¤ë¡£
262 °Ê²¼¤ÎÀâÌÀ¤ÇÃíµ¤µ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢
263 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄê¤Ç¤¤ë¤Î¤Ï¤³¤ÎÃæ¤Î 1 ¤Ä¤À¤±¤Ç¤¢¤ë¡£
264 Ť¤¥Ð¡¼¥¸¥ç¥ó¤Î¥³¥Þ¥ó¥É̾¤È¥ª¥×¥·¥ç¥ó̾¤Ï¡¢
266 ¤¬Â¾¤Î¥³¥Þ¥ó¥É̾¤ä¥ª¥×¥·¥ç¥ó̾¤È¶èÊ̤Ǥ¤ëÈϰϤÇ
267 (ʸ»ú¤ò¾Êά¤·¤Æ) »ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë¡£
269 .\"O .BI "-A, --append " "chain rule-specification"
270 .BI "-A, --append " "¥Á¥§¥¤¥ó ¥ë¡¼¥ë¤Î¾ÜºÙ"
271 .\"O Append one or more rules to the end of the selected chain.
272 .\"O When the source and/or destination names resolve to more than one
273 .\"O address, a rule will be added for each possible address combination.
274 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤ÎºÇ¸å¤Ë 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òÄɲ乤롣
275 Á÷¿®¸µ¤äÁ÷¿®Àè¤Î̾Á°¤¬ 1 ¤Ä°Ê¾å¤Î¥¢¥É¥ì¥¹¤Ë²ò·è¤µ¤ì¤¿¾ì¹ç¤Ï¡¢
276 ²Äǽ¤Ê¥¢¥É¥ì¥¹¤ÎÁȹ礻¤½¤ì¤¾¤ì¤ËÂФ·¤Æ¥ë¡¼¥ë¤¬Äɲ䵤ì¤ë¡£
278 .\"O .BI "-D, --delete " "chain rule-specification"
279 .BI "-D, --delete " "¥Á¥§¥¤¥ó ¥ë¡¼¥ë¤Î¾ÜºÙ"
282 .\"O .BI "-D, --delete " "chain rulenum"
283 .BI "-D, --delete " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈÖ¹æ"
284 .\"O Delete one or more rules from the selected chain. There are two
285 .\"O versions of this command: the rule can be specified as a number in the
286 .\"O chain (starting at 1 for the first rule) or a rule to match.
287 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤«¤é 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òºï½ü¤¹¤ë¡£
288 ¤³¤Î¥³¥Þ¥ó¥É¤Ë¤Ï 2 ¤Ä¤Î»È¤¤Êý¤¬¤¢¤ë:
289 ¥Á¥§¥¤¥ó¤ÎÃæ¤ÎÈÖ¹æ (ºÇ½é¤Î¥ë¡¼¥ë¤ò 1 ¤È¤¹¤ë) ¤ò»ØÄꤹ¤ë¾ì¹ç¤È¡¢
290 ¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ç¤¢¤ë¡£
292 .\"O .BR "-I, --insert " "\fIchain\fP [\fIrulenum\fP] \fIrule-specification\fP"
293 .BR "-I, --insert " "\fI¥Á¥§¥¤¥ó\fP [\fI¥ë¡¼¥ëÈÖ¹æ\fP] \fI¥ë¡¼¥ë¤Î¾ÜºÙ"
294 .\"O Insert one or more rules in the selected chain as the given rule
295 .\"O number. So, if the rule number is 1, the rule or rules are inserted
296 .\"O at the head of the chain. This is also the default if no rule number
298 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ë¥ë¡¼¥ëÈÖ¹æ¤ò»ØÄꤷ¤Æ 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òÁÞÆþ¤¹¤ë¡£
299 ¥ë¡¼¥ëÈֹ椬 1 ¤Î¾ì¹ç¡¢¥ë¡¼¥ë¤Ï¥Á¥§¥¤¥ó¤ÎÀèƬ¤ËÁÞÆþ¤µ¤ì¤ë¡£
300 ¤³¤ì¤Ï¥ë¡¼¥ëÈֹ椬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤â¤¢¤ë¡£
302 .\"O .BI "-R, --replace " "chain rulenum rule-specification"
303 .BI "-R, --replace " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈÖ¹æ ¥ë¡¼¥ë¤Î¾ÜºÙ"
304 .\"O Replace a rule in the selected chain. If the source and/or
305 .\"O destination names resolve to multiple addresses, the command will
306 .\"O fail. Rules are numbered starting at 1.
307 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ç¥ë¡¼¥ë¤òÃÖ´¹¤¹¤ë¡£
308 Á÷¿®¸µ¤äÁ÷¿®Àè¤Î̾Á°¤¬ 1 ¤Ä°Ê¾å¤Î¥¢¥É¥ì¥¹¤Ë²ò·è¤µ¤ì¤¿¾ì¹ç¤Ï¡¢
309 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¼ºÇÔ¤¹¤ë¡£¥ë¡¼¥ëÈÖ¹æ¤Ï 1 ¤«¤é¤Ï¤¸¤Þ¤ë¡£
311 .\"O .BR "-L, --list " "[\fIchain\fP]"
312 .BR "-L, --list " "[\fI¥Á¥§¥¤¥ó\fP]"
313 .\"O List all rules in the selected chain. If no chain is selected, all
314 .\"O chains are listed. As every other iptables command, it applies to the
315 .\"O specified table (filter is the default), so NAT rules get listed by
316 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ë¤¢¤ëÁ´¤Æ¤Î¥ë¡¼¥ë¤ò°ìÍ÷ɽ¼¨¤¹¤ë¡£
317 ¥Á¥§¥¤¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢Á´¤Æ¤Î¥Á¥§¥¤¥ó¤Ë¤¢¤ë¥ê¥¹¥È¤¬°ìÍ÷ɽ¼¨¤µ¤ì¤ë¡£
318 ¾¤Î³Æ iptables ¥³¥Þ¥ó¥É¤ÈƱÍͤˡ¢»ØÄꤵ¤ì¤¿¥Æ¡¼¥Ö¥ë
319 (¥Ç¥Õ¥©¥ë¥È¤Ï filter) ¤ËÂФ·¤ÆºîÍѤ¹¤ë¡£
320 ¤è¤Ã¤Æ NAT ¥ë¡¼¥ë¤òɽ¼¨¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ë¡£
322 iptables -t nat -n -L
324 .\"O Please note that it is often used with the
326 .\"O option, in order to avoid long reverse DNS lookups.
327 DNS¤ÎµÕ°ú¤¤òÈò¤±¤ë¤¿¤á¤Ë¡¢¤è¤¯
329 ¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë»ÈÍѤµ¤ì¤ë¡£
330 .\"O It is legal to specify the
332 .\"O (zero) option as well, in which case the chain(s) will be atomically
333 .\"O listed and zeroed. The exact output is affected by the other
334 .\"O arguments given. The exact rules are suppressed until you use
339 (¥¼¥í²½) ¥ª¥×¥·¥ç¥ó¤òƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë¡£
340 ¤³¤Î¾ì¹ç¡¢¥Á¥§¥¤¥ó¤ÏÍ×ÁÇËè¤Ë¥ê¥¹¥È¤µ¤ì¤Æ¡¢
341 (ÌõÃð: ¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤¬) ¥¼¥í¤Ë¤µ¤ì¤ë¡£
342 ½ÐÎÏɽ¼¨¤ÏƱ»þ¤ËÍ¿¤¨¤é¤ì¤¿Â¾¤Î°ú¤¿ô¤Ë±Æ¶Á¤µ¤ì¤ë¡£
346 ¤ò»È¤ï¤Ê¤¤¸Â¤ê (ÌõÃí: -v ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¸Â¤ê)¡¢
347 ¼ÂºÝ¤Î¥ë¡¼¥ë¤½¤Î¤â¤Î¤Ïɽ¼¨¤µ¤ì¤Ê¤¤¡£
349 .\"O .BR "-F, --flush " "[\fIchain\fP]"
350 .BR "-F, --flush " "[\fI¥Á¥§¥¤¥ó\fP]"
351 .\"O Flush the selected chain (all the chains in the table if none is given).
352 .\"O This is equivalent to deleting all the rules one by one.
353 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó(²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¥Æ¡¼¥Ö¥ëÆâ¤ÎÁ´¤Æ¤Î¥Á¥§¥¤¥ó)
355 ¤³¤ì¤ÏÁ´¤Æ¤Î¥ë¡¼¥ë¤ò 1 ¸Ä¤º¤Äºï½ü¤¹¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
357 .\"O .BR "-Z, --zero " "[\fIchain\fP]"
358 .BR "-Z, --zero " "[\fI¥Á¥§¥¤¥ó\fP]"
359 .\"O Zero the packet and byte counters in all chains. It is legal to
362 .\"O (list) option as well, to see the counters immediately before they are
363 .\"O cleared. (See above.)
364 ¤¹¤Ù¤Æ¤Î¥Á¥§¥¤¥ó¤Î¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò¥¼¥í¤Ë¤¹¤ë¡£
365 ¥¯¥ê¥¢¤µ¤ì¤ëľÁ°¤Î¥«¥¦¥ó¥¿¤ò¸«¤ë¤¿¤á¤Ë¡¢
367 (°ìÍ÷ɽ¼¨) ¥ª¥×¥·¥ç¥ó¤ÈƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë (¾åµ¤ò»²¾È)¡£
369 .\"O .BI "-N, --new-chain " "chain"
370 .BI "-N, --new-chain " "¥Á¥§¥¤¥ó"
371 .\"O Create a new user-defined chain by the given name. There must be no
372 .\"O target of that name already.
373 »ØÄꤷ¤¿Ì¾Á°¤Ç¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤òºîÀ®¤¹¤ë¡£
374 Ʊ¤¸Ì¾Á°¤Î¥¿¡¼¥²¥Ã¥È¤¬´û¤Ë¸ºß¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
376 .\"O .BR "-X, --delete-chain " "[\fIchain\fP]"
377 .BR "-X, --delete-chain " "[\fI¥Á¥§¥¤¥ó\fP]"
378 .\"O Delete the optional user-defined chain specified. There must be no references
379 .\"O to the chain. If there are, you must delete or replace the referring
380 .\"O rules before the chain can be deleted. If no argument is given, it
381 .\"O will attempt to delete every non-builtin chain in the table.
382 »ØÄꤷ¤¿¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤òºï½ü¤¹¤ë¡£
383 ¤½¤Î¥Á¥§¥¤¥ó¤¬»²¾È¤µ¤ì¤Æ¤¤¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
384 ¥Á¥§¥¤¥ó¤òºï½ü¤¹¤ëÁ°¤Ë¡¢¤½¤Î¥Á¥§¥¤¥ó¤ò»²¾È¤·¤Æ¤¤¤ë¥ë¡¼¥ë¤ò
385 ºï½ü¤¹¤ë¤«ÃÖ¤´¹¤¨¤ë¤«¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
386 °ú¤¿ô¤¬Í¿¤¨¤é¤ì¤Ê¤¤¾ì¹ç¡¢¥Æ¡¼¥Ö¥ë¤Ë¤¢¤ë¥Á¥§¥¤¥ó¤Î¤¦¤Á
387 ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ç¤Ê¤¤¤â¤Î¤òÁ´¤Æºï½ü¤¹¤ë¡£
389 .\"O .BI "-P, --policy " "chain target"
390 .BI "-P, --policy " "¥Á¥§¥¤¥ó ¥¿¡¼¥²¥Ã¥È"
391 .\"O Set the policy for the chain to the given target. See the section
393 .\"O for the legal targets. Only built-in (non-user-defined) chains can have
394 .\"O policies, and neither built-in nor user-defined chains can be policy
396 ¥Á¥§¥¤¥ó¤Î¥Ý¥ê¥·¡¼¤ò¡¢»ØÄꤷ¤¿¥¿¡¼¥²¥Ã¥È¤ËÀßÄꤹ¤ë¡£
397 »ØÄê²Äǽ¤Ê¥¿¡¼¥²¥Ã¥È¤Ï¡Ö\fB¥¿¡¼¥²¥Ã¥È\fR¡×¤Î¾Ï¤ò»²¾È¤¹¤ë¤³¤È¡£
398 (¥æ¡¼¥¶¡¼ÄêµÁ¤Ç¤Ï¤Ê¤¤)ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ë¤·¤«¥Ý¥ê¥·¡¼¤ÏÀßÄê¤Ç¤¤Ê¤¤¡£
399 ¤Þ¤¿¡¢ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤â¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤â
400 ¥Ý¥ê¥·¡¼¤Î¥¿¡¼¥²¥Ã¥È¤ËÀßÄꤹ¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
402 .\"O .BI "-E, --rename-chain " "old-chain new-chain"
403 .BI "-E, --rename-chain " "µì¥Á¥§¥¤¥ó̾ ¿·¥Á¥§¥¤¥ó̾"
404 .\"O Rename the user specified chain to the user supplied name. This is
405 .\"O cosmetic, and has no effect on the structure of the table.
406 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤ò»ØÄꤷ¤¿Ì¾Á°¤ËÊѹ¹¤¹¤ë¡£
407 ¤³¤ì¤Ï¸«¤¿ÌܤÀ¤±¤ÎÊѹ¹¤Ê¤Î¤Ç¡¢¥Æ¡¼¥Ö¥ë¤Î¹½Â¤¤Ë¤Ï²¿¤â±Æ¶Á¤·¤Ê¤¤¡£
411 .\"O Give a (currently very brief) description of the command syntax.
413 (º£¤Î¤È¤³¤í¤Ï¤È¤Æ¤â´Êñ¤Ê) ¥³¥Þ¥ó¥É½ñ¼°¤ÎÀâÌÀ¤òɽ¼¨¤¹¤ë¡£
416 .\"O The following parameters make up a rule specification (as used in the
417 .\"O add, delete, insert, replace and append commands).
418 °Ê²¼¤Î¥Ñ¥é¥á¡¼¥¿¤Ï (add, delete, insert,
419 replace, append ¥³¥Þ¥ó¥É¤ÇÍѤ¤¤é¤ì¤Æ) ¥ë¡¼¥ë¤Î»ÅÍͤò·è¤á¤ë¡£
421 .BR "-p, --protocol " "[!] \fIprotocol\fP"
422 .\"O The protocol of the rule or of the packet to check.
423 .\"O The specified protocol can be one of
429 .\"O or it can be a numeric value, representing one of these protocols or a
430 .\"O different one. A protocol name from /etc/protocols is also allowed.
431 ¥ë¡¼¥ë¤Ç»È¤ï¤ì¤ë¥×¥í¥È¥³¥ë¡¢¤Þ¤¿¤Ï¥Á¥§¥Ã¥¯¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¥×¥í¥È¥³¥ë¡£
432 »ØÄê¤Ç¤¤ë¥×¥í¥È¥³¥ë¤Ï¡¢
437 ¤Î¤¤¤º¤ì¤« 1 ¤Ä¤«¡¢¿ôÃͤǤ¢¤ë¡£
438 ¿ôÃͤˤϡ¢¤³¤ì¤é¤Î¥×¥í¥È¥³¥ë¤Î¤É¤ì¤«¤Ê¤¤¤·Ê̤Υץí¥È¥³¥ë¤òɽ¤¹
439 ¿ôÃͤò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
440 /etc/protocols ¤Ë¤¢¤ë¥×¥í¥È¥³¥ë̾¤â»ØÄê¤Ç¤¤ë¡£
441 .\"O A "!" argument before the protocol inverts the
442 .\"O test. The number zero is equivalent to
446 .\"O will match with all protocols and is taken as default when this
447 .\"O option is omitted.
448 ¥×¥í¥È¥³¥ë¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢¤½¤Î¥×¥í¥È¥³¥ë¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
454 ¤ÏÁ´¤Æ¤Î¥×¥í¥È¥³¥ë¤È¥Þ¥Ã¥Á¤·¡¢
455 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿ºÝ¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
457 .BR "-s, --source " "[!] \fIaddress\fP[/\fImask\fP]"
458 .\"O Source specification.
460 .\"O can be either a network name, a hostname (please note that specifying
461 .\"O any name to be resolved with a remote query such as DNS is a really bad idea),
462 .\"O a network IP address (with /mask), or a plain IP address.
466 (DNS ¤Î¤è¤¦¤Ê¥ê¥â¡¼¥È¤Ø¤ÎÌ䤤¹ç¤ï¤»¤Ç²ò·è¤¹¤ë̾Á°¤ò»ØÄꤹ¤ë¤Î¤ÏÈó¾ï¤ËÎɤ¯¤Ê¤¤)
467 ¡¦¥Í¥Ã¥È¥ï¡¼¥¯ IP ¥¢¥É¥ì¥¹ (/mask ¤ò»ØÄꤹ¤ë)¡¦
468 Ä̾ï¤Î IP ¥¢¥É¥ì¥¹¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡£
471 .\"O can be either a network mask or a plain number,
472 .\"O specifying the number of 1's at the left side of the network mask.
474 ¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥Þ¥¹¥¯¤«¡¢
475 ¥Í¥Ã¥È¥ï¡¼¥¯¥Þ¥¹¥¯¤Îº¸Â¦¤Ë¤¢¤ë 1 ¤Î¿ô¤ò»ØÄꤹ¤ë¿ôÃͤǤ¢¤ë¡£
478 .\"O is equivalent to
479 .\"O .IR 255.255.255.0 .
485 .\"O A "!" argument before the address specification inverts the sense of
486 .\"O the address. The flag
488 .\"O is an alias for this option.
489 ¥¢¥É¥ì¥¹»ØÄê¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢¤½¤Î¥¢¥É¥ì¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
492 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊÌ̾¤Ç¤¢¤ë¡£
494 .BR "-d, --destination " "[!] \fIaddress\fP[/\fImask\fP]"
495 .\"O Destination specification.
496 .\"O See the description of the
498 .\"O (source) flag for a detailed description of the syntax. The flag
500 .\"O is an alias for this option.
502 ½ñ¼°¤Î¾Ü¤·¤¤ÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
504 (Á÷¿®¸µ) ¥Õ¥é¥°¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
507 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊÌ̾¤Ç¤¢¤ë¡£
509 .BI "-j, --jump " "target"
510 .\"O This specifies the target of the rule; i.e., what to do if the packet
511 .\"O matches it. The target can be a user-defined chain (other than the
512 .\"O one this rule is in), one of the special builtin targets which decide
513 .\"O the fate of the packet immediately, or an extension (see
516 .\"O option is omitted in a rule, then matching the rule will have no
517 .\"O effect on the packet's fate, but the counters on the rule will be
519 ¥ë¡¼¥ë¤Î¥¿¡¼¥²¥Ã¥È¡¢¤Ä¤Þ¤ê¡¢
520 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¤Ë¤É¤¦¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
521 ¥¿¡¼¥²¥Ã¥È¤Ï¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó
522 (¤½¤Î¥ë¡¼¥ë¼«¿È¤¬Æþ¤Ã¤Æ¤¤¤ë¥Á¥§¥¤¥ó°Ê³°) ¤Ç¤â¡¢
523 ¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤ò¨»þ¤Ë·èÄꤹ¤ëÆÃÊ̤ÊÁȤ߹þ¤ßºÑ¤ß¥¿¡¼¥²¥Ã¥È¤Ç¤â¡¢
524 ³ÈÄ¥¤µ¤ì¤¿¥¿¡¼¥²¥Ã¥È (°Ê²¼¤Î
525 .RB ¡Ö ¥¿¡¼¥²¥Ã¥È¤Î³ÈÄ¥ ¡×
527 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥ë¡¼¥ë¤Ë»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
528 ¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Æ¤â¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤Ë²¿¤â±Æ¶Á¤·¤Ê¤¤¤¬¡¢
529 ¥ë¡¼¥ë¤Î¥«¥¦¥ó¥¿¤Ï 1 ¤Ä²Ã»»¤µ¤ì¤ë¡£
531 .BR "-i, --in-interface " "[!] \fIname\fP"
532 .\"O Name of an interface via which a packet is going to be received (only for
533 .\"O packets entering the
539 ¥Ñ¥±¥Ã¥È¤ò¼õ¿®¤¹¤ë¤³¤È¤Ë¤Ê¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾
543 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Î¤ß)¡£
544 .\"O When the "!" argument is used before the interface name, the
545 .\"O sense is inverted. If the interface name ends in a "+", then any
546 .\"O interface which begins with this name will match. If this option is
547 .\"O omitted, any interface name will match.
548 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢
549 ¤½¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
550 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
551 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
552 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢
553 Ǥ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
555 .BR "-o, --out-interface " "[!] \fIname\fP"
556 .\"O Name of an interface via which a packet is going to be sent (for packets
563 ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤³¤È¤Ë¤Ê¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾
567 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Î¤ß)¡£
568 .\"O When the "!" argument is used before the interface name, the
569 .\"O sense is inverted. If the interface name ends in a "+", then any
570 .\"O interface which begins with this name will match. If this option is
571 .\"O omitted, any interface name will match.
572 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢
573 ¤½¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
574 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
575 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
576 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢
577 Ǥ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
579 .B "[!] " "-f, --fragment"
580 .\"O This means that the rule only refers to second and further fragments
581 .\"O of fragmented packets. Since there is no way to tell the source or
582 .\"O destination ports of such a packet (or ICMP type), such a packet will
583 .\"O not match any rules which specify them. When the "!" argument
584 .\"O precedes the "-f" flag, the rule will only match head fragments, or
585 .\"O unfragmented packets.
586 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¬³ä¤µ¤ì¤¿¥Ñ¥±¥Ã¥È (fragmented packet) ¤Î¤¦¤Á
587 2 ÈÖÌܰʹߤΥѥ±¥Ã¥È¤À¤±¤ò»²¾È¤¹¤ë¥ë¡¼¥ë¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
588 ¤³¤Î¤è¤¦¤Ê¥Ñ¥±¥Ã¥È (¤Þ¤¿¤Ï ICMP ¥¿¥¤¥×¤Î¥Ñ¥±¥Ã¥È) ¤Ï
589 Á÷¿®¸µ¡¦Á÷¿®Àè¥Ý¡¼¥È¤òÃΤëÊýË¡¤¬¤Ê¤¤¤Î¤Ç¡¢
590 Á÷¿®¸µ¤äÁ÷¿®Àè¤ò»ØÄꤹ¤ë¤è¤¦¤Ê¥ë¡¼¥ë¤Ë¤Ï¥Þ¥Ã¥Á¤·¤Ê¤¤¡£
591 "-f" ¥Õ¥é¥°¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢
592 ʬ³ä¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Î¤¦¤ÁºÇ½é¤Î¤â¤Î¤«¡¢
593 ʬ³ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ñ¥±¥Ã¥È¤À¤±¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
595 .BI "-c, --set-counters " "PKTS BYTES"
596 .\"O This enables the administrator to initialize the packet and byte
597 .\"O counters of a rule (during
602 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢
606 Áàºî¤Ë¤ª¤¤¤Æ) ´ÉÍý¼Ô¤Ï¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò
607 ½é´ü²½¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£
608 .\"O .SS "OTHER OPTIONS"
609 .SS ¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó
610 .\"O The following additional options can be specified:
611 ¤½¤Î¾¤Ë°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë:
614 .\"O Verbose output. This option makes the list command show the interface
615 .\"O name, the rule options (if any), and the TOS masks. The packet and
616 .\"O byte counters are also listed, with the suffix 'K', 'M' or 'G' for
617 .\"O 1000, 1,000,000 and 1,000,000,000 multipliers respectively (but see
620 .\"O flag to change this).
621 .\"O For appending, insertion, deletion and replacement, this causes
622 .\"O detailed information on the rule or rules to be printed.
624 list ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë¡¢¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¡¦
625 (¤â¤·¤¢¤ì¤Ð) ¥ë¡¼¥ë¤Î¥ª¥×¥·¥ç¥ó¡¦TOS ¥Þ¥¹¥¯¤òɽ¼¨¤µ¤»¤ë¡£
626 ¥Ñ¥±¥Ã¥È¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤âɽ¼¨¤µ¤ì¤ë¡£
627 ź»ú 'K', 'M', 'G' ¤Ï¡¢
628 ¤½¤ì¤¾¤ì 1000, 1,000,000, 1,000,000,000 Çܤòɽ¤¹
632 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò append, insert, delete, replace ¥³¥Þ¥ó¥É¤ËŬÍѤ¹¤ë¤È¡¢
633 ¥ë¡¼¥ë¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ê¾ðÊó¤òɽ¼¨¤¹¤ë¡£
637 .\"O IP addresses and port numbers will be printed in numeric format.
638 .\"O By default, the program will try to display them as host names,
639 .\"O network names, or services (whenever applicable).
640 ¿ôÃͤˤè¤ë½ÐÎϤò¹Ô¤¦¡£
641 IP ¥¢¥É¥ì¥¹¤ä¥Ý¡¼¥ÈÈÖ¹æ¤ò¿ôÃͤˤè¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Çɽ¼¨¤¹¤ë¡£
642 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢iptables ¤Ï (²Äǽ¤Ç¤¢¤ì¤Ð) ¤³¤ì¤é¤Î¾ðÊó¤ò
643 ¥Û¥¹¥È̾¡¦¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¡¦¥µ¡¼¥Ó¥¹Ì¾¤Çɽ¼¨¤·¤è¤¦¤È¤¹¤ë¡£
647 .\"O Display the exact value of the packet and byte counters,
648 .\"O instead of only the rounded number in K's (multiples of 1000)
649 .\"O M's (multiples of 1000K) or G's (multiples of 1000M). This option is
650 .\"O only relevant for the
653 ¸·Ì©¤Ê¿ôÃͤÇɽ¼¨¤¹¤ë¡£
654 ¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò¡¢
655 K (1000 ¤Î²¿Çܤ«)¡¦M (1000K ¤Î²¿Çܤ«)¡¦G (1000M ¤Î²¿Çܤ«) ¤Ç¤Ï¤Ê¤¯¡¢
659 ¥³¥Þ¥ó¥É¤È¤·¤«´Ø·¸¤·¤Ê¤¤¡£
662 .\"O When listing rules, add line numbers to the beginning of each rule,
663 .\"O corresponding to that rule's position in the chain.
664 ¥ë¡¼¥ë¤ò°ìÍ÷ɽ¼¨¤¹¤ëºÝ¡¢¤½¤Î¥ë¡¼¥ë¤¬¥Á¥§¥¤¥ó¤Î¤É¤Î°ÌÃ֤ˤ¢¤ë¤«¤òɽ¤¹
665 ¹ÔÈÖ¹æ¤ò³Æ¹Ô¤Î»Ï¤á¤ËÉղ乤롣
667 .B "--modprobe=command"
668 .\"O When adding or inserting rules into a chain, use
670 .\"O to load any necessary modules (targets, match extensions, etc).
671 ¥Á¥§¥¤¥ó¤Ë¥ë¡¼¥ë¤òÄɲäޤ¿¤ÏÁÞÆþ¤¹¤ëºÝ¤Ë¡¢
672 (¥¿¡¼¥²¥Ã¥È¤ä¥Þ¥Ã¥Á¥ó¥°¤Î³ÈÄ¥¤Ê¤É¤Ç) ɬÍפʥ⥸¥å¡¼¥ë¤ò¥í¡¼¥É¤¹¤ë¤¿¤á¤Ë»È¤¦
675 .\"O .SH MATCH EXTENSIONS
677 .\"O iptables can use extended packet matching modules. These are loaded
678 .\"O in two ways: implicitly, when
682 .\"O is specified, or with the
686 .\"O options, followed by the matching module name;
687 iptables ¤Ï³ÈÄ¥¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¥Þ¥Ã¥Á¥ó¥°¥â¥¸¥å¡¼¥ë¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
688 ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Ï 2 ¼ïÎà¤ÎÊýË¡¤Ç¥í¡¼¥É¤µ¤ì¤ë:
693 ¤Ç°ÅÌۤΤ¦¤Á¤Ë»ØÄꤵ¤ì¤ë¤«¡¢
697 ¤Î¸å¤Ë¥â¥¸¥å¡¼¥ë̾¤ò³¤±¤Æ»ØÄꤵ¤ì¤ë¡£
698 .\"O after these, various
699 .\"O extra command line options become available, depending on the specific
700 .\"O module. You can specify multiple extended match modules in one line,
701 .\"O and you can use the
705 .\"O options after the module has been specified to receive help specific
707 ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Î¸å¤í¤Ë¤Ï¡¢¥â¥¸¥å¡¼¥ë¤Ë±þ¤¸¤Æ
708 ¾¤Î¤¤¤í¤¤¤í¤Ê¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
709 Ê£¿ô¤Î³ÈÄ¥¥Þ¥Ã¥Á¥ó¥°¥â¥¸¥å¡¼¥ë¤ò°ì¹Ô¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
710 ¤Þ¤¿¡¢¥â¥¸¥å¡¼¥ë¤ËÆÃͤΥإë¥×¤òɽ¼¨¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢
711 ¥â¥¸¥å¡¼¥ë¤ò»ØÄꤷ¤¿¸å¤Ç
717 .\"O The following are included in the base package, and most of these can
718 .\"O be preceded by a
720 .\"O to invert the sense of the match.
721 °Ê²¼¤Î³ÈÄ¥¤¬¥Ù¡¼¥¹¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
724 ¤òÁ°¤Ë¤ª¤¯¤³¤È¤Ë¤è¤Ã¤Æ
725 ¥Þ¥Ã¥Á¥ó¥°¤Î°ÕÌ£¤òµÕ¤Ë¤Ç¤¤ë¡£
727 .\"O This module matches the SPIs in AH header of IPSec packets.
728 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IPSec ¥Ñ¥±¥Ã¥È¤Î AH ¥Ø¥Ã¥À¡¼¤Î SPI Ãͤ˥ޥåÁ¤¹¤ë¡£
730 .BR "--ahspi " "[!] \fIspi\fP[:\fIspi\fP]"
732 .\"O This module, when combined with connection tracking, allows access to
733 .\"O more connection tracking information than the "state" match.
734 .\"O (this module is present only if iptables was compiled under a kernel
735 .\"O supporting this feature)
736 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢ÀܳÄÉÀ× (connection tracking) ¤ÈÁȤ߹ç¤ï¤»¤ÆÍѤ¤¤ë¤È¡¢
737 "state" ¥Þ¥Ã¥Á¤è¤ê¤â¤µ¤é¤Ë¿¤¯¤Î¡¢
738 ¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤ÎÀܳÄÉÀ×¾õÂÖ¤òÃΤ뤳¤È¤¬¤Ç¤¤ë
739 (¤³¤Îµ¡Ç½¤ò¥µ¥Ý¡¼¥È¤·¤¿¥«¡¼¥Í¥ë¤Î¤â¤È¤Ç iptables ¤¬¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¾ì¹ç
740 ¤Ë¤Î¤ß¡¢¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¸ºß¤¹¤ë)¡£
742 .BI "--ctstate " "state"
743 .\"O Where state is a comma separated list of the connection states to
744 .\"O match. Possible states are
746 .\"O meaning that the packet could not be identified for some reason which
747 .\"O includes running out of memory and ICMP errors which don't correspond to any
748 .\"O known connection,
750 .\"O meaning that the packet is associated with a connection which has seen
751 .\"O packets in both directions,
752 state ¤Ï¡¢¥Þ¥Ã¥Á¥ó¥°ÂоݤȤʤ롢¥³¥ó¥Þ¶èÀÚ¤ê¤ÎÀܳ¾õÂ֥ꥹ¥È¤Ç¤¢¤ë¡£
753 »ØÄê²Äǽ¤Ê state ¤Ï°Ê²¼¤ÎÄ̤ꡣ
755 ¥á¥â¥ê¤ò»È¤¤²Ì¤¿¤·¤¿°Ù¤ä¡¢
756 ´ûÃΤÎÀܳ¤È¤ÏÂбþ¤·¤Ê¤¤ ICMP ¥¨¥é¡¼¤Ê¤É¡¢
757 ²¿¤é¤«¤ÎÍýͳ¤Ë¤è¤ê¥Ñ¥±¥Ã¥È¤¬¼±Ê̤Ǥ¤Ê¤¤¡£
759 ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï¡¢²áµîÁÐÊý¸þ¤Ë¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤¿Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
761 .\"O meaning that the packet has started a new connection, or otherwise
762 .\"O associated with a connection which has not seen packets in both
765 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤¿¤«¡¢
766 ÁÐÊý¸þ¤Ë¤Ï¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤Æ¤¤¤Ê¤¤Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
768 .\"O meaning that the packet is starting a new connection, but is
769 .\"O associated with an existing connection, such as an FTP data transfer,
770 .\"O or an ICMP error.
772 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤Æ¤¤¤ë¤¬¡¢
773 FTP ¥Ç¡¼¥¿Å¾Á÷¤ä ICMP ¥¨¥é¡¼¤Î¤è¤¦¤Ë¡¢´û¸¤ÎÀܳ¤Ë´Ø·¸¤·¤Æ¤¤¤ë¡£
775 .\"O A virtual state, matching if the original source address differs from
776 .\"O the reply destination.
778 ²¾ÁÛŪ¤Ê¾õÂ֤Ǥ¢¤ê¡¢½ñ¤´¹¤¨Á°¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤¬±þÅú¤Î°¸À襢¥É¥ì¥¹¤È
779 °Û¤Ê¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
781 .\"O A virtual state, matching if the original destination differs from the
784 ²¾ÁÛŪ¤Ê¾õÂ֤Ǥ¢¤ê¡¢½ñ¤´¹¤¨Á°¤Î°¸À襢¥É¥ì¥¹¤¬±þÅú¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤È
785 °Û¤Ê¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
787 .BI "--ctproto " "proto"
788 .\"O Protocol to match (by number or name)
789 (̾Á°¤Þ¤¿¤Ï¿ôÃͤÇ) »ØÄꤵ¤ì¤¿¥×¥í¥È¥³¥ë¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
791 .BI "--ctorigsrc " "[!] \fIaddress\fP[/\fImask\fP]"
792 .\"O Match against original source address
793 ½ñ¤´¹¤¨Á°¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
795 .BI "--ctorigdst " "[!] \fIaddress\fP[/\fImask\fP]"
796 .\"O Match against original destination address
797 ½ñ¤´¹¤¨Á°¤Î°¸À襢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
799 .BI "--ctreplsrc " "[!] \fIaddress\fP[/\fImask\fP]"
800 .\"O Match against reply source address
801 ±þÅú¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
803 .BI "--ctrepldst " "[!] \fIaddress\fB[/\fImask\fP]"
804 .\"O Match against reply destination address
805 ±þÅú¤Î°¸À襢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
807 .BI "--ctstatus " "[\fINONE|EXPECTED|SEEN_REPLY|ASSURED\fP][,...]"
808 .\"O Match against internal conntrack states
809 ÀܳÄÉÀפÎÆâÉôŪ¤Ê¾õÂ֤˥ޥåÁ¤¹¤ë¡£
811 .BI "--ctexpire " "\fItime\fP[\fI:time\fP]"
812 .\"O Match remaining lifetime in seconds against given value
813 .\"O or range of values (inclusive)
814 ͸ú´ü´Ö¤Î»Ä¤êÉÿô¡¢¤Þ¤¿¤Ï¤½¤ÎÈÏ°Ï(ξü¤ò´Þ¤à)¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
816 .\"O This module matches the 6 bit DSCP field within the TOS field in the
817 .\"O IP header. DSCP has superseded TOS within the IETF.
818 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢IP ¥Ø¥Ã¥À¡¼¤Î TOS ¥Õ¥£¡¼¥ë¥ÉÆâ¤Ë¤¢¤ë¡¢
819 6 bit ¤Î DSCP ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
820 IETF ¤Ç¤Ï DSCP ¤¬ TOS ¤Ë¼è¤Ã¤ÆÂå¤ï¤Ã¤¿¡£
822 .BI "--dscp " "value"
823 .\"O Match against a numeric (decimal or hex) value [0-32].
824 .\"O motoki: patch [JM:12854]
825 (10 ¿Ê¤Þ¤¿¤Ï 16 ¿Ê¤Î) ¿ôÃÍ [0\-63] ¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
827 .BI "--dscp-class " "\fIDiffServ Class\fP"
828 .\"O Match the DiffServ class. This value may be any of the
829 .\"O BE, EF, AFxx or CSx classes. It will then be converted
830 .\"O into it's according numeric value.
831 DiffServ ¥¯¥é¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
832 ÃÍ¤Ï BE, EF, AFxx, CSx ¥¯¥é¥¹¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡£
833 ¤³¤ì¤é¤Ï¡¢Âбþ¤¹¤ë¿ôÃͤǻØÄꤹ¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
835 .\"O This module matches the SPIs in ESP header of IPSec packets.
836 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IPSec ¥Ñ¥±¥Ã¥È¤Î ESP ¥Ø¥Ã¥À¡¼¤Î SPI Ãͤ˥ޥåÁ¤¹¤ë¡£
838 .BR "--espspi " "[!] \fIspi\fP[:\fIspi\fP]"
840 .\"O This module matches packets related to a specific conntrack-helper.
841 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢»ØÄꤵ¤ì¤¿ÀܳÄÉÀץإë¥Ñ¡¼¥â¥¸¥å¡¼¥ë¤Ë
842 ´ØÏ¢¤¹¤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
844 .BI "--helper " "string"
845 .\"O Matches packets related to the specified conntrack-helper.
846 »ØÄꤵ¤ì¤¿ÀܳÄÉÀץإë¥Ñ¡¼¥â¥¸¥å¡¼¥ë¤Ë
847 ´ØÏ¢¤¹¤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
850 .\"O string can be "ftp" for packets related to a ftp-session on default port.
851 .\"O For other ports append -portnr to the value, ie. "ftp-2121".
852 ¥Ç¥Õ¥©¥ë¥È¤Î¥Ý¡¼¥È¤ò»È¤Ã¤¿ ftp-¥»¥Ã¥·¥ç¥ó¤Ë´ØÏ¢¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤Ï¡¢
853 string ¤Ë "ftp" ¤È½ñ¤±¤ë¡£
854 ¾¤Î¥Ý¡¼¥È¤Ç¤Ï "\-¥Ý¡¼¥ÈÈÖ¹æ" ¤òÃͤËÉÕ¤±²Ã¤¨¤ë¡£
855 ¤¹¤Ê¤ï¤Á "ftp-2121" ¤È¤Ê¤ë¡£
857 .\"O Same rules apply for other conntrack-helpers.
858 ¾¤ÎÀܳÄÉÀץإë¥Ñ¡¼¤Ç¤âƱ¤¸¥ë¡¼¥ë¤¬Å¬ÍѤµ¤ì¤ë¡£
861 .\"O This extension is loaded if `--protocol icmp' is specified. It
862 .\"O provides the following option:
863 ¤³¤Î³ÈÄ¥¤Ï `--protocol icmp' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
864 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
866 .BR "--icmp-type " "[!] \fItypename\fP"
867 .\"O This allows specification of the ICMP type, which can be a numeric
868 .\"O ICMP type, or one of the ICMP type names shown by the command
869 ¿ôÃͤΠICMP ¥¿¥¤¥×¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É
873 ¤Çɽ¼¨¤µ¤ì¤ë ICMP ¥¿¥¤¥×̾¤ò»ØÄê¤Ç¤¤ë¡£
875 .\"O This module matches the length of a packet against a specific value
876 .\"O or range of values.
877 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢»ØÄꤵ¤ì¤¿¥Ñ¥±¥Ã¥ÈĹ¡¢¤Þ¤¿¤Ï¤½¤ÎÈϰϤ˥ޥåÁ¤¹¤ë¡£
879 .BR "--length " "\fIlength\fP[:\fIlength\fP]"
881 .\"O This module matches at a limited rate using a token bucket filter.
882 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥È¡¼¥¯¥ó¥Ð¥±¥Ä¥Õ¥£¥ë¥¿¤ò»È¤¤¡¢
883 ñ°Ì»þ´Ö¤¢¤¿¤êÀ©¸Â¤µ¤ì¤¿²ó¿ô¤À¤±¥Þ¥Ã¥Á¤¹¤ë¡£
884 .\"O A rule using this extension will match until this limit is reached
885 .\"O (unless the `!' flag is used). It can be used in combination with the
887 .\"O target to give limited logging, for example.
888 ¤³¤Î³ÈÄ¥¤ò»È¤Ã¤¿¥ë¡¼¥ë¤Ï¡¢(`!' ¥Õ¥é¥°¤¬»ØÄꤵ¤ì¤Ê¤¤¸Â¤ê)
889 À©¸Â¤Ë㤹¤ë¤Þ¤Ç¥Þ¥Ã¥Á¤¹¤ë¡£
890 ¤³¤Î¥â¥¸¥å¡¼¥ë¤ÏÎ㤨¤Ð¡¢¥í¥°µÏ¿¤òÀ©¸Â¤¹¤ë¤¿¤á¤Ë
892 ¥¿¡¼¥²¥Ã¥È¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
894 .BI "--limit " "rate"
895 .\"O Maximum average matching rate: specified as a number, with an optional
896 .\"O `/second', `/minute', `/hour', or `/day' suffix; the default is
898 ñ°Ì»þ´Ö¤¢¤¿¤ê¤ÎÊ¿¶Ñ¥Þ¥Ã¥Á²ó¿ô¤ÎºÇÂçÃÍ¡£
899 ¿ôÃͤǻØÄꤵ¤ì¡¢Åº»ú `/second', `/minute',
900 `/hour', `/day' ¤òÉÕ¤±¤ë¤³¤È¤â¤Ç¤¤ë¡£
901 ¥Ç¥Õ¥©¥ë¥È¤Ï 3/hour ¤Ç¤¢¤ë¡£
903 .BI "--limit-burst " "number"
904 .\"O Maximum initial number of packets to match: this number gets
905 .\"O recharged by one every time the limit specified above is not reached,
906 .\"O up to this number; the default is 5.
907 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤¹¤ë²ó¿ô¤ÎºÇÂç½é´üÃÍ:
908 ¥Þ¥Ã¥Á²ó¿ô¤ÎºÇÂçÃͤϡ¢
909 ¾å¤Î¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤷ¤¿À©¸Â¤Ë㤷¤Ê¤±¤ì¤Ð¡¢
910 ¤½¤ÎÅÙ¤´¤È¤Ë¡¢¤³¤Î¿ôÃͤˤʤë¤Þ¤Ç 1 ¸Ä¤º¤ÄÁý¤ä¤µ¤ì¤ë¡£
911 ¥Ç¥Õ¥©¥ë¥È¤Ï 5 ¤Ç¤¢¤ë¡£
914 .BR "--mac-source " "[!] \fIaddress\fP"
915 .\"O Match source MAC address. It must be of the form XX:XX:XX:XX:XX:XX.
916 .\"O Note that this only makes sense for packets coming from an Ethernet device
917 .\"O and entering the
918 .\"O .BR PREROUTING ,
923 Á÷¿®¸µ MAC ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
925 ¤Ï XX:XX:XX:XX:XX:XX ¤È¤¤¤¦·Á¼°¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
926 ¥¤¡¼¥µ¡¼¥Í¥Ã¥È¥Ç¥Ð¥¤¥¹¤«¤éÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤Ç¡¢
930 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Ë¤·¤«°ÕÌ£¤¬¤Ê¤¤¡£
932 .\"O This module matches the netfilter mark field associated with a packet
933 .\"O (which can be set using the
936 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¥Ñ¥±¥Ã¥È¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿
937 netfilter ¤Î mark ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë
938 (¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢°Ê²¼¤Î
940 ¥¿¡¼¥²¥Ã¥È¤ÇÀßÄꤵ¤ì¤ë)¡£
942 .BR "--mark " "\fIvalue\fP[/\fImask\fP]"
943 .\"O Matches packets with the given unsigned mark value (if a mask is
944 .\"O specified, this is logically ANDed with the mask before the
946 »ØÄꤵ¤ì¤¿Éä¹æ¤Ê¤· mark ÃͤΥѥ±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë
947 (mask ¤¬»ØÄꤵ¤ì¤ë¤È¡¢Èæ³Ó¤ÎÁ°¤Ë mask ¤È¤ÎÏÀÍýÀÑ (AND) ¤¬¤È¤é¤ì¤ë)¡£
949 .\"O This module matches a set of source or destination ports. Up to 15
950 .\"O ports can be specified. It can only be used in conjunction with
954 ¤³¤Î¥â¥¸¥å¡¼¥ë¤ÏÁ÷¿®¸µ¤äÁ÷¿®Àè¤Î¥Ý¡¼¥È¤Î½¸¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
955 ¥Ý¡¼¥È¤Ï 15 ¸Ä¤Þ¤Ç»ØÄê¤Ç¤¤ë¡£
960 ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤·¤«¤Ç¤¤Ê¤¤¡£
962 .BR "--source-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
963 .\"O Match if the source port is one of the given ports. The flag
965 .\"O is a convenient alias for this option.
966 Á÷¿®¸µ¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
969 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
971 .BR "--destination-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
972 .\"O Match if the destination port is one of the given ports. The flag
974 .\"O is a convenient alias for this option.
975 °¸Àè¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
978 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
980 .BR "--ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
981 .\"O Match if the both the source and destination ports are equal to each
982 .\"O other and to one of the given ports.
983 Á÷¿®¸µ¥Ý¡¼¥È¤È°¸Àè¥Ý¡¼¥È¤¬Åù¤·¤¯¡¢
984 ¤«¤Ä¤½¤Î¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
986 .\"O This module attempts to match various characteristics of the packet
987 .\"O creator, for locally-generated packets. It is only valid in the
989 .\"O chain, and even this some packets (such as ICMP ping responses) may
990 .\"O have no owner, and hence never match.
991 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ËÉÕ¤¤¤Æ¡¢
992 ¥Ñ¥±¥Ã¥ÈÀ¸À®¼Ô¤Î¤¤¤í¤¤¤í¤ÊÆÃÀ¤ËÂФ·¤Æ¥Þ¥Ã¥Á¤ò¹Ô¤¦¡£
995 ¥Á¥§¥¤¥ó¤Î¤ß¤Ç¤·¤«Í¸ú¤Ç¤Ê¤¤¡£
996 ¤Þ¤¿¡¢(ICMP ping ±þÅú¤Î¤è¤¦¤Ê) ¥Ñ¥±¥Ã¥È¤Ï¡¢
997 ½êͼԤ¬¤¤¤Ê¤¤¤Î¤ÇÀäÂФ˥ޥåÁ¤·¤Ê¤¤¡£
999 .BI "--uid-owner " "userid"
1000 .\"O Matches if the packet was created by a process with the given
1001 .\"O effective user id.
1002 »ØÄꤵ¤ì¤¿¼Â¸ú¥æ¡¼¥¶¡¼ ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
1003 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1005 .BI "--gid-owner " "groupid"
1006 .\"O Matches if the packet was created by a process with the given
1007 .\"O effective group id.
1008 »ØÄꤵ¤ì¤¿¼Â¸ú¥°¥ë¡¼¥× ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
1009 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1011 .BI "--pid-owner " "processid"
1012 .\"O Matches if the packet was created by a process with the given
1014 »ØÄꤵ¤ì¤¿¥×¥í¥»¥¹ ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
1015 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1017 .BI "--sid-owner " "sessionid"
1018 .\"O Matches if the packet was created by a process in the given session
1020 »ØÄꤵ¤ì¤¿¥»¥Ã¥·¥ç¥ó¥°¥ë¡¼¥×¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
1021 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1023 .BI "--cmd-owner " "name"
1024 .\"O Matches if the packet was created by a process with the given command name.
1025 .\"O (this option is present only if iptables was compiled under a kernel
1026 .\"O supporting this feature)
1027 »ØÄꤵ¤ì¤¿¥³¥Þ¥ó¥É̾¤ò»ý¤Ä¥×¥í¥»¥¹¤Ë¤è¤ê
1028 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë
1029 (¤³¤Îµ¡Ç½¤ò¥µ¥Ý¡¼¥È¤·¤¿¥«¡¼¥Í¥ë¤Î¤â¤È¤Ç iptables ¤¬¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¾ì¹ç
1030 ¤Ë¤Î¤ß¡¢¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¸ºß¤¹¤ë)¡£
1032 .\"O This module matches on the bridge port input and output devices enslaved
1033 .\"O to a bridge device. This module is a part of the infrastructure that enables
1034 .\"O a transparent bridging IP firewall and is only useful for kernel versions
1035 .\"O above version 2.5.44.
1036 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥Ö¥ê¥Ã¥¸¥Ç¥Ð¥¤¥¹¤Î¥¹¥ì¡¼¥Ö¤Ë¤µ¤ì¤¿¡¢
1037 ¥Ö¥ê¥Ã¥¸¥Ý¡¼¥È¤ÎÆþ½ÐÎϥǥХ¤¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1038 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥Ö¥ê¥Ã¥¸¤Ë¤è¤ëÆ©²áŪ¤Ê
1039 IP ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Î´ðÈפΰìÉô¤Ç¤¢¤ê¡¢
1040 ¥«¡¼¥Í¥ë¥Ð¡¼¥¸¥ç¥ó 2.5.44 °Ê¹ß¤Ç¤Î¤ß͸ú¤Ç¤¢¤ë¡£
1042 .B --physdev-in name
1043 .\"O Name of a bridge port via which a packet is received (only for
1044 .\"O packets entering the
1049 .\"O chains). If the interface name ends in a "+", then any
1050 .\"O interface which begins with this name will match. If the packet didn't arrive
1051 .\"O through a bridge device, this packet won't match this option, unless '!' is used.
1052 ¥Ñ¥±¥Ã¥È¤¬¼õ¿®¤µ¤ì¤ë¥Ö¥ê¥Ã¥¸¤Î¥Ý¡¼¥È̾
1056 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Î¤ß)¡£
1057 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
1058 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1059 ¥Ö¥ê¥Ã¥¸¥Ç¥Ð¥¤¥¹¤òÄ̤·¤Æ¼õ¤±¼è¤é¤ì¤Ê¤«¤Ã¤¿¥Ñ¥±¥Ã¥È¤Ï¡¢
1060 \&'!' ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¡£
1061 .\"O sato: ºÇ¸å¤Î°ìʸ¤Ï°ÕÌõ¤®¤ß¤«¤â
1063 .B --physdev-out name
1064 .\"O Name of a bridge port via which a packet is going to be sent (for packets
1070 .\"O chains). If the interface name ends in a "+", then any
1071 .\"O interface which begins with this name will match. Note that in the
1072 .\"O .BR nat " and " mangle
1074 .\"O chains one cannot match on the bridge output port, however one can in the
1075 .\"O .B "filter OUTPUT"
1076 .\"O chain. If the packet won't leave by a bridge device or it is yet unknown what
1077 .\"O the output device will be, then the packet won't match this option, unless
1079 ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤³¤È¤Ë¤Ê¤ë¥Ö¥ê¥Ã¥¸¤Î¥Ý¡¼¥È̾
1083 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Î¤ß)¡£
1084 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
1085 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1091 ¥Á¥§¥¤¥ó¤Ç¤Ï¥Ö¥ê¥Ã¥¸¤Î½ÐÎϥݡ¼¥È¤Ë¥Þ¥Ã¥Á¤µ¤»¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¤¬¡¢
1095 ¥Á¥§¥¤¥ó¤Ç¤Ï¥Þ¥Ã¥Á²Äǽ¤Ç¤¢¤ë¡£
1096 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¥Ç¥Ð¥¤¥¹¤«¤éÁ÷¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢
1097 ¤Þ¤¿¤Ï¥Ñ¥±¥Ã¥È¤Î½ÐÎϥǥХ¤¥¹¤¬ÉÔÌÀ¤Ç¤¢¤Ã¤¿¾ì¹ç¤Ï¡¢
1098 \&'!' ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥Ñ¥±¥Ã¥È¤Ï¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¡£
1101 .\"O Matches if the packet has entered through a bridge interface.
1102 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ËÆþ¤Ã¤¿¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1105 .\"O Matches if the packet will leave through a bridge interface.
1106 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤«¤é½Ð¤è¤¦¤È¤·¤¿¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1108 .B --physdev-is-bridged
1109 .\"O Matches if the packet is being bridged and therefore is not being routed.
1110 .\"O This is only useful in the FORWARD and POSTROUTING chains.
1111 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¤µ¤ì¤ë¤³¤È¤Ë¤è¤ê¡¢
1112 ¥ë¡¼¥Æ¥£¥ó¥°¤µ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1113 ¤³¤ì¤Ï FORWARD, POSTROUTING ¥Á¥§¥¤¥ó¤Ë¤ª¤¤¤Æ¤Î¤ßÌòΩ¤Ä¡£
1115 .\"O This module matches the link-layer packet type.
1116 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥ê¥ó¥¯ÁؤΥѥ±¥Ã¥È¥¿¥¤¥×¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1118 .BI "--pkt-type " "[\fIunicast\fP|\fIbroadcast\fP|\fImulticast\fP]"
1120 .\"O This module, when combined with connection tracking, allows access to
1121 .\"O the connection tracking state for this packet.
1122 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢ÀܳÄÉÀ× (connection tracking) ¤ÈÁȤ߹ç¤ï¤»¤ÆÍѤ¤¤ë¤È¡¢
1123 ¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤ÎÀܳÄÉÀ×¾õÂÖ¤òÃΤ뤳¤È¤¬¤Ç¤¤ë¡£
1125 .BI "--state " "state"
1126 .\"O Where state is a comma separated list of the connection states to
1127 .\"O match. Possible states are
1129 .\"O meaning that the packet is associated with no known connection,
1131 .\"O meaning that the packet is associated with a connection which has seen
1132 .\"O packets in both directions,
1133 state ¤Ï¡¢¥Þ¥Ã¥Á¥ó¥°¤ò¹Ô¤¦¤¿¤á¤Î¡¢¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿Àܳ¾õÂ֤Υꥹ¥È¤Ç¤¢¤ë¡£
1134 »ØÄê²Äǽ¤Ê state ¤Ï°Ê²¼¤ÎÄ̤ꡣ
1136 ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï´ûÃΤÎÀܳ¤È´Ø·¸¤·¤Æ¤¤¤Ê¤¤¡£
1138 ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï¡¢²áµîÁÐÊý¸þ¤Ë¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤¿Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
1140 .\"O meaning that the packet has started a new connection, or otherwise
1141 .\"O associated with a connection which has not seen packets in both
1142 .\"O directions, and
1144 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤¿¤«¡¢
1145 ÁÐÊý¸þ¤Ë¤Ï¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤Æ¤¤¤Ê¤¤Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
1147 .\"O meaning that the packet is starting a new connection, but is
1148 .\"O associated with an existing connection, such as an FTP data transfer,
1149 .\"O or an ICMP error.
1151 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤Æ¤¤¤ë¤¬¡¢
1152 FTP ¥Ç¡¼¥¿Å¾Á÷¤ä ICMP ¥¨¥é¡¼¤Î¤è¤¦¤Ë¡¢´û¸¤ÎÀܳ¤Ë´Ø·¸¤·¤Æ¤¤¤ë¡£
1154 .\"O These extensions are loaded if `--protocol tcp' is specified. It
1155 .\"O provides the following options:
1156 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol tcp' ¤¬»ØÄꤵ¤ì¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
1157 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
1159 .BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
1160 .\"O Source port or port range specification. This can either be a service
1161 .\"O name or a port number. An inclusive range can also be specified,
1162 .\"O using the format
1163 .\"O .IR port : port .
1164 Á÷¿®¸µ¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1165 ¥µ¡¼¥Ó¥¹Ì¾¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄê¤Ç¤¤ë¡£
1167 ¤È¤¤¤¦·Á¼°¤Ç¡¢2 ¤Ä¤ÎÈÖ¹æ¤ò´Þ¤àÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë¡£
1168 .\"O If the first port is omitted, "0" is assumed; if the last is omitted,
1169 .\"O "65535" is assumed.
1170 .\"O If the second port greater then the first they will be swapped.
1173 .\"O is a convenient alias for this option.
1174 ºÇ½é¤Î¥Ý¡¼¥È¤ò¾Êά¤·¤¿¾ì¹ç¡¢"0" ¤ò²¾Äꤹ¤ë¡£
1175 ºÇ¸å¤Î¥Ý¡¼¥È¤ò¾Êά¤·¤¿¾ì¹ç¡¢"65535" ¤ò²¾Äꤹ¤ë¡£
1176 ºÇ½é¤Î¥Ý¡¼¥È¤¬ºÇ¸å¤Î¥Ý¡¼¥È¤è¤êÂ礤¤¾ì¹ç¡¢2 ¤Ä¤ÏÆþ¤ì´¹¤¨¤é¤ì¤ë¡£
1177 .\"tsekine ¸¶Ê¸¤¬´Ö°ã¤Ã¤Æ¤½¤¦
1180 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
1182 .BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
1183 .\"O Destination port or port range specification. The flag
1185 .\"O is a convenient alias for this option.
1186 Á÷¿®Àè¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1189 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
1191 .BR "--tcp-flags " "[!] \fImask\fP \fIcomp\fP"
1192 .\"O Match when the TCP flags are as specified. The first argument is the
1193 .\"O flags which we should examine, written as a comma-separated list, and
1194 .\"O the second argument is a comma-separated list of flags which must be
1195 .\"O set. Flags are:
1196 .\"O .BR "SYN ACK FIN RST URG PSH ALL NONE" .
1197 TCP ¥Õ¥é¥°¤¬»ØÄꤵ¤ì¤¿¤â¤Î¤ÈÅù¤·¤¤¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1198 Âè 1 °ú¤¿ô¤Ïɾ²ÁÂоݤȤ¹¤ë¥Õ¥é¥°¤Ç¡¢¥³¥ó¥Þ¶èÀÚ¤ê¤Î¥ê¥¹¥È¤Ç¤¢¤ë¡£
1199 Âè 2 °ú¤¿ô¤Ï¤³¤Î¤¦¤ÁÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¥Õ¥é¥°¤Ç¡¢
1200 ¥³¥ó¥Þ¶èÀÚ¤ê¤Î¥ê¥¹¥È¤Ç¤¢¤ë¡£
1202 .B "SYN ACK FIN RST URG PSH ALL NONE"
1204 .\"O Hence the command
1206 .\"O iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
1208 .\"O will only match packets with the SYN flag set, and the ACK, FIN and
1209 .\"O RST flags unset.
1212 iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
1214 ¤Ï¡¢SYN ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì ACK, FIN, RST ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤
1215 ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
1218 .\"O Only match TCP packets with the SYN bit set and the ACK and RST bits
1219 .\"O cleared. Such packets are used to request TCP connection initiation;
1220 .\"O for example, blocking such packets coming in an interface will prevent
1221 .\"O incoming TCP connections, but outgoing TCP connections will be
1223 .\"O It is equivalent to \fB--tcp-flags SYN,RST,ACK SYN\fP.
1224 .\"O If the "!" flag precedes the "--syn", the sense of the
1225 .\"O option is inverted.
1226 SYN ¥Ó¥Ã¥È¤¬ÀßÄꤵ¤ì ACK ¤È RST ¥Ó¥Ã¥È¤¬¥¯¥ê¥¢¤µ¤ì¤Æ¤¤¤ë
1227 TCP ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
1228 ¤³¤Î¤è¤¦¤Ê¥Ñ¥±¥Ã¥È¤Ï TCP Àܳ¤Î³«»ÏÍ×µá¤Ë»È¤ï¤ì¤ë¡£
1229 Î㤨¤Ð¡¢¤¢¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ËÆþ¤Ã¤Æ¤¯¤ë¤³¤Î¤è¤¦¤Ê¥Ñ¥±¥Ã¥È¤ò¥Ö¥í¥Ã¥¯¤¹¤ì¤Ð¡¢
1230 Æ⦤ؤΠTCP Àܳ¤Ï¶Ø»ß¤µ¤ì¤ë¤¬¡¢³°Â¦¤Ø¤Î TCP Àܳ¤Ë¤Ï±Æ¶Á¤·¤Ê¤¤¡£
1231 ¤³¤ì¤Ï \fB--tcp-flags SYN,RST,ACK SYN\fP ¤ÈÅù¤·¤¤¡£
1232 "--syn" ¤ÎÁ°¤Ë "!" ¥Õ¥é¥°¤òÃÖ¤¯¤È¡¢
1233 SYN ¥Ó¥Ã¥È¤¬¥¯¥ê¥¢¤µ¤ì ACK ¤È RST ¥Ó¥Ã¥È¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë
1234 TCP ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
1236 .BR "--tcp-option " "[!] \fInumber\fP"
1237 .\"O Match if TCP option set.
1238 TCP ¥ª¥×¥·¥ç¥ó¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1240 .BR "--mss " "\fIvalue\fP[:\fIvalue\fP]"
1241 .\"O Match TCP SYN or SYN/ACK packets with the specified MSS value (or range),
1242 .\"O which control the maximum packet size for that connection.
1243 »ØÄꤵ¤ì¤¿ MSS ÃÍ (¤ÎÈÏ°Ï) ¤ò»ý¤Ä TCP ¤Î
1244 SYN ¤Þ¤¿¤Ï SYN/ACK ¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1245 MSS ¤ÏÀܳ¤ËÂФ¹¤ë¥Ñ¥±¥Ã¥È¤ÎºÇÂ祵¥¤¥º¤òÀ©¸æ¤¹¤ë¡£
1247 .\"O This module matches the 8 bits of Type of Service field in the IP
1248 .\"O header (ie. including the precedence bits).
1249 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IP ¥Ø¥Ã¥À¡¼¤Î 8 ¥Ó¥Ã¥È¤Î (¤Ä¤Þ¤ê¾å°Ì¥Ó¥Ã¥È¤ò´Þ¤à)
1250 Type of Service ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1253 .\"O The argument is either a standard name, (use
1255 .\"O iptables -m tos -h
1257 .\"O to see the list), or a numeric value to match.
1258 °ú¤¿ô¤Ï¡¢¥Þ¥Ã¥Á¤ò¹Ô¤¦É¸½àŪ¤Ê̾Á°¤Ç¤â¿ôÃͤǤâ¤è¤¤
1259 (̾Á°¤Î¥ê¥¹¥È¤ò¸«¤ë¤Ë¤Ï
1265 .\"O This module matches the time to live field in the IP header.
1266 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IP ¥Ø¥Ã¥À¡¼¤Î time to live ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1269 .\"O Matches the given TTL value.
1270 »ØÄꤵ¤ì¤¿ TTL Ãͤ˥ޥåÁ¤¹¤ë¡£
1272 .\"O These extensions are loaded if `--protocol udp' is specified. It
1273 .\"O provides the following options:
1274 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol udp' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
1275 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
1277 .BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
1278 .\"O Source port or port range specification.
1279 .\"O See the description of the
1280 .\"O .B --source-port
1281 .\"O option of the TCP extension for details.
1282 Á÷¿®¸µ¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1285 ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
1287 .BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
1288 .\"O Destination port or port range specification.
1289 .\"O See the description of the
1290 .\"O .B --destination-port
1291 .\"O option of the TCP extension for details.
1292 Á÷¿®Àè¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1294 .B --destination-port
1295 ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
1297 .\"O This module takes no options, but attempts to match packets which seem
1298 .\"O malformed or unusual. This is regarded as experimental.
1299 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬¤Ê¤¤¤¬¡¢
1300 ¤ª¤«¤·¤¯Àµ¾ï¤Ç¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1301 ¤³¤ì¤Ï¼Â¸³Åª¤Ê¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤Æ¤¤¤ë¡£
1302 .\"O .SH TARGET EXTENSIONS
1303 .SH ¥¿¡¼¥²¥Ã¥È¤Î³ÈÄ¥
1304 .\"O iptables can use extended target modules: the following are included
1305 .\"O in the standard distribution.
1306 iptables ¤Ï³ÈÄ¥¥¿¡¼¥²¥Ã¥È¥â¥¸¥å¡¼¥ë¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë:
1307 °Ê²¼¤Î¤â¤Î¤¬¡¢É¸½àŪ¤Ê¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
1309 .\"O This target is only valid in the
1315 .\"O chains, and user-defined chains which are only called from those
1316 .\"O chains. It specifies that the destination address of the packet
1317 .\"O should be modified (and all future packets in this connection will
1318 .\"O also be mangled), and rules should cease being examined. It takes one
1319 .\"O type of option:
1325 ¥Á¥§¥¤¥ó¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1326 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Î¤ß¤Ç͸ú¤Ç¤¢¤ë¡£
1327 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®À襢¥É¥ì¥¹¤ò½¤Àµ¤¹¤ë
1328 (¤³¤ÎÀܳ¤Î°Ê¹ß¤Î¥Ñ¥±¥Ã¥È¤â½¤Àµ¤·¤Æʬ¤«¤é¤Ê¤¯ (mangle) ¤¹¤ë)¡£
1329 ¤µ¤é¤Ë¡¢¥ë¡¼¥ë¤Ë¤è¤ë¥Á¥§¥Ã¥¯¤ò»ß¤á¤µ¤»¤ë¡£
1330 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¼ïÎढ¤ë:
1332 .BR "--to-destination " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
1333 .\"O which can specify a single new destination IP address, an inclusive
1334 .\"O range of IP addresses, and optionally, a port range (which is only
1335 .\"O valid if the rule also specifies
1338 .\"O .BR "-p udp" ).
1339 .\"O If no port range is specified, then the destination port will never be
1341 1 ¤Ä¤Î¿·¤·¤¤Á÷¿®Àè IP ¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤ÎÈϰϤ¬»ØÄê¤Ç¤¤ë¡£
1342 ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë
1347 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß͸ú)¡£
1348 ¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Á÷¿®Àè¥Ý¡¼¥È¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1351 .\"O You can add several --to-destination options. If you specify more
1352 .\"O than one destination address, either via an address range or multiple
1353 .\"O --to-destination options, a simple round-robin (one after another in
1354 .\"O cycle) load balancing takes place between these adresses.
1355 Ê£¿ô¤Î --to-destination ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
1356 ¥¢¥É¥ì¥¹¤ÎÈϰϤˤè¤Ã¤Æ¡¢
1357 ¤â¤·¤¯¤ÏÊ£¿ô¤Î --to-destination ¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ
1358 2 ¤Ä°Ê¾å¤ÎÁ÷¿®À襢¥É¥ì¥¹¤ò»ØÄꤷ¤¿¾ì¹ç¡¢
1359 ¤½¤ì¤é¤Î¥¢¥É¥ì¥¹¤ò»È¤Ã¤¿Ã±½ã¤Ê¥é¥¦¥ó¥É¡¦¥í¥Ó¥ó
1360 (½ç¡¹¤Ë½Û´Ä¤µ¤»¤ë) ¤¬¤ª¤³¤Ê¤ï¤ì¤ë¡£
1363 .\"O This target allows to alter the value of the DSCP bits within the TOS
1364 .\"O header of the IPv4 packet. As this manipulates a packet, it can only
1365 .\"O be used in the mangle table.
1366 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¡¢IPv4 ¥Ñ¥±¥Ã¥È¤Î TOS ¥Ø¥Ã¥À¡¼¤Ë¤¢¤ë
1367 DSCP ¥Ó¥Ã¥È¤ÎÃͤνñ¤´¹¤¨¤ò²Äǽ¤Ë¤¹¤ë¡£
1368 ¤³¤ì¤Ï¥Ñ¥±¥Ã¥È¤òÁàºî¤¹¤ë¤Î¤Ç¡¢mangle ¥Æ¡¼¥Ö¥ë¤Ç¤Î¤ß»ÈÍѤǤ¤ë¡£
1370 .BI "--set-dscp " "value"
1371 .\"O Set the DSCP field to a numerical value (can be decimal or hex)
1372 DSCP ¥Õ¥£¡¼¥ë¥É¤Î¿ôÃͤòÀßÄꤹ¤ë (10 ¿Ê¤Þ¤¿¤Ï 16 ¿Ê)¡£
1374 .BI "--set-dscp-class " "class"
1375 .\"O Set the DSCP field to a DiffServ class.
1376 DSCP ¥Õ¥£¡¼¥ë¥É¤Î DiffServ ¥¯¥é¥¹¤òÀßÄꤹ¤ë¡£
1378 .\"O This target allows to selectively work around known ECN blackholes.
1379 .\"O It can only be used in the mangle table.
1380 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï ECN ¥Ö¥é¥Ã¥¯¥Û¡¼¥ëÌäÂê¤Ø¤ÎÂнè¤ò²Äǽ¤Ë¤¹¤ë¡£
1381 mangle ¥Æ¡¼¥Ö¥ë¤Ç¤Î¤ß»ÈÍѤǤ¤ë¡£
1383 .BI "--ecn-tcp-remove"
1384 .\"O Remove all ECN bits from the TCP header. Of course, it can only be used
1385 .\"O in conjunction with
1387 TCP ¥Ø¥Ã¥À¡¼¤«¤éÁ´¤Æ¤Î ECN ¥Ó¥Ã¥È (ÌõÃí: ECE/CWR ¥Õ¥é¥°) ¤ò¼è¤ê½ü¤¯¡£
1390 ¥ª¥×¥·¥ç¥ó¤È¤ÎÁȹç¤ï¤»¤Ç¤Î¤ß»ÈÍѤǤ¤ë¡£
1392 .\"O Turn on kernel logging of matching packets. When this option is set
1393 .\"O for a rule, the Linux kernel will print some information on all
1394 .\"O matching packets (like most IP header fields) via the kernel log
1395 .\"O (where it can be read with
1398 .\"O .IR syslogd (8)).
1399 ¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ò¥«¡¼¥Í¥ë¥í¥°¤ËµÏ¿¤¹¤ë¡£
1400 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥ë¡¼¥ë¤ËÂФ·¤ÆÀßÄꤵ¤ì¤ë¤È¡¢
1401 Linux ¥«¡¼¥Í¥ë¤Ï¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤Î
1402 (ÂçÉôʬ¤Î IP ¥Ø¥Ã¥À¡¼¥Õ¥£¡¼¥ë¥É¤Î¤è¤¦¤Ê) ²¿¤é¤«¤Î¾ðÊó¤ò
1403 ¥«¡¼¥Í¥ë¥í¥°¤Ëɽ¼¨¤¹¤ë
1408 ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤¤ë)¡£
1409 .\"O This is a "non-terminating target", i.e. rule traversal continues at
1410 .\"O the next rule. So if you want to LOG the packets you refuse, use two
1411 .\"O separate rules with the same matching criteria, first using target LOG
1412 .\"O then DROP (or REJECT).
1413 ¤³¤ì¤Ï "Èó½ªÎ»¥¿¡¼¥²¥Ã¥È" ¤Ç¤¢¤ë¡£
1414 ¤¹¤Ê¤ï¤Á¡¢¥ë¡¼¥ë¤Î¸¡Æ¤¤Ï¡¢¼¡¤Î¥ë¡¼¥ë¤Ø¤È·Ñ³¤µ¤ì¤ë¡£
1415 ¤è¤Ã¤Æ¡¢µñÈݤ¹¤ë¥Ñ¥±¥Ã¥È¤ò¥í¥°µÏ¿¤·¤¿¤±¤ì¤Ð¡¢
1416 Ʊ¤¸¥Þ¥Ã¥Á¥ó¥°È½ÃÇ´ð½à¤ò»ý¤Ä 2 ¤Ä¤Î¥ë¡¼¥ë¤ò»ÈÍѤ·¡¢
1417 ºÇ½é¤Î¥ë¡¼¥ë¤Ç LOG ¥¿¡¼¥²¥Ã¥È¤ò¡¢
1418 ¼¡¤Î¥ë¡¼¥ë¤Ç DROP (¤Þ¤¿¤Ï REJECT) ¥¿¡¼¥²¥Ã¥È¤ò»ØÄꤹ¤ë¡£
1420 .BI "--log-level " "level"
1421 .\"O Level of logging (numeric or see \fIsyslog.conf\fP(5)).
1422 ¥í¥°µÏ¿¤Î¥ì¥Ù¥ë (¿ôÃͤƻØÄꤹ¤ë¤«¡¢
1423 (ÌõÃð: ̾Á°¤Ç»ØÄꤹ¤ë¾ì¹ç¤Ï) \fIsyslog.conf\fP(5) ¤ò»²¾È¤¹¤ë¤³¤È)¡£
1425 .BI "--log-prefix " "prefix"
1426 .\"O Prefix log messages with the specified prefix; up to 29 letters long,
1427 .\"O and useful for distinguishing messages in the logs.
1428 »ØÄꤷ¤¿¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤ò¥í¥°¥á¥Ã¥»¡¼¥¸¤ÎÁ°¤ËÉÕ¤±¤ë¡£
1429 ¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤Ï 29 ʸ»ú¤Þ¤Ç¤ÎŤµ¤Ç¡¢
1430 ¥í¥°¤ÎÃæ¤Ç¥á¥Ã¥»¡¼¥¸¤ò¶èÊ̤¹¤ë¤Î¤ËÌòΩ¤Ä¡£
1432 .B --log-tcp-sequence
1433 .\"O Log TCP sequence numbers. This is a security risk if the log is
1434 .\"O readable by users.
1435 TCP ¥·¡¼¥±¥ó¥¹ÈÖ¹æ¤ò¥í¥°¤ËµÏ¿¤¹¤ë¡£
1436 ¥í¥°¤¬¥æ¡¼¥¶¡¼¤«¤éÆɤá¤ë¾ì¹ç¡¢¥»¥¥å¥ê¥Æ¥£¾å¤Î´í¸±¤¬¤¢¤ë¡£
1438 .B --log-tcp-options
1439 .\"O Log options from the TCP packet header.
1440 TCP ¥Ñ¥±¥Ã¥È¥Ø¥Ã¥À¡¼¤Î¥ª¥×¥·¥ç¥ó¤ò¥í¥°¤ËµÏ¿¤¹¤ë¡£
1443 .\"O Log options from the IP packet header.
1444 IP ¥Ñ¥±¥Ã¥È¥Ø¥Ã¥À¡¼¤Î¥ª¥×¥·¥ç¥ó¤ò¥í¥°¤ËµÏ¿¤¹¤ë¡£
1446 .\"O This is used to set the netfilter mark value associated with the
1447 .\"O packet. It is only valid in the
1449 .\"O table. It can for example be used in conjunction with iproute2.
1450 ¥Ñ¥±¥Ã¥È¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿ netfilter ¤Î mark ÃͤòÀßÄꤹ¤ë¡£
1452 ¥Æ¡¼¥Ö¥ë¤Î¤ß¤Ç͸ú¤Ç¤¢¤ë¡£
1453 Î㤨¤Ð¡¢iproute2 ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
1455 .BI "--set-mark " "mark"
1457 .\"O This target is only valid in the
1466 ¥Á¥§¥¤¥ó¤Î¤ß¤Ç͸ú¤Ç¤¢¤ë¡£
1467 .\"O It should only be used with dynamically assigned IP (dialup)
1468 .\"O connections: if you have a static IP address, you should use the SNAT
1470 ưŪ³ä¤êÅö¤Æ IP (¥À¥¤¥ä¥ë¥¢¥Ã¥×) Àܳ¤Î¾ì¹ç¤Ë¤Î¤ß»È¤¦¤Ù¤¤Ç¤¢¤ë¡£
1471 ¸ÇÄê IP ¥¢¥É¥ì¥¹¤Ê¤é¤Ð¡¢SNAT ¥¿¡¼¥²¥Ã¥È¤ò»È¤¦¤Ù¤¤Ç¤¢¤ë¡£
1472 .\"O Masquerading is equivalent to specifying a mapping to the IP
1473 .\"O address of the interface the packet is going out, but also has the
1474 .\"O effect that connections are
1476 .\"O when the interface goes down.
1477 ¥Þ¥¹¥«¥ì¡¼¥Ç¥£¥ó¥°¤Ï¡¢¥Ñ¥±¥Ã¥È¤¬Á÷¿®¤µ¤ì¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î
1478 IP ¥¢¥É¥ì¥¹¤Ø¤Î¥Þ¥Ã¥Ô¥ó¥°¤ò»ØÄꤹ¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¤¬¡¢
1479 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬Ää»ß¤·¤¿¾ì¹ç¤ËÀܳ¤ò\fI˺¤ì¤ë\fR¤È¤¤¤¦¸ú²Ì¤¬¤¢¤ë¡£
1480 .\"O This is the correct behavior when the
1481 .\"O next dialup is unlikely to have the same interface address (and hence
1482 .\"O any established connections are lost anyway). It takes one option:
1483 ¼¡¤Î¥À¥¤¥ä¥ë¥¢¥Ã¥×¤Ç¤ÏƱ¤¸¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¥¢¥É¥ì¥¹¤Ë¤Ê¤ë²ÄǽÀ¤¬Ä㤤
1484 (¤½¤Î¤¿¤á¡¢Á°²ó³ÎΩ¤µ¤ì¤¿Àܳ¤Ï¼º¤ï¤ì¤ë) ¾ì¹ç¡¢
1486 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë¡£
1488 .BR "--to-ports " "\fIport\fP[-\fIport\fP]"
1489 .\"O This specifies a range of source ports to use, overriding the default
1491 .\"O source port-selection heuristics (see above). This is only valid
1492 .\"O if the rule also specifies
1496 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢»ÈÍѤ¹¤ëÁ÷¿®¸µ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤷ¡¢
1499 Á÷¿®¸µ¥Ý¡¼¥È¤ÎÁªÂòÊýË¡ (¾åµ) ¤è¤ê¤âÍ¥À褵¤ì¤ë¡£
1504 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß͸ú¤Ç¤¢¤ë¡£
1506 .\"O This is an experimental demonstration target which inverts the source
1507 .\"O and destination fields in the IP header and retransmits the packet.
1508 ¼Â¸³Åª¤Ê¥Ç¥â¥ó¥¹¥È¥ì¡¼¥·¥ç¥óÍѤΥ¿¡¼¥²¥Ã¥È¤Ç¤¢¤ê¡¢
1509 IP ¥Ø¥Ã¥À¡¼¤ÎÁ÷¿®¸µ¤ÈÁ÷¿®Àè¥Õ¥£¡¼¥ë¥É¤òÆþ¤ì´¹¤¨¡¢
1510 ¥Ñ¥±¥Ã¥È¤òºÆÁ÷¿®¤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
1511 .\"O It is only valid in the
1516 .\"O chains, and user-defined chains which are only called from those
1522 ¥Á¥§¥¤¥ó¤È¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1523 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤À¤±¤Ç͸ú¤Ç¤¢¤ë¡£
1524 .\"O Note that the outgoing packets are
1526 .\"O seen by any packet filtering chains, connection tracking or NAT, to
1527 .\"O avoid loops and other problems.
1528 ¥ë¡¼¥×Åù¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤¿¤á¡¢³°Éô¤ËÁ÷¤é¤ì¤ë¥Ñ¥±¥Ã¥È¤Ï
1529 ¤¤¤«¤Ê¤ë¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¥Á¥§¥¤¥ó¡¦ÀܳÄÉÀס¦NAT ¤«¤é¤â
1530 ´Æ»ë\fB¤µ¤ì¤Ê¤¤\fR¡£
1532 .\"O This target is only valid in the
1538 .\"O chains, and user-defined chains which are only called from those
1539 .\"O chains. It alters the destination IP address to send the packet to
1540 .\"O the machine itself (locally-generated packets are mapped to the
1541 .\"O 127.0.0.1 address). It takes one option:
1548 ¥Á¥§¥¤¥ó¡¢¤½¤·¤Æ¤³¤ì¤é¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1549 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Ç¤Î¤ß͸ú¤Ç¤¢¤ë¡£
1550 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®Àè IP ¥¢¥É¥ì¥¹¤ò
1551 ¥Þ¥·¥ó¼«¿È¤Î IP ¥¢¥É¥ì¥¹¤ËÊÑ´¹¤¹¤ë¡£
1552 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Ï¡¢¥¢¥É¥ì¥¹ 127.0.0.1 ¤Ë¥Þ¥Ã¥×¤µ¤ì¤ë)¡£
1553 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë:
1555 .BR "--to-ports " "\fIport\fP[-\fIport\fP]"
1556 .\"O This specifies a destination port or range of ports to use: without
1557 .\"O this, the destination port is never altered. This is only valid
1558 .\"O if the rule also specifies
1562 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï»ÈÍѤµ¤ì¤ëÁ÷¿®Àè¥Ý¡¼¥È¡¦¥Ý¡¼¥ÈÈÏ°Ï¡¦Ê£¿ô¥Ý¡¼¥È¤ò»ØÄꤹ¤ë¡£
1563 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢Á÷¿®Àè¥Ý¡¼¥È¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1568 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß͸ú¤Ç¤¢¤ë¡£
1570 .\"O This is used to send back an error packet in response to the matched
1571 .\"O packet: otherwise it is equivalent to
1573 .\"O so it is a terminating TARGET, ending rule traversal.
1574 ¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤Î±þÅú¤È¤·¤Æ¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
1575 ¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤òÁ÷¤é¤Ê¤±¤ì¤Ð¡¢
1577 ¤ÈƱ¤¸¤Ç¤¢¤ê¡¢TARGET ¤ò½ªÎ»¤·¡¢¥ë¡¼¥ë¤Î¸¡Æ¤¤ò½ªÎ»¤¹¤ë¡£
1578 .\"O This target is only valid in the
1583 .\"O chains, and user-defined chains which are only called from those
1584 .\"O chains. The following option controls the nature of the error packet
1590 ¥Á¥§¥¤¥ó¤È¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ð¤ì¤ë
1591 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤À¤±¤Ç͸ú¤Ç¤¢¤ë¡£
1592 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢ÊÖ¤µ¤ì¤ë¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤ÎÆÃÀ¤òÀ©¸æ¤¹¤ë¡£
1594 .BI "--reject-with " "type"
1595 .\"O The type given can be
1597 .\"O .B " icmp-net-unreachable"
1598 .\"O .B " icmp-host-unreachable"
1599 .\"O .B " icmp-port-unreachable"
1600 .\"O .B " icmp-proto-unreachable"
1601 .\"O .B " icmp-net-prohibited"
1602 .\"O .B " icmp-host-prohibited or"
1603 .\"O .B " icmp-admin-prohibited (*)"
1605 .\"O which return the appropriate ICMP error message (\fBport-unreachable\fP is
1607 type ¤È¤·¤Æ»ØÄê²Äǽ¤Ê¤â¤Î¤Ï
1609 .B " icmp-net-unreachable"
1610 .B " icmp-host-unreachable"
1611 .B " icmp-port-unreachable"
1612 .B " icmp-proto-unreachable"
1613 .B " icmp-net-prohibited"
1614 .B " icmp-host-prohibited or"
1615 .B " icmp-admin-prohibited (*)"
1617 ¤Ç¤¢¤ê¡¢Å¬ÀÚ¤Ê ICMP ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òÊÖ¤¹
1618 .RB ( port-unreachable
1619 ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë)¡£
1622 .\"O can be used on rules which only match the TCP protocol: this causes a
1623 .\"O TCP RST packet to be sent back. This is mainly useful for blocking
1625 .\"O (113/tcp) probes which frequently occur when sending mail to broken mail
1626 .\"O hosts (which won't accept your mail otherwise).
1627 TCP ¥×¥í¥È¥³¥ë¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤ËÂФ·¤Æ¡¢¥ª¥×¥·¥ç¥ó
1629 ¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
1630 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢TCP RST ¥Ñ¥±¥Ã¥È¤¬Á÷¤êÊÖ¤µ¤ì¤ë¡£
1633 (113/tcp) ¤Ë¤è¤ëõºº¤òÁ˻ߤ¹¤ë¤Î¤ËÌòΩ¤Ä¡£
1635 ¤Ë¤è¤ëõºº¤Ï¡¢²õ¤ì¤Æ¤¤¤ë (¥á¡¼¥ë¤ò¼õ¤±¼è¤é¤Ê¤¤) ¥á¡¼¥ë¥Û¥¹¥È¤Ë
1636 ¥á¡¼¥ë¤¬Á÷¤é¤ì¤ë¾ì¹ç¤ËÉÑÈˤ˵¯¤³¤ë¡£
1638 .\"O (*) Using icmp-admin-prohibited with kernels that do not support it will result in a plain DROP instead of REJECT
1641 (*) icmp-admin-prohibited ¤ò¥µ¥Ý¡¼¥È¤·¤Ê¤¤¥«¡¼¥Í¥ë¤Ç¡¢
1642 icmp-admin-prohibited ¤ò»ÈÍѤ¹¤ë¤È¡¢
1643 REJECT ¤Ç¤Ï¤Ê¤¯Ã±¤Ê¤ë DROP ¤Ë¤Ê¤ë¡£
1645 .\"O This target is only valid in the
1649 .\"O chain. It specifies that the source address of the packet should be
1650 .\"O modified (and all future packets in this connection will also be
1651 .\"O mangled), and rules should cease being examined. It takes one type
1657 ¥Á¥§¥¤¥ó¤Î¤ß¤Ç͸ú¤Ç¤¢¤ë¡£
1658 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤ò½¤Àµ¤µ¤»¤ë
1659 (¤³¤ÎÀܳ¤Î°Ê¹ß¤Î¥Ñ¥±¥Ã¥È¤â½¤Àµ¤·¤Æʬ¤«¤é¤Ê¤¯ (mangle) ¤¹¤ë)¡£
1660 ¤µ¤é¤Ë¡¢¥ë¡¼¥ë¤¬É¾²Á¤òÃæ»ß¤¹¤ë¤è¤¦¤Ë»Ø¼¨¤¹¤ë¡£
1661 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¼ïÎढ¤ë:
1663 .BR "--to-source " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
1664 .\"O which can specify a single new source IP address, an inclusive range
1665 .\"O of IP addresses, and optionally, a port range (which is only valid if
1666 .\"O the rule also specifies
1669 .\"O .BR "-p udp" ).
1670 1 ¤Ä¤Î¿·¤·¤¤Á÷¿®¸µ IP ¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤ÎÈϰϤ¬»ØÄê¤Ç¤¤ë¡£
1671 ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤¤ë
1676 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß͸ú)¡£
1677 .\"O If no port range is specified, then source ports below 512 will be
1678 .\"O mapped to other ports below 512: those between 512 and 1023 inclusive
1679 .\"O will be mapped to ports below 1024, and other ports will be mapped to
1680 .\"O 1024 or above. Where possible, no port alteration will occur.
1681 ¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
1682 512 ̤Ëþ¤ÎÁ÷¿®¸µ¥Ý¡¼¥È¤Ï¡¢Â¾¤Î 512 ̤Ëþ¤Î¥Ý¡¼¥È¤Ë¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
1683 512 ¡Á 1023 ¤Þ¤Ç¤Î¥Ý¡¼¥È¤Ï¡¢1024 ̤Ëþ¤Î¥Ý¡¼¥È¤Ë¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
1684 ¤½¤ì°Ê³°¤Î¥Ý¡¼¥È¤Ï¡¢1024 °Ê¾å¤Î¥Ý¡¼¥È¤Ë¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
1685 ²Äǽ¤Ç¤¢¤ì¤Ð¡¢¥Ý¡¼¥È¤ÎÊÑ´¹¤Ïµ¯¤³¤é¤Ê¤¤¡£
1688 .\"O You can add several --to-source options. If you specify more
1689 .\"O than one source address, either via an address range or multiple
1690 .\"O --to-source options, a simple round-robin (one after another in
1691 .\"O cycle) takes place between these adresses.
1692 Ê£¿ô¤Î --to-source ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
1693 ¥¢¥É¥ì¥¹¤ÎÈϰϤˤè¤Ã¤Æ¡¢
1694 ¤â¤·¤¯¤ÏÊ£¿ô¤Î --to-source ¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ
1695 2 ¤Ä°Ê¾å¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤ò»ØÄꤷ¤¿¾ì¹ç¡¢
1696 ¤½¤ì¤é¤Î¥¢¥É¥ì¥¹¤ò»È¤Ã¤¿Ã±½ã¤Ê¥é¥¦¥ó¥É¡¦¥í¥Ó¥ó
1697 (½ç¡¹¤Ë½Û´Ä¤µ¤»¤ë) ¤¬¤ª¤³¤Ê¤ï¤ì¤ë¡£
1699 .\"O This target allows to alter the MSS value of TCP SYN packets, to control
1700 .\"O the maximum size for that connection (usually limiting it to your
1701 .\"O outgoing interface's MTU minus 40). Of course, it can only be used
1702 .\"O in conjunction with
1704 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤òÍѤ¤¤ë¤È¡¢TCP ¤Î SYN ¥Ñ¥±¥Ã¥È¤Î MSS Ãͤò½ñ¤´¹¤¨¡¢
1705 ¤½¤Î¥³¥Í¥¯¥·¥ç¥ó¤ÎºÇÂ祵¥¤¥º
1706 (Ä̾ï¤Ï¡¢Á÷¿®¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î MTU ¤«¤é 40 °ú¤¤¤¿ÃÍ)
1710 ¤ÈÁȤ߹ç¤ï¤»¤Æ¤·¤«»È¤¨¤Ê¤¤¡£
1713 .\"O This target is used to overcome criminally braindead ISPs or servers
1714 .\"O which block ICMP Fragmentation Needed packets. The symptoms of this
1715 .\"O problem are that everything works fine from your Linux
1716 .\"O firewall/router, but machines behind it can never exchange large
1718 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤ÏÈȺáŪ¤ËƬ¤Î¤¤¤«¤ì¤¿ ISP ¤ä
1719 ICMP Fragmentation Needed ¥Ñ¥±¥Ã¥È¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤·¤Þ¤¦¥µ¡¼¥Ð¡¼¤ò
1720 ¾è¤ê±Û¤¨¤ë¤¿¤á¤Ë»ÈÍѤ¹¤ë¡£
1721 Linux ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë/¥ë¡¼¥¿¡¼¤Ç¤Ï²¿¤âÌäÂ꤬¤Ê¤¤¤Î¤Ë¡¢
1722 ¤½¤³¤Ë¤Ö¤é²¼¤¬¤ë¥Þ¥·¥ó¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤ËÂ礤ʥѥ±¥Ã¥È¤ò
1723 ¤ä¤ê¤È¤ê¤Ç¤¤Ê¤¤¤È¤¤¤¦¤Î¤¬¡¢¤³¤ÎÌäÂê¤ÎÃû¸õ¤Ç¤¢¤ë¡£
1728 .\"O Web browsers connect, then hang with no data received.
1729 ¥¦¥§¥Ö¡¦¥Ö¥é¥¦¥¶¤ÇÀܳ¤¬¡¢²¿¤Î¥Ç¡¼¥¿¤â¼õ¤±¼è¤é¤º¤Ë¥Ï¥ó¥°¤¹¤ë
1732 .\"O Small mail works fine, but large emails hang.
1733 û¤¤¥á¡¼¥ë¤ÏÌäÂê¤Ê¤¤¤¬¡¢Ä¹¤¤¥á¡¼¥ë¤¬¥Ï¥ó¥°¤¹¤ë
1736 .\"O ssh works fine, but scp hangs after initial handshaking.
1737 ssh ¤ÏÌäÂê¤Ê¤¤¤¬¡¢scp ¤ÏºÇ½é¤Î¥Ï¥ó¥É¥·¥§¡¼¥¯¸å¤Ë¥Ï¥ó¥°¤¹¤ë
1740 .\"O Workaround: activate this option and add a rule to your firewall
1741 .\"O configuration like:
1742 ²óÈòÊýË¡: ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò͸ú¤Ë¤·¡¢°Ê²¼¤Î¤è¤¦¤Ê¥ë¡¼¥ë¤ò
1743 ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÎÀßÄê¤ËÄɲ乤롣
1745 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \\
1746 -j TCPMSS --clamp-mss-to-pmtu
1749 .BI "--set-mss " "value"
1750 .\"O Explicitly set MSS option to specified value.
1751 MSS ¥ª¥×¥·¥ç¥ó¤ÎÃͤò»ØÄꤷ¤¿ÃͤËÀßÄꤹ¤ë¡£
1753 .B "--clamp-mss-to-pmtu"
1754 .\"O Automatically clamp MSS value to (path_MTU - 40).
1755 ¼«Æ°Åª¤Ë¡¢MSS Ãͤò (path_MTU - 40) ¤Ë¶¯À©¤¹¤ë¡£
1759 .\"O These options are mutually exclusive.
1760 ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¤É¤Á¤é¤« 1 ¤Ä¤·¤«»ØÄê¤Ç¤¤Ê¤¤¡£
1763 .\"O This is used to set the 8-bit Type of Service field in the IP header.
1764 .\"O It is only valid in the
1767 IP ¥Ø¥Ã¥À¡¼¤Î 8 ¥Ó¥Ã¥È¤Î Type of Service ¥Õ¥£¡¼¥ë¥É¤òÀßÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
1769 ¥Æ¡¼¥Ö¥ë¤Î¤ß¤Ç͸ú¤Ç¤¢¤ë¡£
1771 .BI "--set-tos " "tos"
1772 .\"O You can use a numeric TOS values, or use
1774 .\"O iptables -j TOS -h
1776 .\"O to see the list of valid TOS names.
1777 TOS ¤òÈÖ¹æ¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
1782 ¤ò¼Â¹Ô¤·¤ÆÆÀ¤é¤ì¤ë¡¢»ÈÍѲÄǽ¤Ê TOS ̾¤Î°ìÍ÷¤Ë¤¢¤ë TOS ̾¤â»ØÄê¤Ç¤¤ë¡£
1784 .\"O This target provides userspace logging of matching packets. When this
1785 .\"O target is set for a rule, the Linux kernel will multicast this packet
1788 .\"O socket. One or more userspace processes may then subscribe to various
1789 .\"O multicast groups and receive the packets.
1790 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¡¢¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ò
1791 ¥æ¡¼¥¶¡¼¶õ´Ö¤Ç¥í¥°µÏ¿¤¹¤ëµ¡Ç½¤òÄ󶡤¹¤ë¡£
1792 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤¬¥ë¡¼¥ë¤ËÀßÄꤵ¤ì¤ë¤È¡¢
1793 Linux ¥«¡¼¥Í¥ë¤Ï¡¢¤½¤Î¥Ñ¥±¥Ã¥È¤ò
1795 ¥½¥±¥Ã¥È¤òÍѤ¤¤Æ¥Þ¥ë¥Á¥¥ã¥¹¥È¤¹¤ë¡£
1796 ¤½¤·¤Æ¡¢1 ¤Ä°Ê¾å¤Î¥æ¡¼¥¶¡¼¶õ´Ö¥×¥í¥»¥¹¤¬
1797 ¤¤¤í¤¤¤í¤Ê¥Þ¥ë¥Á¥¥ã¥¹¥È¥°¥ë¡¼¥×¤ËÅÐÏ¿¤ò¤ª¤³¤Ê¤¤¡¢
1798 ¥Ñ¥±¥Ã¥È¤ò¼õ¿®¤¹¤ë¡£
1799 .\"O Like LOG, this is a "non-terminating target", i.e. rule traversal
1800 .\"O continues at the next rule.
1801 LOG ¤ÈƱÍÍ¡¢¤³¤ì¤Ï "Èó½ªÎ»¥¿¡¼¥²¥Ã¥È" ¤Ç¤¢¤ê¡¢
1802 ¥ë¡¼¥ë¤Î¸¡Æ¤¤Ï¼¡¤Î¥ë¡¼¥ë¤Ø¤È·Ñ³¤µ¤ì¤ë¡£
1804 .BI "--ulog-nlgroup " "nlgroup"
1805 .\"O This specifies the netlink group (1-32) to which the packet is sent.
1806 .\"O Default value is 1.
1807 ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë netlink ¥°¥ë¡¼¥× (1-32) ¤ò»ØÄꤹ¤ë¡£
1808 ¥Ç¥Õ¥©¥ë¥È¤ÎÃÍ¤Ï 1 ¤Ç¤¢¤ë¡£
1810 .BI "--ulog-prefix " "prefix"
1811 .\"O Prefix log messages with the specified prefix; up to 32 characters
1812 .\"O long, and useful for distinguishing messages in the logs.
1813 »ØÄꤷ¤¿¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤ò¥í¥°¥á¥Ã¥»¡¼¥¸¤ÎÁ°¤ËÉÕ¤±¤ë¡£
1814 32 ʸ»ú¤Þ¤Ç¤Î»ØÄê¤Ç¤¤ë¡£
1815 ¥í¥°¤ÎÃæ¤Ç¥á¥Ã¥»¡¼¥¸¤ò¶èÊ̤¹¤ë¤Î¤ËÊØÍø¤Ç¤¢¤ë¡£
1817 .BI "--ulog-cprange " "size"
1818 .\"O Number of bytes to be copied to userspace. A value of 0 always copies
1819 .\"O the entire packet, regardless of its size. Default is 0.
1820 ¥æ¡¼¥¶¡¼¶õ´Ö¤Ë¥³¥Ô¡¼¤¹¤ë¥Ñ¥±¥Ã¥È¤Î¥Ð¥¤¥È¿ô¡£
1821 Ãͤ¬ 0 ¤Î¾ì¹ç¡¢¥µ¥¤¥º¤Ë´Ø·¸¤Ê¤¯Á´¥Ñ¥±¥Ã¥È¤ò¥³¥Ô¡¼¤¹¤ë¡£
1822 ¥Ç¥Õ¥©¥ë¥È¤Ï 0 ¤Ç¤¢¤ë¡£
1824 .BI "--ulog-qthreshold " "size"
1825 .\"O Number of packet to queue inside kernel. Setting this value to, e.g. 10
1826 .\"O accumulates ten packets inside the kernel and transmits them as one
1827 .\"O netlink multipart message to userspace. Default is 1 (for backwards
1828 .\"O compatibility).
1830 ¥«¡¼¥Í¥ëÆâÉô¤Î¥¥å¡¼¤ËÆþ¤ì¤é¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¿ô¡£
1831 Î㤨¤Ð¡¢¤³¤ÎÃͤò 10 ¤Ë¤·¤¿¾ì¹ç¡¢
1832 ¥«¡¼¥Í¥ëÆâÉô¤Ç 10 ¸Ä¤Î¥Ñ¥±¥Ã¥È¤ò¤Þ¤È¤á¡¢
1833 1 ¤Ä¤Î netlink ¥Þ¥ë¥Á¥Ñ¡¼¥È¥á¥Ã¥»¡¼¥¸¤È¤·¤Æ¥æ¡¼¥¶¡¼¶õ´Ö¤ËÁ÷¤ë¡£
1834 (²áµî¤Î¤â¤Î¤È¤Î¸ß´¹À¤Î¤¿¤á) ¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¤Ç¤¢¤ë¡£
1835 .\"O .SH DIAGNOSTICS
1837 .\"O Various error messages are printed to standard error. The exit code
1838 .\"O is 0 for correct functioning. Errors which appear to be caused by
1839 .\"O invalid or abused command line parameters cause an exit code of 2, and
1840 .\"O other errors cause an exit code of 1.
1841 ¤¤¤í¤¤¤í¤Ê¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É¸½à¥¨¥é¡¼¤Ëɽ¼¨¤µ¤ì¤ë¡£
1842 Àµ¤·¤¯µ¡Ç½¤·¤¿¾ì¹ç¡¢½ªÎ»¥³¡¼¥É¤Ï 0 ¤Ç¤¢¤ë¡£
1843 ÉÔÀµ¤Ê¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ñ¥é¥á¡¼¥¿¤Ë¤è¤ê¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï¡¢
1844 ½ªÎ»¥³¡¼¥É 2 ¤¬ÊÖ¤µ¤ì¤ë¡£
1845 ¤½¤Î¾¤Î¥¨¥é¡¼¤Î¾ì¹ç¤Ï¡¢½ªÎ»¥³¡¼¥É 1 ¤¬ÊÖ¤µ¤ì¤ë¡£
1848 .\"O Bugs? What's this? ;-)
1849 .\"O Well... the counters are not reliable on sparc64.
1850 ¥Ð¥°? ¥Ð¥°¤Ã¤Æ²¿? ;-)
1851 ¤¨¡¼¤È¡Ä¡¢sparc64 ¤Ç¤Ï¥«¥¦¥ó¥¿¡¼Ãͤ¬¿®Íê¤Ç¤¤Ê¤¤¡£
1852 .\"O .SH COMPATIBILITY WITH IPCHAINS
1853 .SH IPCHAINS ¤È¤Î¸ß´¹À
1856 .\"O is very similar to ipchains by Rusty Russell. The main difference is
1857 .\"O that the chains
1861 .\"O are only traversed for packets coming into the local host and
1862 .\"O originating from the local host respectively. Hence every packet only
1863 .\"O passes through one of the three chains (except loopback traffic, which
1864 .\"O involves both INPUT and OUTPUT chains); previously a forwarded packet
1865 .\"O would pass through all three.
1867 ¤Ï¡¢Rusty Russell ¤Î ipchains ¤ÈÈó¾ï¤Ë¤è¤¯»÷¤Æ¤¤¤ë¡£
1868 Â礤ʰ㤤¤Ï¡¢¥Á¥§¥¤¥ó
1872 ¤¬¡¢¤½¤ì¤¾¤ì¥í¡¼¥«¥ë¥Û¥¹¥È¤ËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤È¡¢
1873 ¥í¡¼¥«¥ë¥Û¥¹¥È¤«¤é½Ð¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¤ß¤·¤«Ä´¤Ù¤Ê¤¤¤È¤¤¤¦ÅÀ¤Ç¤¢¤ë¡£
1874 ¤è¤Ã¤Æ¡¢(INPUT ¤È OUTPUT ¤ÎξÊý¤Î¥Á¥§¥¤¥ó¤òµ¯Æ°¤¹¤ë
1875 ¥ë¡¼¥×¥Ð¥Ã¥¯¥È¥é¥Õ¥£¥Ã¥¯¤ò½ü¤¯)
1876 Á´¤Æ¤Î¥Ñ¥±¥Ã¥È¤Ï 3 ¤Ä¤¢¤ë¥Á¥§¥¤¥ó¤Î¤¦¤Á 1 ¤·¤«Ä̤é¤Ê¤¤¡£
1877 °ÊÁ°¤Ï (ipchains ¤Ç¤Ï)¡¢
1878 ¥Õ¥©¥ï¡¼¥É¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Ï 3 ¤Ä¤Î¥Á¥§¥¤¥óÁ´¤Æ¤òÄ̤äƤ¤¤¿¡£
1880 .\"O The other main difference is that
1882 .\"O refers to the input interface;
1884 .\"O refers to the output interface, and both are available for packets
1888 ¤½¤Î¾¤ÎÂ礤ʰ㤤¤Ï¡¢
1890 ¤ÇÆþÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡¢
1892 ¤Ç½ÐÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò»²¾È¤¹¤ë¤³¤È¡¢
1895 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ»ØÄê²Äǽ¤ÊÅÀ¤Ç¤¢¤ë¡£
1896 .\"O .PP The various forms of NAT have been separated out;
1898 .\"O is a pure packet filter when using the default `filter' table, with
1899 .\"O optional extension modules. This should simplify much of the previous
1900 .\"O confusion over the combination of IP masquerading and packet filtering
1901 .\"O seen previously. So the following options are handled differently:
1908 NAT ¤Î¤¤¤í¤¤¤í¤Ê·Á¼°¤¬Ê¬³ä¤µ¤ì¤¿¡£
1909 ¥ª¥×¥·¥ç¥ó¤Î³ÈÄ¥¥â¥¸¥å¡¼¥ë¤È¤È¤â¤Ë
1910 ¥Ç¥Õ¥©¥ë¥È¤Î¡Ö¥Õ¥£¥ë¥¿¡×¥Æ¡¼¥Ö¥ë¤òÍѤ¤¤¿¾ì¹ç¡¢
1912 ¤Ï½ã¿è¤Ê¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¤È¤Ê¤ë¡£
1913 ¤³¤ì¤Ï¡¢°ÊÁ°¤ß¤é¤ì¤¿ IP ¥Þ¥¹¥«¥ì¡¼¥Ç¥£¥ó¥°¤È¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Î
1914 Áȹ礻¤Ë¤è¤ëº®Íð¤ò´Êά²½¤¹¤ë¡£
1921 ¤ÏÊ̤Τâ¤Î¤È¤·¤Æ°·¤ï¤ì¤ë¡£
1922 .\"O There are several other changes in iptables.
1923 iptables ¤Ç¤Ï¡¢¤½¤Î¾¤Ë¤â¤¤¤¯¤Ä¤«¤ÎÊѹ¹¤¬¤¢¤ë¡£
1926 .BR iptables-save (8),
1927 .BR iptables-restore (8),
1929 .BR ip6tables-save (8),
1930 .BR ip6tables-restore (8).
1932 .\"O The packet-filtering-HOWTO details iptables usage for
1933 .\"O packet filtering, the NAT-HOWTO details NAT,
1934 .\"O the netfilter-extensions-HOWTO details the extensions that are
1935 .\"O not in the standard distribution,
1936 .\"O and the netfilter-hacking-HOWTO details the netfilter internals.
1937 ¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ê iptables ¤Î»ÈÍÑË¡¤ò
1938 ÀâÌÀ¤·¤Æ¤¤¤ë packet-filtering-HOWTO¡£
1939 NAT ¤Ë¤Ä¤¤¤Æ¾ÜºÙ¤ËÀâÌÀ¤·¤Æ¤¤¤ë NAT-HOWTO¡£
1940 ɸ½àŪ¤ÊÇÛÉۤˤϴޤޤì¤Ê¤¤³ÈÄ¥¤Î¾ÜºÙ¤ò
1941 ÀâÌÀ¤·¤Æ¤¤¤ë netfilter-extensions-HOWTO¡£
1942 ÆâÉô¹½Â¤¤Ë¤Ä¤¤¤Æ¾ÜºÙ¤ËÀâÌÀ¤·¤Æ¤¤¤ë netfilter-hacking-HOWTO¡£
1946 .\"O .BR "http://www.netfilter.org/" .
1947 .UR http://www.netfilter.org/
1948 .B http://www.netfilter.org/
1953 .\"O Rusty Russell wrote iptables, in early consultation with Michael
1955 Rusty Russell ¤Ï¡¢½é´ü¤ÎÃʳ¬¤Ç Michael Neuling ¤ËÁêÃ̤·¤Æ iptables ¤ò½ñ¤¤¤¿¡£
1957 .\"O Marc Boucher made Rusty abandon ipnatctl by lobbying for a generic packet
1958 .\"O selection framework in iptables, then wrote the mangle table, the owner match,
1959 .\"O the mark stuff, and ran around doing cool stuff everywhere.
1960 Marc Boucher ¤Ï Rusty ¤Ë iptables ¤Î°ìÈÌŪ¤Ê¥Ñ¥±¥Ã¥ÈÁªÂò¤Î¹Í¤¨Êý¤ò´«¤á¤Æ¡¢
1961 ipnatctl ¤ò»ß¤á¤µ¤»¤¿¡£
1962 ¤½¤·¤Æ¡¢mangle ¥Æ¡¼¥Ö¥ë¡¦½êͼԥޥåÁ¥ó¥°¡¦
1963 mark µ¡Ç½¤ò½ñ¤¡¢¤¤¤¿¤ë¤È¤³¤í¤Ç»È¤ï¤ì¤Æ¤¤¤ëÁÇÀ²¤é¤·¤¤¥³¡¼¥É¤ò½ñ¤¤¤¿¡£
1965 .\"O James Morris wrote the TOS target, and tos match.
1966 James Morris ¤¬ TOS ¥¿¡¼¥²¥Ã¥È¤È tos ¥Þ¥Ã¥Á¥ó¥°¤ò½ñ¤¤¤¿¡£
1968 .\"O Jozsef Kadlecsik wrote the REJECT target.
1969 Jozsef Kadlecsik ¤¬ REJECT ¥¿¡¼¥²¥Ã¥È¤ò½ñ¤¤¤¿¡£
1971 .\"O Harald Welte wrote the ULOG target, TTL, DSCP, ECN matches and targets.
1972 Harald Welte ¤¬ ULOG ¥¿¡¼¥²¥Ã¥È¤È¡¢
1973 TTL, DSCP, ECN ¤Î¥Þ¥Ã¥Á¡¦¥¿¡¼¥²¥Ã¥È¤ò½ñ¤¤¤¿¡£
1975 .\"O The Netfilter Core Team is: Marc Boucher, Martin Josefsson, Jozsef Kadlecsik,
1976 .\"O James Morris, Harald Welte and Rusty Russell.
1977 Netfilter ¥³¥¢¥Á¡¼¥à¤Ï¡¢Marc Boucher, Martin Josefsson, Jozsef Kadlecsik,
1978 James Morris, Harald Welte, Rusty Russell ¤Ç¤¢¤ë¡£
1980 .\"O Man page written by Herve Eychenne <rv@wallfire.org>.
1981 man ¥Ú¡¼¥¸¤Ï Herve Eychenne <rv@wallfire.org> ¤¬½ñ¤¤¤¿¡£
1982 .\" .. and did I mention that we are incredibly cool people?
1984 .\" .. witty, charming, powerful ..
1985 .\" .. and most of all, modest ..
1986 .\" .. ¤½¤·¤Æ¡¢ËÍÅù¤¬¤È¤Æ¤â¥¯¡¼¥ë¤ÊÅÛ¤é¤À¤È¸À¤Ã¤Æ¤ª¤¤¤Æ¤â¤¤¤¤¤«¤Ê¡©
1987 .\" .. ¥»¥¯¥·¡¼¤Ç ..
1988 .\" .. ¤È¤Æ¤â¥¦¥£¥Ã¥È¤ËÉÙ¤ó¤Ç¤¤¤Æ¡¢¥Á¥ã¡¼¥ß¥ó¥°¤Ç¡¢¥Ñ¥ï¥Õ¥ë¤Ç ..
1989 .\" .. ¤½¤·¤Æ¡¢¤ß¤ó¤Ê¸¬µõ¤Ê¤ó¤À ..