/usr/share/doc/HOWTO/ja-html/NAT-HOWTO-10.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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>Linux 2.4 NAT HOWTO: $BF10l%M%C%H%o!<%/>e$G$N08@h(B NAT</TITLE>
<LINK HREF="NAT-HOWTO-11.html" REL=next>
<LINK HREF="NAT-HOWTO-9.html" REL=previous>
<LINK HREF="NAT-HOWTO.html#toc10" REL=contents>
</HEAD>
<BODY>
<A HREF="NAT-HOWTO-11.html">$B<!$N%Z!<%8(B</A>
<A HREF="NAT-HOWTO-9.html">$BA0$N%Z!<%8(B</A>
<A HREF="NAT-HOWTO.html#toc10">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s10">10. $BF10l%M%C%H%o!<%/>e$G$N08@h(B NAT</A></H2>
<P>$BF10l%M%C%H%o!<%/Fb$NDL?.$G%]!<%H%U%)%o!<%G%#%s%0$9$k>l9g!"(B
$B=P$F9T$/%Q%1%C%H$HLa$C$F$/$k%Q%1%C%H$NN>J}$,$A$c$s$H(B
NAT $B%\%C%/%9$rDL2a$9$k!J$h$C$F$=$l$i%Q%1%C%H$OFbMF$KJQ99$,2C$($i$l$k!K(B
$B$h$&$K$9$kI,MW$,$"$j$^$9!#(BNAT $B$N%3!<%I$O8=:_!J(B2.4.0-test6 $B0J9_!K!"(B
NAT $B$5$l$?%Q%1%C%H$,F~$C$F$-$?$N$HF1$8%$%s%?%U%'!<%9(B
$B$K=P$F9T$/:]$KAw?.$5$l$k(B ICMP $B%j%@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