OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / iptables / draft / man8 / ip6tables.8
1 .TH IP6TABLES 8 "Mar 09, 2002" "" ""
2 .\"
3 .\" Man page written by Andras Kis-Szabo <kisza@sch.bme.hu>
4 .\" It is based on iptables man page.
5 .\"
6 .\" iptables page by Herve Eychenne <rv@wallfire.org>
7 .\" It is based on ipchains man page.
8 .\"
9 .\" ipchains page by Paul ``Rusty'' Russell March 1997
10 .\" Based on the original ipfwadm man page by Jos Vos <jos@xos.nl>
11 .\"
12 .\"     This program is free software; you can redistribute it and/or modify
13 .\"     it under the terms of the GNU General Public License as published by
14 .\"     the Free Software Foundation; either version 2 of the License, or
15 .\"     (at your option) any later version.
16 .\"
17 .\"     This program is distributed in the hope that it will be useful,
18 .\"     but WITHOUT ANY WARRANTY; without even the implied warranty of
19 .\"     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 .\"     GNU General Public License for more details.
21 .\"
22 .\"     You should have received a copy of the GNU General Public License
23 .\"     along with this program; if not, write to the Free Software
24 .\"     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 .\"
26 .\"
27 .\" Japanese Version Copyright (c) 2001-2004 Yuichi SATO
28 .\"         all right reserved.
29 .\" Translated Sat Dec  1 06:32:08 JST 2001
30 .\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
31 .\" Updated & Modified Sun Feb  8 14:05:26 JST 2004
32 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
33 .\"
34 .\"WORD:        chain           ¥Á¥§¥¤¥ó
35 .\"WORD:        built-in chain  ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó
36 .\"WORD:        non-terminating target  Èó½ªÎ»¥¿¡¼¥²¥Ã¥È
37 .\"
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O ip6tables \- IPv6 packet filter administration
41 ip6tables \- IPv6 ¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¤ò´ÉÍý¤¹¤ë
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .\"O .BR "ip6tables [-t table] -[AD] " "chain rule-specification [options]"
45 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -[AD] " "¥Á¥§¥¤¥ó ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
46 .br
47 .\"O .BR "ip6tables [-t table] -I " "chain [rulenum] rule-specification [options]"
48 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -I " "¥Á¥§¥¤¥ó [¥ë¡¼¥ëÈÖ¹æ] ¥ë¡¼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
49 .br
50 .\"O .BR "ip6tables [-t table] -R " "chain rulenum rule-specification [options]"
51 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -R " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈֹ栥롼¥ë¤Î¾ÜºÙ [¥ª¥×¥·¥ç¥ó]"
52 .br
53 .\"O .BR "ip6tables [-t table] -D " "chain rulenum [options]"
54 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -D " "¥Á¥§¥¤¥ó ¥ë¡¼¥ëÈÖ¹æ [¥ª¥×¥·¥ç¥ó]"
55 .br
56 .\"O .BR "ip6tables [-t table] -[LFZ] " "[chain] [options]"
57 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -[LFZ] " "[¥Á¥§¥¤¥ó] [¥ª¥×¥·¥ç¥ó]"
58 .br
59 .\"O .BR "ip6tables [-t table] -N " "chain"
60 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -N " "¥Á¥§¥¤¥ó"
61 .br
62 .\"O .BR "ip6tables [-t table] -X " "[chain]"
63 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -X " "[¥Á¥§¥¤¥ó]"
64 .br
65 .\"O .BR "ip6tables [-t table] -P " "chain target [options]"
66 .BR "ip6tables [-t ¥Æ¡¼¥Ö¥ë] -P " "¥Á¥§¥¤¥ó ¥¿¡¼¥²¥Ã¥È [¥ª¥×¥·¥ç¥ó]"
67 .br
68 .\"O .BR "ip6tables [-t table] -E " "old-chain-name new-chain-name"
69 .BR "ip6tables  [-t ¥Æ¡¼¥Ö¥ë] -E " "µì¥Á¥§¥¤¥ó̾ ¿·¥Á¥§¥¤¥ó̾"
70 .\"O .SH DESCRIPTION
71 .SH ÀâÌÀ
72 .\"O .B Ip6tables
73 .\"O is used to set up, maintain, and inspect the tables of IPv6 packet
74 .\"O filter rules in the Linux kernel.  Several different tables
75 .\"O may be defined.  Each table contains a number of built-in
76 .\"O chains and may also contain user-defined chains.
77 .B ip6tables
78 ¤Ï Linux ¥«¡¼¥Í¥ë¤Î IPv6 ¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ë¡¼¥ë¤Î¥Æ¡¼¥Ö¥ë¤ò
79 ÀßÄꡦ´ÉÍý¡¦¸¡ºº¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
80 Ê£¿ô¤Î°Û¤Ê¤ë¥Æ¡¼¥Ö¥ë¤¬ÄêµÁ¤µ¤ì¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
81 ³Æ¥Æ¡¼¥Ö¥ë¤ÏÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤ò´Þ¤à¡£
82 ¤µ¤é¤Ë¥æ¡¼¥¶¡¼ÄêµÁ¤Î¥Á¥§¥¤¥ó¤ò´Þ¤à¤³¤È¤â¤Ç¤­¤ë¡£
83
84 .\"O Each chain is a list of rules which can match a set of packets.  Each
85 .\"O rule specifies what to do with a packet that matches.  This is called
86 .\"O a `target', which may be a jump to a user-defined chain in the same
87 .\"O table.
88 ³Æ¥Á¥§¥¤¥ó¤Ï¡¢¥Ñ¥±¥Ã¥È·²¤Ë¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤Î¥ê¥¹¥È¤Ç¤¢¤ë¡£
89 ³Æ¥ë¡¼¥ë¤Ï¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ²¿¤ò¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
90 ¤³¤ì¤Ï¡Ö¥¿¡¼¥²¥Ã¥È¡×¤È¸Æ¤Ð¤ì¡¢
91 Ʊ¤¸¥Æ¡¼¥Ö¥ëÆâ¤Î¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Ë¥¸¥ã¥ó¥×¤¹¤ë¤³¤È¤â¤¢¤ë¡£
92
93 .\"O .SH TARGETS
94 .SH ¥¿¡¼¥²¥Ã¥È
95 .\"O A firewall rule specifies criteria for a packet, and a target.  If the
96 .\"O packet does not match, the next rule in the chain is the examined; if
97 .\"O it does match, then the next rule is specified by the value of the
98 .\"O target, which can be the name of a user-defined chain or one of the
99 .\"O special values 
100 .\"O .IR ACCEPT ,
101 .\"O .IR DROP ,
102 .\"O .IR QUEUE ,
103 .\"O or
104 .\"O .IR RETURN .
105 ¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Î¥ë¡¼¥ë¤Ï¡¢¥Ñ¥±¥Ã¥È¤òȽÃǤ¹¤ë´ð½à¤È¥¿¡¼¥²¥Ã¥È¤ò»ØÄꤹ¤ë¡£
106 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤Ê¤¤¾ì¹ç¡¢¥Á¥§¥¤¥óÆâ¤Î¼¡¤Î¥ë¡¼¥ë¤¬É¾²Á¤µ¤ì¤ë¡£
107 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¡¢
108 ¥¿¡¼¥²¥Ã¥È¤ÎÃͤˤè¤Ã¤Æ¼¡¤Î¥ë¡¼¥ë¤¬»ØÄꤵ¤ì¤ë¡£
109 ¥¿¡¼¥²¥Ã¥È¤ÎÃͤϡ¢¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Î̾Á°¡¢¤Þ¤¿¤ÏÆÃÊ̤ÊÃÍ
110 .IR ACCEPT ,
111 .IR DROP ,
112 .IR QUEUE ,
113 .I RETURN
114 ¤Î¤¦¤Á¤Î 1 ¤Ä¤Ç¤¢¤ë¡£
115 .PP
116 .\"O .I ACCEPT 
117 .\"O means to let the packet through.
118 .I ACCEPT 
119 ¤Ï¥Ñ¥±¥Ã¥È¤òÄ̤¹¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
120 .\"O .I DROP
121 .\"O means to drop the packet on the floor.
122 .I DROP
123 ¤Ï¥Ñ¥±¥Ã¥È¤ò¾²¤ËÍ (¼Î¤Æ¤ë) ¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
124 .\"O .I QUEUE
125 .\"O means to pass the packet to userspace (if supported by the kernel).
126 .I QUEUE
127 ¤Ï¥Ñ¥±¥Ã¥È¤ò¥æ¡¼¥¶¡¼¶õ´Ö¤ËÅϤ¹¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë
128 (¥«¡¼¥Í¥ë¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ì¤Ð¤Ç¤¢¤ë¤¬)¡£
129 .\"O .I RETURN
130 .\"O means stop traversing this chain and resume at the next rule in the
131 .\"O previous (calling) chain.  If the end of a built-in chain is reached
132 .\"O or a rule in a built-in chain with target
133 .\"O .I RETURN
134 .\"O is matched, the target specified by the chain policy determines the
135 .\"O fate of the packet.
136 .I RETURN
137 ¤Ï¡¢¤³¤Î¥Á¥§¥¤¥ó¤ò¸¡Æ¤¤¹¤ë¤³¤È¤òÃæ»ß¤·¤Æ¡¢
138 Á°¤Î (¸Æ¤Ó½Ð¤·Â¦) ¥Á¥§¥¤¥ó¤Î¼¡¤Î¥ë¡¼¥ë¤ÇÄä»ß¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤¢¤ë¡£
139 ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤ÎºÇ¸å¤ËÅþ㤷¤¿¾ì¹ç¡¢
140 ¤Þ¤¿¤Ï¥¿¡¼¥²¥Ã¥È
141 .I RETURN
142 ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ëÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Î¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¡¢
143 ¥Á¥§¥¤¥ó¥Ý¥ê¥·¡¼¤Ç»ØÄꤵ¤ì¤¿¥¿¡¼¥²¥Ã¥È¤¬
144 ¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤ò·èÄꤹ¤ë¡£
145 .\"O .SH TABLES
146 .SH ¥Æ¡¼¥Ö¥ë
147 .\"O There are currently two independent tables (which tables are present
148 .\"O at any time depends on the kernel configuration options and which
149 .\"O modules are present), as nat table has not been implemented yet.
150 ¸½ºß¤Î¤È¤³¤í 2 ¤Ä¤ÎÆÈΩ¤Ê¥Æ¡¼¥Ö¥ë¤¬Â¸ºß¤¹¤ë
151 (¤É¤Î¥Æ¡¼¥Ö¥ë¤¬¤É¤Î»þÅÀ¤Ç¸½¤ì¤ë¤«¤Ï¡¢
152 ¥«¡¼¥Í¥ë¤ÎÀßÄê¤ä¤É¤¦¤¤¤Ã¤¿¥â¥¸¥å¡¼¥ë¤¬Â¸ºß¤¹¤ë¤«¤Ë°Í¸¤¹¤ë)¡£
153 nat ¥Æ¡¼¥Ö¥ë¤Ï¡¢¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
154 .TP
155 .BI "-t, --table " "table"
156 .\"O This option specifies the packet matching table which the command
157 .\"O should operate on.  If the kernel is configured with automatic module
158 .\"O loading, an attempt will be made to load the appropriate module for
159 .\"O that table if it is not already there.
160 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¤É¤Î¥³¥Þ¥ó¥É¤òŬÍѤ¹¤Ù¤­¤«¤ò·èÄꤹ¤ë¤¿¤á¤Î
161 ¥Ñ¥±¥Ã¥È¥Þ¥Ã¥Á¥ó¥°¥Æ¡¼¥Ö¥ë¤ò»ØÄꤹ¤ë¡£
162 ¥«¡¼¥Í¥ë¤Ë¼«Æ°¥â¥¸¥å¡¼¥ë¥í¡¼¥Ç¥£¥ó¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
163 ¤¢¤ë¥Æ¡¼¥Ö¥ë¤ËÂФ·¤ÆŬÀڤʥ⥸¥å¡¼¥ë¤¬¤Þ¤À¥í¡¼¥É¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢
164 ¤½¤Î¥â¥¸¥å¡¼¥ë¤Î¥í¡¼¥É¤ò¹Ô¤¦¡£
165
166 .\"O The tables are as follows:
167 ¥Æ¡¼¥Ö¥ë¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¢¤ë¡£
168 .RS
169 .TP .4i
170 .BR "filter" :
171 .\"O This is the default table (if no -t option is passed).  It contains
172 .\"O the built-in chains
173 .\"O .B INPUT
174 .\"O (for packets coming into the box itself),
175 .\"O .B FORWARD
176 .\"O (for packets being routed through the box), and
177 .\"O .B OUTPUT
178 .\"O (for locally-generated packets).
179 (-t ¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï) ¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Î¥Æ¡¼¥Ö¥ë¤Ç¤¢¤ë¡£
180 ¤³¤ì¤Ë¤Ï
181 .B INPUT
182 (¥Þ¥·¥ó¼«ÂΤËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
183 .B FORWARD
184 (¥Þ¥·¥ó¤ò·Ðͳ¤¹¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
185 .B OUTPUT
186 (¥í¡¼¥«¥ë¥Þ¥·¥ó¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)
187 ¤È¤¤¤¦ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤ë¡£
188 .TP
189 .BR "mangle" :
190 .\"O This table is used for specialized packet alteration.  Until kernel
191 .\"O 2.4.17 it had two built-in chains:
192 .\"O .B PREROUTING
193 .\"O (for altering incoming packets before routing) and
194 .\"O .B OUTPUT
195 .\"O (for altering locally-generated packets before routing).
196 ¤³¤Î¥Æ¡¼¥Ö¥ë¤ÏÆÃÊ̤ʥѥ±¥Ã¥ÈÊÑ´¹¤Ë»È¤ï¤ì¤ë¡£
197 ¥«¡¼¥Í¥ë 2.4.17 ¤Þ¤Ç¤Ï¡¢
198 .B PREROUTING
199 (¥Ñ¥±¥Ã¥È¤¬Æþ¤Ã¤Æ¤­¤¿¾ì¹ç¡¢
200 ¤¹¤°¤Ë¤½¤Î¥Ñ¥±¥Ã¥È¤òÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
201 .B OUTPUT
202 (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ò
203 ¥ë¡¼¥Æ¥£¥ó¥°¤ÎÁ°¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)
204 ¤È¤¤¤¦ 2 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤¬´Þ¤Þ¤ì¤Æ¤¤¤¿¡£
205 .\"O Since kernel 2.4.18, three other built-in chains are also supported:
206 .\"O .B INPUT
207 .\"O (for packets coming into the box itself),
208 .\"O .B FORWARD
209 .\"O (for altering packets being routed through the box), and
210 .\"O .B POSTROUTING
211 .\"O (for altering packets as they are about to go out).
212 ¥«¡¼¥Í¥ë 2.4.18 ¤«¤é¤Ï¡¢¤³¤ì¤é¤Î¾¤Ë
213 .B INPUT
214 (¥Þ¥·¥ó¼«ÂΤËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
215 .B FORWARD
216 (¥Þ¥·¥ó¤ò·Ðͳ¤¹¤ë¥Ñ¥±¥Ã¥È¤ËÂФ¹¤ë¥Á¥§¥¤¥ó)¡¦
217 .B POSTROUTING
218 (¥Ñ¥±¥Ã¥È¤¬½Ð¤Æ¹Ô¤¯¤È¤­¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Î¥Á¥§¥¤¥ó)¡¦
219 ¤È¤¤¤¦ 3 ¤Ä¤ÎÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤â¥µ¥Ý¡¼¥È¤µ¤ì¤ë¡£
220 .RE
221 .\"O .SH OPTIONS
222 .SH ¥ª¥×¥·¥ç¥ó
223 .\"O The options that are recognized by
224 .\"O .B ip6tables
225 .\"O can be divided into several different groups.
226 .B ip6tables
227 ¤Ç»È¤¨¤ë¥ª¥×¥·¥ç¥ó¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥°¥ë¡¼¥×¤Ëʬ¤±¤é¤ì¤ë¡£
228 .\"O .SS COMMANDS
229 .SS ¥³¥Þ¥ó¥É
230 .\"O These options specify the specific action to perform.  Only one of them
231 .\"O can be specified on the command line unless otherwise specified
232 .\"O below.  For all the long versions of the command and option names, you
233 .\"O need to use only enough letters to ensure that
234 .\"O .B ip6tables
235 .\"O can differentiate it from all other options.
236 ¤³¤ì¤é¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢¼Â¹Ô¤¹¤ëÆÃÄê¤ÎÆ°ºî¤ò»ØÄꤹ¤ë¡£
237 °Ê²¼¤ÎÀâÌÀ¤Çµö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¸Â¤ê¡¢
238 ¤³¤ÎÃæ¤Î 1 ¤Ä¤·¤«¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¡£
239 Ť¤¥Ð¡¼¥¸¥ç¥ó¤Î¥³¥Þ¥ó¥É̾¤È¥ª¥×¥·¥ç¥ó̾¤Ï¡¢
240 .B ip6tables
241 ¤¬Â¾¤Î¥³¥Þ¥ó¥É̾¤ä¥ª¥×¥·¥ç¥ó̾¤È¶èÊ̤Ǥ­¤ëÈϰϤÇ
242 (ʸ»ú¤ò¾Êά¤·¤Æ) »ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë¡£
243 .TP
244 .BI "-A, --append " "chain rule-specification"
245 .\"O Append one or more rules to the end of the selected chain.
246 .\"O When the source and/or destination names resolve to more than one
247 .\"O address, a rule will be added for each possible address combination.
248 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤ÎºÇ¸å¤Ë 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òÄɲ乤롣
249 Á÷¿®¸µ¤äÁ÷¿®Àè¤Î̾Á°¤¬ 1 ¤Ä°Ê¾å¤Î¥¢¥É¥ì¥¹¤ËÂбþ¤·¤Æ¤¤¤ë¾ì¹ç¡¢
250 ²Äǽ¤Ê¥¢¥É¥ì¥¹¤ÎÁȹ礻¤Î¤½¤ì¤¾¤ì¤Ë¤Ä¤¤¤Æ¥ë¡¼¥ë¤¬Äɲ䵤ì¤ë¡£
251 .TP
252 .BI "-D, --delete " "chain rule-specification"
253 .ns
254 .TP
255 .BI "-D, --delete " "chain rulenum"
256 .\"O Delete one or more rules from the selected chain.  There are two
257 .\"O versions of this command: the rule can be specified as a number in the
258 .\"O chain (starting at 1 for the first rule) or a rule to match.
259 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤«¤é 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òºï½ü¤¹¤ë¡£
260 ¤³¤Î¥³¥Þ¥ó¥É¤Ë¤Ï 2 ¤Ä¤Î»È¤¤Êý¤¬¤¢¤ë:
261 ¥Á¥§¥¤¥ó¤ÎÃæ¤ÎÈÖ¹æ (ºÇ½é¤Î¥ë¡¼¥ë¤ò 1 ¤È¤¹¤ë) ¤ò»ØÄꤹ¤ë¾ì¹ç¤È¡¢
262 ¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤ò»ØÄꤹ¤ë¾ì¹ç¤Ç¤¢¤ë¡£
263 .TP
264 .B "-I, --insert"
265 .\"O Insert one or more rules in the selected chain as the given rule
266 .\"O number.  So, if the rule number is 1, the rule or rules are inserted
267 .\"O at the head of the chain.  This is also the default if no rule number
268 .\"O is specified.
269 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ë¥ë¡¼¥ëÈÖ¹æ¤ò»ØÄꤷ¤Æ 1 ¤Ä°Ê¾å¤Î¥ë¡¼¥ë¤òÁÞÆþ¤¹¤ë¡£
270 ¥ë¡¼¥ëÈֹ椬 1 ¤Î¾ì¹ç¡¢¥ë¡¼¥ë¤Ï¥Á¥§¥¤¥ó¤ÎÀèƬ¤ËÁÞÆþ¤µ¤ì¤ë¡£
271 ¤³¤ì¤Ï¥ë¡¼¥ëÈֹ椬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤â¤¢¤ë¡£
272 .TP
273 .BI "-R, --replace " "chain rulenum rule-specification"
274 .\"O Replace a rule in the selected chain.  If the source and/or
275 .\"O destination names resolve to multiple addresses, the command will
276 .\"O fail.  Rules are numbered starting at 1.
277 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ë¤¢¤ë¥ë¡¼¥ë¤òÃÖ¤­´¹¤¨¤ë¡£
278 Á÷¿®¸µ¤äÁ÷¿®Àè¤Î̾Á°¤¬ 1 ¤Ä°Ê¾å¤Î¥¢¥É¥ì¥¹¤ËÂбþ¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¼ºÇÔ¤¹¤ë¡£
279 ¥ë¡¼¥ë¤Ë¤Ï 1 ¤«¤é»Ï¤Þ¤ëÈֹ椬ÉÕ¤±¤é¤ì¤Æ¤¤¤ë¡£
280 .TP
281 .BR "-L, --list " "[\fIchain\fP]"
282 .\"O List all rules in the selected chain.  If no chain is selected, all
283 .\"O chains are listed.  As every other iptables command, it applies to the
284 .\"O specified table (filter is the default), so mangle rules get listed by
285 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó¤Ë¤¢¤ëÁ´¤Æ¤Î¥ë¡¼¥ë¤ò°ìÍ÷ɽ¼¨¤¹¤ë¡£
286 ¥Á¥§¥¤¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢Á´¤Æ¤Î¥Á¥§¥¤¥ó¤Ë¤¢¤ë¥ê¥¹¥È¤¬°ìÍ÷ɽ¼¨¤µ¤ì¤ë¡£
287 ¾¤Î³Æ iptables ¥³¥Þ¥ó¥É¤ÈƱÍͤˡ¢
288 »ØÄꤵ¤ì¤¿¥Æ¡¼¥Ö¥ë (¥Ç¥Õ¥©¥ë¥È¤Ï filter) ¤ËÂФ·¤ÆºîÍѤ¹¤ë¡£
289 ¤è¤Ã¤Æ mangle ¥ë¡¼¥ë¤òɽ¼¨¤¹¤ë¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ë¡£
290 .nf
291  ip6tables -t mangle -n -L
292 .fi
293 .\"O Please note that it is often used with the
294 .\"O .B -n
295 .\"O option, in order to avoid long reverse DNS lookups.
296 DNS ¤ÎµÕ°ú¤­¤òÈò¤±¤ë¤¿¤á¤Ë¡¢¤è¤¯
297 .B -n
298 ¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë»ÈÍѤµ¤ì¤ë¡£
299 .\"O It is legal to specify the
300 .\"O chains are listed.  It is legal to specify the
301 .\"O .B -Z
302 .\"O (zero) option as well, in which case the chain(s) will be atomically
303 .\"O listed and zeroed.  The exact output is affected by the other
304 .\"O arguments given. The exact rules are suppressed until you use
305 .B -Z
306 (¥¼¥í²½) ¥ª¥×¥·¥ç¥ó¤òƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë¡£
307 ¤³¤Î¾ì¹ç¡¢¥Á¥§¥¤¥ó¤ÏÍ×ÁÇËè¤Ë¥ê¥¹¥È¤µ¤ì¤Æ¡¢
308 (ÌõÃð: ¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤¬) ¥¼¥í¤Ë¤µ¤ì¤ë¡£
309 ¤É¤Î¤è¤¦¤Ë½ÐÎϤ¹¤ë¤«¤Ï¡¢Í¿¤¨¤é¤ì¤ë¾¤Î°ú¤­¿ô¤Ë±Æ¶Á¤µ¤ì¤ë¡£
310 .nf
311  ip6tables -L -v
312 .fi
313 ¤ò»È¤ï¤Ê¤¤¸Â¤ê¡¢(ÌõÃð: -v ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¸Â¤ê)
314 ¼ÂºÝ¤Î¥ë¡¼¥ë¤½¤Î¤â¤Î¤Ïɽ¼¨¤µ¤ì¤Ê¤¤¡£
315 .TP
316 .BR "-F, --flush " "[\fIchain\fP]"
317 .\"O Flush the selected chain (all the chains in the table if none is given).
318 .\"O This is equivalent to deleting all the rules one by one.
319 ÁªÂò¤µ¤ì¤¿¥Á¥§¥¤¥ó
320 (²¿¤â»ØÄꤵ¤ì¤Ê¤±¤ì¤Ð¥Æ¡¼¥Ö¥ëÆâ¤ÎÁ´¤Æ¤Î¥Á¥§¥¤¥ó) ¤ÎÆâÍƤòÁ´¾Ãµî¤¹¤ë¡£
321 ¤³¤ì¤ÏÁ´¤Æ¤Î¥ë¡¼¥ë¤ò 1 ¸Ä¤º¤Äºï½ü¤¹¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¡£
322 .TP
323 .BR "-Z, --zero " "[\fIchain\fP]"
324 .\"O Zero the packet and byte counters in all chains.  It is legal to
325 .\"O specify the
326 .\"O .B "-L, --list"
327 .\"O (list) option as well, to see the counters immediately before they are
328 .\"O cleared. (See above.)
329 ¤¹¤Ù¤Æ¤Î¥Á¥§¥¤¥ó¤Î¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò¥¼¥í¤Ë¤¹¤ë¡£
330 ¥¯¥ê¥¢¤µ¤ì¤ëľÁ°¤Î¥«¥¦¥ó¥¿¤ò¸«¤ë¤¿¤á¤Ë¡¢
331 .B "-L, --list"
332 (°ìÍ÷ɽ¼¨) ¥ª¥×¥·¥ç¥ó¤ÈƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë (¾åµ­¤ò»²¾È)¡£
333 .TP
334 .BI "-N, --new-chain " "chain"
335 .\"O Create a new user-defined chain by the given name.  There must be no
336 .\"O target of that name already.
337 »ØÄꤷ¤¿Ì¾Á°¤Ç¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤òºîÀ®¤¹¤ë¡£
338 Ʊ¤¸Ì¾Á°¤Î¥¿¡¼¥²¥Ã¥È¤¬´û¤Ë¸ºß¤·¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
339 .TP
340 .BR "-X, --delete-chain " "[\fIchain\fP]"
341 .\"O Delete the optional user-defined chain specified.  There must be no references
342 .\"O to the chain.  If there are, you must delete or replace the referring
343 .\"O rules before the chain can be deleted.  If no argument is given, it
344 .\"O will attempt to delete every non-builtin chain in the table.
345 ¥ª¥×¥·¥ç¥ó¤Î¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤òºï½ü¤¹¤ë¡£
346 ¤½¤Î¥Á¥§¥¤¥ó¤¬»²¾È¤µ¤ì¤Æ¤¤¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
347 ¥Á¥§¥¤¥ó¤òºï½ü¤¹¤ëÁ°¤Ë¡¢¤½¤Î¥Á¥§¥¤¥ó¤ò»²¾È¤·¤Æ¤¤¤ë¥ë¡¼¥ë¤ò
348 ºï½ü¤¹¤ë¤«ÃÖ¤­´¹¤¨¤ë¤«¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
349 °ú¤­¿ô¤¬Í¿¤¨¤é¤ì¤Ê¤¤¾ì¹ç¡¢¥Æ¡¼¥Ö¥ë¤Ë¤¢¤ë¥Á¥§¥¤¥ó¤Î¤¦¤Á
350 ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ç¤Ê¤¤¤â¤Î¤òÁ´¤Æºï½ü¤¹¤ë¡£
351 .TP
352 .BI "-P, --policy " "chain target"
353 .\"O Set the policy for the chain to the given target.  See the section
354 .\"O .B TARGETS
355 .\"O for the legal targets.  Only built-in (non-user-defined) chains can have
356 .\"O policies, and neither built-in nor user-defined chains can be policy
357 .\"O targets.
358 ¥Á¥§¥¤¥ó¤Î¥Ý¥ê¥·¡¼¤ò¡¢»ØÄꤷ¤¿¥¿¡¼¥²¥Ã¥È¤ËÀßÄꤹ¤ë¡£
359 »ØÄê²Äǽ¤Ê¥¿¡¼¥²¥Ã¥È¤Ï¡Ö\fB¥¿¡¼¥²¥Ã¥È\fR¡×¤Î¾Ï¤ò»²¾È¤¹¤ë¤³¤È¡£
360 (¥æ¡¼¥¶¡¼ÄêµÁ¤Ç¤Ï¤Ê¤¤) ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤Ë¤·¤«¥Ý¥ê¥·¡¼¤ÏÀßÄê¤Ç¤­¤Ê¤¤¡£
361 ¤Þ¤¿¡¢ÁȤ߹þ¤ßºÑ¤ß¥Á¥§¥¤¥ó¤â¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤â
362 ¥Ý¥ê¥·¡¼¤Î¥¿¡¼¥²¥Ã¥È¤ËÀßÄꤹ¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
363 .TP
364 .BI "-E, --rename-chain " "old-chain new-chain"
365 .\"O Rename the user specified chain to the user supplied name.  This is
366 .\"O cosmetic, and has no effect on the structure of the table.
367 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤ò»ØÄꤷ¤¿Ì¾Á°¤ËÊѹ¹¤¹¤ë¡£
368 ¤³¤ì¤Ï¸«¤¿ÌܤÀ¤±¤ÎÊѹ¹¤Ê¤Î¤Ç¡¢¥Æ¡¼¥Ö¥ë¤Î¹½Â¤¤Ë¤Ï²¿¤â±Æ¶Á¤·¤Ê¤¤¡£
369 .TP
370 .B -h
371 .\"O Help.
372 .\"O Give a (currently very brief) description of the command syntax.
373 ¥Ø¥ë¥×¡£
374 (º£¤Î¤È¤³¤í¤Ï¤È¤Æ¤â´Êñ¤Ê) ¥³¥Þ¥ó¥É½ñ¼°¤ÎÀâÌÀ¤òɽ¼¨¤¹¤ë¡£
375 .\"O .SS PARAMETERS
376 .SS ¥Ñ¥é¥á¡¼¥¿
377 .\"O The following parameters make up a rule specification (as used in the
378 .\"O add, delete, insert, replace and append commands).
379 °Ê²¼¤Î¥Ñ¥é¥á¡¼¥¿¤Ï (add, delete, insert, 
380 replace, append ¥³¥Þ¥ó¥É¤ÇÍѤ¤¤é¤ì¤Æ) ¥ë¡¼¥ë¤Î»ÅÍͤò·è¤á¤ë¡£
381 .TP
382 .BR "-p, --protocol " "[!] \fIprotocol\fP"
383 .\"O The protocol of the rule or of the packet to check.
384 .\"O The specified protocol can be one of
385 .\"O .IR tcp ,
386 .\"O .IR udp ,
387 .\"O .IR ipv6-icmp|icmpv6 ,
388 .\"O or
389 .\"O .IR all ,
390 .\"O or it can be a numeric value, representing one of these protocols or a
391 .\"O different one.  A protocol name from /etc/protocols is also allowed.
392 ¥ë¡¼¥ë¤Ç»È¤ï¤ì¤ë¥×¥í¥È¥³¥ë¡¢¤Þ¤¿¤Ï¥Á¥§¥Ã¥¯¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¥×¥í¥È¥³¥ë¡£
393 »ØÄê¤Ç¤­¤ë¥×¥í¥È¥³¥ë¤Ï¡¢
394 .IR tcp ,
395 .IR udp ,
396 .IR ipv6-icmp|icmpv6 ,
397 .I all
398 ¤Î¤¤¤º¤ì¤« 1 ¤Ä¤«¡¢¿ôÃͤǤ¢¤ë¡£
399 ¿ôÃͤϡ¢¤³¤ì¤é¤Î¥×¥í¥È¥³¥ë¤Î 1 ¤Ä¡¢¤â¤·¤¯¤ÏÊ̤Υץí¥È¥³¥ë¤òɽ¤¹¡£
400 /etc/protocols ¤Ë¤¢¤ë¥×¥í¥È¥³¥ë̾¤â»ØÄê¤Ç¤­¤ë¡£
401 .\"O A "!" argument before the protocol inverts the
402 .\"O test.  The number zero is equivalent to
403 .\"O .IR all .
404 .\"O Protocol
405 .\"O .I all
406 .\"O will match with all protocols and is taken as default when this
407 .\"O option is omitted.
408 ¥×¥í¥È¥³¥ë¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢¤½¤Î¥×¥í¥È¥³¥ë¤ò»ØÄꤷ¤Ê¤¤¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
409 ¿ôÃÍ 0 ¤Ï
410 .I all
411 ¤ÈÅù¤·¤¤¡£
412 ¥×¥í¥È¥³¥ë
413 .I all
414 ¤ÏÁ´¤Æ¤Î¥×¥í¥È¥³¥ë¤È¥Þ¥Ã¥Á¤·¡¢
415 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿ºÝ¤Î¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
416 .TP
417 .BR "-s, --source " "[!] \fIaddress\fP[/\fImask\fP]"
418 .\"O Source specification.
419 .\"O .I Address
420 .\"O can be either a hostname (please note that specifying
421 .\"O any name to be resolved with a remote query such as DNS is a really bad idea),
422 .\"O a network IPv6 address (with /mask), or a plain IPv6 address.
423 .\"O (the network name isn't supported now).
424 Á÷¿®¸µ¤Î»ØÄê¡£
425 .I address
426 ¤Ï¥Û¥¹¥È̾ (DNS ¤Î¤è¤¦¤Ê¥ê¥â¡¼¥È¤Ø¤ÎÌ䤤¹ç¤ï¤»¤Ç²ò·è¤¹¤ë̾Á°¤ò»ØÄꤹ¤ë¤Î¤Ï
427 Èó¾ï¤ËÎɤ¯¤Ê¤¤)¡¦
428 ¥Í¥Ã¥È¥ï¡¼¥¯ IPv6 ¥¢¥É¥ì¥¹ (/mask ¤ò»ØÄꤹ¤ë)¡¦
429 Ä̾ï¤Î IPv6 ¥¢¥É¥ì¥¹
430 (º£¤Î¤È¤³¤í¡¢¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤)¡¢¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ë¡£
431 .\"O The
432 .\"O .I mask
433 .\"O can be either a network mask or a plain number,
434 .\"O specifying the number of 1's at the left side of the network mask.
435 .I mask
436 ¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥Þ¥¹¥¯¤«¡¢
437 ¥Í¥Ã¥È¥ï¡¼¥¯¥Þ¥¹¥¯¤Îº¸Â¦¤Ë¤¢¤ë 1 ¤Î¿ô¤ò»ØÄꤹ¤ë¿ôÃͤǤ¢¤ë¡£
438 .\"O Thus, a mask of
439 .\"O .I 64
440 .\"O is equivalent to
441 .\"O .IR ffff:ffff:ffff:ffff:0000:0000:0000:0000 .
442 ¤Ä¤Þ¤ê¡¢
443 .I 64
444 ¤È¤¤¤¦ mask ¤Ï
445 .I ffff:ffff:ffff:ffff:0000:0000:0000:0000
446 ¤ËÅù¤·¤¤¡£
447 .\"O A "!" argument before the address specification inverts the sense of
448 .\"O the address. The flag
449 .\"O .B --src
450 .\"O is an alias for this option.
451 ¥¢¥É¥ì¥¹»ØÄê¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢¤½¤Î¥¢¥É¥ì¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
452 ¥Õ¥é¥°
453 .B --src
454 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊÌ̾¤Ç¤¢¤ë¡£
455 .TP
456 .BR "-d, --destination " "[!] \fIaddress\fP[/\fImask\fP]"
457 .\"O Destination specification. 
458 .\"O See the description of the
459 .\"O .B -s
460 .\"O (source) flag for a detailed description of the syntax.  The flag
461 .\"O .B --dst
462 .\"O is an alias for this option.
463 Á÷¿®Àè¤Î»ØÄê¡£
464 ½ñ¼°¤Î¾Ü¤·¤¤ÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
465 .B -s
466 (Á÷¿®¸µ) ¥Õ¥é¥°¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
467 ¥Õ¥é¥°
468 .B --dst
469 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊÌ̾¤Ç¤¢¤ë¡£
470 .TP
471 .BI "-j, --jump " "target"
472 .\"O This specifies the target of the rule; i.e., what to do if the packet
473 .\"O matches it.  The target can be a user-defined chain (other than the
474 .\"O one this rule is in), one of the special builtin targets which decide
475 .\"O the fate of the packet immediately, or an extension (see
476 .\"O .B EXTENSIONS
477 .\"O below).  If this
478 .\"O option is omitted in a rule, then matching the rule will have no
479 .\"O effect on the packet's fate, but the counters on the rule will be
480 .\"O incremented.
481 ¥ë¡¼¥ë¤Î¥¿¡¼¥²¥Ã¥È¡¢¤Ä¤Þ¤ê¡¢
482 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤·¤¿¾ì¹ç¤Ë¤É¤¦¤¹¤ë¤«¤ò»ØÄꤹ¤ë¡£
483 ¥¿¡¼¥²¥Ã¥È¤Ï¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó
484 (¤½¤Î¥ë¡¼¥ë¼«¿È¤¬Æþ¤Ã¤Æ¤¤¤ë¥Á¥§¥¤¥ó°Ê³°) ¤Ç¤â¡¢
485 ¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤ò¨»þ¤Ë·èÄꤹ¤ëÆÃÊ̤ÊÁȤ߹þ¤ßºÑ¤ß¥¿¡¼¥²¥Ã¥È¤Ç¤â¡¢
486 ³ÈÄ¥¤µ¤ì¤¿¥¿¡¼¥²¥Ã¥È (°Ê²¼¤Î
487 .RB ¡Ö ¥¿¡¼¥²¥Ã¥È¤Î³ÈÄ¥ ¡×
488 ¤ò»²¾È) ¤Ç¤â¤è¤¤¡£
489 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥ë¡¼¥ë¤ÎÃæ¤Ç¾Êά¤µ¤ì¤¿¾ì¹ç¡¢
490 ¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Æ¤â¥Ñ¥±¥Ã¥È¤Î¹ÔÊý¤Ë²¿¤â±Æ¶Á¤·¤Ê¤¤¤¬¡¢
491 ¥ë¡¼¥ë¤Î¥«¥¦¥ó¥¿¤Ï 1 ¤Ä²Ã»»¤µ¤ì¤ë¡£
492 .TP
493 .BR "-i, --in-interface " "[!] \fIname\fP"
494 .\"O Name of an interface via which a packet is going to be received (only for
495 .\"O packets entering the 
496 .\"O .BR INPUT ,
497 .\"O .B FORWARD
498 .\"O and
499 .\"O .B PREROUTING
500 .\"O chains).  
501 .RB ( INPUT ,
502 .BR FORWARD ,
503 .B PREROUTING
504 ¥Á¥§¥¤¥ó¤Î¤ß¤ËÆþ¤ë) ¥Ñ¥±¥Ã¥È¤ò¼õ¿®¤¹¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¡£
505 .\"O When the "!" argument is used before the interface name, the
506 .\"O sense is inverted.  If the interface name ends in a "+", then any
507 .\"O interface which begins with this name will match.  If this option is
508 .\"O omitted, any interface name will match.
509 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢
510 ¤½¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
511 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
512 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
513 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢
514 Ǥ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
515 .TP
516 .BR "-o, --out-interface " "[!] \fIname\fP"
517 .\"O Name of an interface via which a packet is going to be sent (for packets
518 .\"O entering the
519 .\"O .BR FORWARD 
520 .\"O and
521 .\"O .B OUTPUT
522 .\"O chains).  
523 .RB ( FORWARD ,
524 .B OUTPUT
525 ¥Á¥§¥¤¥ó¤ËÆþ¤ë) ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¡£
526 .\"O When the "!" argument is used before the interface name, the
527 .\"O sense is inverted.  If the interface name ends in a "+", then any
528 .\"O interface which begins with this name will match.  If this option is
529 .\"O omitted, any interface name will match.
530 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢
531 ¤½¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò½ü³°¤¹¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ë¡£
532 ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤¬ "+" ¤Ç½ª¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
533 ¤½¤Î̾Á°¤Ç»Ï¤Þ¤ëǤ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
534 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¾Êά¤µ¤ì¤¿¾ì¹ç¡¢
535 Ǥ°Õ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
536 .TP
537 .\"O .\" Currently not supported (header-based)
538 .\" (¥Ø¥Ã¥À¤Ë´ð¤Å¤¯¤â¤Î¤Ï) º£¤Î¤È¤³¤í¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
539 .\" 
540 .\" .B "[!] " "-f, --fragment"
541 .\"O .\" This means that the rule only refers to second and further fragments
542 .\"O .\" of fragmented packets.  Since there is no way to tell the source or
543 .\"O .\" destination ports of such a packet (or ICMP type), such a packet will
544 .\"O .\" not match any rules which specify them.  When the "!" argument
545 .\"O .\" precedes the "-f" flag, the rule will only match head fragments, or
546 .\"O .\" unfragmented packets.
547 .\" ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢Ê¬³ä¤µ¤ì¤¿¥Ñ¥±¥Ã¥È (fragmented packet) ¤Î¤¦¤Á
548 .\" 2 ÈÖÌܰʹߤΥѥ±¥Ã¥È¤À¤±¤ò»²¾È¤¹¤ë¥ë¡¼¥ë¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤ë¡£
549 .\" ¤³¤Î¤è¤¦¤Ê¥Ñ¥±¥Ã¥È (¤Þ¤¿¤Ï ICMP ¥¿¥¤¥×¤Î¥Ñ¥±¥Ã¥È) ¤Ï
550 .\" Á÷¿®¸µ¡¦Á÷¿®Àè¥Ý¡¼¥È¤òÃΤëÊýË¡¤¬¤Ê¤¤¤Î¤Ç¡¢
551 .\" Á÷¿®¸µ¤äÁ÷¿®Àè¤ò»ØÄꤹ¤ë¤è¤¦¤Ê¥ë¡¼¥ë¤Ë¤Ï¥Þ¥Ã¥Á¤·¤Ê¤¤¡£
552 .\" "-f" ¥Õ¥é¥°¤ÎÁ°¤Ë "!" ¤òÃÖ¤¯¤È¡¢
553 .\" Ê¬³ä¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Î¤¦¤ÁºÇ½é¤Î¤â¤Î¤«¡¢
554 .\" Ê¬³ä¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ñ¥±¥Ã¥È¤À¤±¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
555 .\" .TP
556 .B "-c, --set-counters " "PKTS BYTES"
557 .\"O This enables the administrater to initialize the packet and byte
558 .\"O counters of a rule (during
559 .\"O .B INSERT,
560 .\"O .B APPEND,
561 .\"O .B REPLACE
562 .\"O operations)
563 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢
564 .RB ( insert ,
565 .BR append ,
566 .B replace
567 Áàºî¤Ë¤ª¤¤¤Æ) ´ÉÍý¼Ô¤Ï¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò
568 ½é´ü²½¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
569 .\"O .SS "OTHER OPTIONS"
570 .SS ¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó
571 .\"O The following additional options can be specified:
572 ¤½¤Î¾¤Ë°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë:
573 .TP
574 .B "-v, --verbose"
575 .\"O Verbose output.  This option makes the list command show the interface
576 .\"O name, the rule options (if any), and the TOS masks.  The packet and
577 .\"O byte counters are also listed, with the suffix 'K', 'M' or 'G' for
578 .\"O 1000, 1,000,000 and 1,000,000,000 multipliers respectively (but see
579 .\"O the
580 .\"O .B -x
581 .\"O flag to change this).
582 .\"O For appending, insertion, deletion and replacement, this causes
583 .\"O detailed information on the rule or rules to be printed.
584 ¾ÜºÙ¤Ê½ÐÎϤò¹Ô¤¦¡£
585 list ¥³¥Þ¥ó¥É¤ÎºÝ¤Ë¡¢¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹Ì¾¡¦
586 (¤â¤·¤¢¤ì¤Ð) ¥ë¡¼¥ë¤Î¥ª¥×¥·¥ç¥ó¡¦TOS ¥Þ¥¹¥¯¤òɽ¼¨¤µ¤»¤ë¡£
587 ¥Ñ¥±¥Ã¥È¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤âɽ¼¨¤µ¤ì¤ë¡£
588 ź»ú 'K', 'M', 'G' ¤Ï¡¢
589 ¤½¤ì¤¾¤ì 1000, 1,000,000, 1,000,000,000 Çܤòɽ¤¹
590 (¤³¤ì¤òÊѹ¹¤¹¤ë
591 .B -x
592 ¥Õ¥é¥°¤â¸«¤è)¡£
593 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò append, insert, delete, replace ¥³¥Þ¥ó¥É¤ËŬÍѤ¹¤ë¤È¡¢
594 ¥ë¡¼¥ë¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ê¾ðÊó¤òɽ¼¨¤¹¤ë¡£
595 .TP
596 .B "-n, --numeric"
597 .\"O Numeric output.
598 .\"O IP addresses and port numbers will be printed in numeric format.
599 .\"O By default, the program will try to display them as host names,
600 .\"O network names, or services (whenever applicable).
601 ¿ôÃͤˤè¤ë½ÐÎϤò¹Ô¤¦¡£
602 IP ¥¢¥É¥ì¥¹¤ä¥Ý¡¼¥ÈÈÖ¹æ¤ò¿ôÃͤˤè¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Çɽ¼¨¤¹¤ë¡£
603 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤³¤Î¥×¥í¥°¥é¥à¤Ï (²Äǽ¤Ç¤¢¤ì¤Ð) ¤³¤ì¤é¤Î¾ðÊó¤ò
604 ¥Û¥¹¥È̾¡¦¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¡¦¥µ¡¼¥Ó¥¹Ì¾¤Çɽ¼¨¤·¤è¤¦¤È¤¹¤ë¡£
605 .TP
606 .B "-x, --exact"
607 .\"O Expand numbers.
608 .\"O Display the exact value of the packet and byte counters,
609 .\"O instead of only the rounded number in K's (multiples of 1000)
610 .\"O M's (multiples of 1000K) or G's (multiples of 1000M).  This option is
611 .\"O only relevant for the 
612 .\"O .B -L
613 .\"O command.
614 ¸·Ì©¤Ê¿ôÃͤÇɽ¼¨¤¹¤ë¡£
615 ¥Ñ¥±¥Ã¥È¥«¥¦¥ó¥¿¤È¥Ð¥¤¥È¥«¥¦¥ó¥¿¤ò¡¢
616 K (1000 ¤Î²¿Çܤ«)¡¦M (1000K ¤Î²¿Çܤ«)¡¦G (1000M ¤Î²¿Çܤ«) ¤Ç¤Ï¤Ê¤¯¡¢
617 ¸·Ì©¤ÊÃͤÇɽ¼¨¤¹¤ë¡£
618 ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢
619 .B -L
620 ¥³¥Þ¥ó¥É¤È¤·¤«´Ø·¸¤·¤Ê¤¤¡£
621 .TP
622 .B "--line-numbers"
623 .\"O When listing rules, add line numbers to the beginning of each rule,
624 .\"O corresponding to that rule's position in the chain.
625 ¥ë¡¼¥ë¤ò°ìÍ÷ɽ¼¨¤¹¤ëºÝ¡¢¤½¤Î¥ë¡¼¥ë¤¬¥Á¥§¥¤¥ó¤Î¤É¤Î°ÌÃ֤ˤ¢¤ë¤«¤òɽ¤¹
626 ¹ÔÈÖ¹æ¤ò³Æ¹Ô¤Î»Ï¤á¤ËÉղ乤롣
627 .TP
628 .B "--modprobe=command"
629 .\"O When adding or inserting rules into a chain, use
630 .\"O .B command
631 .\"O to load any necessary modules (targets, match extensions, etc).
632 ¥Á¥§¥¤¥ó¤Ë¥ë¡¼¥ë¤òÄɲäޤ¿¤ÏÁÞÆþ¤¹¤ëºÝ¤Ë¡¢
633 (¥¿¡¼¥²¥Ã¥È¤ä¥Þ¥Ã¥Á¥ó¥°¤Î³ÈÄ¥¤Ê¤É¤Ç) É¬Íפʥ⥸¥å¡¼¥ë¤ò¥í¡¼¥É¤¹¤ë¤¿¤á¤Ë»È¤¦
634 .B command
635 ¤ò»ØÄꤹ¤ë¡£
636 .\"O .SH MATCH EXTENSIONS
637 .SH ¥Þ¥Ã¥Á¥ó¥°¤Î³ÈÄ¥
638 .\"O ip6tables can use extended packet matching modules.  These are loaded
639 .\"O in two ways: implicitly, when
640 .\"O .B -p
641 .\"O or
642 .\"O .B --protocol
643 .\"O is specified, or with the
644 .\"O .B -m
645 .\"O or
646 .\"O .B --match
647 .\"O options, followed by the matching module name; 
648 ip6tables ¤Ï³ÈÄ¥¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¥Þ¥Ã¥Á¥ó¥°¥â¥¸¥å¡¼¥ë¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
649 ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Ï 2 ¼ïÎà¤ÎÊýË¡¤Ç¥í¡¼¥É¤µ¤ì¤ë:
650 ¥â¥¸¥å¡¼¥ë¤Ï¡¢
651 .B -p
652 ¤Þ¤¿¤Ï
653 .B --protocol
654 ¤Ç°ÅÌۤΤ¦¤Á¤Ë»ØÄꤵ¤ì¤ë¤«¡¢
655 .B -m
656 ¤Þ¤¿¤Ï
657 .B --match
658 ¤Î¸å¤Ë¥â¥¸¥å¡¼¥ë̾¤ò³¤±¤Æ»ØÄꤵ¤ì¤ë¡£
659 .\"O after these, various
660 .\"O extra command line options become available, depending on the specific
661 .\"O module.  You can specify multiple extended match modules in one line,
662 .\"O and you can use the
663 .\"O .B -h
664 .\"O or
665 .\"O .B --help
666 .\"O options after the module has been specified to receive help specific
667 .\"O to that module.
668 ¤³¤ì¤é¤Î¥â¥¸¥å¡¼¥ë¤Î¸å¤í¤Ë¤Ï¡¢¥â¥¸¥å¡¼¥ë¤Ë±þ¤¸¤Æ
669 ¾¤Î¤¤¤í¤¤¤í¤Ê¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
670 Ê£¿ô¤Î³ÈÄ¥¥Þ¥Ã¥Á¥ó¥°¥â¥¸¥å¡¼¥ë¤ò 1 ¹Ô¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
671 ¤Þ¤¿¡¢¥â¥¸¥å¡¼¥ë¤ËÆÃÍ­¤Î¥Ø¥ë¥×¤òɽ¼¨¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢
672 ¥â¥¸¥å¡¼¥ë¤ò»ØÄꤷ¤¿¸å¤Ç
673 .B -h
674 ¤Þ¤¿¤Ï
675 .B --help
676 ¤ò»ØÄꤹ¤ì¤Ð¤è¤¤¡£
677
678 .\"O The following are included in the base package, and most of these can
679 .\"O be preceded by a
680 .\"O .B !
681 .\"O to invert the sense of the match.
682 °Ê²¼¤Î³ÈÄ¥¤¬¥Ù¡¼¥¹¥Ñ¥Ã¥±¡¼¥¸¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
683 ÂçÉôʬ¤Î¤â¤Î¤Ï¡¢¥Þ¥Ã¥Á¥ó¥°¤Î°ÕÌ£¤òµÕ¤Ë¤¹¤ë¤¿¤á¤Ë
684 .B !
685 ¤òÁ°¤Ë¤ª¤¯¤³¤È¤¬¤Ç¤­¤ë¡£
686 .SS tcp
687 .\"O These extensions are loaded if `--protocol tcp' is specified. It
688 .\"O provides the following options:
689 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol tcp' ¤¬»ØÄꤵ¤ì¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
690 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
691 .TP
692 .BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
693 .\"O Source port or port range specification. This can either be a service
694 .\"O name or a port number. An inclusive range can also be specified,
695 .\"O using the format
696 .\"O .IR port : port .
697 Á÷¿®¸µ¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
698 ¥µ¡¼¥Ó¥¹Ì¾¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈÖ¹æ¤ò»ØÄê¤Ç¤­¤ë¡£
699 .IR port : port
700 ¤È¤¤¤¦·Á¼°¤Ç¡¢2 ¤Ä¤ÎÈÖ¹æ¤ò´Þ¤àÈϰϤò»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤ë¡£
701 .\"O If the first port is omitted, "0" is assumed; if the last is omitted,
702 .\"O "65535" is assumed.
703 .\"O If the second port greater then the first they will be swapped.
704 .\"O The flag
705 .\"O .B --sport
706 .\"O is a convenient alias for this option.
707 ºÇ½é¤Î¥Ý¡¼¥È¤ò¾Êά¤·¤¿¾ì¹ç¡¢"0" ¤ò²¾Äꤹ¤ë¡£
708 ºÇ¸å¤Î¥Ý¡¼¥È¤ò¾Êά¤·¤¿¾ì¹ç¡¢"65535" ¤ò²¾Äꤹ¤ë¡£
709 ºÇ¸å¤Î¥Ý¡¼¥È¤¬ºÇ½é¤Î¥Ý¡¼¥È¤è¤êÂ礭¤¤¾ì¹ç¡¢2 ¤Ä¤ÏÆþ¤ì´¹¤¨¤é¤ì¤ë¡£
710 ¥Õ¥é¥°
711 .B --sport
712 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
713 .TP
714 .BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
715 .\"O Destination port or port range specification.  The flag
716 .\"O .B --dport
717 .\"O is a convenient alias for this option.
718 Á÷¿®Àè¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
719 ¥Õ¥é¥°
720 .B --dport
721 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
722 .TP
723 .BR "--tcp-flags " "[!] \fImask\fP \fIcomp\fP"
724 .\"O Match when the TCP flags are as specified.  The first argument is the
725 .\"O flags which we should examine, written as a comma-separated list, and
726 .\"O the second argument is a comma-separated list of flags which must be
727 .\"O set.  Flags are: 
728 .\"O .BR "SYN ACK FIN RST URG PSH ALL NONE" .
729 »ØÄꤵ¤ì¤Æ¤¤¤ë¤è¤¦¤Ê TCP ¥Õ¥é¥°¤Î¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
730 Âè 1 °ú¤­¿ô¤Ïɾ²Á¤µ¤ì¤ë¥Õ¥é¥°¤Ç¡¢¥³¥ó¥Þ¤Çʬ¤±¤é¤ì¤¿¥ê¥¹¥È¤Ç½ñ¤«¤ì¤ë¡£
731 Âè 2 °ú¤­¿ô¤ÏÀßÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¥Õ¥é¥°¤Ç¡¢
732 ¥³¥ó¥Þ¤Çʬ¤±¤é¤ì¤¿¥ê¥¹¥È¤Ç½ñ¤«¤ì¤ë¡£
733 »ØÄê¤Ç¤­¤ë¥Õ¥é¥°¤Ï
734 .B "SYN ACK FIN RST URG PSH ALL NONE"
735 ¤Ç¤¢¤ë¡£
736 .\"O Hence the command
737 .\"O .nf
738 .\"O ip6tables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
739 .\"O .fi
740 .\"O will only match packets with the SYN flag set, and the ACK, FIN and
741 .\"O RST flags unset.
742 ¤è¤Ã¤Æ¡¢¥³¥Þ¥ó¥É
743 .nf
744 ip6tables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST SYN
745 .fi
746 ¤Ï¡¢SYN ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì ACK, FIN, RST ¥Õ¥é¥°¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤
747 ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
748 .TP
749 .B "[!] --syn"
750 .\"O Only match TCP packets with the SYN bit set and the ACK and RST bits
751 .\"O cleared.  Such packets are used to request TCP connection initiation;
752 .\"O for example, blocking such packets coming in an interface will prevent
753 .\"O incoming TCP connections, but outgoing TCP connections will be
754 .\"O unaffected.
755 .\"O It is equivalent to \fB--tcp-flags SYN,RST,ACK SYN\fP.
756 .\"O If the "!" flag precedes the "--syn", the sense of the
757 .\"O option is inverted.
758 SYN ¥Ó¥Ã¥È¤¬ÀßÄꤵ¤ì ACK ¤È RST ¥Ó¥Ã¥È¤¬¥¯¥ê¥¢¤µ¤ì¤Æ¤¤¤ë
759 TCP ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
760 ¤³¤Î¤è¤¦¤Ê¥Ñ¥±¥Ã¥È¤Ï TCP Àܳ¤Î³«»ÏÍ×µá¤Ë»È¤ï¤ì¤ë¡£
761 Î㤨¤Ð¡¢¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ËÆþ¤Ã¤Æ¤¯¤ë¤³¤Î¤è¤¦¤Ê¥Ñ¥±¥Ã¥È¤ò¥Ö¥í¥Ã¥¯¤¹¤ì¤Ð¡¢
762 Æ⦤ؤΠTCP Àܳ¤Ï¶Ø»ß¤µ¤ì¤ë¤¬¡¢³°Â¦¤Ø¤Î TCP Àܳ¤Ë¤Ï±Æ¶Á¤·¤Ê¤¤¡£
763 ¤³¤ì¤Ï \fB--tcp-flags SYN,RST,ACK SYN\fP ¤ÈÅù¤·¤¤¡£
764 "--syn" ¤ÎÁ°¤Ë "!" ¥Õ¥é¥°¤òÃÖ¤¯¤È¡¢
765 SYN ¥Ó¥Ã¥È¤¬¥¯¥ê¥¢¤µ¤ì ACK ¤È FIN ¥Ó¥Ã¥È¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë
766 TCP ¥Ñ¥±¥Ã¥È¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¡£
767 .TP
768 .BR "--tcp-option " "[!] \fInumber\fP"
769 .\"O Match if TCP option set.
770 TCP ¥ª¥×¥·¥ç¥ó¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
771 .SS udp
772 .\"O These extensions are loaded if `--protocol udp' is specified.  It
773 .\"O provides the following options:
774 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol udp' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
775 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
776 .TP
777 .BR "--source-port " "[!] \fIport\fP[:\fIport\fP]"
778 .\"O Source port or port range specification.
779 .\"O See the description of the
780 .\"O .B --source-port
781 .\"O option of the TCP extension for details.
782 Á÷¿®¸µ¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
783 ¾ÜºÙ¤Ï TCP ³ÈÄ¥¤Î
784 .B --source-port
785 ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
786 .TP
787 .BR "--destination-port " "[!] \fIport\fP[:\fIport\fP]"
788 .\"O Destination port or port range specification.
789 .\"O See the description of the
790 .\"O .B --destination-port
791 .\"O option of the TCP extension for details.
792 Á÷¿®Àè¥Ý¡¼¥È¤Þ¤¿¤Ï¥Ý¡¼¥ÈÈϰϤλØÄê¡£
793 ¾ÜºÙ¤Ï TCP ³ÈÄ¥¤Î
794 .B --destination-port
795 ¥ª¥×¥·¥ç¥ó¤ÎÀâÌÀ¤ò»²¾È¤¹¤ë¤³¤È¡£
796 .SS ipv6-icmp
797 .\"O This extension is loaded if `--protocol ipv6-icmp' or `--protocol icmpv6' is
798 .\"O specified. It provides the following option:
799 ¤³¤ì¤é¤Î³ÈÄ¥¤Ï `--protocol ipv6-icmp' 
800 ¤Þ¤¿¤Ï `--protocol icmpv6' ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¥í¡¼¥É¤µ¤ì¡¢
801 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤¬Ä󶡤µ¤ì¤ë:
802 .TP
803 .BR "--icmpv6-type " "[!] \fItypename\fP"
804 .\"O This allows specification of the ICMP type, which can be a numeric
805 .\"O IPv6-ICMP type, or one of the IPv6-ICMP type names shown by the command
806 ¿ôÃͤΠIPv6-ICMP ¥¿¥¤¥×¡¢¤Þ¤¿¤Ï¥³¥Þ¥ó¥É
807 .nf
808  ip6tables -p ipv6-icmp -h
809 .fi
810 ¤Çɽ¼¨¤µ¤ì¤ë IPv6-ICMP ¥¿¥¤¥×̾¤ò»ØÄê¤Ç¤­¤ë¡£
811 .SS mac
812 .TP
813 .BR "--mac-source " "[!] \fIaddress\fP"
814 .\"O Match source MAC address.  It must be of the form XX:XX:XX:XX:XX:XX.
815 .\"O Note that this only makes sense for packets coming from an Ethernet device
816 .\"O and entering the
817 .\"O .BR PREROUTING ,
818 .\"O .B FORWARD
819 .\"O or
820 .\"O .B INPUT
821 .\"O chains.
822 Á÷¿®¸µ MAC ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
823 .I address
824 ¤Ï XX:XX:XX:XX:XX:XX ¤È¤¤¤¦·Á¼°¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
825 ¥¤¡¼¥µ¡¼¥Í¥Ã¥È¥Ç¥Ð¥¤¥¹¤«¤éÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤Ç¡¢
826 .BR PREROUTING ,
827 .BR FORWARD ,
828 .B INPUT
829 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤Ë¤·¤«°ÕÌ£¤¬¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
830 .SS limit
831 .\"O This module matches at a limited rate using a token bucket filter.
832 .\"O A rule using this extension will match until this limit is reached
833 .\"O (unless the `!' flag is used).  It can be used in combination with the
834 .\"O .B LOG
835 .\"O target to give limited logging, for example.
836 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥È¡¼¥¯¥ó¥Ð¥±¥Ä¥Õ¥£¥ë¥¿¤ò»È¤¤¡¢
837 ñ°Ì»þ´Ö¤¢¤¿¤êÀ©¸Â¤µ¤ì¤¿²ó¿ô¤À¤±¥Þ¥Ã¥Á¤¹¤ë¡£
838 ¤³¤Î³ÈÄ¥¤ò»È¤Ã¤¿¥ë¡¼¥ë¤Ï¡¢(`!' ¥Õ¥é¥°¤¬»ØÄꤵ¤ì¤Ê¤¤¸Â¤ê)
839 À©¸Â¤Ë㤹¤ë¤Þ¤Ç¥Þ¥Ã¥Á¤¹¤ë¡£
840 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥í¥°µ­Ï¿¤òÀ©¸Â¤¹¤ë
841 .B LOG
842 ¥¿¡¼¥²¥Ã¥È¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
843 ¤¿¤È¤¨¤Ð¡¢
844 .TP
845 .BI "--limit " "rate"
846 .\"O Maximum average matching rate: specified as a number, with an optional
847 .\"O `/second', `/minute', `/hour', or `/day' suffix; the default is
848 .\"O 3/hour.
849 ñ°Ì»þ´Ö¤¢¤¿¤ê¤ÎÊ¿¶Ñ¥Þ¥Ã¥Á²ó¿ô¤ÎºÇÂçÃÍ¡£
850 ¿ôÃͤǻØÄꤵ¤ì¡¢Åº»ú `/second', `/minute',
851 `/hour', `/day' ¤òÉÕ¤±¤ë¤³¤È¤â¤Ç¤­¤ë¡£
852 ¥Ç¥Õ¥©¥ë¥È¤Ï 3/hour ¤Ç¤¢¤ë¡£
853 .TP
854 .BI "--limit-burst " "number"
855 .\"O Maximum initial number of packets to match: this number gets
856 .\"O recharged by one every time the limit specified above is not reached,
857 .\"O up to this number; the default is 5.
858 ¥Ñ¥±¥Ã¥È¤¬¥Þ¥Ã¥Á¤¹¤ë²ó¿ô¤ÎºÇÂç½é´üÃÍ:
859 ¾å¤Î¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤷ¤¿À©¸Â¤Ë㤷¤Ê¤±¤ì¤Ð¡¢
860 ¤½¤ÎÅÙ¤´¤È¤Ë¡¢¤³¤Î¿ôÃͤˤʤë¤Þ¤Ç 1 ¸Ä¤º¤ÄÁý¤ä¤µ¤ì¤ë¡£
861 ¥Ç¥Õ¥©¥ë¥È¤Ï 5 ¤Ç¤¢¤ë¡£
862 .SS multiport
863 .\"O This module matches a set of source or destination ports.  Up to 15
864 .\"O ports can be specified.  It can only be used in conjunction with
865 .\"O .B "-p tcp"
866 .\"O or
867 .\"O .BR "-p udp" .
868 ¤³¤Î¥â¥¸¥å¡¼¥ë¤ÏÁ÷¿®¸µ¤äÁ÷¿®Àè¤Î¥Ý¡¼¥È¤Î½¸¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
869 ¥Ý¡¼¥È¤Ï 15 ¸Ä¤Þ¤Ç»ØÄê¤Ç¤­¤ë¡£
870 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï
871 .B "-p tcp"
872 ¤Þ¤¿¤Ï
873 .B "-p udp"
874 ¤ÈÁȤ߹ç¤ï¤»¤Æ»È¤¦¤³¤È¤·¤«¤Ç¤­¤Ê¤¤¡£
875 .TP
876 .BR "--source-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
877 .\"O Match if the source port is one of the given ports.  The flag
878 .\"O .B --sports
879 .\"O is a convenient alias for this option.
880 Á÷¿®¸µ¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
881 ¥Õ¥é¥°
882 .B --sports
883 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
884 .TP
885 .BR "--destination-ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
886 .\"O Match if the destination port is one of the given ports.  The flag
887 .\"O .B --dports
888 .\"O is a convenient alias for this option.
889 Á÷¿®Àè¥Ý¡¼¥È¤¬»ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
890 ¥Õ¥é¥°
891 .B --dports
892 ¤Ï¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤ÎÊØÍø¤ÊÊÌ̾¤Ç¤¢¤ë¡£
893 .TP
894 .BR "--ports " "\fIport\fP[,\fIport\fP[,\fIport\fP...]]"
895 .\"O Match if the both the source and destination ports are equal to each
896 .\"O other and to one of the given ports.
897 Á÷¿®¸µ¤ÈÁ÷¿®Àè¥Ý¡¼¥È¤ÎξÊý¤¬¸ß¤¤¤ËÅù¤·¤¤¤«¡¢
898 »ØÄꤵ¤ì¤¿¥Ý¡¼¥È¤Î¤¦¤Á¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ì¤Ð¥Þ¥Ã¥Á¤¹¤ë¡£
899 .SS mark
900 .\"O This module matches the netfilter mark field associated with a packet
901 .\"O (which can be set using the
902 .\"O .B MARK
903 .\"O target below).
904 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¥Ñ¥±¥Ã¥È¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿
905 netfilter ¤Î mark ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë
906 (¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢°Ê²¼¤Î
907 .B MARK
908 ¥¿¡¼¥²¥Ã¥È¤ÇÀßÄꤵ¤ì¤ë)¡£
909 .TP
910 .BR "--mark " "\fIvalue\fP[/\fImask\fP]"
911 .\"O Matches packets with the given unsigned mark value (if a mask is
912 .\"O specified, this is logically ANDed with the mask before the
913 .\"O comparison).
914 »ØÄꤵ¤ì¤¿Éä¹æ¤Ê¤· mark ÃͤΥѥ±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë
915 (mask ¤¬»ØÄꤵ¤ì¤ë¤È¡¢Èæ³Ó¤ÎÁ°¤Ë mask ¤È¤ÎÏÀÍýÀÑ (AND) ¤¬¤È¤é¤ì¤ë)¡£
916 .SS owner
917 .\"O This module attempts to match various characteristics of the packet
918 .\"O creator, for locally-generated packets.  It is only valid in the
919 .\"O .B OUTPUT
920 .\"O chain, and even this some packets (such as ICMP ping responses) may
921 .\"O have no owner, and hence never match.  This is regarded as experimental.
922 ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤ËÉÕ¤¤¤Æ¡¢
923 ¥Ñ¥±¥Ã¥ÈÀ¸À®¼Ô¤Î¤¤¤í¤¤¤í¤ÊÆÃÀ­¤È¤Î¥Þ¥Ã¥Á¥ó¥°¤ò¤È¤ë¡£
924 ¤³¤ì¤Ï
925 .B OUTPUT
926 ¥Á¥§¥¤¥ó¤Î¤ß¤Ç¤·¤«Í­¸ú¤Ç¤Ê¤¤¡£
927 ¤Þ¤¿¡¢(ICMP ping ±þÅú¤Î¤è¤¦¤Ê) ¥Ñ¥±¥Ã¥È¤Ï¡¢
928 ½êÍ­¼Ô¤¬¤¤¤Ê¤¤¤Î¤ÇÀäÂФ˥ޥåÁ¤·¤Ê¤¤¡£
929 ¤³¤ì¤Ï¼Â¸³Åª¤Ê¤â¤Î¤È¤¤¤¦°·¤¤¤Ç¤¢¤ë¡£
930 .TP
931 .BI "--uid-owner " "userid"
932 .\"O Matches if the packet was created by a process with the given
933 .\"O effective user id.
934 »ØÄꤵ¤ì¤¿¼Â¸ú¥æ¡¼¥¶¡¼ ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
935 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
936 .TP
937 .BI "--gid-owner " "groupid"
938 .\"O Matches if the packet was created by a process with the given
939 .\"O effective group id.
940 »ØÄꤵ¤ì¤¿¼Â¸ú¥°¥ë¡¼¥× ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
941 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
942 .TP
943 .BI "--pid-owner " "processid"
944 .\"O Matches if the packet was created by a process with the given
945 .\"O process id.
946 »ØÄꤵ¤ì¤¿¥×¥í¥»¥¹ ID ¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
947 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
948 .TP
949 .BI "--sid-owner " "sessionid"
950 .\"O Matches if the packet was created by a process in the given session
951 .\"O group.
952 »ØÄꤵ¤ì¤¿¥»¥Ã¥·¥ç¥ó¥°¥ë¡¼¥×¤Î¥×¥í¥»¥¹¤Ë¤è¤ê
953 ¥Ñ¥±¥Ã¥È¤¬À¸À®¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
954 .\" .SS state
955 .\"O .\" This module, when combined with connection tracking, allows access to
956 .\"O .\" the connection tracking state for this packet.
957 .\" ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢ÀܳÄÉÀ× (connection tracking) ¤ÈÁȤ߹ç¤ï¤»¤ÆÍѤ¤¤ë¤È¡¢
958 .\" ¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤ÎÀܳÄÉÀ×¾õÂÖ¤òÃΤ뤳¤È¤¬¤Ç¤­¤ë¡£
959 .\" .TP
960 .\" .BI "--state " "state"
961 .\"O .\" Where state is a comma separated list of the connection states to
962 .\"O .\" match.  Possible states are 
963 .\"O .\" .B INVALID
964 .\"O .\" meaning that the packet is associated with no known connection,
965 .\"O .\" .B ESTABLISHED
966 .\"O .\" meaning that the packet is associated with a connection which has seen
967 .\"O .\" packets in both directions,
968 .\" state ¤Ï¡¢¥Þ¥Ã¥Á¥ó¥°¤ò¹Ô¤¦¤¿¤á¤Î¡¢¥³¥ó¥Þ¤Ç¶èÀÚ¤é¤ì¤¿Àܳ¾õÂ֤Υꥹ¥È¤Ç¤¢¤ë¡£
969 .\" »ØÄê²Äǽ¤Ê state ¤Ï°Ê²¼¤ÎÄ̤ꡣ
970 .\" .BR INVALID :
971 .\" ¤³¤Î¥Ñ¥±¥Ã¥È¤Ï´ûÃΤÎÀܳ¤È´Ø·¸¤·¤Æ¤¤¤Ê¤¤¡£
972 .\" .BR ESTABLISHED :
973 .\" ¤³¤Î¥Ñ¥±¥Ã¥È¤ÏÁÐÊý¸þÀܳ¤Î¥Ñ¥±¥Ã¥È¤ÈȽÌÀ¤·¤¿¡£
974 .\"O .\" .B NEW
975 .\"O .\" meaning that the packet has started a new connection, or otherwise
976 .\"O .\" associated with a connection which has not seen packets in both
977 .\"O .\" directions, and
978 .\" .BR NEW :
979 .\" ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤¿¤«¡¢
980 .\" ÁÐÊý¸þÀܳ¤Î¥Ñ¥±¥Ã¥È¤Ç¤Ê¤¤¤â¤Î¤ÈȽÌÀ¤·¤¿¡£
981 .\"O .\" .B RELATED
982 .\"O .\" meaning that the packet is starting a new connection, but is
983 .\"O .\" associated with an existing connection, such as an FTP data transfer,
984 .\"O .\" or an ICMP error.
985 .\" .BR RELATED :
986 .\" ¤³¤Î¥Ñ¥±¥Ã¥È¤¬¿·¤·¤¤Àܳ¤ò³«»Ï¤·¤Æ¤¤¤ë¤¬¡¢
987 .\" FTP ¥Ç¡¼¥¿Å¾Á÷¤ä ICMP ¥¨¥é¡¼¤Î¤è¤¦¤Ë¡¢´û¸¤ÎÀܳ¤Ë´Ø·¸¤·¤Æ¤¤¤ë¡£
988 .\" .SS unclean
989 .\"O .\" This module takes no options, but attempts to match packets which seem
990 .\"O .\" malformed or unusual.  This is regarded as experimental.
991 .\" ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬¤Ê¤¤¤¬¡¢
992 .\" ¤ª¤«¤·¤¯Àµ¾ï¤Ç¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤ë¥Ñ¥±¥Ã¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¡£
993 .\" ¤³¤ì¤Ï¼Â¸³Åª¤Ê¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤Æ¤¤¤ë¡£
994 .\" .SS tos
995 .\"O .\" This module matches the 8 bits of Type of Service field in the IP
996 .\"O .\" header (ie. including the precedence bits). 
997 .\" ¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï IP ¥Ø¥Ã¥À¡¼¤Î (¾å°Ì¥Ó¥Ã¥È¤ò´Þ¤à) 8 ¥Ó¥Ã¥È¤Î
998 .\" Type of Service ¥Õ¥£¡¼¥ë¥É¤Ë¥Þ¥Ã¥Á¤¹¤ë
999 .\" .TP
1000 .\" .BI "--tos " "tos"
1001 .\"O .\" The argument is either a standard name, (use
1002 .\"O .\" .br
1003 .\"O .\"  iptables -m tos -h
1004 .\"O .\" .br
1005 .\"O .\" to see the list), or a numeric value to match.
1006 .\" °ú¤­¿ô¤Ï¡¢¥Þ¥Ã¥Á¤ò¹Ô¤¦É¸½àŪ¤Ê̾Á°¤Ç¤â¿ôÃͤǤâ¤è¤¤
1007 .\" (̾Á°¤Î¥ê¥¹¥È¤ò¸«¤ë¤Ë¤Ï
1008 .\" .br
1009 .\"  iptables -m tos -h
1010 .\" .br
1011 .\" ¤ò»È¤¦¤³¤È)¡£
1012 .\"O .SH TARGET EXTENSIONS
1013 .SH ¥¿¡¼¥²¥Ã¥È¤Î³ÈÄ¥
1014 .\"O iptables can use extended target modules: the following are included
1015 .\"O in the standard distribution.
1016 iptables ¤Ï³ÈÄ¥¥¿¡¼¥²¥Ã¥È¥â¥¸¥å¡¼¥ë¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë:
1017 °Ê²¼¤Î¤â¤Î¤¬¡¢É¸½àŪ¤Ê¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ë¡£
1018 .SS LOG
1019 .\"O Turn on kernel logging of matching packets.  When this option is set
1020 .\"O for a rule, the Linux kernel will print some information on all
1021 .\"O matching packets (like most IPv6 IPv6-header fields) via the kernel log
1022 .\"O (where it can be read with
1023 .\"O .I dmesg
1024 .\"O or 
1025 .\"O .IR syslogd (8)).
1026 ¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤ò¥«¡¼¥Í¥ë¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1027 ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬¥ë¡¼¥ë¤ËÂФ·¤ÆÀßÄꤵ¤ì¤ë¤È¡¢
1028 Linux ¥«¡¼¥Í¥ë¤Ï¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¤Î
1029 (IPv6 ¤Ë¤ª¤±¤ëÂçÉôʬ¤Î IPv6 ¥Ø¥Ã¥À¥Õ¥£¡¼¥ë¥É¤Î¤è¤¦¤Ê) ²¿¤é¤«¤Î¾ðÊó¤ò
1030 ¥«¡¼¥Í¥ë¥í¥°¤Ëɽ¼¨¤¹¤ë
1031 (¥«¡¼¥Í¥ë¥í¥°¤Ï
1032 .I dmesg
1033 ¤Þ¤¿¤Ï
1034 .IR syslogd (8)
1035 ¤Ç¸«¤ë¤³¤È¤¬¤Ç¤­¤ë)¡£
1036 .\"O This is a "non-terminating target", i.e. rule traversal continues at
1037 .\"O the next rule.  So if you want to LOG the packets you refuse, use two
1038 .\"O separate rules with the same matching criteria, first using target LOG
1039 .\"O then DROP (or REJECT).
1040 ¤³¤ì¤Ï¡ÖÈó½ªÎ»¥¿ ¡¼¥²¥Ã¥È¡×¤Ç¤¢¤ë¡£
1041 ¤¹¤Ê¤ï¤Á¡¢¥ë¡¼¥ë¤Î¸¡Æ¤¤Ï¡¢¼¡¤Î¥ë¡¼¥ë¤Ø¤È·Ñ³¤µ¤ì¤ë¡£
1042 ¤è¤Ã¤Æ¡¢µñÈݤ¹¤ë¥Ñ¥±¥Ã¥È¤ò¥í¥°µ­Ï¿¤·¤¿¤±¤ì¤Ð¡¢
1043 Ʊ¤¸¥Þ¥Ã¥Á¥ó¥°È½ÃÇ´ð½à¤ò»ý¤Ä 2 ¤Ä¤Î¥ë¡¼¥ë¤ò»ÈÍѤ·¡¢
1044 ºÇ½é¤Î¥ë¡¼¥ë¤Ç LOG ¥¿¡¼¥²¥Ã¥È¤ò¡¢
1045 ¼¡¤Î¥ë¡¼¥ë¤Ç DROP (¤Þ¤¿¤Ï REJECT) ¥¿¡¼¥²¥Ã¥È¤ò»ØÄꤹ¤ë¡£
1046 .TP
1047 .BI "--log-level " "level"
1048 .\"O Level of logging (numeric or see \fIsyslog.conf\fP(5)).
1049 ¥í¥°µ­Ï¿¤Î¥ì¥Ù¥ë (¿ôÃͤǻØÄꤹ¤ë¤«¡¢
1050 (ÌõÃð: Ì¾Á°¤Ç»ØÄꤹ¤ë¾ì¹ç¤Ï) \fIsyslog.conf\fP(5) ¤ò»²¾È¤¹¤ë¤³¤È)¡£
1051 .TP
1052 .BI "--log-prefix " "prefix"
1053 .\"O Prefix log messages with the specified prefix; up to 29 letters long,
1054 .\"O and useful for distinguishing messages in the logs.
1055 »ØÄꤷ¤¿¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤ò¥í¥°¥á¥Ã¥»¡¼¥¸¤ÎÁ°¤ËÉÕ¤±¤ë¡£
1056 ¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤Ï 29 Ê¸»ú¤Þ¤Ç¤ÎŤµ¤Ç¡¢
1057 ¥í¥°¤Î¤Ê¤«¤Ç¥á¥Ã¥»¡¼¥¸¤ò¶èÊ̤¹¤ë¤Î¤ËÌòΩ¤Ä¡£
1058 .TP
1059 .B --log-tcp-sequence
1060 .\"O Log TCP sequence numbers. This is a security risk if the log is
1061 .\"O readable by users.
1062 TCP ¥·¡¼¥±¥ó¥¹ÈÖ¹æ¤ò¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1063 ¥í¥°¤¬¥æ¡¼¥¶¡¼¤«¤éÆɤá¤ë¾ì¹ç¡¢¥»¥­¥å¥ê¥Æ¥£¾å¤Î´í¸±¤¬¤¢¤ë¡£
1064 .TP
1065 .B --log-tcp-options
1066 .\"O Log options from the TCP packet header.
1067 TCP ¥Ñ¥±¥Ã¥È¥Ø¥Ã¥À¤Î¥ª¥×¥·¥ç¥ó¤ò¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1068 .TP
1069 .B --log-ip-options
1070 .\"O Log options from the IPv6 packet header.
1071 IPv6 ¥Ñ¥±¥Ã¥È¥Ø¥Ã¥À¤Î¥ª¥×¥·¥ç¥ó¤ò¥í¥°¤Ëµ­Ï¿¤¹¤ë¡£
1072 .SS MARK
1073 .\"O This is used to set the netfilter mark value associated with the
1074 .\"O packet.  It is only valid in the
1075 .\"O .B mangle
1076 .\"O table.
1077 ¥Ñ¥±¥Ã¥È¤Ë´ØÏ¢¤Å¤±¤é¤ì¤¿ netfilter ¤Î mark Ãͤò»ØÄꤹ¤ë¡£
1078 .B mangle
1079 ¥Æ¡¼¥Ö¥ë¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1080 .TP
1081 .BI "--set-mark " "mark"
1082 .SS REJECT
1083 .\"O This is used to send back an error packet in response to the matched
1084 .\"O packet: otherwise it is equivalent to 
1085 .\"O .B DROP
1086 .\"O so it is a terminating TARGET, ending rule traversal.
1087 ¥Þ¥Ã¥Á¤·¤¿¥Ñ¥±¥Ã¥È¤Î±þÅú¤È¤·¤Æ¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
1088 ¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤òÁ÷¤é¤Ê¤±¤ì¤Ð¡¢
1089 .B DROP
1090 ¤ÈƱ¤¸¤Ç¤¢¤ê¡¢
1091 TARGET ¤ò½ªÎ»¤·¡¢¥ë¡¼¥ë¤Î¸¡Æ¤¤ò½ªÎ»¤¹¤ë¡£
1092 .\"O This target is only valid in the
1093 .\"O .BR INPUT ,
1094 .\"O .B FORWARD
1095 .\"O and
1096 .\"O .B OUTPUT
1097 .\"O chains, and user-defined chains which are only called from those
1098 .\"O chains.  The following option controls the nature of the error packet
1099 .\"O returned:
1100 ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¡¢
1101 .BR INPUT ,
1102 .BR FORWARD ,
1103 .B OUTPUT
1104 ¥Á¥§¥¤¥ó¤È¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ð¤ì¤ë
1105 ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤À¤±¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1106 °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢ÊÖ¤µ¤ì¤ë¥¨¥é¡¼¥Ñ¥±¥Ã¥È¤ÎÆÃÀ­¤òÀ©¸æ¤¹¤ë¡£
1107 .TP
1108 .BI "--reject-with " "type"
1109 .\"O The type given can be
1110 type ¤È¤·¤Æ»ØÄê²Äǽ¤Ê¤â¤Î¤Ï
1111 .nf
1112 .B " icmp6-no-route"
1113 .B " no-route"
1114 .B " icmp6-adm-prohibited"
1115 .B " adm-prohibited"
1116 .B " icmp6-addr-unreachable"
1117 .B " addr-unreach"
1118 .B " icmp6-port-unreachable"
1119 .B " port-unreach"
1120 .fi
1121 .\"O which return the appropriate IPv6-ICMP error message (\fBport-unreach\fP is
1122 .\"O  the default). 
1123 ¤Ç¤¢¤ê¡¢Å¬ÀڤʠIPv6-ICMP ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òÊÖ¤¹
1124 (\fBport-unreach\fP ¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë)¡£
1125 .\"O Finally, the option
1126 .\"O .B tcp-reset
1127 .\"O can be used on rules which only match the TCP protocol: this causes a
1128 .\"O TCP RST packet to be sent back.  This is mainly useful for blocking 
1129 .\"O .I ident
1130 .\"O (113/tcp) probes which frequently occur when sending mail to broken mail
1131 .\"O hosts (which won't accept your mail otherwise).
1132 ¤µ¤é¤Ë¡¢TCP ¥×¥í¥È¥³¥ë¤Ë¤Î¤ß¥Þ¥Ã¥Á¤¹¤ë¥ë¡¼¥ë¤ËÂФ·¤Æ¡¢¥ª¥×¥·¥ç¥ó
1133 .B tcp-reset
1134 ¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
1135 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤È¡¢TCP RST ¥Ñ¥±¥Ã¥È¤¬Á÷¤êÊÖ¤µ¤ì¤ë¡£
1136 ¼ç¤È¤·¤Æ
1137 .I ident
1138 (113/tcp) ¤Ë¤è¤ëõºº¤òÁ˻ߤ¹¤ë¤Î¤ËÌòΩ¤Ä¡£
1139 .I ident
1140 ¤Ë¤è¤ëõºº¤Ï¡¢²õ¤ì¤Æ¤¤¤ë (¥á¡¼¥ë¤ò¼õ¤±¼è¤é¤Ê¤¤) ¥á¡¼¥ë¥Û¥¹¥È¤Ë
1141 ¥á¡¼¥ë¤¬Á÷¤é¤ì¤ë¾ì¹ç¤ËÉÑÈˤ˵¯¤³¤ë¡£
1142 .\" .SS TOS
1143 .\"O .\" This is used to set the 8-bit Type of Service field in the IP header.
1144 .\"O .\" It is only valid in the
1145 .\"O .\" .B mangle
1146 .\"O .\" table.
1147 .\" IP ¥Ø¥Ã¥À¤Î 8 ¥Ó¥Ã¥È¤Î Type of Service ¥Õ¥£¡¼¥ë¥É¤òÀßÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
1148 .\" .B mangle
1149 .\" ¥Æ¡¼¥Ö¥ë¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1150 .\" .TP
1151 .\" .BI "--set-tos " "tos"
1152 .\"O .\" You can use a numeric TOS values, or use
1153 .\"O .\" .br
1154 .\"O .\"  iptables -j TOS -h
1155 .\"O .\" .br
1156 .\"O .\" to see the list of valid TOS names.
1157 .\" TOS ¤òÈÖ¹æ¤Ç»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
1158 .\" ¤Þ¤¿¡¢
1159 .\" .br
1160 .\"  iptables -j TOS -h
1161 .\" .br
1162 .\" ¤ò¼Â¹Ô¤·¤ÆÆÀ¤é¤ì¤ë¡¢»ÈÍѲÄǽ¤Ê TOS Ì¾¤Î°ìÍ÷¤Ë¤¢¤ë TOS Ì¾¤â»ØÄê¤Ç¤­¤ë¡£
1163 .\" .SS MIRROR
1164 .\"O .\" This is an experimental demonstration target which inverts the source
1165 .\"O .\" and destination fields in the IP header and retransmits the packet.
1166 .\" ¼Â¸³Åª¤Ê¥Ç¥â¥ó¥¹¥È¥ì¡¼¥·¥ç¥óÍѤΥ¿¡¼¥²¥Ã¥È¤Ç¤¢¤ê¡¢
1167 .\" IP ¥Ø¥Ã¥À¤ÎÁ÷¿®¸µ¤ÈÁ÷¿®Àè¥Õ¥£¡¼¥ë¥É¤òÆþ¤ì´¹¤¨¡¢
1168 .\" ¥Ñ¥±¥Ã¥È¤òºÆÁ÷¿®¤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
1169 .\"O .\" It is only valid in the
1170 .\"O .\" .BR INPUT ,
1171 .\"O .\" .B FORWARD
1172 .\"O .\" and 
1173 .\"O .\" .B PREROUTING
1174 .\"O .\" chains, and user-defined chains which are only called from those
1175 .\"O .\" chains.  
1176 .\" ¤³¤ì¤Ï
1177 .\" .BR INPUT ,
1178 .\" .BR FORWARD ,
1179 .\" .B PREROUTING
1180 .\" ¥Á¥§¥¤¥ó¤È¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1181 .\" ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤À¤±¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1182 .\"O .\" Note that the outgoing packets are
1183 .\"O .\" .B NOT
1184 .\"O .\" seen by any packet filtering chains, connection tracking or NAT, to
1185 .\"O .\" avoid loops and other problems.
1186 .\" ¥ë¡¼¥×Åù¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤¿¤á¡¢³°Éô¤ËÁ÷¤é¤ì¤ë¥Ñ¥±¥Ã¥È¤Ï
1187 .\" ¤¤¤«¤Ê¤ë¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¥Á¥§¥¤¥ó¡¦ÀܳÄÉÀס¦NAT ¤«¤é¤â
1188 .\" ´Æ»ë\fB¤µ¤ì¤Ê¤¤\fR ¡£
1189 .\" .SS SNAT
1190 .\"O .\" This target is only valid in the 
1191 .\"O .\" .B nat
1192 .\"O .\" table, in the 
1193 .\"O .\" .B POSTROUTING
1194 .\"O .\" chain.  It specifies that the source address of the packet should be
1195 .\"O .\" modified (and all future packets in this connection will also be
1196 .\"O .\" mangled), and rules should cease being examined.  It takes one option:
1197 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï
1198 .\" .B nat
1199 .\" ¥Æ¡¼¥Ö¥ë¤È
1200 .\" .B POSTROUTING
1201 .\" ¥Á¥§¥¤¥ó¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1202 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®¸µ¥¢¥É¥ì¥¹¤ò½¤Àµ¤µ¤»¤ë
1203 .\" (¤³¤ÎÀܳ¤Î°Ê¹ß¤Î¥Ñ¥±¥Ã¥È¤â½¤Àµ¤·¤Æʬ¤«¤é¤Ê¤¯¤¹¤ë (mangle))¡£
1204 .\" ¤µ¤é¤Ë¡¢¥ë¡¼¥ë¤¬É¾²Á¤òÃæ»ß¤¹¤ë¤è¤¦¤Ë»Ø¼¨¤¹¤ë¡£
1205 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë:
1206 .\" .TP
1207 .\" .BR "--to-source  " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
1208 .\"O .\" which can specify a single new source IP address, an inclusive range
1209 .\"O .\" of IP addresses, and optionally, a port range (which is only valid if
1210 .\"O .\" the rule also specifies
1211 .\"O .\" .B "-p tcp"
1212 .\"O .\" or
1213 .\"O .\" .BR "-p udp" ).
1214 .\" 1 ¤Ä¤Î¿·¤·¤¤Á÷¿®¸µ IP ¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤ÎÈϰϤ¬»ØÄê¤Ç¤­¤ë¡£
1215 .\" ¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¡¢¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄê¤Ç¤­¤ë
1216 .\" (¥ë¡¼¥ë¤¬
1217 .\" .B "-p tcp"
1218 .\" ¤Þ¤¿¤Ï
1219 .\" .B "-p udp"
1220 .\" ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú)¡£
1221 .\"O .\" If no port range is specified, then source ports below 512 will be
1222 .\"O .\" mapped to other ports below 512: those between 512 and 1023 inclusive
1223 .\"O .\" will be mapped to ports below 1024, and other ports will be mapped to
1224 .\"O .\" 1024 or above. Where possible, no port alteration will occur.
1225 .\" ¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢
1226 .\" 512 Ì¤Ëþ¤ÎÁ÷¿®¸µ¥Ý¡¼¥È¤Ï¡¢Â¾¤Î 512 Ì¤Ëþ¤Î¥Ý¡¼¥È¤Ë¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
1227 .\" 512 ¡Á 1023 ¤Þ¤Ç¤Î¥Ý¡¼¥È¤Ï¡¢1024 Ì¤Ëþ¤Î¥Ý¡¼¥È¤Ë¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
1228 .\" ¤½¤ì°Ê³°¤Î¥Ý¡¼¥È¤Ï¡¢1024 °Ê¾å¤Î¥Ý¡¼¥È¤Ë¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤ë¡£
1229 .\" ²Äǽ¤Ç¤¢¤ì¤Ð¡¢¥Ý¡¼¥È¤ÎÊÑ´¹¤Ïµ¯¤³¤é¤Ê¤¤¡£
1230 .\" .SS DNAT
1231 .\"O .\" This target is only valid in the 
1232 .\"O .\" .B nat
1233 .\"O .\" table, in the 
1234 .\"O .\" .B PREROUTING
1235 .\"O .\" and
1236 .\"O .\" .B OUTPUT
1237 .\"O .\" chains, and user-defined chains which are only called from those
1238 .\"O .\" chains.  It specifies that the destination address of the packet
1239 .\"O .\" should be modified (and all future packets in this connection will
1240 .\"O .\" also be mangled), and rules should cease being examined.  It takes one
1241 .\"O .\" option:
1242 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï
1243 .\" .B nat
1244 .\" ¥Æ¡¼¥Ö¥ë¤È
1245 .\" .BR PREROUTING ,
1246 .\" .B OUTPUT
1247 .\" ¥Á¥§¥¤¥ó¡¢¤³¤ì¤é¤Î¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1248 .\" ¥æ¡¼¥¶¡¼ÄêµÁ¥Á¥§¥¤¥ó¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1249 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®À襢¥É¥ì¥¹¤ò½¤Àµ¤¹¤ë
1250 .\" (¤³¤ÎÀܳ¤Î°Ê¹ß¤Î¥Ñ¥±¥Ã¥È¤â½¤Àµ¤·¤Æʬ¤«¤é¤Ê¤¯¤¹¤ë (mangle))¡£
1251 .\" ¤µ¤é¤Ë¡¢¥ë¡¼¥ë¤Ë¤è¤ë¥Á¥§¥Ã¥¯¤ò»ß¤á¤µ¤»¤ë¡£
1252 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë:
1253 .\" .TP
1254 .\" .BR "--to-destination " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
1255 .\"O .\" which can specify a single new destination IP address, an inclusive
1256 .\"O .\" range of IP addresses, and optionally, a port range (which is only
1257 .\"O .\" valid if the rule also specifies
1258 .\"O .\" .B "-p tcp"
1259 .\"O .\" or
1260 .\"O .\" .BR "-p udp" ).
1261 .\"O .\" If no port range is specified, then the destination port will never be
1262 .\"O .\" modified.
1263 .\" 1 ¤Ä¤Î¿·¤·¤¤Á÷¿®Àè IP ¥¢¥É¥ì¥¹¡¢¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤ÎÈϰϤ¬»ØÄê¤Ç¤­¤ë¡£
1264 .\" ¥ª¥×¥·¥ç¥ó¤È¤·¤Æ¡¢¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄê¤Ç¤­¤ë
1265 .\" (¥ë¡¼¥ë¤¬
1266 .\" .B "-p tcp"
1267 .\" ¤Þ¤¿¤Ï
1268 .\" .B "-p udp"
1269 .\" ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú)¡£
1270 .\" ¥Ý¡¼¥È¤ÎÈϰϤ¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Á÷¿®À襢¥É¥ì¥¹¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1271 .\" .SS MASQUERADE
1272 .\"O .\" This target is only valid in the 
1273 .\"O .\" .B nat
1274 .\"O .\" table, in the 
1275 .\"O .\" .B POSTROUTING
1276 .\"O .\" chain.  
1277 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï
1278 .\" .B nat
1279 .\" ¥Æ¡¼¥Ö¥ë¡¢¤Þ¤¿¤Ï
1280 .\" .B POSTROUTING
1281 .\" ¥Á¥§¥¤¥ó¤Î¤ß¤ÇÍ­¸ú¤Ç¤¢¤ë¡£
1282 .\"O .\" It should only be used with dynamically assigned IP (dialup)
1283 .\"O .\" connections: if you have a static IP address, you should use the SNAT
1284 .\"O .\" target.  
1285 .\" Æ°Åª³ä¤êÅö¤Æ IP (¥À¥¤¥ä¥ë¥¢¥Ã¥×) Àܳ¤Î¾ì¹ç¤Ë¤Î¤ß»È¤¦¤Ù¤­¤Ç¤¢¤ë¡£
1286 .\" ¸ÇÄê IP ¥¢¥É¥ì¥¹¤Ê¤é¤Ð¡¢SNAT ¥¿¡¼¥²¥Ã¥È¤ò»È¤¦¤Ù¤­¤Ç¤¢¤ë¡£
1287 .\"O .\" Masquerading is equivalent to specifying a mapping to the IP
1288 .\"O .\" address of the interface the packet is going out, but also has the
1289 .\"O .\" effect that connections are 
1290 .\"O .\" .I forgotten
1291 .\"O .\" when the interface goes down.  
1292 .\" ¥Þ¥¹¥«¥ì¡¼¥Ç¥£¥ó¥°¤Ï¡¢¥Ñ¥±¥Ã¥È¤¬Á÷¿®¤µ¤ì¤ë¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Î
1293 .\" IP ¥¢¥É¥ì¥¹¤Ø¤Î¥Þ¥Ã¥Ô¥ó¥°¤ò»ØÄꤹ¤ë¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¤¬¡¢
1294 .\" ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬Ää»ß¤·¤¿¾ì¹ç¤ËÀܳ¤ò\fI˺¤ì¤ë\fR¤È¤¤¤¦¸½¾Ý¤¬¤¢¤ë¡£
1295 .\"O .\" This is the correct behavior when the
1296 .\"O .\" next dialup is unlikely to have the same interface address (and hence
1297 .\"O .\" any established connections are lost anyway).  It takes one option:
1298 .\" ¼¡¤Î¥À¥¤¥ä¥ë¥¢¥Ã¥×¤Ç¤ÏƱ¤¸¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¥¢¥É¥ì¥¹¤Ë¤Ê¤ë²ÄǽÀ­¤¬Ä㤤
1299 .\" (¤½¤Î¤¿¤á¡¢Á°²ó³ÎΩ¤µ¤ì¤¿Àܳ¤Ï¼º¤ï¤ì¤ë) ¾ì¹ç¡¢
1300 .\" ¤³¤ÎÆ°ºî¤ÏÀµ¤·¤¤¡£
1301 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë¡£
1302 .\" .TP
1303 .\" .BR "--to-ports " "\fIport\fP[-\fIport\fP]"
1304 .\"O .\" This specifies a range of source ports to use, overriding the default 
1305 .\"O .\" .B SNAT
1306 .\"O .\" source port-selection heuristics (see above).  This is only valid
1307 .\"O .\" if the rule also specifies
1308 .\"O .\" .B "-p tcp"
1309 .\"O .\" or
1310 .\"O .\" .BR "-p udp" .
1311 .\" ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï¡¢»ÈÍѤ¹¤ëÁ÷¿®¸µ¥Ý¡¼¥È¤ÎÈϰϤò»ØÄꤷ¡¢
1312 .\" ¥Ç¥Õ¥©¥ë¥È¤Î
1313 .\" .B SNAT
1314 .\" Á÷¿®¸µ¥Ý¡¼¥È¤ÎÁªÂòÊýË¡ (¾åµ­) ¤è¤ê¤âÍ¥À褵¤ì¤ë¡£
1315 .\" ¥ë¡¼¥ë¤¬
1316 .\" .B "-p tcp"
1317 .\" ¤Þ¤¿¤Ï
1318 .\" .B "-p udp"
1319 .\" ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1320 .\" .SS REDIRECT
1321 .\"O .\" This target is only valid in the 
1322 .\"O .\" .B nat
1323 .\"O .\" table, in the 
1324 .\"O .\" .B PREROUTING
1325 .\"O .\" and
1326 .\"O .\" .B OUTPUT
1327 .\"O .\" chains, and user-defined chains which are only called from those
1328 .\"O .\" chains.  It alters the destination IP address to send the packet to
1329 .\"O .\" the machine itself (locally-generated packets are mapped to the
1330 .\"O .\" 127.0.0.1 address).  It takes one option:
1331 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¡¢
1332 .\" .B nat
1333 .\" ¥Æ¡¼¥Ö¥ëÆâ¤Î
1334 .\" .B PREROUTING 
1335 .\" ¥Á¥§¥¤¥óµÚ¤Ó
1336 .\" .B OUTPUT 
1337 .\" ¥Á¥§¥¤¥ó¡¢¤½¤·¤Æ¤³¤ì¤é¥Á¥§¥¤¥ó¤«¤é¸Æ¤Ó½Ð¤µ¤ì¤ë
1338 .\" ¥æ¡¼¥¶ÄêµÁ¥Á¥§¥¤¥ó¤Ç¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1339 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ï¥Ñ¥±¥Ã¥È¤ÎÁ÷¿®Àè IP ¥¢¥É¥ì¥¹¤ò
1340 .\" ¥Þ¥·¥ó¼«¿È¤Î IP ¥¢¥É¥ì¥¹¤ËÊÑ´¹¤¹¤ë¡£
1341 .\" (¥í¡¼¥«¥ë¤ÇÀ¸À®¤µ¤ì¤¿¥Ñ¥±¥Ã¥È¤Ï¡¢¥¢¥É¥ì¥¹ 127.0.0.1 ¤Ë¥Þ¥Ã¥×¤µ¤ì¤ë)¡£
1342 .\" ¤³¤Î¥¿¡¼¥²¥Ã¥È¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤¬ 1 ¤Ä¤¢¤ë:
1343 .\" .TP
1344 .\" .BR "--to-ports " "\fIport\fP[-\fIport\fP]"
1345 .\"O .\" This specifies a destination port or range of ports to use: without
1346 .\"O .\" this, the destination port is never altered.  This is only valid
1347 .\"O .\" if the rule also specifies
1348 .\"O .\" .B "-p tcp"
1349 .\"O .\" or
1350 .\"O .\" .BR "-p udp" .
1351 .\" ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï»ÈÍѤµ¤ì¤ëÁ÷¿®Àè¥Ý¡¼¥È¡¦¥Ý¡¼¥ÈÈÏ°Ï¡¦Ê£¿ô¥Ý¡¼¥È¤ò»ØÄꤹ¤ë¡£
1352 .\" ¤³¤Î¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢Á÷¿®Àè¥Ý¡¼¥È¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£
1353 .\" ¥ë¡¼¥ë¤¬
1354 .\" .B "-p tcp"
1355 .\" ¤Þ¤¿¤Ï
1356 .\" .B "-p udp"
1357 .\" ¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
1358 .\"O .SH DIAGNOSTICS
1359 .SH ÊÖ¤êÃÍ
1360 .\"O Various error messages are printed to standard error.  The exit code
1361 .\"O is 0 for correct functioning.  Errors which appear to be caused by
1362 .\"O invalid or abused command line parameters cause an exit code of 2, and
1363 .\"O other errors cause an exit code of 1.
1364 ¤¤¤í¤¤¤í¤Ê¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬É¸½à¥¨¥é¡¼¤Ëɽ¼¨¤µ¤ì¤ë¡£
1365 Àµ¤·¤¯µ¡Ç½¤·¤¿¾ì¹ç¡¢½ªÎ»¥³¡¼¥É¤Ï 0 ¤Ç¤¢¤ë¡£
1366 ÉÔÀµ¤Ê¥³¥Þ¥ó¥É¥é¥¤¥ó¥Ñ¥é¥á¡¼¥¿¤Ë¤è¤ê¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï¡¢
1367 ½ªÎ»¥³¡¼¥É 2 ¤¬ÊÖ¤µ¤ì¤ë¡£
1368 ¤½¤Î¾¤Î¥¨¥é¡¼¤Î¾ì¹ç¤Ï¡¢½ªÎ»¥³¡¼¥É 1 ¤¬ÊÖ¤µ¤ì¤ë¡£
1369 .\"O .SH BUGS
1370 .SH ¥Ð¥°
1371 .\"O Bugs?  What's this? ;-)
1372 .\"O Well... the counters are not reliable on sparc64.
1373 ¥Ð¥°? ¥Ð¥°¤Ã¤Æ²¿? ;-)
1374 ¤¨¡¼¤È¡Ä¡¢sparc64 ¤Ç¤Ï¥«¥¦¥ó¥¿¡¼Ãͤ¬¿®Íê¤Ç¤­¤Ê¤¤¡£
1375 .\"O .SH COMPATIBILITY WITH IPCHAINS
1376 .SH IPCHAINS ¤È¤Î¸ß´¹À­
1377 .\"O This 
1378 .\"O .B ip6tables
1379 .\"O is very similar to ipchains by Rusty Russell.  The main difference is
1380 .\"O that the chains 
1381 .\"O .B INPUT
1382 .\"O and
1383 .\"O .B OUTPUT
1384 .\"O are only traversed for packets coming into the local host and
1385 .\"O originating from the local host respectively.  Hence every packet only
1386 .\"O passes through one of the three chains (except loopback traffic, which
1387 .\"O involves both INPUT and OUTPUT chains); previously a forwarded packet
1388 .\"O would pass through all three.
1389 .B ip6tables
1390 ¤Ï¡¢Rusty Russell ¤Î ipchains ¤ÈÈó¾ï¤Ë¤è¤¯»÷¤Æ¤¤¤ë¡£
1391 Â礭¤Ê°ã¤¤¤Ï¡¢¥Á¥§¥¤¥ó
1392 .B INPUT
1393 ¤È
1394 .B OUTPUT
1395 ¤¬¡¢¤½¤ì¤¾¤ì¥í¡¼¥«¥ë¥Û¥¹¥È¤ËÆþ¤Ã¤Æ¤¯¤ë¥Ñ¥±¥Ã¥È¤È¡¢
1396 ¥í¡¼¥«¥ë¥Û¥¹¥È¤«¤é½Ð¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤Î¤ß¤·¤«Ä´¤Ù¤Ê¤¤¤È¤¤¤¦ÅÀ¤Ç¤¢¤ë¡£
1397 ¤è¤Ã¤Æ¡¢Á´¤Æ¤Î¥Ñ¥±¥Ã¥È¤Ï 3 ¤Ä¤¢¤ë¥Á¥§¥¤¥ó¤Î¤¦¤Á 1 ¤Ä¤·¤«Ä̤é¤Ê¤¤
1398 (¥ë¡¼¥×¥Ð¥Ã¥¯¥È¥é¥Õ¥£¥Ã¥¯¤ÏÎã³°¤Ç¡¢INPUT ¤È OUTPUT ¥Á¥§¥¤¥ó¤ÎξÊý¤òÄ̤ë)¡£
1399 °ÊÁ°¤Ï (ipchains ¤Ç¤Ï)¡¢
1400 ¥Õ¥©¥ï¡¼¥É¤µ¤ì¤ë¥Ñ¥±¥Ã¥È¤¬ 3 ¤Ä¤Î¥Á¥§¥¤¥óÁ´¤Æ¤òÄ̤äƤ¤¤¿¡£
1401 .PP
1402 .\"O The other main difference is that 
1403 .\"O .B -i
1404 .\"O refers to the input interface;
1405 .\"O .B -o
1406 .\"O refers to the output interface, and both are available for packets
1407 .\"O entering the
1408 .\"O .B FORWARD
1409 .\"O chain.
1410 ¤½¤Î¾¤ÎÂ礭¤Ê°ã¤¤¤Ï¡¢
1411 .B -i
1412 ¤ÇÆþÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡¢
1413 .B -o
1414 ¤Ç½ÐÎÏ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤ò»ØÄꤷ¡¢
1415 ¤È¤â¤Ë
1416 .B FORWARD
1417 ¥Á¥§¥¤¥ó¤ËÆþ¤ë¥Ñ¥±¥Ã¥È¤ËÂФ·¤Æ»ØÄê²Äǽ¤ÊÅÀ¤Ç¤¢¤ë¡£
1418 .\"O .\" .PP The various forms of NAT have been separated out; 
1419 .\"O .\" .B iptables 
1420 .\"O .\" is a pure packet filter when using the default `filter' table, with
1421 .\"O .\" optional extension modules.  This should simplify much of the previous
1422 .\"O .\" confusion over the combination of IP masquerading and packet filtering
1423 .\"O .\" seen previously.  So the following options are handled differently:
1424 .\" .PP
1425 .\" NAT ¤Î¤¤¤í¤¤¤í¤Ê·Á¼°¤¬Ê¬³ä¤µ¤ì¤¿¡£
1426 .\" ¥ª¥×¥·¥ç¥ó¤Î³ÈÄ¥¥â¥¸¥å¡¼¥ë¤È¤È¤â¤Ë
1427 .\" ¥Ç¥Õ¥©¥ë¥È¤Î¡Ö¥Õ¥£¥ë¥¿¡×¥Æ¡¼¥Ö¥ë¤òÍѤ¤¤¿¾ì¹ç¡¢
1428 .\" .B iptables 
1429 .\" ¤Ï½ã¿è¤Ê¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¤È¤Ê¤ë¡£
1430 .\" ¤³¤ì¤Ï¡¢°ÊÁ°¤ß¤é¤ì¤¿ IP ¥Þ¥¹¥«¥ì¡¼¥Ç¥£¥ó¥°¤È¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Î
1431 .\" Áȹ礻¤Ë¤è¤ëº®Íð¤ò´Êά²½¤¹¤ë¡£
1432 .\" ¤è¤Ã¤Æ¡¢¥ª¥×¥·¥ç¥ó
1433 .\" .br
1434 .\"  -j MASQ
1435 .\" .br
1436 .\"  -M -S
1437 .\" .br
1438 .\"  -M -L
1439 .\" .br
1440 .\" ¤ÏÊ̤Τâ¤Î¤È¤·¤Æ°·¤ï¤ì¤ë¡£
1441 .\"O There are several other changes in ip6tables.
1442 ip6tables ¤Ç¤Ï¡¢¤½¤Î¾¤Ë¤â¤¤¤¯¤Ä¤«¤ÎÊѹ¹¤¬¤¢¤ë¡£
1443 .\"O .SH SEE ALSO
1444 .SH ´ØÏ¢¹àÌÜ
1445 .BR ip6tables-save (8),
1446 .BR ip6tables-restore(8),
1447 .BR iptables (8),
1448 .BR iptables-save (8),
1449 .BR iptables-restore (8).
1450 .P
1451 .\"O The packet-filtering-HOWTO details iptables usage for
1452 .\"O packet filtering, the NAT-HOWTO details NAT,
1453 .\"O the netfilter-extensions-HOWTO details the extensions that are
1454 .\"O not in the standard distribution,
1455 .\"O and the netfilter-hacking-HOWTO details the netfilter internals.
1456 ¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿¥ê¥ó¥°¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤Ê iptables ¤Î»ÈÍÑË¡¤ò
1457 ÀâÌÀ¤·¤Æ¤¤¤ë packet-filtering-HOWTO¡£
1458 NAT ¤Ë¤Ä¤¤¤Æ¾ÜºÙ¤ËÀâÌÀ¤·¤Æ¤¤¤ë NAT-HOWTO¡£
1459 ɸ½àŪ¤ÊÇÛÉۤˤϴޤޤì¤Ê¤¤³ÈÄ¥¤Î¾ÜºÙ¤òÀâÌÀ¤·¤Æ¤¤¤ë netfilter-extensions-HOWTO¡£
1460 ÆâÉô¹½Â¤¤Ë¤Ä¤¤¤Æ¾ÜºÙ¤ËÀâÌÀ¤·¤Æ¤¤¤ë netfilter-hacking-HOWTO¡£
1461 .br
1462 .\"O See
1463 .\"O .BR "http://www.netfilter.org/" .
1464 .B "http://www.netfilter.org/"
1465 ¤ò»²¾È¤Î¤³¤È¡£
1466 .\"O .SH AUTHORS
1467 .SH Ãø¼Ô
1468 .\"O Rusty Russell wrote iptables, in early consultation with Michael
1469 .\"O Neuling.
1470 Rusty Russell ¤Ï¡¢½é´ü¤ÎÃʳ¬¤Ç Michael Neuling ¤ËÁêÃ̤·¤Æ iptables ¤ò½ñ¤¤¤¿¡£
1471 .PP
1472 .\"O Marc Boucher made Rusty abandon ipnatctl by lobbying for a generic packet
1473 .\"O selection framework in iptables, then wrote the mangle table, the owner match,
1474 .\"O the mark stuff, and ran around doing cool stuff everywhere.
1475 Marc Boucher ¤Ï Rusty ¤Ë iptables ¤Î°ìÈÌŪ¤Ê¥Ñ¥±¥Ã¥ÈÁªÂò¤Î¹Í¤¨Êý¤ò´«¤á¤Æ¡¢
1476 ipnatctl ¤ò»ß¤á¤µ¤»¤¿¡£
1477 ¤½¤·¤Æ¡¢mangle ¥Æ¡¼¥Ö¥ë¡¦½êÍ­¼Ô¥Þ¥Ã¥Á¥ó¥°¡¦
1478 mark µ¡Ç½¤ò½ñ¤­¡¢¤¤¤¿¤ë¤È¤³¤í¤Ç»È¤ï¤ì¤Æ¤¤¤ëÁÇÀ²¤é¤·¤¤¥³¡¼¥É¤ò½ñ¤¤¤¿¡£
1479 .PP
1480 .\"O James Morris wrote the TOS target, and tos match.
1481 James Morris ¤¬ TOS ¥¿¡¼¥²¥Ã¥È¤È tos ¥Þ¥Ã¥Á¥ó¥°¤ò½ñ¤¤¤¿¡£
1482 .PP
1483 .\"O Jozsef Kadlecsik wrote the REJECT target.
1484 Jozsef Kadlecsik ¤¬ REJECT ¥¿¡¼¥²¥Ã¥È¤ò½ñ¤¤¤¿¡£
1485 .PP
1486 .\"O Harald Welte wrote the ULOG target, TTL match+target and libipulog.
1487 Harald Welte ¤¬ ULOG ¥¿¡¼¥²¥Ã¥È¡¦TTL ¥Þ¥Ã¥Á¥ó¥°¤È TTL ¥¿¡¼¥²¥Ã¥È¡¦
1488 libipulog ¤ò½ñ¤¤¤¿¡£
1489 .PP
1490 .\"O The Netfilter Core Team is: Marc Boucher, Martin Josefsson, Jozsef Kadlecsik,
1491 .\"O James Morris, Harald Welte and Rusty Russell.
1492 Netfilter ¥³¥¢¥Á¡¼¥à¤Ï¡¢Marc Boucher, Martin Josefsson, Jozsef Kadlecsik,
1493 James Morris, Harald Welte, Rusty Russell ¤Ç¤¢¤ë¡£
1494 .PP
1495 .\"O ip6tables man page created by Andras Kis-Szabo, based on
1496 .\"O iptables man page written by Herve Eychenne <rv@wallfire.org>.
1497 ip6tables ¤Î man ¥Ú¡¼¥¸¤Ï¡¢Andras Kis-Szabo ¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿¡£
1498 ¤³¤ì¤Ï Herve Eychenne <rv@wallfire.org> ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿
1499 iptables ¤Î man ¥Ú¡¼¥¸¤ò¸µ¤Ë¤·¤Æ¤¤¤ë¡£
1500 .\"O .\" .. and did I mention that we are incredibly cool people?
1501 .\"O .\" .. sexy, too ..
1502 .\"O .\" .. witty, charming, powerful ..
1503 .\"O .\" .. and most of all, modest ..
1504 .\" .. ¤½¤·¤Æ¡¢ËÍÅù¤¬¤È¤Æ¤â¥¯¡¼¥ë¤ÊÅÛ¤é¤À¤È¸À¤Ã¤Æ¤ª¤¤¤Æ¤â¤¤¤¤¤«¤Ê¡©
1505 .\" .. ¥»¥¯¥·¡¼¤Ç ..
1506 .\" .. ¤È¤Æ¤â¥¦¥£¥Ã¥È¤ËÉÙ¤ó¤Ç¤¤¤Æ¡¢¥Á¥ã¡¼¥ß¥ó¥°¤Ç¡¢¥Ñ¥ï¥Õ¥ë¤Ç ..
1507 .\" .. ¤½¤·¤Æ¡¢¤ß¤ó¤Ê¸¬µõ¤Ê¤ó¤À ..