This file is indexed.

/usr/share/doc/HOWTO/ja-html/IPCHAINS-HOWTO-8.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>Linux IPCHAINS-HOWTO: $BIUO?(B: ipchains $B$H(B ipfwadm $B$H$N0c$$(B</TITLE>
 <LINK HREF="IPCHAINS-HOWTO-9.html" REL=next>
 <LINK HREF="IPCHAINS-HOWTO-7.html" REL=previous>
 <LINK HREF="IPCHAINS-HOWTO.html#toc8" REL=contents>
</HEAD>
<BODY>
<A HREF="IPCHAINS-HOWTO-9.html">$B<!$N%Z!<%8(B</A>
<A HREF="IPCHAINS-HOWTO-7.html">$BA0$N%Z!<%8(B</A>
<A HREF="IPCHAINS-HOWTO.html#toc8">$BL\<!$X(B</A>
<HR>
<H2><A NAME="ipfwadm-diff"></A> <A NAME="s8">8.</A> <A HREF="IPCHAINS-HOWT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
$B8=:_!"(B ipchains $B$O(B $B$=$N$h$&$J;n$_$KBP$7$F!"B>$NITEv$J>l9g$HF1MM$K%(%i!<$rJV$7$^$9!#(B
</LI>
</OL>
</P>

<H2><A NAME="ss8.1">8.1</A> <A HREF="IPCHAINS-HOWTO.html#toc8.1">$B%/%#%C%/%j%U%!%l%s%90lMw(B</A>
</H2>

<P>[ $B<g$K!"%3%^%s%I0z?t$OBgJ8;z$G!"%*%W%7%g%s0z?t$O>.J8;z$G$9!#(B]</P>

<P>$BCm0U$9$Y$-0lE@$H$7$F!"(B $B%^%9%+%l!<%G%#%s%0$O(B `-j MASQ' $B$H5-:\$7$^$9(B;
$B$3$l$O(B `-j ACCEPT' $B$HA4$/0[$J$j!"$^$?(B <CODE>ipfwadm</CODE> $B$N$h$&$JI{<!E*8z2L$H$7$F$O<h$j07$$$^$;$s!#(B</P>

<P>
<PRE>
================================================================
| ipfwadm      | ipchains              | $BCm0U(B
----------------------------------------------------------------
| -A [both]    | -N acct               | `acct' $B%A%'%$%s$r@8@.$7!"(B
|              |&amp; -I 1 input -j acct   | $B=PNO$HF~NO%Q%1%C%H$r$=$l(B
|              |&amp; -I 1 output -j acct  | $B$KDL2a$5$;$^$9!#(B
|              |&amp; acct                 |
----------------------------------------------------------------
| -A in        | input                 | $B%?!<%2%C%H$J$7$N%k!<%k(B
----------------------------------------------------------------
| -A out       | output                | $B%?!<%2%C%H$J$7$N%k!<%k(B
----------------------------------------------------------------
| -F           | forward               | [$B%A%'%$%s(B]$B$H$7$FMQ$$$^$9!#(B
----------------------------------------------------------------
| -I           | input                 | [$B%A%'%$%s(B]$B$H$7$FMQ$$$^$9!#(B
----------------------------------------------------------------
| -O           | output                | [$B%A%'%$%s(B]$B$H$7$FMQ$$$^$9!#(B
----------------------------------------------------------------
| -M -l        | -M -L                 |
----------------------------------------------------------------
| -M -s        | -M -S                 |
----------------------------------------------------------------
| -a policy    | -A [chain] -j POLICY  | ($B$G$b(B -r $B$H(B -m $B$b8+$F2<(B
|              |                       | $B$5$$(B).
----------------------------------------------------------------
| -d policy    | -D [chain] -j POLICY  | ($B$G$b(B -r $B$H(B -m $B$b8+$F2<(B
|              |                       | $B$5$$(B).
----------------------------------------------------------------
| -i policy    | -I 1 [chain] -j POLICY| ($B$G$b(B -r $B$H(B -m $B$b8+$F2<(B
|              |                       | $B$5$$(B).
----------------------------------------------------------------
| -l           | -L                    |
----------------------------------------------------------------
| -z           | -Z                    |
----------------------------------------------------------------
| -f           | -F                    |
----------------------------------------------------------------
| -p           | -P                    |
----------------------------------------------------------------
| -c           | -C                    |
----------------------------------------------------------------
| -P           | -p                    |
----------------------------------------------------------------
| -S           | -s                    | 1$B%]!<%H$^$?$O%l%s%8$KBP(B
|              |                       | $B$7$F$N$_5!G=$7!"J#?t$G(B
|              |                       | $B$O$"$j$^$;$s!#(B
----------------------------------------------------------------
| -D           | -d                    | 1$B%]!<%H$^$?$O%l%s%8$KBP(B
|              |                       | $B$7$F$N$_5!G=$7!"J#?t$G(B
|              |                       | $B$O$"$j$^$;$s!#(B
----------------------------------------------------------------
| -V           | &lt;none>                | -i [$BL>A0(B] $B$GMQ$$$^$9!#(B
----------------------------------------------------------------
| -W           | -i                    |
----------------------------------------------------------------
| -b           | -b                    | $B8=:_!"<B:]$K$O(B2$B%k!<%k$r(B
|              |                       | $B:n@.$7$^$9!#(B
----------------------------------------------------------------
| -e           | -v                    |
----------------------------------------------------------------
| -k           | ! -y                  | -p tcp $B$H6&$K;XDj$7$J$$(B
|              |                       | $B$H5!G=$7$^$;$s!#(B
----------------------------------------------------------------
| -m           | -j MASQ               |
----------------------------------------------------------------
| -n           | -n                    |
----------------------------------------------------------------
| -o           | -l                    |
----------------------------------------------------------------
| -r [redirpt] | -j REDIRECT [redirpt] |
----------------------------------------------------------------
| -t           | -t                    |
----------------------------------------------------------------
| -v           | -v                    |
----------------------------------------------------------------
| -x           | -x                    |
----------------------------------------------------------------
| -y           | -y                    | -p tcp $B$H6&$K;XDj$7$J$$(B
|              |                       | $B$H5!G=$7$^$;$s!#(B
----------------------------------------------------------------
</PRE>
</P>

<H2><A NAME="ss8.2">8.2</A> <A HREF="IPCHAINS-HOWTO.html#toc8.2">ipfwadm $B%3%^%s%I$NJQ49Nc(B</A>
</H2>

<P>$B5l%3%^%s%I(B: ipfwadm -F -p deny</P>
<P>$B?7%3%^%s%I(B: ipchains -P forward DENY</P>

<P>$B5l%3%^%s%I(B: ipfwadm -F -a m -S 192.168.0.0/24 -D 0.0.0.0/0</P>
<P>$B?7%3%^%s%I(B: ipchains -A forward -j MASQ -s 192.168.0.0/24 -d 0.0.0.0/0</P>

<P>$B5l%3%^%s%I(B: ipfwadm -I -a accept -V 10.1.2.1 -S 10.0.0.0/8 -D 0.0.0.0/0</P>
<P>$B?7%3%^%s%I(B: ipchains -A input -j ACCEPT -i eth0 -s 10.0.0.0/8 -d 0.0.0.0/0</P>
<P>($B%$%s%?!<%U%'!<%9$r%"%I%l%9$K$h$C$F;XDj$9$k$N$H$O0c$&$3$H$KCm0U$7$F2<$5$$(B: 
$B%$%s%?!<%U%'!<%9L>$rMQ$$$F2<$5$$!#(B
$B$3$N%^%7%s>e$G$O!"(B 10.1.2.1 $B$O(B eth0 $B$KAjEv$7$^$9(B)$B!#(B</P>

<HR>
<A HREF="IPCHAINS-HOWTO-9.html">$B<!$N%Z!<%8(B</A>
<A HREF="IPCHAINS-HOWTO-7.html">$BA0$N%Z!<%8(B</A>
<A HREF="IPCHAINS-HOWTO.html#toc8">$BL\<!$X(B</A>
</BODY>
</HTML>