Plague's Blog

测试环境:CentOS 6.0 x86_64
内核:2.6.32-71.el6.x86_64
由于偶尔需要去看墙外的大好风光,了解国外的民生民情,所以VPN还是得备的,嘿嘿
但是是默认情况下,CentOS 6.0不能直接连接PPTP方式的VPN服务器,原因是默认没有安装PPTP插件,当然,这里使用NetworkManager管理网络的,所以:
1、既然需要PPTP,那就装呗
yum install pptp*
2、貌似还是不行,NetWorkManager里还是添加不了,嗯,需要NetWorkManager的PPTP插件,更新试试看有没有
yum install NetworkManager*
3、更新的时候可以看到,只是更新到0.8.1版本,没有对应的PPTP插件,那就手工找呗
wget ftp://mirror.switch.ch/pool/1/mirror/epel/beta/6/x86_64/NetworkManager-pptp-0.8.0-1.git20100411.el6.x86_64.rpm
*** PS:这个文件是在http://rpm.pbone.net/上找到的,表示感谢下。。。***
rpm -ivh NetworkManager-pptp-0.8.0-1.git20100411.el6.x86_64.rpm
安装成功了,NetWorkManager上添加一个VPN试试,PPTP出来咯。

点击新建,填写网关、用户名、密码,试试先。。。
如果出现 “连接失败 没有合法的vpn secret“ 或者是 “no valid vpn secrets“ 这样的错误提示(咳咳,当然了,我绝对不会告诉你我也碰到过),是由于刚才更新了NetworkManager没有重新造成的,Reboot一下就好了。
看看连接成功的状态
[root@localhost 桌面]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:9A:29:5F
inet addr:192.168.1.35 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe9a:295f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:360 errors:0 dropped:0 overruns:0 frame:0
TX packets:499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:191279 (186.7 KiB) TX bytes:52627 (51.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:720 (720.0 b) TX bytes:720 (720.0 b)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.9.11 P-t-P:192.168.9.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:249 errors:0 dropped:0 overruns:0 frame:0
TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:162429 (158.6 KiB) TX bytes:22625 (22.0 KiB)
- There are no comments yet






