linux PPTP VPN客户端安装配置
来源:互联网 发布:java 获取spring容器 编辑:程序博客网 时间:2024/06/11 17:08
安装
下载pptp-1.7.2.tar.gz
http://pptpclient.sourceforge.net/
root用户上传至linux主机/tmp目录
解压安装:
cd /tmp
tar xzf pptp-1.7.2.tar.gz
cd pptp-1.7.2
make && make install
更改配置:
1、更改拨号用户信息文件
cd /etc/ppp
vi chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
####### redhat-config-network will overwrite this part!!! (end) ############
username connectvpn "password" *
www.2cto.com
#注意:增加了zhangsan connectvpn "password" *,其中username为VPN账户名,"password"为VPN账户密码,
#connectvpn为VPN标识,用户区分不同的VPN连接。
2、创建拨号配置文件connectvpn(上述的VPN标识)
cd /etc/ppp/peers
vi connectvpn
增加如下内容:
pty "pptp 166.123.10.210 --nolaunchpppd"
noauth
refuse-eap
require-mppe-128
name username
remotename connectvpn
file /etc/ppp/options.pptp
#其中 166.123.10.210 为VPN服务器IP,name字段后跟的是/etc/ppp/chap-secrets中的username(VPN账户名),
#remotename为VPN标识,其他保持默认
默认拨号10次,如果没有拨上就停止,设置如下选项,可不断重拨号:
maxfail 0
3、启动VPN客户端
root执行如下命令
# pppd call connectvpn
这个connectvpn为拨号配置文件
4、检查拨号结果
稍等10秒左右后,执行
如下命令检查:
[root@nms peers]# ps -ef|grep pppd
root 3617 1 0 06:40 ? 00:00:00 pppd call connectvpn
root 3618 3617 0 06:40 ? 00:00:00 pptp 166.123.10.210 --nolaunchpppd
root 3625 1 0 06:40 ? 00:00:00 pptp 166.123.10.210 --nolaunchpppd
root 3692 3514 0 06:58 pts/3 00:00:00 grep pppd
5、检查获取的vpn客户端IP
www.2cto.com
[root@nms peers]# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:162.11.0.5 P-t-P:162.11.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1396 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:248 (248.0 b) TX bytes:80 (80.0 b)
其中162.11.0.5为vpn客户端网卡ppp0的IP地址。
配置完成
可以在/var/log/messages查看日志http://www.2cto.com/os/201209/157462.html
0 0
- linux PPTP VPN客户端安装配置
- linux PPTP VPN客户端安装
- linux PPTP VPN客户端安装
- ubuntu安装pptp vpn客户端
- Linux PPTP连接VPN客户端
- linux下vpn客户端(pptp)的配置
- Linux 安装pptp vpn client
- 配置 Linux PPTP VPN 公网VPN
- linux安装VPN server之PPTP VPN
- PPTP VPN 服务器和客户端配置
- CentOS 6下配置PPTP VPN客户端
- CentOS 6下配置PPTP VPN客户端
- CentOS 6.5下配置PPTP VPN客户端
- Linode VPS PPTP VPN 安装配置教程
- pptp VPN原理与安装配置
- pptp VPN原理与安装配置
- VPS PPTP VPN 安装配置教程
- Ubuntu ☞ 安装配置PPTP VPN服务
- Ruby方法后缀
- TextRange对象,动态HTML(DHTML)的高级特性
- cgic: CGI的C函数库
- 发送dtmf键盘事件(模拟通话界面键盘事件)
- win7、win8旗舰版系统下载、32位、64位
- linux PPTP VPN客户端安装配置
- 将A表中某个字段的值赋给B表某个字段
- 读过最加速C + +
- 多媒体编程——编译x264 for ios armv7
- PHP Fatal error: Call to undefined function mysql_connect()解决方案
- 使用JFreeChart生成饼图
- drupal form 中图片上传
- 自我实现型的人的五个特质
- 快速查表法 FLUT