首页 > linux > linux 安装vpn 解决MSN登录不了

linux 安装vpn 解决MSN登录不了

2010年5月20日 eric 发表评论 阅读评论

有了 VPS 就一直没有安装VPN,今天闲下来,给自己的VPS 服务器安装了VPN 服务,可惜我的服务器在北京,如果在美国 香港的话,就可以翻墙了,呵呵。

安装步骤:
1.安装pptpd

apt-get install pptpd

2.修改配置文件,加VPN IP池

vim /etc/pptpd.conf

按 shift + g 把

localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245

两行的注释去掉,如果你的内网IP 地址是0 网段的话,就把 192.168.0.234-238,192.168.0.245 换成 192.168.5.234-238,192.168.5.245 换成别的网段。不然会与VPN的ip 段冲突。

3.添加VPN DNS

vim /etc/ppp/options

把默认的两行 改为 google 的DNS

ms-dns 8.8.8.8
ms-dns 8.8.4.4

4.添加 拨号的帐号和密码

vim /etc/ppp/chap-secrets
# client        server  secret                  IP addresses
# 如果多用户 就按照 这个格式在下面继续添加
eric            pptpd   123456                  *

5.开启 ip_forward

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE 

这样,客户端就可以上网了

6.解决 MSN 不能登录问题,修改 MTU 值得

vim /etc/ppp/ip-up

在最后添加

/sbin/ifconfig $1 mtu 1436

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/164.html

分类: linux 标签: , ,
  1. 2018年9月9日21:11 | #1

    I’ve been exploring for a bit for any high quality articles or weblog posts on this
    kind of space . Exploring in Yahoo I at last stumbled upon this website.

    Reading this information So i’m glad to express that I
    have a very good uncanny feeling I discovered just
    what I needed. I so much unquestionably will make sure to don?t put out
    of your mind this web site and give it a glance regularly.

  2. 2018年9月10日18:27 | #2

    I’ll right away clutch your rss as I can not in finding your
    email subscription hyperlink or e-newsletter service.
    Do you have any? Kindly permit me recognize in order that I may subscribe.
    Thanks.

  3. 2018年9月11日22:20 | #3

    Howdy! I’m at work surfing around your blog from my
    new iphone 3gs! Just wanted to say I love reading your blog and look forward to all your posts!

    Keep up the excellent work!

  4. 2018年9月13日02:15 | #4

    It’s a pity you don’t have a donate button! I’d definitely donate to this
    outstanding blog! I guess for now i’ll settle for book-marking and adding your RSS feed to my Google account.
    I look forward to fresh updates and will share this website with my Facebook group.
    Talk soon!

  5. 2018年9月13日21:15 | #5

    If you desire to get much from this post then you have
    to apply such techniques to your won website.

  6. 2018年9月15日00:51 | #6

    You made some decent points there. I checked on the web for more info about the issue and found most people will go along with
    your views on this website.

  7. 2018年9月16日14:43 | #7

    Good post. I learn something totally new and challenging on sites I stumbleupon everyday.
    It’s always helpful to read content from other writers and practice something
    from their websites.

  8. 2018年9月17日22:10 | #8

    Hmm it appears like your site ate my first comment (it was super long) so I guess I’ll
    just sum it up what I submitted and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog writer but I’m still
    new to the whole thing. Do you have any tips and hints for rookie blog writers?
    I’d definitely appreciate it.

  9. 2018年9月18日05:33 | #9

    There is certainly a lot to learn about this topic.

    I love all of the points you made.

评论分页
1 2 3 4 164
订阅评论
3+8= (必填)