ubuntu 下使用vpn设置
自从系统换成ubuntu后,过年前把项目也移植到了linux下面,发现除了平时一些琐碎的杂事,其他的完全可以满足开发了。我是一个自我约束力很差的人,用linux可以逼我放弃QQ、pps、放弃windows下懒惰的操作的方式,所有的东西都需要自己动手去找资料,有问题去解决。
linux虽好,但还是缺一点,如果不能连vpn就无法正常维护服务器。我找了三天的资料,终于弄好了。网上流传的安装包其实在ubuntu的软体中心就已经存在,只要勾选安装就可以。(也开始趋向于简单操作)
但为了加深记忆,我还是摘了命令:
- sudo apt-get install network-manager-gnome network-manager-pptp
其实在网络连接属性里就可以用GUI操作了。
单击vpn设置,选择加入,如下图:
选择pptp,会要求你输入ip地址,如下图:
感觉卡在route部分,但又不知道该怎么设置。后来才知道,还要设置route:
选择 ipv4 点击路由器,然后填写路由信息:
这里的ip地址(位址)就是你vpn的地址,然后填写对应的栏目XX.XX.XX.0/24 ,保存后连接成功。如果仔细看就会看到我的网络图标那里有一把小锁,表示已经连成功咯!
上 138看到自己的ip已经是vpn的地址了。
呵呵,接下来测试连接服务器:
- ssh XX.XX.XX.xx -p XX
得到信息为:
- RSA key fingerprint is ac:ea:0f:51:b0:b4:c1:b3:61:a8:45:60:1c:9f:55:b8.
- Are you sure you want to continue connecting (yes/no)?
嘿嘿,继续就没路拉~





哈哈~不好意思,把图片的链接去掉了,发现小图根本无法看清楚。
望各位看官使用firebug或者邮件复制图片地址在新窗口打开查看。
admin
26 二 10 at 12:49 上午
Thank you for your help!Thank you and My best regards! Thank you and Sorry for so many questions but i really need your help.
Amari
3 四 10 at 9:16 下午
Advantageously, the post is actually the greatest topic on curing acne naturally. I concur with your conclusions and will eagerly look forward to your future updates. Just saying thanks will not just be enough, for the wonderful clarity in your writing. I will instantly grab your rss feed to stay abreast of any updates.
Kristopher
4 四 10 at 9:21 上午