运行环境:RHEL 6.5
1. 下载EPEL
下载地址: http://dl.fedoraproject.org/pub/epel/6/i386/
找到epel-release-6-8.noarch.rpm,点击下载。
或者用wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 下载。
2. 安装EPEL
# chmod a+x epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
3. 安装vpnc
# yum clean all
# yum install vpnc
4. 配置vpnc
# vi /etc/vpnc/default.conf
修改后,内容如下:
#IPSec gateway my.vpn.gateway
#IPSec ID my.ipsec.id
#IPSec secret mysecret
# your username goes here:
#Xauth username
IPSec gateway 203.114.244.92
IKE Authmode psk
IPSec ID RH-standard
IPSec secret nodnerip
IKE DH Group dh2
NAT Traversal Mode natt
Xauth username pma
5. 启动/停止vpnc
(1)启动:# vpnc
(2)停止:# vpnc-disconnect
参考文献:
1. http://www.cncentos.com/forum.php?mod=viewthread&tid=1751&extra=
1. 下载EPEL
下载地址: http://dl.fedoraproject.org/pub/epel/6/i386/
找到epel-release-6-8.noarch.rpm,点击下载。
或者用wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 下载。
2. 安装EPEL
# chmod a+x epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
3. 安装vpnc
# yum clean all
# yum install vpnc
4. 配置vpnc
# vi /etc/vpnc/default.conf
修改后,内容如下:
#IPSec gateway my.vpn.gateway
#IPSec ID my.ipsec.id
#IPSec secret mysecret
# your username goes here:
#Xauth username
IPSec gateway 203.114.244.92
IKE Authmode psk
IPSec ID RH-standard
IPSec secret nodnerip
IKE DH Group dh2
NAT Traversal Mode natt
Xauth username pma
5. 启动/停止vpnc
(1)启动:# vpnc
(2)停止:# vpnc-disconnect
参考文献:
1. http://www.cncentos.com/forum.php?mod=viewthread&tid=1751&extra=
没有评论:
发表评论