OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/iptables.git] / draft / man8 / iptables.8
1 .\"
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)
5 .\"
6 .\" ipchains page by Paul ``Rusty'' Russell March 1997
7 .\" Based on the original ipfwadm man page by Jos Vos <jos@xos.nl>
8 .\"
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.
13 .\"
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.
18 .\"
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.
22 .\"
23 .\"
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>
33 .\"
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        È½ÃÇ(¤¹¤ë)´ð½à
43 .\"
44 .TH IPTABLES 8 "Mar 09, 2002" "" ""
45 .\"O .SH NAME
46 .SH Ì¾Á°
47 .\"O iptables \- administration tool for IPv4 packet filtering and NAT
48 iptables \- IPv4 ¤Î¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¤È NAT ¤ò´ÉÍý¤¹¤ë¥Ä¡¼¥ë
49 .\"O .SH SYNOPSIS
50 .SH ½ñ¼°
51 .\"O .BR "iptables [-t table] -[AD] " "chain rule-specification [options]"
52 .BR "iptables [-t table] -[AD] " "¥Á¥§¥¤¥ó ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
53 .br
54 .\"O .BR "iptables [-t table] -I " "chain [rulenum] rule-specification [options]"
55 .BR "iptables [-t table] -I " "¥Á¥§¥¤¥ó [¥ë¡¼¥ëÈÖ¹æ] ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
56 .br
57 .\"O .BR "iptables [-t table] -R " "chain rulenum rule-specification [options]"
58 .BR "iptables [-t table] -R " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈֹ栥롼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
59 .br
60 .\"O .BR "iptables [-t table] -D " "chain rulenum [options]"
61 .BR "iptables [-t table] -D " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈÖ¹æ [¥ª¥×¥·¥ç¥ó]"
62 .br
63 .\"O .BR "iptables [-t table] -[LFZ] " "[chain] [options]"
64 .BR "iptables [-t table] -[LFZ] " "[¥Á¥§¥¤¥ó] [¥ª¥×¥·¥ç¥ó]"
65 .br
66 .\"O .BR "iptables [-t table] -N " "chain"
67 .BR "iptables [-t table] -N " "¥Á¥§¥¤¥ó"
68 .br
69 .\"O .BR "iptables [-t table] -X " "[chain]"
70 .BR "iptables [-t table] -X " "[¥Á¥§¥¤¥ó]"
71 .br
72 .\"O .BR "iptables [-t table] -P " "chain target [options]"
73 .BR "iptables [-t table] -P " "¥Á¥§¥¤¥ó ¥¿¡¼¥²¥Ã¥È [¥ª¥×¥·¥ç¥ó]"
74 .br
75 .\"O .BR "iptables [-t table] -E " "old-chain-name new-chain-name"
76 .BR "iptables [-t table] -E " "µì¥Á¥§¥¤¥ó̾ ¿·¥Á¥§¥¤¥ó̾"
77 .\"O .SH DESCRIPTION
78 .SH ÀâÌÀ
79 .\"O .B Iptables
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.
84 .B iptables
85 ¤Ï Linux ¥«¡¼¥Í¥ë¤Î IP ¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ë¡¼¥ë¤Î¥Æ¡¼¥Ö¥ë¤ò
86 ÀßÄꡦ´ÉÍý¡¦¸¡ºº¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
87 Ê£¿ô¤Î°Û¤Ê¤ë¥Æ¡¼¥Ö¥ë¤òÄêµÁ¤Ç¤­¤ë¡£
88 ³Æ¥Æ¡¼¥Ö¥ë¤Ë¤Ï¤¿¤¯¤µ¤ó¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤Æ¤ª¤ê¡¢
89 ¤µ¤é¤Ë¥æ¡¼¥¶¡¼ÄêµÁ¤Î¥Á¥§¥¤¥ó¤ò²Ã¤¨¤ë¤³¤È¤â¤Ç¤­¤ë¡£
90
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
94 .\"O table.
95 ³Æ¥Á¥§¥¤¥ó¤Ï¡¢¥Ñ¥±¥Ã¥È·²¤Ë¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤Î¥ê¥¹¥È¤Ç¤¢¤ë¡£
96 ³Æ¥ë¡¼¥ë¤Ï¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ²¿¤ò¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
97 ¤³¤ì¤Ï¡Ö¥¿¡¼¥²¥Ã¥È¡×¤È¸Æ¤Ð¤ì¡¢
98 Ʊ¤¸¥Æ¡¼¥Ö¥ëÆâ¤Î¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Ë¥¸¥ã¥ó¥×¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
99
100 .\"O .SH TARGETS
101 .SH ¥¿¡¼¥²¥Ã¥È
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
106 .\"O special values 
107 .\"O .IR ACCEPT ,
108 .\"O .IR DROP ,
109 .\"O .IR QUEUE ,
110 .\"O or
111 .\"O .IR RETURN .
112 ¤Ò¤È¤Ä¤Î¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¥ë¡¼¥ë¤Ç¤Ï¡¢
113 ¥Ñ¥±¥Ã¥È¤òȽÃǤ¹¤ë´ð½à¤È¥¿¡¼¥²¥Ã¥È¤È¤¬»ØÄꤵ¤ì¤ë¡£
114 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤Ê¤¤¾ì¹ç¡¢¥Á¥§¥¤¥óÆâ¤Î¼¡¤Î¥ë¡¼¥ë¤¬É¾²Á¤µ¤ì¤ë¡£
115 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¡¢
116 ¥¿¡¼¥²¥Ã¥È¤ÎÃͤ¬¼¡¤Î¥ë¡¼¥ë¤ò»ØÄꤹ¤ë¡£
117 ¥¿¡¼¥²¥Ã¥È¤ÎÃͤϡ¢¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Î̾Á°¡¢¤Þ¤¿¤ÏÆÃÊ̤ÊÃÍ
118 .IR ACCEPT ,
119 .IR DROP ,
120 .IR QUEUE ,
121 .I RETURN
122 ¤Î¤¦¤Á¤Î 1 ¤Ä¤Ç¤¢¤ë¡£
123 .PP
124 .\"O .I ACCEPT 
125 .\"O means to let the packet through.
126 .I ACCEPT 
127 ¤Ï¥Ñ¥±¥Ã¥È¤òÄ̤¹¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
128 .\"O .I DROP
129 .\"O means to drop the packet on the floor.
130 .I DROP
131 ¤Ï¥Ñ¥±¥Ã¥È¤ò¾²¤ËÍ (¼Î¤Æ¤ë) ¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
132 .\"O .I QUEUE
133 .\"O means to pass the packet to userspace (if supported by the kernel).
134 .I QUEUE
135 ¤Ï¥Ñ¥±¥Ã¥È¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤ËÅϤ¹¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë
136 (¥«¡¼¥Í¥ë¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¤Ç¤¢¤ë¤¬)¡£
137 .\"O .I RETURN
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
141 .\"O .I RETURN
142 .\"O is matched, the target specified by the chain policy determines the
143 .\"O fate of the packet.
144 .I RETURN
145 ¤Ï¡¢¤³¤Î¥Á¥§¥¤¥ó¤Î¸¡Æ¤¤òÃæ»ß¤·¤Æ¡¢
146 °ÊÁ°¤Î (¸Æ¤Ó½Ð¤·¸µ) ¥Á¥§¥¤¥óÆâ¤Î
147 ¼¡¤Î¥ë¡¼¥ë¤«¤é¸¡Æ¤¤òºÆ³«¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
148 ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤ÎºÇ¸å¤ËÅþ㤷¤¿¾ì¹ç¡¢
149 ¤Þ¤¿¤ÏÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ç¥¿¡¼¥²¥Ã¥È
150 .I RETURN
151 ¤ò»ý¤Ä¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¡¢
152 ¥Á¥§¥¤¥ó¥Ý¥ê¥·¡¼¤Ç»ØÄꤵ¤ì¤¿¥¿¡¼¥²¥Ã¥È¤¬
153 ¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤ò·èÄꤹ¤ë¡£
154 .\"O .SH TABLES
155 .SH ¥Æ¡¼¥Ö¥ë
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 ¥«¡¼¥Í¥ë¤ÎÀßÄê¤ä¤É¤¦¤¤¤Ã¤¿¥â¥¸¥å¡¼¥ë¤¬Â¸ºß¤¹¤ë¤«¤Ë°Í¸¤¹¤ë)¡£
162 .TP
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 ¤½¤Î¥â¥¸¥å¡¼¥ë¤¬¥í¡¼¥É¤µ¤ì¤ë¡£
173
174 .\"O The tables are as follows:
175 ¥Æ¡¼¥Ö¥ë¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¢¤ë¡£
176 .RS
177 .TP .4i
178 .BR "filter" :
179 .\"O This is the default table (if no -t option is passed).  It contains
180 .\"O the built-in chains
181 .\"O .B INPUT
182 .\"O (for packets coming into the box itself),
183 .\"O .B FORWARD
184 .\"O (for packets being routed through the box), and
185 .\"O .B OUTPUT
186 .\"O (for locally-generated packets).
187 (\-t ¥ª¥×¥·¥ç¥ó¤¬ÅϤµ¤ì¤Ê¤±¤ì¤Ð) ¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥Æ¡¼¥Ö¥ë¤Ç¤¢¤ë¡£
188 ¤³¤ì¤Ë¤Ï
189 .B INPUT
190 (¥Þ¥·¥ó¼«ÂΤËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
191 .B FORWARD
192 (¥Þ¥·¥ó¤ò·Ðͳ¤¹¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
193 .B OUTPUT
194 (¥í¡¼¥«¥ë¥Þ¥·¥ó¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)
195 ¤È¤¤¤¦ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
196 .TP
197 .BR "nat" :
198 .\"O This table is consulted when a packet that creates a new
199 .\"O connection is encountered.  It consists of three built-ins:
200 .\"O .B PREROUTING
201 .\"O (for altering packets as soon as they come in),
202 .\"O .B OUTPUT
203 .\"O (for altering locally-generated packets before routing), and
204 .\"O .B POSTROUTING
205 .\"O (for altering packets as they are about to go out).
206 ¤³¤Î¥Æ¡¼¥Ö¥ë¤Ï¿·¤·¤¤Àܳ¤ò³«¤¯¤è¤¦¤Ê¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ»²¾È¤µ¤ì¤ë¡£
207 ¤³¤ì¤Ë¤Ï
208 .B PREROUTING
209 (¥Ñ¥±¥Ã¥È¤¬Æþ¤Ã¤Æ¤­¤¿¾ì¹ç¡¢¤¹¤°¤Ë¤½¤Î¥Ñ¥±¥Ã¥È¤òÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
210 .B OUTPUT
211 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ò¥ë¡¼¥Æ¥£¥ó¥°¤ÎÁ°¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
212 .B POSTROUTING
213 (¥Ñ¥±¥Ã¥È¤¬½Ð¤Æ¹Ô¤¯¤È¤­¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
214 ¤È¤¤¤¦ 3 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
215 .TP
216 .BR "mangle" :
217 .\"O This table is used for specialized packet alteration.  Until kernel
218 .\"O 2.4.17 it had two built-in chains:
219 .\"O .B PREROUTING
220 .\"O (for altering incoming packets before routing) and
221 .\"O .B OUTPUT
222 .\"O (for altering locally-generated packets before routing).
223 .\"O Since kernel 2.4.18, three other built-in chains are also supported:
224 .\"O .B INPUT
225 .\"O (for packets coming into the box itself),
226 .\"O .B FORWARD
227 .\"O (for altering packets being routed through the box), and
228 .\"O .B POSTROUTING
229 .\"O (for altering packets as they are about to go out).
230 ¤³¤Î¥Æ¡¼¥Ö¥ë¤ÏÆÃÊ̤ʥѥ±¥Ã¥ÈÊÑ´¹¤Ë»È¤ï¤ì¤ë¡£
231 ¤³¤ì¤Ë¤Ï¡¢¥«¡¼¥Í¥ë 2.4.17 ¤Þ¤Ç¤Ï
232 .B PREROUTING
233 (¥Ñ¥±¥Ã¥È¤¬Æþ¤Ã¤Æ¤­¤¿¾ì¹ç¡¢¤¹¤°¤Ë¤½¤Î¥Ñ¥±¥Ã¥È¤òÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
234 .B OUTPUT
235 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ò¥ë¡¼¥Æ¥£¥ó¥°¤ÎÁ°¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
236 ¤È¤¤¤¦ 2 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
237 ¥«¡¼¥Í¥ë 2.4.18 ¤«¤é¤Ï¡¢¤³¤ì¤é¤Î¾¤Ë
238 .B INPUT
239 (¥Þ¥·¥ó¼«ÂΤËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
240 .B FORWARD
241 (¥Þ¥·¥ó¤ò·Ðͳ¤¹¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
242 .B POSTROUTING
243 (¥Ñ¥±¥Ã¥È¤¬½Ð¤Æ¹Ô¤¯¤È¤­¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
244 ¤È¤¤¤¦ 3 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤â´Þ¤Þ¤ì¤ë¡£
245 .RE
246 .\"O .SH OPTIONS
247 .SH ¥ª¥×¥·¥ç¥ó
248 .\"O The options that are recognized by
249 .\"O .B iptables
250 .\"O can be divided into several different groups.
251 .B iptables
252 ¤Ç»È¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥°¥ë¡¼¥×¤Ëʬ¤±¤é¤ì¤ë¡£
253 .\"O .SS COMMANDS
254 .SS ¥³¥Þ¥ó¥É
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
259 .\"O .B iptables
260 .\"O can differentiate it from all other options.
261 ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¼Â¹Ô¤¹¤ëÆÃÄê¤ÎÆ°ºî¤ò»ØÄꤹ¤ë¡£
262 °Ê²¼¤ÎÀâÌÀ¤ÇÃíµ­¤µ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢
263 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄê¤Ç¤­¤ë¤Î¤Ï¤³¤ÎÃæ¤Î 1 ¤Ä¤À¤±¤Ç¤¢¤ë¡£
264 Ť¤¥Ð¡¼¥¸¥ç¥ó¤Î¥³¥Þ¥ó¥É̾¤È¥ª¥×¥·¥ç¥ó̾¤Ï¡¢
265 .B iptables
266 ¤¬Â¾¤Î¥³¥Þ¥ó¥É̾¤ä¥ª¥×¥·¥ç¥ó̾¤È¶èÊ̤Ǥ­¤ëÈϰϤÇ
267 (ʸ»ú¤ò¾Êά¤·¤Æ) »ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë¡£
268 .TP
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 ²Äǽ¤Ê¥¢¥É¥ì¥¹¤ÎÁȹ礻¤½¤ì¤¾¤ì¤ËÂФ·¤Æ¥ë¡¼¥ë¤¬Äɲ䵤ì¤ë¡£
277 .TP
278 .\"O .BI "-D, --delete " "chain rule-specification"
279 .BI "-D, --delete " "¥Á¥§¥¤¥ó ¥ë¡¼¥ë¤Î¾ÜºÙ"
280 .ns
281 .TP
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 ¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ç¤¢¤ë¡£
291 .TP
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
297 .\"O is specified.
298 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ë¥ë¡¼¥ëÈÖ¹æ¤ò»ØÄꤷ¤Æ 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òÁÞÆþ¤¹¤ë¡£
299 ¥ë¡¼¥ëÈֹ椬 1 ¤Î¾ì¹ç¡¢¥ë¡¼¥ë¤Ï¥Á¥§¥¤¥ó¤ÎÀèƬ¤ËÁÞÆþ¤µ¤ì¤ë¡£
300 ¤³¤ì¤Ï¥ë¡¼¥ëÈֹ椬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤â¤¢¤ë¡£
301 .TP
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 ¤«¤é¤Ï¤¸¤Þ¤ë¡£
310 .TP
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 ¥ë¡¼¥ë¤òɽ¼¨¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ë¡£
321 .nf
322  iptables -t nat -n -L
323 .fi
324 .\"O Please note that it is often used with the
325 .\"O .B -n
326 .\"O option, in order to avoid long reverse DNS lookups.
327 DNS¤ÎµÕ°ú¤­¤òÈò¤±¤ë¤¿¤á¤Ë¡¢¤è¤¯
328 .B -n
329 ¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë»ÈÍѤµ¤ì¤ë¡£
330 .\"O It is legal to specify the
331 .\"O .B -Z
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
335 .\"O .br
336 .\"O  iptables -L -v
337 .\"O .br
338 .B -Z
339 (¥¼¥í²½) ¥ª¥×¥·¥ç¥ó¤òƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë¡£
340 ¤³¤Î¾ì¹ç¡¢¥Á¥§¥¤¥ó¤ÏÍ×ÁÇËè¤Ë¥ê¥¹¥È¤µ¤ì¤Æ¡¢
341 (ÌõÃð: ¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤¬) ¥¼¥í¤Ë¤µ¤ì¤ë¡£
342 ½ÐÎÏɽ¼¨¤ÏƱ»þ¤ËÍ¿¤¨¤é¤ì¤¿Â¾¤Î°ú¤­¿ô¤Ë±Æ¶Á¤µ¤ì¤ë¡£
343 .nf
344  iptables -L -v
345 .fi
346 ¤ò»È¤ï¤Ê¤¤¸Â¤ê (ÌõÃí: -v ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¸Â¤ê)¡¢
347 ¼ÂºÝ¤Î¥ë¡¼¥ë¤½¤Î¤â¤Î¤Ïɽ¼¨¤µ¤ì¤Ê¤¤¡£
348 .TP
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 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó(²¿¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¥Æ¡¼¥Ö¥ëÆâ¤ÎÁ´¤Æ¤Î¥Á¥§¥¤¥ó)
354 ¤ÎÆâÍƤòÁ´¾Ãµî¤¹¤ë¡£
355 ¤³¤ì¤ÏÁ´¤Æ¤Î¥ë¡¼¥ë¤ò 1 ¸Ä¤º¤Äºï½ü¤¹¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
356 .TP
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
360 .\"O specify the
361 .\"O .B "-L, --list"
362 .\"O (list) option as well, to see the counters immediately before they are
363 .\"O cleared. (See above.)
364 ¤¹¤Ù¤Æ¤Î¥Á¥§¥¤¥ó¤Î¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò¥¼¥í¤Ë¤¹¤ë¡£
365 ¥¯¥ê¥¢¤µ¤ì¤ëľÁ°¤Î¥«¥¦¥ó¥¿¤ò¸«¤ë¤¿¤á¤Ë¡¢
366 .B "-L, --list"
367 (°ìÍ÷ɽ¼¨) ¥ª¥×¥·¥ç¥ó¤ÈƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë (¾åµ­¤ò»²¾È)¡£
368 .TP
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 Ʊ¤¸Ì¾Á°¤Î¥¿¡¼¥²¥Ã¥È¤¬´û¤Ë¸ºß¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
375 .TP
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 ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ç¤Ê¤¤¤â¤Î¤òÁ´¤Æºï½ü¤¹¤ë¡£
388 .TP
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
392 .\"O .B TARGETS
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
395 .\"O targets.
396 ¥Á¥§¥¤¥ó¤Î¥Ý¥ê¥·¡¼¤ò¡¢»ØÄꤷ¤¿¥¿¡¼¥²¥Ã¥È¤ËÀßÄꤹ¤ë¡£
397 »ØÄê²Äǽ¤Ê¥¿¡¼¥²¥Ã¥È¤Ï¡Ö\fB¥¿¡¼¥²¥Ã¥È\fR¡×¤Î¾Ï¤ò»²¾È¤¹¤ë¤³¤È¡£
398 (¥æ¡¼¥¶¡¼ÄêµÁ¤Ç¤Ï¤Ê¤¤)ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ë¤·¤«¥Ý¥ê¥·¡¼¤ÏÀßÄê¤Ç¤­¤Ê¤¤¡£
399 ¤Þ¤¿¡¢ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤â¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤â
400 ¥Ý¥ê¥·¡¼¤Î¥¿¡¼¥²¥Ã¥È¤ËÀßÄꤹ¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
401 .TP
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 ¤³¤ì¤Ï¸«¤¿ÌܤÀ¤±¤ÎÊѹ¹¤Ê¤Î¤Ç¡¢¥Æ¡¼¥Ö¥ë¤Î¹½Â¤¤Ë¤Ï²¿¤â±Æ¶Á¤·¤Ê¤¤¡£
408 .TP
409 .B -h
410 .\"O Help.
411 .\"O Give a (currently very brief) description of the command syntax.
412 ¥Ø¥ë¥×¡£
413 (º£¤Î¤È¤³¤í¤Ï¤È¤Æ¤â´Êñ¤Ê) ¥³¥Þ¥ó¥É½ñ¼°¤ÎÀâÌÀ¤òɽ¼¨¤¹¤ë¡£
414 .\"O .SS PARAMETERS
415 .SS ¥Ñ¥é¥á¡¼¥¿
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 ¥³¥Þ¥ó¥É¤ÇÍѤ¤¤é¤ì¤Æ) ¥ë¡¼¥ë¤Î»ÅÍͤò·è¤á¤ë¡£
420 .TP
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
424 .\"O .IR tcp ,
425 .\"O .IR udp ,
426 .\"O .IR icmp ,
427 .\"O or
428 .\"O .IR all ,
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 »ØÄê¤Ç¤­¤ë¥×¥í¥È¥³¥ë¤Ï¡¢
433 .IR tcp ,
434 .IR udp ,
435 .IR icmp ,
436 .I all
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
443 .\"O .IR all .
444 .\"O Protocol
445 .\"O .I all
446 .\"O will match with all protocols and is taken as default when this
447 .\"O option is omitted.
448 ¥×¥í¥È¥³¥ë¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢¤½¤Î¥×¥í¥È¥³¥ë¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
449 ¿ôÃÍ 0 ¤Ï
450 .I all
451 ¤ÈÅù¤·¤¤¡£
452 ¥×¥í¥È¥³¥ë
453 .I all
454 ¤ÏÁ´¤Æ¤Î¥×¥í¥È¥³¥ë¤È¥Þ¥Ã¥Á¤·¡¢
455 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿ºÝ¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
456 .TP
457 .BR "-s, --source " "[!] \fIaddress\fP[/\fImask\fP]"
458 .\"O Source specification.
459 .\"O .I Address
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.
463 Á÷¿®¸µ¤Î»ØÄê¡£
464 .I address
465 ¤Ï¥Û¥¹¥È̾
466 (DNS ¤Î¤è¤¦¤Ê¥ê¥â¡¼¥È¤Ø¤ÎÌ䤤¹ç¤ï¤»¤Ç²ò·è¤¹¤ë̾Á°¤ò»ØÄꤹ¤ë¤Î¤ÏÈó¾ï¤ËÎɤ¯¤Ê¤¤)
467 ¡¦¥Í¥Ã¥È¥ï¡¼¥¯ IP ¥¢¥É¥ì¥¹ (/mask ¤ò»ØÄꤹ¤ë)¡¦
468 Ä̾ï¤Î IP ¥¢¥É¥ì¥¹¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡£
469 .\"O The
470 .\"O .I mask
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.
473 .I mask
474 ¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥Þ¥¹¥¯¤«¡¢
475 ¥Í¥Ã¥È¥ï¡¼¥¯¥Þ¥¹¥¯¤Îº¸Â¦¤Ë¤¢¤ë 1 ¤Î¿ô¤ò»ØÄꤹ¤ë¿ôÃͤǤ¢¤ë¡£
476 .\"O Thus, a mask of
477 .\"O .I 24
478 .\"O is equivalent to
479 .\"O .IR 255.255.255.0 .
480 ¤Ä¤Þ¤ê¡¢
481 .I 24
482 ¤È¤¤¤¦ mask ¤Ï
483 .I 255.255.255.0
484 ¤ËÅù¤·¤¤¡£
485 .\"O A "!" argument before the address specification inverts the sense of
486 .\"O the address. The flag
487 .\"O .B --src
488 .\"O is an alias for this option.
489 ¥¢¥É¥ì¥¹»ØÄê¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢¤½¤Î¥¢¥É¥ì¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
490 ¥Õ¥é¥°
491 .B --src
492 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊÌ̾¤Ç¤¢¤ë¡£
493 .TP
494 .BR "-d, --destination " "[!] \fIaddress\fP[/\fImask\fP]"
495 .\"O Destination specification. 
496 .\"O See the description of the
497 .\"O .B -s
498 .\"O (source) flag for a detailed description of the syntax.  The flag
499 .\"O .B --dst
500 .\"O is an alias for this option.
501 Á÷¿®Àè¤Î»ØÄê¡£
502 ½ñ¼°¤Î¾Ü¤·¤¤ÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
503 .B -s
504 (Á÷¿®¸µ) ¥Õ¥é¥°¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
505 ¥Õ¥é¥°
506 .B --dst
507 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊÌ̾¤Ç¤¢¤ë¡£
508 .TP
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
514 .\"O .B EXTENSIONS
515 .\"O below).  If this
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
518 .\"O incremented.
519 ¥ë¡¼¥ë¤Î¥¿¡¼¥²¥Ã¥È¡¢¤Ä¤Þ¤ê¡¢
520 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¤Ë¤É¤¦¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
521 ¥¿¡¼¥²¥Ã¥È¤Ï¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó
522 (¤½¤Î¥ë¡¼¥ë¼«¿È¤¬Æþ¤Ã¤Æ¤¤¤ë¥Á¥§¥¤¥ó°Ê³°) ¤Ç¤â¡¢
523 ¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤ò¨»þ¤Ë·èÄꤹ¤ëÆÃÊ̤ÊÁȤ߹þ¤ßºÑ¤ß¥¿¡¼¥²¥Ã¥È¤Ç¤â¡¢
524 ³ÈÄ¥¤µ¤ì¤¿¥¿¡¼¥²¥Ã¥È (°Ê²¼¤Î
525 .RB ¡Ö ¥¿¡¼¥²¥Ã¥È¤Î³ÈÄ¥ ¡×
526 ¤ò»²¾È) ¤Ç¤â¤è¤¤¡£
527 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥ë¡¼¥ë¤Ë»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
528 ¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Æ¤â¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤Ë²¿¤â±Æ¶Á¤·¤Ê¤¤¤¬¡¢
529 ¥ë¡¼¥ë¤Î¥«¥¦¥ó¥¿¤Ï 1 ¤Ä²Ã»»¤µ¤ì¤ë¡£
530 .TP
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 
534 .\"O .BR INPUT ,
535 .\"O .B FORWARD
536 .\"O and
537 .\"O .B PREROUTING
538 .\"O chains).
539 ¥Ñ¥±¥Ã¥È¤ò¼õ¿®¤¹¤ë¤³¤È¤Ë¤Ê¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾
540 .RB ( INPUT ,
541 .BR FORWARD ,
542 .B PREROUTING
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 Ǥ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
554 .TP
555 .BR "-o, --out-interface " "[!] \fIname\fP"
556 .\"O Name of an interface via which a packet is going to be sent (for packets
557 .\"O entering the
558 .\"O .BR FORWARD ,
559 .\"O .B OUTPUT
560 .\"O and
561 .\"O .B POSTROUTING
562 .\"O chains).
563 ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤³¤È¤Ë¤Ê¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾
564 .RB ( FORWARD ,
565 .BR OUTPUT , 
566 .B POSTROUTING
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 Ǥ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
578 .TP
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 ʬ³ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ñ¥±¥Ã¥È¤À¤±¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
594 .TP
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
598 .\"O .B INSERT,
599 .\"O .B APPEND,
600 .\"O .B REPLACE
601 .\"O operations).
602 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢
603 .RB ( insert ,
604 .BR append ,
605 .B replace
606 Áàºî¤Ë¤ª¤¤¤Æ) ´ÉÍý¼Ô¤Ï¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò
607 ½é´ü²½¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
608 .\"O .SS "OTHER OPTIONS"
609 .SS ¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó
610 .\"O The following additional options can be specified:
611 ¤½¤Î¾¤Ë°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë:
612 .TP
613 .B "-v, --verbose"
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
618 .\"O the
619 .\"O .B -x
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.
623 ¾ÜºÙ¤Ê½ÐÎϤò¹Ô¤¦¡£
624 list ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë¡¢¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¡¦
625 (¤â¤·¤¢¤ì¤Ð) ¥ë¡¼¥ë¤Î¥ª¥×¥·¥ç¥ó¡¦TOS ¥Þ¥¹¥¯¤òɽ¼¨¤µ¤»¤ë¡£
626 ¥Ñ¥±¥Ã¥È¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤âɽ¼¨¤µ¤ì¤ë¡£
627 ź»ú 'K', 'M', 'G' ¤Ï¡¢
628 ¤½¤ì¤¾¤ì 1000, 1,000,000, 1,000,000,000 Çܤòɽ¤¹
629 (¤³¤ì¤òÊѹ¹¤¹¤ë
630 .B -x
631 ¥Õ¥é¥°¤â¸«¤è)¡£
632 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò append, insert, delete, replace ¥³¥Þ¥ó¥É¤ËŬÍѤ¹¤ë¤È¡¢
633 ¥ë¡¼¥ë¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ê¾ðÊó¤òɽ¼¨¤¹¤ë¡£
634 .TP
635 .B "-n, --numeric"
636 .\"O Numeric output.
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 ¥Û¥¹¥È̾¡¦¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¡¦¥µ¡¼¥Ó¥¹Ì¾¤Çɽ¼¨¤·¤è¤¦¤È¤¹¤ë¡£
644 .TP
645 .B "-x, --exact"
646 .\"O Expand numbers.
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 
651 .\"O .B -L
652 .\"O command.
653 ¸·Ì©¤Ê¿ôÃͤÇɽ¼¨¤¹¤ë¡£
654 ¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò¡¢
655 K (1000 ¤Î²¿Çܤ«)¡¦M (1000K ¤Î²¿Çܤ«)¡¦G (1000M ¤Î²¿Çܤ«) ¤Ç¤Ï¤Ê¤¯¡¢
656 ¸·Ì©¤ÊÃͤÇɽ¼¨¤¹¤ë¡£
657 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢
658 .B -L
659 ¥³¥Þ¥ó¥É¤È¤·¤«´Ø·¸¤·¤Ê¤¤¡£
660 .TP
661 .B "--line-numbers"
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 ¹ÔÈÖ¹æ¤ò³Æ¹Ô¤Î»Ï¤á¤ËÉղ乤롣
666 .TP
667 .B "--modprobe=command"
668 .\"O When adding or inserting rules into a chain, use
669 .\"O .B command
670 .\"O to load any necessary modules (targets, match extensions, etc).
671 ¥Á¥§¥¤¥ó¤Ë¥ë¡¼¥ë¤òÄɲäޤ¿¤ÏÁÞÆþ¤¹¤ëºÝ¤Ë¡¢
672 (¥¿¡¼¥²¥Ã¥È¤ä¥Þ¥Ã¥Á¥ó¥°¤Î³ÈÄ¥¤Ê¤É¤Ç) É¬Íפʥ⥸¥å¡¼¥ë¤ò¥í¡¼¥É¤¹¤ë¤¿¤á¤Ë»È¤¦
673 .B command
674 ¤ò»ØÄꤹ¤ë¡£
675 .\"O .SH MATCH EXTENSIONS
676 .SH ¥Þ¥Ã¥Á¥ó¥°¤Î³ÈÄ¥
677 .\"O iptables can use extended packet matching modules.  These are loaded
678 .\"O in two ways: implicitly, when
679 .\"O .B -p
680 .\"O or
681 .\"O .B --protocol
682 .\"O is specified, or with the
683 .\"O .B -m
684 .\"O or
685 .\"O .B --match
686 .\"O options, followed by the matching module name;
687 iptables ¤Ï³ÈÄ¥¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¥Þ¥Ã¥Á¥ó¥°¥â¥¸¥å¡¼¥ë¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
688 ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Ï 2 ¼ïÎà¤ÎÊýË¡¤Ç¥í¡¼¥É¤µ¤ì¤ë:
689 ¥â¥¸¥å¡¼¥ë¤Ï¡¢
690 .B -p
691 ¤Þ¤¿¤Ï
692 .B --protocol
693 ¤Ç°ÅÌۤΤ¦¤Á¤Ë»ØÄꤵ¤ì¤ë¤«¡¢
694 .B -m
695 ¤Þ¤¿¤Ï
696 .B --match
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
702 .\"O .B -h
703 .\"O or
704 .\"O .B --help
705 .\"O options after the module has been specified to receive help specific
706 .\"O to that module.
707 ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Î¸å¤í¤Ë¤Ï¡¢¥â¥¸¥å¡¼¥ë¤Ë±þ¤¸¤Æ
708 ¾¤Î¤¤¤í¤¤¤í¤Ê¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
709 Ê£¿ô¤Î³ÈÄ¥¥Þ¥Ã¥Á¥ó¥°¥â¥¸¥å¡¼¥ë¤ò°ì¹Ô¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
710 ¤Þ¤¿¡¢¥â¥¸¥å¡¼¥ë¤ËÆÃÍ­¤Î¥Ø¥ë¥×¤òɽ¼¨¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢
711 ¥â¥¸¥å¡¼¥ë¤ò»ØÄꤷ¤¿¸å¤Ç
712 .B -h
713 ¤Þ¤¿¤Ï
714 .B --help
715 ¤ò»ØÄꤹ¤ì¤Ð¤è¤¤¡£
716
717 .\"O The following are included in the base package, and most of these can
718 .\"O be preceded by a
719 .\"O .B !
720 .\"O to invert the sense of the match.
721 °Ê²¼¤Î³ÈÄ¥¤¬¥Ù¡¼¥¹¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
722 ÂçÉôʬ¤Î¤â¤Î¤Ï¡¢
723 .B !
724 ¤òÁ°¤Ë¤ª¤¯¤³¤È¤Ë¤è¤Ã¤Æ
725 ¥Þ¥Ã¥Á¥ó¥°¤Î°ÕÌ£¤òµÕ¤Ë¤Ç¤­¤ë¡£
726 .SS ah
727 .\"O This module matches the SPIs in AH header of IPSec packets.
728 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IPSec ¥Ñ¥±¥Ã¥È¤Î AH ¥Ø¥Ã¥À¡¼¤Î SPI Ãͤ˥ޥåÁ¤¹¤ë¡£ 
729 .TP
730 .BR "--ahspi " "[!] \fIspi\fP[:\fIspi\fP]"
731 .SS conntrack
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 ¤Ë¤Î¤ß¡¢¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¸ºß¤¹¤ë)¡£
741 .TP
742 .BI "--ctstate " "state"
743 .\"O Where state is a comma separated list of the connection states to
744 .\"O match. Possible states are
745 .\"O .B INVALID
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,
749 .\"O .B ESTABLISHED
750 .\"O meaning that the packet is associated with a connection which has seen
751 .\"O packets in both directions,
752 state ¤Ï¡¢¥Þ¥Ã¥Á¥ó¥°ÂоݤȤʤ롢¥³¥ó¥Þ¶èÀÚ¤ê¤ÎÀܳ¾õÂ֥ꥹ¥È¤Ç¤¢¤ë¡£
753 »ØÄê²Äǽ¤Ê state ¤Ï°Ê²¼¤ÎÄ̤ꡣ
754 .BR INVALID :
755 ¥á¥â¥ê¤ò»È¤¤²Ì¤¿¤·¤¿°Ù¤ä¡¢
756 ´ûÃΤÎÀܳ¤È¤ÏÂбþ¤·¤Ê¤¤ ICMP ¥¨¥é¡¼¤Ê¤É¡¢
757 ²¿¤é¤«¤ÎÍýͳ¤Ë¤è¤ê¥Ñ¥±¥Ã¥È¤¬¼±Ê̤Ǥ­¤Ê¤¤¡£
758 .BR ESTABLISHED :
759 ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï¡¢²áµîÁÐÊý¸þ¤Ë¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤¿Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
760 .\"O .B NEW
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
763 .\"O directions, and
764 .BR NEW :
765 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤¿¤«¡¢
766 ÁÐÊý¸þ¤Ë¤Ï¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤Æ¤¤¤Ê¤¤Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
767 .\"O .B RELATED
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.
771 .BR RELATED :
772 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤Æ¤¤¤ë¤¬¡¢
773 FTP ¥Ç¡¼¥¿Å¾Á÷¤ä ICMP ¥¨¥é¡¼¤Î¤è¤¦¤Ë¡¢´û¸¤ÎÀܳ¤Ë´Ø·¸¤·¤Æ¤¤¤ë¡£
774 .\"O .B SNAT
775 .\"O A virtual state, matching if the original source address differs from
776 .\"O the reply destination.
777 .BR SNAT :
778 ²¾ÁÛŪ¤Ê¾õÂ֤Ǥ¢¤ê¡¢½ñ¤­´¹¤¨Á°¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤¬±þÅú¤Î°¸À襢¥É¥ì¥¹¤È
779 °Û¤Ê¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
780 .\"O .B DNAT
781 .\"O A virtual state, matching if the original destination differs from the
782 .\"O reply source.
783 .BR DNAT :
784 ²¾ÁÛŪ¤Ê¾õÂ֤Ǥ¢¤ê¡¢½ñ¤­´¹¤¨Á°¤Î°¸À襢¥É¥ì¥¹¤¬±þÅú¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤È
785 °Û¤Ê¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
786 .TP
787 .BI "--ctproto " "proto"
788 .\"O Protocol to match (by number or name)
789 (̾Á°¤Þ¤¿¤Ï¿ôÃͤÇ) »ØÄꤵ¤ì¤¿¥×¥í¥È¥³¥ë¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
790 .TP
791 .BI "--ctorigsrc " "[!] \fIaddress\fP[/\fImask\fP]"
792 .\"O Match against original source address
793 ½ñ¤­´¹¤¨Á°¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
794 .TP
795 .BI "--ctorigdst " "[!] \fIaddress\fP[/\fImask\fP]"
796 .\"O Match against original destination address
797 ½ñ¤­´¹¤¨Á°¤Î°¸À襢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
798 .TP
799 .BI "--ctreplsrc " "[!] \fIaddress\fP[/\fImask\fP]"
800 .\"O Match against reply source address
801 ±þÅú¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
802 .TP
803 .BI "--ctrepldst " "[!] \fIaddress\fB[/\fImask\fP]"
804 .\"O Match against reply destination address
805 ±þÅú¤Î°¸À襢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
806 .TP
807 .BI "--ctstatus " "[\fINONE|EXPECTED|SEEN_REPLY|ASSURED\fP][,...]"
808 .\"O Match against internal conntrack states
809 ÀܳÄÉÀפÎÆâÉôŪ¤Ê¾õÂ֤˥ޥåÁ¤¹¤ë¡£
810 .TP
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 Í­¸ú´ü´Ö¤Î»Ä¤êÉÿô¡¢¤Þ¤¿¤Ï¤½¤ÎÈÏ°Ï(ξü¤ò´Þ¤à)¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
815 .SS dscp
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 ¤Ë¼è¤Ã¤ÆÂå¤ï¤Ã¤¿¡£
821 .TP
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] ¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
826 .TP
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 ¤³¤ì¤é¤Ï¡¢Âбþ¤¹¤ë¿ôÃͤǻØÄꤹ¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
834 .SS esp
835 .\"O This module matches the SPIs in ESP header of IPSec packets.
836 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IPSec ¥Ñ¥±¥Ã¥È¤Î ESP ¥Ø¥Ã¥À¡¼¤Î SPI Ãͤ˥ޥåÁ¤¹¤ë¡£ 
837 .TP
838 .BR "--espspi " "[!] \fIspi\fP[:\fIspi\fP]"
839 .SS helper
840 .\"O This module matches packets related to a specific conntrack-helper.
841 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢»ØÄꤵ¤ì¤¿ÀܳÄÉÀץإë¥Ñ¡¼¥â¥¸¥å¡¼¥ë¤Ë
842 ´ØÏ¢¤¹¤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
843 .TP
844 .BI "--helper " "string"
845 .\"O Matches packets related to the specified conntrack-helper.
846 »ØÄꤵ¤ì¤¿ÀܳÄÉÀץإë¥Ñ¡¼¥â¥¸¥å¡¼¥ë¤Ë
847 ´ØÏ¢¤¹¤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
848 .RS
849 .PP
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" ¤È¤Ê¤ë¡£
856 .PP
857 .\"O Same rules apply for other conntrack-helpers.
858 ¾¤ÎÀܳÄÉÀץإë¥Ñ¡¼¤Ç¤âƱ¤¸¥ë¡¼¥ë¤¬Å¬ÍѤµ¤ì¤ë¡£
859 .RE
860 .SS icmp
861 .\"O This extension is loaded if `--protocol icmp' is specified.  It
862 .\"O provides the following option:
863 ¤³¤Î³ÈÄ¥¤Ï `--protocol icmp' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
864 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
865 .TP
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 ¥¿¥¤¥×¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É
870 .nf
871  iptables -p icmp -h
872 .fi
873 ¤Çɽ¼¨¤µ¤ì¤ë ICMP ¥¿¥¤¥×̾¤ò»ØÄê¤Ç¤­¤ë¡£
874 .SS length
875 .\"O This module matches the length of a packet against a specific value
876 .\"O or range of values.
877 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢»ØÄꤵ¤ì¤¿¥Ñ¥±¥Ã¥ÈĹ¡¢¤Þ¤¿¤Ï¤½¤ÎÈϰϤ˥ޥåÁ¤¹¤ë¡£
878 .TP
879 .BR "--length " "\fIlength\fP[:\fIlength\fP]"
880 .SS limit
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
886 .\"O .B LOG
887 .\"O target to give limited logging, for example.
888 ¤³¤Î³ÈÄ¥¤ò»È¤Ã¤¿¥ë¡¼¥ë¤Ï¡¢(`!' ¥Õ¥é¥°¤¬»ØÄꤵ¤ì¤Ê¤¤¸Â¤ê)
889 À©¸Â¤Ë㤹¤ë¤Þ¤Ç¥Þ¥Ã¥Á¤¹¤ë¡£
890 ¤³¤Î¥â¥¸¥å¡¼¥ë¤ÏÎ㤨¤Ð¡¢¥í¥°µ­Ï¿¤òÀ©¸Â¤¹¤ë¤¿¤á¤Ë
891 .B LOG
892 ¥¿¡¼¥²¥Ã¥È¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
893 .TP
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
897 .\"O 3/hour.
898 ñ°Ì»þ´Ö¤¢¤¿¤ê¤ÎÊ¿¶Ñ¥Þ¥Ã¥Á²ó¿ô¤ÎºÇÂçÃÍ¡£
899 ¿ôÃͤǻØÄꤵ¤ì¡¢Åº»ú `/second', `/minute',
900 `/hour', `/day' ¤òÉÕ¤±¤ë¤³¤È¤â¤Ç¤­¤ë¡£
901 ¥Ç¥Õ¥©¥ë¥È¤Ï 3/hour ¤Ç¤¢¤ë¡£
902 .TP
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 ¤Ç¤¢¤ë¡£
912 .SS mac
913 .TP
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 ,
919 .\"O .B FORWARD
920 .\"O or
921 .\"O .B INPUT
922 .\"O chains.
923 Á÷¿®¸µ MAC ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
924 .I address
925 ¤Ï XX:XX:XX:XX:XX:XX ¤È¤¤¤¦·Á¼°¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
926 ¥¤¡¼¥µ¡¼¥Í¥Ã¥È¥Ç¥Ð¥¤¥¹¤«¤éÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤Ç¡¢
927 .BR PREROUTING ,
928 .BR FORWARD ,
929 .B INPUT
930 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Ë¤·¤«°ÕÌ£¤¬¤Ê¤¤¡£
931 .SS mark
932 .\"O This module matches the netfilter mark field associated with a packet
933 .\"O (which can be set using the
934 .\"O .B MARK
935 .\"O target below).
936 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¥Ñ¥±¥Ã¥È¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿
937 netfilter ¤Î mark ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë
938 (¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢°Ê²¼¤Î
939 .B MARK
940 ¥¿¡¼¥²¥Ã¥È¤ÇÀßÄꤵ¤ì¤ë)¡£
941 .TP
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
945 .\"O comparison).
946 »ØÄꤵ¤ì¤¿Éä¹æ¤Ê¤· mark ÃͤΥѥ±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë
947 (mask ¤¬»ØÄꤵ¤ì¤ë¤È¡¢Èæ³Ó¤ÎÁ°¤Ë mask ¤È¤ÎÏÀÍýÀÑ (AND) ¤¬¤È¤é¤ì¤ë)¡£
948 .SS multiport
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
951 .\"O .B "-p tcp"
952 .\"O or
953 .\"O .BR "-p udp" .
954 ¤³¤Î¥â¥¸¥å¡¼¥ë¤ÏÁ÷¿®¸µ¤äÁ÷¿®Àè¤Î¥Ý¡¼¥È¤Î½¸¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
955 ¥Ý¡¼¥È¤Ï 15 ¸Ä¤Þ¤Ç»ØÄê¤Ç¤­¤ë¡£
956 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï
957 .B "-p tcp"
958 ¤Þ¤¿¤Ï
959 .B "-p udp"
960 ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤·¤«¤Ç¤­¤Ê¤¤¡£
961 .TP
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
964 .\"O .B --sports
965 .\"O is a convenient alias for this option.
966 Á÷¿®¸µ¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
967 ¥Õ¥é¥°
968 .B --sports
969 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
970 .TP
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
973 .\"O .B --dports
974 .\"O is a convenient alias for this option.
975 °¸Àè¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
976 ¥Õ¥é¥°
977 .B --dports
978 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
979 .TP
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 ¤«¤Ä¤½¤Î¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
985 .SS owner
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
988 .\"O .B OUTPUT
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 ¥Ñ¥±¥Ã¥ÈÀ¸À®¼Ô¤Î¤¤¤í¤¤¤í¤ÊÆÃÀ­¤ËÂФ·¤Æ¥Þ¥Ã¥Á¤ò¹Ô¤¦¡£
993 ¤³¤ì¤Ï
994 .B OUTPUT
995 ¥Á¥§¥¤¥ó¤Î¤ß¤Ç¤·¤«Í­¸ú¤Ç¤Ê¤¤¡£
996 ¤Þ¤¿¡¢(ICMP ping ±þÅú¤Î¤è¤¦¤Ê) ¥Ñ¥±¥Ã¥È¤Ï¡¢
997 ½êÍ­¼Ô¤¬¤¤¤Ê¤¤¤Î¤ÇÀäÂФ˥ޥåÁ¤·¤Ê¤¤¡£
998 .TP
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 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1004 .TP
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 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1010 .TP
1011 .BI "--pid-owner " "processid"
1012 .\"O Matches if the packet was created by a process with the given
1013 .\"O process id.
1014 »ØÄꤵ¤ì¤¿¥×¥í¥»¥¹ ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
1015 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1016 .TP
1017 .BI "--sid-owner " "sessionid"
1018 .\"O Matches if the packet was created by a process in the given session
1019 .\"O group.
1020 »ØÄꤵ¤ì¤¿¥»¥Ã¥·¥ç¥ó¥°¥ë¡¼¥×¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
1021 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1022 .TP
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 ¤Ë¤Î¤ß¡¢¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¸ºß¤¹¤ë)¡£
1031 .SS physdev
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 °Ê¹ß¤Ç¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1041 .TP
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
1045 .\"O .BR INPUT ,
1046 .\"O .B FORWARD
1047 .\"O and
1048 .\"O .B PREROUTING
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 ¥Ñ¥±¥Ã¥È¤¬¼õ¿®¤µ¤ì¤ë¥Ö¥ê¥Ã¥¸¤Î¥Ý¡¼¥È̾
1053 .RB ( INPUT ,
1054 .BR FORWARD ,
1055 .B PREROUTING
1056 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Î¤ß)¡£
1057 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
1058 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1059 ¥Ö¥ê¥Ã¥¸¥Ç¥Ð¥¤¥¹¤òÄ̤·¤Æ¼õ¤±¼è¤é¤ì¤Ê¤«¤Ã¤¿¥Ñ¥±¥Ã¥È¤Ï¡¢
1060 \&'!' ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¡£
1061 .\"O sato: ºÇ¸å¤Î°ìʸ¤Ï°ÕÌõ¤®¤ß¤«¤â
1062 .TP
1063 .B --physdev-out name
1064 .\"O Name of a bridge port via which a packet is going to be sent (for packets
1065 .\"O entering the
1066 .\"O .BR FORWARD ,
1067 .\"O .B OUTPUT
1068 .\"O and
1069 .\"O .B POSTROUTING
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
1073 .\"O .B OUTPUT
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
1078 .\"O '!' is used.
1079 ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤³¤È¤Ë¤Ê¤ë¥Ö¥ê¥Ã¥¸¤Î¥Ý¡¼¥È̾
1080 .RB ( FORWARD ,
1081 .BR OUTPUT , 
1082 .B POSTROUTING
1083 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Î¤ß)¡£ 
1084 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
1085 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1086 .B nat
1087 ¤È
1088 .B mangle
1089 ¥Æ¡¼¥Ö¥ë¤Î
1090 .B OUTPUT
1091 ¥Á¥§¥¤¥ó¤Ç¤Ï¥Ö¥ê¥Ã¥¸¤Î½ÐÎϥݡ¼¥È¤Ë¥Þ¥Ã¥Á¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤¬¡¢
1092 .B filter
1093 ¥Æ¡¼¥Ö¥ë¤Î
1094 .B OUPUT
1095 ¥Á¥§¥¤¥ó¤Ç¤Ï¥Þ¥Ã¥Á²Äǽ¤Ç¤¢¤ë¡£
1096 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¥Ç¥Ð¥¤¥¹¤«¤éÁ÷¤é¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¡¢
1097 ¤Þ¤¿¤Ï¥Ñ¥±¥Ã¥È¤Î½ÐÎϥǥХ¤¥¹¤¬ÉÔÌÀ¤Ç¤¢¤Ã¤¿¾ì¹ç¤Ï¡¢
1098 \&'!' ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢¥Ñ¥±¥Ã¥È¤Ï¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¡£
1099 .TP
1100 .B --physdev-is-in
1101 .\"O Matches if the packet has entered through a bridge interface.
1102 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ËÆþ¤Ã¤¿¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1103 .TP
1104 .B --physdev-is-out
1105 .\"O Matches if the packet will leave through a bridge interface.
1106 ¥Ñ¥±¥Ã¥È¤¬¥Ö¥ê¥Ã¥¸¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤«¤é½Ð¤è¤¦¤È¤·¤¿¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1107 .TP
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 ¥Á¥§¥¤¥ó¤Ë¤ª¤¤¤Æ¤Î¤ßÌòΩ¤Ä¡£
1114 .SS pkttype
1115 .\"O This module matches the link-layer packet type.
1116 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥ê¥ó¥¯ÁؤΥѥ±¥Ã¥È¥¿¥¤¥×¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1117 .TP
1118 .BI "--pkt-type " "[\fIunicast\fP|\fIbroadcast\fP|\fImulticast\fP]"
1119 .SS state
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 ¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤ÎÀܳÄÉÀ×¾õÂÖ¤òÃΤ뤳¤È¤¬¤Ç¤­¤ë¡£
1124 .TP
1125 .BI "--state " "state"
1126 .\"O Where state is a comma separated list of the connection states to
1127 .\"O match.  Possible states are 
1128 .\"O .B INVALID
1129 .\"O meaning that the packet is associated with no known connection,
1130 .\"O .B ESTABLISHED
1131 .\"O meaning that the packet is associated with a connection which has seen
1132 .\"O packets in both directions,
1133 state ¤Ï¡¢¥Þ¥Ã¥Á¥ó¥°¤ò¹Ô¤¦¤¿¤á¤Î¡¢¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿Àܳ¾õÂ֤Υꥹ¥È¤Ç¤¢¤ë¡£
1134 »ØÄê²Äǽ¤Ê state ¤Ï°Ê²¼¤ÎÄ̤ꡣ
1135 .BR INVALID :
1136 ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï´ûÃΤÎÀܳ¤È´Ø·¸¤·¤Æ¤¤¤Ê¤¤¡£
1137 .BR ESTABLISHED :
1138 ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï¡¢²áµîÁÐÊý¸þ¤Ë¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤¿Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
1139 .\"O .B NEW
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
1143 .BR NEW :
1144 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤¿¤«¡¢
1145 ÁÐÊý¸þ¤Ë¤Ï¥Ñ¥±¥Ã¥È¤¬¤ä¤ê¼è¤ê¤µ¤ì¤Æ¤¤¤Ê¤¤Àܳ¤Ë°¤¹¤ë¥Ñ¥±¥Ã¥È¤Ç¤¢¤ë¡£
1146 .\"O .B RELATED
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.
1150 .BR RELATED :
1151 ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤Æ¤¤¤ë¤¬¡¢
1152 FTP ¥Ç¡¼¥¿Å¾Á÷¤ä ICMP ¥¨¥é¡¼¤Î¤è¤¦¤Ë¡¢´û¸¤ÎÀܳ¤Ë´Ø·¸¤·¤Æ¤¤¤ë¡£
1153 .SS tcp
1154 .\"O These extensions are loaded if `--protocol tcp' is specified. It
1155 .\"O provides the following options:
1156 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol tcp' ¤¬»ØÄꤵ¤ì¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
1157 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
1158 .TP
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 ¥µ¡¼¥Ó¥¹Ì¾¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄê¤Ç¤­¤ë¡£
1166 .IR port : port
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.
1171 .\"O The flag
1172 .\"O .B --sport
1173 .\"O is a convenient alias for this option.
1174 ºÇ½é¤Î¥Ý¡¼¥È¤ò¾Êά¤·¤¿¾ì¹ç¡¢"0" ¤ò²¾Äꤹ¤ë¡£
1175 ºÇ¸å¤Î¥Ý¡¼¥È¤ò¾Êά¤·¤¿¾ì¹ç¡¢"65535" ¤ò²¾Äꤹ¤ë¡£
1176 ºÇ½é¤Î¥Ý¡¼¥È¤¬ºÇ¸å¤Î¥Ý¡¼¥È¤è¤êÂ礭¤¤¾ì¹ç¡¢2 ¤Ä¤ÏÆþ¤ì´¹¤¨¤é¤ì¤ë¡£
1177 .\"tsekine ¸¶Ê¸¤¬´Ö°ã¤Ã¤Æ¤½¤¦
1178 ¥Õ¥é¥°
1179 .B --sport
1180 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
1181 .TP
1182 .BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
1183 .\"O Destination port or port range specification.  The flag
1184 .\"O .B --dport
1185 .\"O is a convenient alias for this option.
1186 Á÷¿®Àè¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1187 ¥Õ¥é¥°
1188 .B --dport
1189 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
1190 .TP
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 ¥³¥ó¥Þ¶èÀÚ¤ê¤Î¥ê¥¹¥È¤Ç¤¢¤ë¡£
1201 »ØÄê¤Ç¤­¤ë¥Õ¥é¥°¤Ï
1202 .B "SYN ACK FIN RST URG PSH ALL NONE"
1203 ¤Ç¤¢¤ë¡£
1204 .\"O Hence the command
1205 .\"O .nf
1206 .\"O  iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
1207 .\"O .fi
1208 .\"O will only match packets with the SYN flag set, and the ACK, FIN and
1209 .\"O RST flags unset.
1210 ¤è¤Ã¤Æ¡¢¥³¥Þ¥ó¥É
1211 .nf
1212  iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
1213 .fi
1214 ¤Ï¡¢SYN ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì ACK, FIN, RST ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤
1215 ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
1216 .TP
1217 .B "[!] --syn"
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
1222 .\"O unaffected.
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 ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
1235 .TP
1236 .BR "--tcp-option " "[!] \fInumber\fP"
1237 .\"O Match if TCP option set.
1238 TCP ¥ª¥×¥·¥ç¥ó¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1239 .TP
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 ¤ÏÀܳ¤ËÂФ¹¤ë¥Ñ¥±¥Ã¥È¤ÎºÇÂ祵¥¤¥º¤òÀ©¸æ¤¹¤ë¡£
1246 .SS tos
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 ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1251 .TP
1252 .BI "--tos " "tos"
1253 .\"O The argument is either a standard name, (use
1254 .\"O .br
1255 .\"O  iptables -m tos -h
1256 .\"O .br
1257 .\"O to see the list), or a numeric value to match.
1258 °ú¤­¿ô¤Ï¡¢¥Þ¥Ã¥Á¤ò¹Ô¤¦É¸½àŪ¤Ê̾Á°¤Ç¤â¿ôÃͤǤâ¤è¤¤
1259 (̾Á°¤Î¥ê¥¹¥È¤ò¸«¤ë¤Ë¤Ï
1260 .nf
1261  iptables -m tos -h
1262 .fi
1263 ¤ò»È¤¦¤³¤È)¡£
1264 .SS ttl
1265 .\"O This module matches the time to live field in the IP header.
1266 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IP ¥Ø¥Ã¥À¡¼¤Î time to live ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
1267 .TP
1268 .BI "--ttl " "ttl"
1269 .\"O Matches the given TTL value.
1270 »ØÄꤵ¤ì¤¿ TTL Ãͤ˥ޥåÁ¤¹¤ë¡£
1271 .SS udp
1272 .\"O These extensions are loaded if `--protocol udp' is specified.  It
1273 .\"O provides the following options:
1274 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol udp' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
1275 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
1276 .TP
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 Á÷¿®¸µ¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1283 ¾ÜºÙ¤Ï TCP ³ÈÄ¥¤Î
1284 .B --source-port
1285 ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
1286 .TP
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 Á÷¿®Àè¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
1293 ¾ÜºÙ¤Ï TCP ³ÈÄ¥¤Î
1294 .B --destination-port
1295 ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
1296 .SS unclean
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 °Ê²¼¤Î¤â¤Î¤¬¡¢É¸½àŪ¤Ê¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
1308 .SS DNAT
1309 .\"O This target is only valid in the
1310 .\"O .B nat
1311 .\"O table, in the
1312 .\"O .B PREROUTING
1313 .\"O and
1314 .\"O .B OUTPUT
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:
1320 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï
1321 .B nat
1322 ¥Æ¡¼¥Ö¥ë¤Î
1323 .BR PREROUTING ,
1324 .B OUTPUT
1325 ¥Á¥§¥¤¥ó¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1326 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1327 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®À襢¥É¥ì¥¹¤ò½¤Àµ¤¹¤ë
1328 (¤³¤ÎÀܳ¤Î°Ê¹ß¤Î¥Ñ¥±¥Ã¥È¤â½¤Àµ¤·¤Æʬ¤«¤é¤Ê¤¯ (mangle) ¤¹¤ë)¡£
1329 ¤µ¤é¤Ë¡¢¥ë¡¼¥ë¤Ë¤è¤ë¥Á¥§¥Ã¥¯¤ò»ß¤á¤µ¤»¤ë¡£
1330 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¼ïÎढ¤ë:
1331 .TP
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
1336 .\"O .B "-p tcp"
1337 .\"O or
1338 .\"O .BR "-p udp" ).
1339 .\"O If no port range is specified, then the destination port will never be
1340 .\"O modified.
1341 1 ¤Ä¤Î¿·¤·¤¤Á÷¿®Àè IP ¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤ÎÈϰϤ¬»ØÄê¤Ç¤­¤ë¡£
1342 ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë
1343 (¤³¤ì¤Ï¥ë¡¼¥ë¤Ç
1344 .B "-p tcp"
1345 ¤Þ¤¿¤Ï
1346 .B "-p udp"
1347 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú)¡£
1348 ¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Á÷¿®Àè¥Ý¡¼¥È¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1349 .RS
1350 .PP
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 (½ç¡¹¤Ë½Û´Ä¤µ¤»¤ë) ¤¬¤ª¤³¤Ê¤ï¤ì¤ë¡£
1361 .RE
1362 .SS DSCP
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 ¥Æ¡¼¥Ö¥ë¤Ç¤Î¤ß»ÈÍѤǤ­¤ë¡£
1369 .TP
1370 .BI "--set-dscp " "value"
1371 .\"O Set the DSCP field to a numerical value (can be decimal or hex)
1372 DSCP ¥Õ¥£¡¼¥ë¥É¤Î¿ôÃͤòÀßÄꤹ¤ë (10 ¿Ê¤Þ¤¿¤Ï 16 ¿Ê)¡£
1373 .TP
1374 .BI "--set-dscp-class " "class"
1375 .\"O Set the DSCP field to a DiffServ class.
1376 DSCP ¥Õ¥£¡¼¥ë¥É¤Î DiffServ ¥¯¥é¥¹¤òÀßÄꤹ¤ë¡£
1377 .SS ECN
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 ¥Æ¡¼¥Ö¥ë¤Ç¤Î¤ß»ÈÍѤǤ­¤ë¡£
1382 .TP
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
1386 .\"O .BR "-p tcp" .
1387 TCP ¥Ø¥Ã¥À¡¼¤«¤éÁ´¤Æ¤Î ECN ¥Ó¥Ã¥È (ÌõÃí: ECE/CWR ¥Õ¥é¥°) ¤ò¼è¤ê½ü¤¯¡£
1388 ÅöÁ³¡¢
1389 .B "-p tcp"
1390 ¥ª¥×¥·¥ç¥ó¤È¤ÎÁȹç¤ï¤»¤Ç¤Î¤ß»ÈÍѤǤ­¤ë¡£
1391 .SS LOG
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
1396 .\"O .I dmesg
1397 .\"O or 
1398 .\"O .IR syslogd (8)).
1399 ¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ò¥«¡¼¥Í¥ë¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1400 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥ë¡¼¥ë¤ËÂФ·¤ÆÀßÄꤵ¤ì¤ë¤È¡¢
1401 Linux ¥«¡¼¥Í¥ë¤Ï¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤Î
1402 (ÂçÉôʬ¤Î IP ¥Ø¥Ã¥À¡¼¥Õ¥£¡¼¥ë¥É¤Î¤è¤¦¤Ê) ²¿¤é¤«¤Î¾ðÊó¤ò
1403 ¥«¡¼¥Í¥ë¥í¥°¤Ëɽ¼¨¤¹¤ë
1404 (¥«¡¼¥Í¥ë¥í¥°¤Ï
1405 .I dmesg
1406 ¤Þ¤¿¤Ï
1407 .IR syslogd (8)
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) ¥¿¡¼¥²¥Ã¥È¤ò»ØÄꤹ¤ë¡£
1419 .TP
1420 .BI "--log-level " "level"
1421 .\"O Level of logging (numeric or see \fIsyslog.conf\fP(5)).
1422 ¥í¥°µ­Ï¿¤Î¥ì¥Ù¥ë (¿ôÃͤƻØÄꤹ¤ë¤«¡¢
1423 (ÌõÃð: Ì¾Á°¤Ç»ØÄꤹ¤ë¾ì¹ç¤Ï) \fIsyslog.conf\fP(5) ¤ò»²¾È¤¹¤ë¤³¤È)¡£
1424 .TP
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 ¥í¥°¤ÎÃæ¤Ç¥á¥Ã¥»¡¼¥¸¤ò¶èÊ̤¹¤ë¤Î¤ËÌòΩ¤Ä¡£
1431 .TP
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 ¥í¥°¤¬¥æ¡¼¥¶¡¼¤«¤éÆɤá¤ë¾ì¹ç¡¢¥»¥­¥å¥ê¥Æ¥£¾å¤Î´í¸±¤¬¤¢¤ë¡£
1437 .TP
1438 .B --log-tcp-options
1439 .\"O Log options from the TCP packet header.
1440 TCP ¥Ñ¥±¥Ã¥È¥Ø¥Ã¥À¡¼¤Î¥ª¥×¥·¥ç¥ó¤ò¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1441 .TP
1442 .B --log-ip-options
1443 .\"O Log options from the IP packet header.
1444 IP ¥Ñ¥±¥Ã¥È¥Ø¥Ã¥À¡¼¤Î¥ª¥×¥·¥ç¥ó¤ò¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1445 .SS MARK
1446 .\"O This is used to set the netfilter mark value associated with the
1447 .\"O packet.  It is only valid in the
1448 .\"O .B mangle
1449 .\"O table.  It can for example be used in conjunction with iproute2.
1450 ¥Ñ¥±¥Ã¥È¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿ netfilter ¤Î mark ÃͤòÀßÄꤹ¤ë¡£
1451 .B mangle
1452 ¥Æ¡¼¥Ö¥ë¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1453 Î㤨¤Ð¡¢iproute2 ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
1454 .TP
1455 .BI "--set-mark " "mark"
1456 .SS MASQUERADE
1457 .\"O This target is only valid in the
1458 .\"O .B nat
1459 .\"O table, in the
1460 .\"O .B POSTROUTING
1461 .\"O chain.
1462 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï
1463 .B nat
1464 ¥Æ¡¼¥Ö¥ë¤Î
1465 .B POSTROUTING
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
1469 .\"O target.
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
1475 .\"O .I forgotten
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 (¤½¤Î¤¿¤á¡¢Á°²ó³ÎΩ¤µ¤ì¤¿Àܳ¤Ï¼º¤ï¤ì¤ë) ¾ì¹ç¡¢
1485 ¤³¤ÎÆ°ºî¤ÏÀµ¤·¤¤¡£
1486 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë¡£
1487 .TP
1488 .BR "--to-ports " "\fIport\fP[-\fIport\fP]"
1489 .\"O This specifies a range of source ports to use, overriding the default
1490 .\"O .B SNAT
1491 .\"O source port-selection heuristics (see above).  This is only valid
1492 .\"O if the rule also specifies
1493 .\"O .B "-p tcp"
1494 .\"O or
1495 .\"O .BR "-p udp" .
1496 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢»ÈÍѤ¹¤ëÁ÷¿®¸µ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤷ¡¢
1497 ¥Ç¥Õ¥©¥ë¥È¤Î
1498 .B SNAT
1499 Á÷¿®¸µ¥Ý¡¼¥È¤ÎÁªÂòÊýË¡ (¾åµ­) ¤è¤ê¤âÍ¥À褵¤ì¤ë¡£
1500 ¥ë¡¼¥ë¤¬
1501 .B "-p tcp"
1502 ¤Þ¤¿¤Ï
1503 .B "-p udp"
1504 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1505 .SS MIRROR
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
1512 .\"O .BR INPUT ,
1513 .\"O .B FORWARD
1514 .\"O and
1515 .\"O .B PREROUTING
1516 .\"O chains, and user-defined chains which are only called from those
1517 .\"O chains.
1518 ¤³¤ì¤Ï
1519 .BR INPUT ,
1520 .BR FORWARD ,
1521 .B PREROUTING
1522 ¥Á¥§¥¤¥ó¤È¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1523 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤À¤±¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1524 .\"O Note that the outgoing packets are
1525 .\"O .B NOT
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¡£
1531 .SS REDIRECT
1532 .\"O This target is only valid in the
1533 .\"O .B nat
1534 .\"O table, in the
1535 .\"O .B PREROUTING
1536 .\"O and
1537 .\"O .B OUTPUT
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:
1542 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¡¢
1543 .B nat
1544 ¥Æ¡¼¥Ö¥ëÆâ¤Î
1545 .B PREROUTING 
1546 ¥Á¥§¥¤¥óµÚ¤Ó
1547 .B OUTPUT 
1548 ¥Á¥§¥¤¥ó¡¢¤½¤·¤Æ¤³¤ì¤é¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1549 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Ç¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1550 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®Àè IP ¥¢¥É¥ì¥¹¤ò
1551 ¥Þ¥·¥ó¼«¿È¤Î IP ¥¢¥É¥ì¥¹¤ËÊÑ´¹¤¹¤ë¡£
1552 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Ï¡¢¥¢¥É¥ì¥¹ 127.0.0.1 ¤Ë¥Þ¥Ã¥×¤µ¤ì¤ë)¡£
1553 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë:
1554 .TP
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
1559 .\"O .B "-p tcp"
1560 .\"O or
1561 .\"O .BR "-p udp" .
1562 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï»ÈÍѤµ¤ì¤ëÁ÷¿®Àè¥Ý¡¼¥È¡¦¥Ý¡¼¥ÈÈÏ°Ï¡¦Ê£¿ô¥Ý¡¼¥È¤ò»ØÄꤹ¤ë¡£
1563 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢Á÷¿®Àè¥Ý¡¼¥È¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1564 ¥ë¡¼¥ë¤¬
1565 .B "-p tcp"
1566 ¤Þ¤¿¤Ï
1567 .B "-p udp"
1568 ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1569 .SS REJECT
1570 .\"O This is used to send back an error packet in response to the matched
1571 .\"O packet: otherwise it is equivalent to
1572 .\"O .B DROP
1573 .\"O so it is a terminating TARGET, ending rule traversal.
1574 ¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤Î±þÅú¤È¤·¤Æ¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
1575 ¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤òÁ÷¤é¤Ê¤±¤ì¤Ð¡¢
1576 .B DROP
1577 ¤ÈƱ¤¸¤Ç¤¢¤ê¡¢TARGET ¤ò½ªÎ»¤·¡¢¥ë¡¼¥ë¤Î¸¡Æ¤¤ò½ªÎ»¤¹¤ë¡£
1578 .\"O This target is only valid in the
1579 .\"O .BR INPUT ,
1580 .\"O .B FORWARD
1581 .\"O and
1582 .\"O .B OUTPUT
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
1585 .\"O returned:
1586 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¡¢
1587 .BR INPUT ,
1588 .BR FORWARD ,
1589 .B OUTPUT
1590 ¥Á¥§¥¤¥ó¤È¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ð¤ì¤ë
1591 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤À¤±¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1592 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢ÊÖ¤µ¤ì¤ë¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤ÎÆÃÀ­¤òÀ©¸æ¤¹¤ë¡£
1593 .TP
1594 .BI "--reject-with " "type"
1595 .\"O The type given can be
1596 .\"O .nf
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 (*)"
1604 .\"O .fi
1605 .\"O which return the appropriate ICMP error message (\fBport-unreachable\fP is
1606 .\"O the default).
1607 type ¤È¤·¤Æ»ØÄê²Äǽ¤Ê¤â¤Î¤Ï
1608 .nf
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 (*)"
1616 .fi
1617 ¤Ç¤¢¤ê¡¢Å¬ÀڤʠICMP ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òÊÖ¤¹
1618 .RB ( port-unreachable
1619 ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë)¡£
1620 .\"O The option
1621 .\"O .B tcp-reset
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 
1624 .\"O .I ident
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 ¥×¥í¥È¥³¥ë¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤ËÂФ·¤Æ¡¢¥ª¥×¥·¥ç¥ó
1628 .B tcp-reset
1629 ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
1630 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢TCP RST ¥Ñ¥±¥Ã¥È¤¬Á÷¤êÊÖ¤µ¤ì¤ë¡£
1631 ¼ç¤È¤·¤Æ
1632 .I ident
1633 (113/tcp) ¤Ë¤è¤ëõºº¤òÁ˻ߤ¹¤ë¤Î¤ËÌòΩ¤Ä¡£
1634 .I ident
1635 ¤Ë¤è¤ëõºº¤Ï¡¢²õ¤ì¤Æ¤¤¤ë (¥á¡¼¥ë¤ò¼õ¤±¼è¤é¤Ê¤¤) ¥á¡¼¥ë¥Û¥¹¥È¤Ë
1636 ¥á¡¼¥ë¤¬Á÷¤é¤ì¤ë¾ì¹ç¤ËÉÑÈˤ˵¯¤³¤ë¡£
1637 .\"O .TP
1638 .\"O (*) Using icmp-admin-prohibited with kernels that do not support it will result in a plain DROP instead of REJECT
1639 .RS
1640 .PP
1641 (*) icmp-admin-prohibited ¤ò¥µ¥Ý¡¼¥È¤·¤Ê¤¤¥«¡¼¥Í¥ë¤Ç¡¢
1642 icmp-admin-prohibited ¤ò»ÈÍѤ¹¤ë¤È¡¢
1643 REJECT ¤Ç¤Ï¤Ê¤¯Ã±¤Ê¤ë DROP ¤Ë¤Ê¤ë¡£
1644 .SS SNAT
1645 .\"O This target is only valid in the
1646 .\"O .B nat
1647 .\"O table, in the
1648 .\"O .B POSTROUTING
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
1652 .\"O of option:
1653 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï
1654 .B nat
1655 ¥Æ¡¼¥Ö¥ë¤Î
1656 .B POSTROUTING
1657 ¥Á¥§¥¤¥ó¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1658 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤ò½¤Àµ¤µ¤»¤ë
1659 (¤³¤ÎÀܳ¤Î°Ê¹ß¤Î¥Ñ¥±¥Ã¥È¤â½¤Àµ¤·¤Æʬ¤«¤é¤Ê¤¯ (mangle) ¤¹¤ë)¡£
1660 ¤µ¤é¤Ë¡¢¥ë¡¼¥ë¤¬É¾²Á¤òÃæ»ß¤¹¤ë¤è¤¦¤Ë»Ø¼¨¤¹¤ë¡£
1661 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¼ïÎढ¤ë:
1662 .TP
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
1667 .\"O .B "-p tcp"
1668 .\"O or
1669 .\"O .BR "-p udp" ).
1670 1 ¤Ä¤Î¿·¤·¤¤Á÷¿®¸µ IP ¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤ÎÈϰϤ¬»ØÄê¤Ç¤­¤ë¡£
1671 ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë
1672 (¥ë¡¼¥ë¤¬
1673 .B "-p tcp"
1674 ¤Þ¤¿¤Ï
1675 .B "-p udp"
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 ²Äǽ¤Ç¤¢¤ì¤Ð¡¢¥Ý¡¼¥È¤ÎÊÑ´¹¤Ïµ¯¤³¤é¤Ê¤¤¡£
1686 .RS
1687 .PP
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 (½ç¡¹¤Ë½Û´Ä¤µ¤»¤ë) ¤¬¤ª¤³¤Ê¤ï¤ì¤ë¡£
1698 .SS TCPMSS
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
1703 .\"O .BR "-p tcp" .
1704 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤òÍѤ¤¤ë¤È¡¢TCP ¤Î SYN ¥Ñ¥±¥Ã¥È¤Î MSS Ãͤò½ñ¤­´¹¤¨¡¢
1705 ¤½¤Î¥³¥Í¥¯¥·¥ç¥ó¤ÎºÇÂ祵¥¤¥º
1706 (Ä̾ï¤Ï¡¢Á÷¿®¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î MTU ¤«¤é 40 °ú¤¤¤¿ÃÍ)
1707 ¤òÀ©¸æ¤Ç¤­¤ë¡£
1708 ¤â¤Á¤í¤ó
1709 .B "-p tcp"
1710 ¤ÈÁȤ߹ç¤ï¤»¤Æ¤·¤«»È¤¨¤Ê¤¤¡£
1711 .\"O .br
1712 .PP
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
1717 .\"O packets:
1718 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤ÏÈȺáŪ¤ËƬ¤Î¤¤¤«¤ì¤¿ ISP ¤ä
1719 ICMP Fragmentation Needed ¥Ñ¥±¥Ã¥È¤ò¥Ö¥í¥Ã¥¯¤·¤Æ¤·¤Þ¤¦¥µ¡¼¥Ð¡¼¤ò
1720 ¾è¤ê±Û¤¨¤ë¤¿¤á¤Ë»ÈÍѤ¹¤ë¡£
1721 Linux ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë/¥ë¡¼¥¿¡¼¤Ç¤Ï²¿¤âÌäÂ꤬¤Ê¤¤¤Î¤Ë¡¢
1722 ¤½¤³¤Ë¤Ö¤é²¼¤¬¤ë¥Þ¥·¥ó¤Ç¤Ï°Ê²¼¤Î¤è¤¦¤ËÂ礭¤Ê¥Ñ¥±¥Ã¥È¤ò
1723 ¤ä¤ê¤È¤ê¤Ç¤­¤Ê¤¤¤È¤¤¤¦¤Î¤¬¡¢¤³¤ÎÌäÂê¤ÎÃû¸õ¤Ç¤¢¤ë¡£
1724 .PD 0
1725 .RS 0.1i
1726 .TP 0.3i
1727 1)
1728 .\"O Web browsers connect, then hang with no data received.
1729 ¥¦¥§¥Ö¡¦¥Ö¥é¥¦¥¶¤ÇÀܳ¤¬¡¢²¿¤Î¥Ç¡¼¥¿¤â¼õ¤±¼è¤é¤º¤Ë¥Ï¥ó¥°¤¹¤ë
1730 .TP
1731 2)
1732 .\"O Small mail works fine, but large emails hang.
1733 û¤¤¥á¡¼¥ë¤ÏÌäÂê¤Ê¤¤¤¬¡¢Ä¹¤¤¥á¡¼¥ë¤¬¥Ï¥ó¥°¤¹¤ë
1734 .TP
1735 3)
1736 .\"O ssh works fine, but scp hangs after initial handshaking.
1737 ssh ¤ÏÌäÂê¤Ê¤¤¤¬¡¢scp ¤ÏºÇ½é¤Î¥Ï¥ó¥É¥·¥§¡¼¥¯¸å¤Ë¥Ï¥ó¥°¤¹¤ë
1738 .RE
1739 .PD
1740 .\"O Workaround: activate this option and add a rule to your firewall
1741 .\"O configuration like:
1742 ²óÈòÊýË¡: ¤³¤Î¥ª¥×¥·¥ç¥ó¤òÍ­¸ú¤Ë¤·¡¢°Ê²¼¤Î¤è¤¦¤Ê¥ë¡¼¥ë¤ò
1743 ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÎÀßÄê¤ËÄɲ乤롣
1744 .nf
1745  iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN \\
1746              -j TCPMSS --clamp-mss-to-pmtu
1747 .fi
1748 .TP
1749 .BI "--set-mss " "value"
1750 .\"O Explicitly set MSS option to specified value.
1751 MSS ¥ª¥×¥·¥ç¥ó¤ÎÃͤò»ØÄꤷ¤¿ÃͤËÀßÄꤹ¤ë¡£
1752 .TP
1753 .B "--clamp-mss-to-pmtu"
1754 .\"O Automatically clamp MSS value to (path_MTU - 40).
1755 ¼«Æ°Åª¤Ë¡¢MSS Ãͤò (path_MTU - 40) ¤Ë¶¯À©¤¹¤ë¡£
1756 .\"O .TP
1757 .RS
1758 .PP
1759 .\"O These options are mutually exclusive.
1760 ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¤É¤Á¤é¤« 1 ¤Ä¤·¤«»ØÄê¤Ç¤­¤Ê¤¤¡£
1761 .RE
1762 .SS TOS
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
1765 .\"O .B mangle
1766 .\"O table.
1767 IP ¥Ø¥Ã¥À¡¼¤Î 8 ¥Ó¥Ã¥È¤Î Type of Service ¥Õ¥£¡¼¥ë¥É¤òÀßÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
1768 .B mangle
1769 ¥Æ¡¼¥Ö¥ë¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1770 .TP
1771 .BI "--set-tos " "tos"
1772 .\"O You can use a numeric TOS values, or use
1773 .\"O .nf
1774 .\"O  iptables -j TOS -h
1775 .\"O .fi
1776 .\"O to see the list of valid TOS names.
1777 TOS ¤òÈÖ¹æ¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
1778 ¤Þ¤¿¡¢
1779 .nf
1780  iptables -j TOS -h
1781 .fi
1782 ¤ò¼Â¹Ô¤·¤ÆÆÀ¤é¤ì¤ë¡¢»ÈÍѲÄǽ¤Ê TOS Ì¾¤Î°ìÍ÷¤Ë¤¢¤ë TOS Ì¾¤â»ØÄê¤Ç¤­¤ë¡£
1783 .SS ULOG
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
1786 .\"O through a
1787 .\"O .IR netlink 
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 ¥«¡¼¥Í¥ë¤Ï¡¢¤½¤Î¥Ñ¥±¥Ã¥È¤ò
1794 .I netlink
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 ¥ë¡¼¥ë¤Î¸¡Æ¤¤Ï¼¡¤Î¥ë¡¼¥ë¤Ø¤È·Ñ³¤µ¤ì¤ë¡£
1803 .TP
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 ¤Ç¤¢¤ë¡£
1809 .TP
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 ¥í¥°¤ÎÃæ¤Ç¥á¥Ã¥»¡¼¥¸¤ò¶èÊ̤¹¤ë¤Î¤ËÊØÍø¤Ç¤¢¤ë¡£
1816 .TP
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 ¤Ç¤¢¤ë¡£
1823 .TP
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).
1829 .\"O .br
1830 ¥«¡¼¥Í¥ëÆâÉô¤Î¥­¥å¡¼¤ËÆþ¤ì¤é¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¿ô¡£
1831 Î㤨¤Ð¡¢¤³¤ÎÃͤò 10 ¤Ë¤·¤¿¾ì¹ç¡¢
1832 ¥«¡¼¥Í¥ëÆâÉô¤Ç 10 ¸Ä¤Î¥Ñ¥±¥Ã¥È¤ò¤Þ¤È¤á¡¢
1833 1 ¤Ä¤Î netlink ¥Þ¥ë¥Á¥Ñ¡¼¥È¥á¥Ã¥»¡¼¥¸¤È¤·¤Æ¥æ¡¼¥¶¡¼¶õ´Ö¤ËÁ÷¤ë¡£
1834 (²áµî¤Î¤â¤Î¤È¤Î¸ß´¹À­¤Î¤¿¤á) ¥Ç¥Õ¥©¥ë¥È¤Ï 1 ¤Ç¤¢¤ë¡£
1835 .\"O .SH DIAGNOSTICS
1836 .SH ÊÖ¤êÃÍ
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 ¤¬ÊÖ¤µ¤ì¤ë¡£
1846 .\"O .SH BUGS
1847 .SH ¥Ð¥°
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 ¤È¤Î¸ß´¹À­
1854 .\"O This
1855 .\"O .B iptables
1856 .\"O is very similar to ipchains by Rusty Russell.  The main difference is
1857 .\"O that the chains
1858 .\"O .B INPUT
1859 .\"O and
1860 .\"O .B OUTPUT
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.
1866 .B iptables
1867 ¤Ï¡¢Rusty Russell ¤Î ipchains ¤ÈÈó¾ï¤Ë¤è¤¯»÷¤Æ¤¤¤ë¡£
1868 Â礭¤Ê°ã¤¤¤Ï¡¢¥Á¥§¥¤¥ó
1869 .B INPUT
1870 ¤È
1871 .B OUTPUT
1872 ¤¬¡¢¤½¤ì¤¾¤ì¥í¡¼¥«¥ë¥Û¥¹¥È¤ËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤È¡¢
1873 ¥í¡¼¥«¥ë¥Û¥¹¥È¤«¤é½Ð¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¤ß¤·¤«Ä´¤Ù¤Ê¤¤¤È¤¤¤¦ÅÀ¤Ç¤¢¤ë¡£
1874 ¤è¤Ã¤Æ¡¢(INPUT ¤È OUTPUT ¤ÎξÊý¤Î¥Á¥§¥¤¥ó¤òµ¯Æ°¤¹¤ë
1875 ¥ë¡¼¥×¥Ð¥Ã¥¯¥È¥é¥Õ¥£¥Ã¥¯¤ò½ü¤¯)
1876 Á´¤Æ¤Î¥Ñ¥±¥Ã¥È¤Ï 3 ¤Ä¤¢¤ë¥Á¥§¥¤¥ó¤Î¤¦¤Á 1 ¤·¤«Ä̤é¤Ê¤¤¡£
1877 °ÊÁ°¤Ï (ipchains ¤Ç¤Ï)¡¢
1878 ¥Õ¥©¥ï¡¼¥É¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Ï 3 ¤Ä¤Î¥Á¥§¥¤¥óÁ´¤Æ¤òÄ̤äƤ¤¤¿¡£
1879 .PP
1880 .\"O The other main difference is that
1881 .\"O .B -i
1882 .\"O refers to the input interface;
1883 .\"O .B -o
1884 .\"O refers to the output interface, and both are available for packets
1885 .\"O entering the
1886 .\"O .B FORWARD
1887 .\"O chain.
1888 ¤½¤Î¾¤ÎÂ礭¤Ê°ã¤¤¤Ï¡¢
1889 .B -i
1890 ¤ÇÆþÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡¢
1891 .B -o
1892 ¤Ç½ÐÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò»²¾È¤¹¤ë¤³¤È¡¢
1893 ¤½¤·¤Æ¤È¤â¤Ë
1894 .B FORWARD
1895 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ»ØÄê²Äǽ¤ÊÅÀ¤Ç¤¢¤ë¡£
1896 .\"O .PP The various forms of NAT have been separated out; 
1897 .\"O .B iptables 
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:
1902 .\"O .nf
1903 .\"O  -j MASQ
1904 .\"O  -M -S
1905 .\"O  -M -L
1906 .\"O .fi
1907 .PP
1908 NAT ¤Î¤¤¤í¤¤¤í¤Ê·Á¼°¤¬Ê¬³ä¤µ¤ì¤¿¡£
1909 ¥ª¥×¥·¥ç¥ó¤Î³ÈÄ¥¥â¥¸¥å¡¼¥ë¤È¤È¤â¤Ë
1910 ¥Ç¥Õ¥©¥ë¥È¤Î¡Ö¥Õ¥£¥ë¥¿¡×¥Æ¡¼¥Ö¥ë¤òÍѤ¤¤¿¾ì¹ç¡¢
1911 .B iptables 
1912 ¤Ï½ã¿è¤Ê¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¤È¤Ê¤ë¡£
1913 ¤³¤ì¤Ï¡¢°ÊÁ°¤ß¤é¤ì¤¿ IP ¥Þ¥¹¥«¥ì¡¼¥Ç¥£¥ó¥°¤È¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Î
1914 Áȹ礻¤Ë¤è¤ëº®Íð¤ò´Êά²½¤¹¤ë¡£
1915 ¤è¤Ã¤Æ¡¢¥ª¥×¥·¥ç¥ó
1916 .nf
1917  -j MASQ
1918  -M -S
1919  -M -L
1920 .fi
1921 ¤ÏÊ̤Τâ¤Î¤È¤·¤Æ°·¤ï¤ì¤ë¡£
1922 .\"O There are several other changes in iptables.
1923 iptables ¤Ç¤Ï¡¢¤½¤Î¾¤Ë¤â¤¤¤¯¤Ä¤«¤ÎÊѹ¹¤¬¤¢¤ë¡£
1924 .\"O .SH SEE ALSO
1925 .SH ´ØÏ¢¹àÌÜ
1926 .BR iptables-save (8),
1927 .BR iptables-restore (8),
1928 .BR ip6tables (8),
1929 .BR ip6tables-save (8),
1930 .BR ip6tables-restore (8).
1931 .P
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¡£
1943 .\"O .br
1944 .PP
1945 .\"O See
1946 .\"O .BR "http://www.netfilter.org/" .
1947 .UR http://www.netfilter.org/
1948 .B http://www.netfilter.org/
1949 .UE
1950 ¤ò»²¾È¤Î¤³¤È¡£
1951 .\"O .SH AUTHORS
1952 .SH Ãø¼Ô
1953 .\"O Rusty Russell wrote iptables, in early consultation with Michael
1954 .\"O Neuling.
1955 Rusty Russell ¤Ï¡¢½é´ü¤ÎÃʳ¬¤Ç Michael Neuling ¤ËÁêÃ̤·¤Æ iptables ¤ò½ñ¤¤¤¿¡£
1956 .PP
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 µ¡Ç½¤ò½ñ¤­¡¢¤¤¤¿¤ë¤È¤³¤í¤Ç»È¤ï¤ì¤Æ¤¤¤ëÁÇÀ²¤é¤·¤¤¥³¡¼¥É¤ò½ñ¤¤¤¿¡£
1964 .PP
1965 .\"O James Morris wrote the TOS target, and tos match.
1966 James Morris ¤¬ TOS ¥¿¡¼¥²¥Ã¥È¤È tos ¥Þ¥Ã¥Á¥ó¥°¤ò½ñ¤¤¤¿¡£
1967 .PP
1968 .\"O Jozsef Kadlecsik wrote the REJECT target.
1969 Jozsef Kadlecsik ¤¬ REJECT ¥¿¡¼¥²¥Ã¥È¤ò½ñ¤¤¤¿¡£
1970 .PP
1971 .\"O Harald Welte wrote the ULOG target, TTL, DSCP, ECN matches and targets.
1972 Harald Welte ¤¬ ULOG ¥¿¡¼¥²¥Ã¥È¤È¡¢
1973 TTL, DSCP, ECN ¤Î¥Þ¥Ã¥Á¡¦¥¿¡¼¥²¥Ã¥È¤ò½ñ¤¤¤¿¡£
1974 .PP
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 ¤Ç¤¢¤ë¡£
1979 .PP
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?
1983 .\" .. sexy, too ..
1984 .\" .. witty, charming, powerful ..
1985 .\" .. and most of all, modest ..
1986 .\" .. ¤½¤·¤Æ¡¢ËÍÅù¤¬¤È¤Æ¤â¥¯¡¼¥ë¤ÊÅÛ¤é¤À¤È¸À¤Ã¤Æ¤ª¤¤¤Æ¤â¤¤¤¤¤«¤Ê¡©
1987 .\" .. ¥»¥¯¥·¡¼¤Ç ..
1988 .\" .. ¤È¤Æ¤â¥¦¥£¥Ã¥È¤ËÉÙ¤ó¤Ç¤¤¤Æ¡¢¥Á¥ã¡¼¥ß¥ó¥°¤Ç¡¢¥Ñ¥ï¥Õ¥ë¤Ç ..
1989 .\" .. ¤½¤·¤Æ¡¢¤ß¤ó¤Ê¸¬µõ¤Ê¤ó¤À ..