在网上看到一位大虾的关于redhat 7.2下面配置VPN客户端的文章如下:
在网上看到一位大虾的关于redhat 7.2下面配置VPN客户端的文章如下:
1.下载ppp-mppe-2.4.0-4.tar.gz(pppd的补丁版),pptp-linux-1.0.3-1.tar.gz
(pptp客户端),假定下载文件放在/opt下
2.安装
解压缩、安装pppd2.4.0
# cd /opt
# tar zxvf ppp-mppe-2.4.0-4.tar.gz -C /opt
# cd /opt/ppp-mppe-2.4.0-4
# sh unpack.sh ;执行这个脚本,给pppd打patch
# cd ppp-2.4-0
# ./configure
# make
# mv /usr/sbin/pppd /usr/sbin/pppd.old ;原来的pppd做个备份
# cp pppd /usr/sbin/pppd ;将新的pppd放入系统路径
解压缩、安装pptp-linux
# cd /opt
# tar zxvf pptp-linux-1.0.3-1.tar.gz -C /opt
# cd /opt/pptp-linux-1.0.3-1
# cp options.pptp /etc/ppp/
# mkdir /etc/pptp.d/ ; 这一步不做也可以
# tar zxvf pptp-linux-1.0.3.tar.gz
# cd pptp-linux-1.0.3
# make
# cp pptp /usr/sbin
# cp pptp-callmgr /usr/bin
3. 设置
# cd /opt/pptp-linux-1.0.3-1
# ./pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?:3
选3,设置
1.) List CHAP secrets
2.) Add a New CHAP secret
3.) Delete a CHAP secret
4.) List PPTP Tunnels
5.) Add a NEW PPTP Tunnel
6.) Delete a PPTP Tunnel
7.) Configure resolv.conf
8.) Select a default tunnel
9.) Quit
?:2 ;先建立一个CHAP secrets,选择2
Add a NEW CHAP secret.
NOTE: Any backslashes (\) must be doubled (\\).
Local Name:
This is the ''local'' identifier for CHAP authentication.
NOTE: If the server is a Windows NT machine, the local name
should be your Windows NT username including domain.
For example:
domain\\username
Local Name:pptp ;这里填上pptp的登录用户名称,然后出现
Remote Name:
This is the ''remote'' identifier for CHAP authentication.
In most cases, this can be left as the default. If must be
set if you have multiple CHAP secrets with the same local name
and different passwords. Just press ENTER to keep the default.
Remote Name [PPTP]: ;用默认的PPTP就行,所以,回车进入下一项