IPsec Host-to-Host Configuration
687
• The IP address of each host
• A unique name, for example,
ipsec1
. This is used to identify the IPsec connection and to
distinguish it from other devices or connections.
• A fixed encryption key or one automatically generated by
racoon
.
• A pre-shared authentication key that is used during the initial stage of the connection and to
exchange encryption keys during the session.
For example, suppose Workstation A and Workstation B want to connect to each other through an
IPsec tunnel. They want to connect using a pre-shared key with the value of
Key_Value01
, and the
users agree to let
racoon
automatically generate and share an authentication key between each host.
Both host users decide to name their connections
ipsec1
.
Note
You should choose a PSK that uses a mixture of upper- and lower-case characters,
numbers and punctuation. An easily-guessable PSK constitutes a security risk.
It is not necessary to use the same connection name for each host. You should choose a
name that is convenient and meaningful for your installation.
The following is the IPsec configuration file for Workstation A for a host-to-host IPsec connection with
Workstation B. The unique name to identify the connection in this example is
ipsec1
, so the resulting
file is called
/etc/sysconfig/network-scripts/ifcfg-ipsec1
.
DST=
X.X.X.X
TYPE=IPSEC
ONBOOT=no
IKE_METHOD=PSK
For Workstation A,
X.X.X.X
is the IP address of Workstation B. For Workstation B,
X.X.X.X
is the
IP address of Workstation A. This connection is not set to initiate on boot-up (
ONBOOT=no
) and it uses
the pre-shared key method of authentication (
IKE_METHOD=PSK
).
The following is the content of the pre-shared key file (called
/etc/sysconfig/network-
scripts/keys-ipsec1
) that both workstations need to authenticate each other. The contents of this
file should be identical on both workstations, and only the root user should be able to read or write this
file.
IKE_PSK=Key_Value01
Important
To change the
keys-ipsec1
file so that only the root user can read or edit the file, use
the following command after creating the file:
[root@myServer ~] # chmod 600 /etc/sysconfig/network-scripts/keys-ipsec1
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...