本文共 1346 字,大约阅读时间需要 4 分钟。
配置
10.10.10.1--172.16.1.71-------172.16.1.72----10.20.20.1
[root@***-test01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-ipsec0
[root@***-test01 ~]# cat /etc/sysconfig/network-scripts/keys-ipsec0
IKE_PSK=7c4a8d09ca3762af61e5
[root@***-test01 ~]# ls -l /etc/sysconfig/network-scripts/keys-ipsec0
-rw------- 3 root root 29 Mar 9 08:28 /etc/sysconfig/network-scripts/keys-ipsec0
[root@***-test01 ~]# cat /etc/racoon/psk.txt
# file for pre-shared keys used for IKE authentication
# format is: 'identifier' 'key'
# 10.1.1.1 flibbertigibbet
# foo@www.example.com micropachycephalosaurus
172.16.1.72 7c4a8d09ca3762af61e5
[root@***-test01 ~]# cat /etc/racoon/racoon.conf
# Racoon IKE daemon configuration file.
# See 'man racoon.conf' for a description of the format and entries.
path include "/etc/racoon";
path pre_shared_key "/etc/racoon/psk.txt";
path certificate "/etc/racoon/certs";
encryption_algorithm 3des, blowfish 448, rijndael ;
authentication_algorithm hmac_sha1, hmac_md5 ;
compression_algorithm deflate ;
include "/etc/racoon/172.16.1.72.conf";
转载地址:http://hmual.baihongyu.com/