LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1483|回复: 9

Connect to pptp VPN

[复制链接]
发表于 2007-8-20 16:10:02 | 显示全部楼层 |阅读模式
Sorry, I can not input Chinese yet.


1. Install pptpclient
# pacman -S pptpclient

2. Edit peer file
# nano /etc/ppp/peers/vpnnet   (Here, vpnnet is your VPN name)

file /etc/ppp/options.pptp
pty "pptp vpn.officenet.cug.edu.cn --nolaunchpppd"      (Here, "vpn.office.cug.edu.cn"  should be changed to your own VPN server address)
remotename PPTP
persist
defaultroute
usepeerdns
name youruserID

3. Edit account file
# nano /etc/ppp/pap-secrets

youruserID PPTP yourpassword

4. Connect VPN
# pon vpnnet

5. Disconnect VPN
# poff vpnnet


Ok, done.
Enjoy it.
发表于 2007-8-27 16:59:13 | 显示全部楼层
这个可以连netpas吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-27 18:37:43 | 显示全部楼层
没有尝试过。
回复 支持 反对

使用道具 举报

发表于 2007-8-31 10:22:15 | 显示全部楼层
好贴啊,只是现在跟windows vpn 服务器连接的认证是采用chap而不是pap也就是需要编辑的是chap-secrets文件。在这里补充一下。
回复 支持 反对

使用道具 举报

发表于 2007-8-31 14:49:00 | 显示全部楼层
另外,我有个问题,不知道楼主有没有遇到过。就是我连上了vpn服务器,可以ping通vpn服务器,但没法ping通连接vpn服务器的其他客户机。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-31 16:22:13 | 显示全部楼层
谢谢楼上的补充。我这里ping其它客户机没有问题。
回复 支持 反对

使用道具 举报

发表于 2007-8-31 22:35:28 | 显示全部楼层
请问楼主兄,你连接的vpn服务器是windows 2003吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-1 23:51:57 | 显示全部楼层
是学校的服务器,不知道是不是windows2003。
回复 支持 反对

使用道具 举报

发表于 2007-9-2 08:46:24 | 显示全部楼层
nmap一下撒。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-9-2 15:01:41 | 显示全部楼层
nmap 不到啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表