Merge the following from the english version.
handbook/security/chapter.sgml 1.113 -> 1.114 Submitted by: Hiroo Ono <hiroo _at_ jp dot FreeBSD dot org> Reference: [doc-jp-work 1740]
This commit is contained in:
parent
03c6ec98ef
commit
b7853e5f55
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=37541
1 changed files with 96 additions and 109 deletions
|
@ -2,7 +2,7 @@
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
The FreeBSD Japanese Documentation Project
|
The FreeBSD Japanese Documentation Project
|
||||||
|
|
||||||
Original revision: 1.113
|
Original revision: 1.114
|
||||||
Waiting for: 1.123 or mac/chapter.sgml
|
Waiting for: 1.123 or mac/chapter.sgml
|
||||||
("mac" referenced from disks).
|
("mac" referenced from disks).
|
||||||
Translation note: "fs-acl" section added in rev.1.118 is moved to
|
Translation note: "fs-acl" section added in rev.1.118 is moved to
|
||||||
|
@ -3193,13 +3193,11 @@ options IPSEC_ESP #IP security (crypto; define w/IPSEC)</progr
|
||||||
<para>次に、セキュリティアソシエーションを設定しましょう。ホスト
|
<para>次に、セキュリティアソシエーションを設定しましょう。ホスト
|
||||||
A とホスト B の両方で、&man.setkey.8; を実行します。</para>
|
A とホスト B の両方で、&man.setkey.8; を実行します。</para>
|
||||||
|
|
||||||
<screen>
|
<screen>&prompt.root; <userinput>setkey -c
|
||||||
&prompt.root; <userinput>setkey -c
|
|
||||||
add 10.2.3.4 10.6.7.8 ah-old 1000 -m transport -A keyed-md5 "MYSECRETMYSECRET" ;
|
add 10.2.3.4 10.6.7.8 ah-old 1000 -m transport -A keyed-md5 "MYSECRETMYSECRET" ;
|
||||||
add 10.6.7.8 10.2.3.4 ah 2000 -m transport -A hmac-sha1 "KAMEKAMEKAMEKAMEKAME" ;
|
add 10.6.7.8 10.2.3.4 ah 2000 -m transport -A hmac-sha1 "KAMEKAMEKAMEKAMEKAME" ;
|
||||||
add 10.6.7.8 10.2.3.4 esp 3000 -m transport -E des-cbc "PASSWORD" ;
|
add 10.6.7.8 10.2.3.4 esp 3000 -m transport -E des-cbc "PASSWORD" ;
|
||||||
^D</userinput>
|
^D</userinput></screen>
|
||||||
</screen>
|
|
||||||
|
|
||||||
<para>実際には、セキュリティポリシのエントリが定義されるまでは
|
<para>実際には、セキュリティポリシのエントリが定義されるまでは
|
||||||
IPsec による通信は行われません。
|
IPsec による通信は行われません。
|
||||||
|
@ -3252,8 +3250,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
認証アルゴリズムは hmac-sha1 で、その鍵は <quote>this is the test
|
認証アルゴリズムは hmac-sha1 で、その鍵は <quote>this is the test
|
||||||
key</quote> とします。ホスト-A の設定は次のようになります。</para>
|
key</quote> とします。ホスト-A の設定は次のようになります。</para>
|
||||||
|
|
||||||
<screen>
|
<screen>&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
||||||
&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
|
||||||
spdadd fec0::10[any] fec0::11[110] tcp -P out ipsec
|
spdadd fec0::10[any] fec0::11[110] tcp -P out ipsec
|
||||||
esp/transport/fec0::10-fec0::11/use ;
|
esp/transport/fec0::10-fec0::11/use ;
|
||||||
spdadd fec0::11[110] fec0::10[any] tcp -P in ipsec
|
spdadd fec0::11[110] fec0::10[any] tcp -P in ipsec
|
||||||
|
@ -3266,8 +3263,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
-m transport
|
-m transport
|
||||||
-E blowfish-cbc "kamekame"
|
-E blowfish-cbc "kamekame"
|
||||||
-A hmac-sha1 "this is the test key" ;
|
-A hmac-sha1 "this is the test key" ;
|
||||||
EOF</userinput>
|
EOF</userinput></screen>
|
||||||
</screen>
|
|
||||||
|
|
||||||
<para>そしてホスト-B の設定は次のようになります。</para>
|
<para>そしてホスト-B の設定は次のようになります。</para>
|
||||||
|
|
||||||
|
@ -3282,8 +3278,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
add fec0::11 fec0::10 esp 0x10002 -m transport
|
add fec0::11 fec0::10 esp 0x10002 -m transport
|
||||||
-E blowfish-cbc "kamekame"
|
-E blowfish-cbc "kamekame"
|
||||||
-A hmac-sha1 "this is the test key" ;
|
-A hmac-sha1 "this is the test key" ;
|
||||||
EOF</userinput>
|
EOF</userinput></screen>
|
||||||
</screen>
|
|
||||||
|
|
||||||
<para>SP の方向に注意してください。</para>
|
<para>SP の方向に注意してください。</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
@ -3306,8 +3301,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
|
|
||||||
<para>ゲートウェイ-A における設定は次のようになります。</para>
|
<para>ゲートウェイ-A における設定は次のようになります。</para>
|
||||||
|
|
||||||
<screen>
|
<screen>&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
||||||
&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
|
||||||
spdadd 10.0.1.0/24 10.0.2.0/24 any -P out ipsec
|
spdadd 10.0.1.0/24 10.0.2.0/24 any -P out ipsec
|
||||||
ah/tunnel/172.16.0.1-172.16.0.2/require ;
|
ah/tunnel/172.16.0.1-172.16.0.2/require ;
|
||||||
spdadd 10.0.2.0/24 10.0.1.0/24 any -P in ipsec
|
spdadd 10.0.2.0/24 10.0.1.0/24 any -P in ipsec
|
||||||
|
@ -3317,8 +3311,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
add 172.16.0.2 172.16.0.1 ah-old 0x10004 -m any
|
add 172.16.0.2 172.16.0.1 ah-old 0x10004 -m any
|
||||||
-A keyed-md5 "this is the test" ;
|
-A keyed-md5 "this is the test" ;
|
||||||
|
|
||||||
EOF</userinput>
|
EOF</userinput></screen>
|
||||||
</screen>
|
|
||||||
|
|
||||||
<para>上記の例のように、もしポート番号フィールドを書かないと、
|
<para>上記の例のように、もしポート番号フィールドを書かないと、
|
||||||
<literal>[any]</literal> と同じ意味になります。<literal>-m</literal> は使用される SA
|
<literal>[any]</literal> と同じ意味になります。<literal>-m</literal> は使用される SA
|
||||||
|
@ -3328,8 +3321,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
|
|
||||||
<para>そしてゲートウェイ-B では次のようになります。</para>
|
<para>そしてゲートウェイ-B では次のようになります。</para>
|
||||||
|
|
||||||
<screen>
|
<screen>&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
||||||
&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
|
||||||
spdadd 10.0.2.0/24 10.0.1.0/24 any -P out ipsec
|
spdadd 10.0.2.0/24 10.0.1.0/24 any -P out ipsec
|
||||||
ah/tunnel/172.16.0.2-172.16.0.1/require ;
|
ah/tunnel/172.16.0.2-172.16.0.1/require ;
|
||||||
spdadd 10.0.1.0/24 10.0.2.0/24 any -P in ipsec
|
spdadd 10.0.1.0/24 10.0.2.0/24 any -P in ipsec
|
||||||
|
@ -3339,8 +3331,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
add 172.16.0.2 172.16.0.1 ah-old 0x10004 -m any
|
add 172.16.0.2 172.16.0.1 ah-old 0x10004 -m any
|
||||||
-A keyed-md5 "this is the test" ;
|
-A keyed-md5 "this is the test" ;
|
||||||
|
|
||||||
EOF</userinput>
|
EOF</userinput></screen>
|
||||||
</screen>
|
|
||||||
|
|
||||||
<para>二台のセキュリティゲートウェイ間の SA の束の作成</para>
|
<para>二台のセキュリティゲートウェイ間の SA の束の作成</para>
|
||||||
|
|
||||||
|
@ -3365,8 +3356,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
hmac-sha1 とします。AH の認証アルゴリズムは hmac-md5 とします。
|
hmac-sha1 とします。AH の認証アルゴリズムは hmac-md5 とします。
|
||||||
ゲートウェイ-A での設定は次のようになります。</para>
|
ゲートウェイ-A での設定は次のようになります。</para>
|
||||||
|
|
||||||
<screen>
|
<screen>&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
||||||
&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
|
||||||
spdadd fec0:0:0:1::/64 fec0:0:0:2::/64 any -P out ipsec
|
spdadd fec0:0:0:1::/64 fec0:0:0:2::/64 any -P out ipsec
|
||||||
esp/tunnel/fec0:0:0:1::1-fec0:0:0:2::1/require
|
esp/tunnel/fec0:0:0:1::1-fec0:0:0:2::1/require
|
||||||
ah/transport/fec0:0:0:1::1-fec0:0:0:2::1/require ;
|
ah/transport/fec0:0:0:1::1-fec0:0:0:2::1/require ;
|
||||||
|
@ -3384,8 +3374,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
add fec0:0:0:2::1 fec0:0:0:1::1 ah 0x10001 -m transport
|
add fec0:0:0:2::1 fec0:0:0:1::1 ah 0x10001 -m transport
|
||||||
-A hmac-md5 "this is the test" ;
|
-A hmac-md5 "this is the test" ;
|
||||||
|
|
||||||
EOF</userinput>
|
EOF</userinput></screen>
|
||||||
</screen>
|
|
||||||
|
|
||||||
<para>異なる通信端での SA の作成</para>
|
<para>異なる通信端での SA の作成</para>
|
||||||
|
|
||||||
|
@ -3407,8 +3396,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
|
|
||||||
<para>ホスト-A での設定は次のようになります。</para>
|
<para>ホスト-A での設定は次のようになります。</para>
|
||||||
|
|
||||||
<screen>
|
<screen>&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
||||||
&prompt.root; <userinput>setkey -c <<<filename>EOF</filename>
|
|
||||||
spdadd fec0:0:0:1::1[any] fec0:0:0:2::2[80] tcp -P out ipsec
|
spdadd fec0:0:0:1::1[any] fec0:0:0:2::2[80] tcp -P out ipsec
|
||||||
esp/transport/fec0:0:0:1::1-fec0:0:0:2::2/use
|
esp/transport/fec0:0:0:1::1-fec0:0:0:2::2/use
|
||||||
esp/tunnel/fec0:0:0:1::1-fec0:0:0:2::1/require ;
|
esp/tunnel/fec0:0:0:1::1-fec0:0:0:2::1/require ;
|
||||||
|
@ -3430,8 +3418,7 @@ spdadd 10.6.7.8 10.2.3.4 any -P out ipsec
|
||||||
-E rc5-cbc "kamekame"
|
-E rc5-cbc "kamekame"
|
||||||
-A hmac-md5 "this is the test" ;
|
-A hmac-md5 "this is the test" ;
|
||||||
|
|
||||||
EOF</userinput>
|
EOF</userinput></screen>
|
||||||
</screen>
|
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue