linux pptp客户端_PPTP 在linux下的客户端安装

本文介绍了在CentOS系统中安装PPTP客户端的步骤,包括使用yum安装pptp和ppp,设置启动和关闭脚本,通过pptpsetup创建连接,以及配置路由实现数据通过PPTP连接传输。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在centos下安装pptp客户端:

1 yum install pptp ppp

cp /usr/share/doc/ppp-2.4.4/scripts/pon    /usr/sbin/

cp /usr/share/doc/ppp-2.4.4/scripts/poff   /usr/sbin/

chmod +x /usr/sbin/pon

chmod +x /usr/sbin/poff

2 pptpsetup --create my*** --server xx.xx.xx.xx --username xxxxx --password xxxxxxx --encrypt

创建*** 文件 在 /etc/ppp/peers

并且用户名密码写入到了这个文件/etc/ppp/chap-secrets

3  上线:

pon my***

下线:

poff my*** (全部下线poff -a)

4 然后ifconfig查看一下多了ppp0这个网络

现在还不能通过***来走

因为并不知道数据该怎么走,很明显要配一下路由

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.1.253   *               255.255.255.255 UH    0      0        0 ppp0

xx.xx.xx.xx  192.168.111.254 255.255.255.255 UGH   0      0        0 eth0

xx.xx.xx.xx  192.168.111.254 255.255.255.255 UGH   0      0        0 eth0

192.168.111.0   *               255.255.255.0   U     0      0        0 eth0

link-local      *               255.255.0.0     U     1002   0        0 eth0

default         192.168.111.254 0.0.0.0         UG    0      0        0 eth0

增加一条路由:

route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0

这样就能通过***来做事了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值