PPTP 在linux下的客户端安装
2014-02-18 16:16
232 查看
在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
这样就能通过***来做事了。
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
这样就能通过***来做事了。
相关文章推荐
- Debian 8(Jessie) 安装pptp-linux (PPTP客户端), 以及route命令说明
- CentOS linux下安装Oracle客户端
- linux下安装oracle11g 64位最简客户端(转)
- Linux(CentOS 5)下安装Oracle10 客户端
- linux下安装tokyo cabinet和tokyo tyrant客户端
- svn在windows客户端安装以后在linux下svn co code_url报错处理
- Linux安装Git(1.7版本)客户端
- Linux上 安装filezilla 客户端
- linux 6.4 (64位)系统安装svn客户端 操作步骤
- Linux环境安装mysql客户端报错Failed dependencies
- linux的svn&cvs客户端安装及ant部署
- linux上svn服务器及客户端的安装配置