OGX-3 | 妳木有小雞雞

死亡不是无知,而是不表态。

ubuntu 下使用vpn设置

with 3 comments

自从系统换成ubuntu后,过年前把项目也移植到了linux下面,发现除了平时一些琐碎的杂事,其他的完全可以满足开发了。我是一个自我约束力很差的人,用linux可以逼我放弃QQ、pps、放弃windows下懒惰的操作的方式,所有的东西都需要自己动手去找资料,有问题去解决。

linux虽好,但还是缺一点,如果不能连vpn就无法正常维护服务器。我找了三天的资料,终于弄好了。网上流传的安装包其实在ubuntu的软体中心就已经存在,只要勾选安装就可以。(也开始趋向于简单操作)

但为了加深记忆,我还是摘了命令:

  1. 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的地址了。

呵呵,接下来测试连接服务器:

  1. ssh XX.XX.XX.xx -p XX

得到信息为:

  1. RSA key fingerprint is ac:ea:0f:51:b0:b4:c1:b3:61:a8:45:60:1c:9f:55:b8.
  2. Are you sure you want to continue connecting (yes/no)?

嘿嘿,继续就没路拉~

Written by beiwei

二月 26th, 2010 at 12:46 上午

3 Responses to 'ubuntu 下使用vpn设置'

Subscribe to comments with RSS

  1. 哈哈~不好意思,把图片的链接去掉了,发现小图根本无法看清楚。

    望各位看官使用firebug或者邮件复制图片地址在新窗口打开查看。

    admin

    26 二 10 at 12:49 上午

  2. 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 下午

  3. 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 上午

Leave a Reply