首页 > 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. 2017年10月29日20:25 | #1

    Very rapidly this web page will be famous among all blogging users, due to it’s nice articles or reviews

  2. 2017年10月30日00:50 | #2

    I like the valuable information you supply for your articles.
    I will bookmark your weblog and check once more right here regularly.
    I am somewhat sure I’ll be informed lots of new stuff proper right here!

    Best of luck for the following!

  3. 2017年10月30日07:44 | #3

    Just desire to say your article is as surprising. The
    clarity in your submit is just cool and that i can suppose you are an expert in this subject.

    Fine together with your permission let me
    to grasp your feed to keep updated with forthcoming post. Thanks
    one million and please carry on the gratifying work.

  4. 2017年10月30日17:59 | #4

    Canadian Pharmcy Viagra Super Active 100 Mg Amoxicillin What Means Ca generic cialis Buy Propecia Finasteride Online

  5. 2017年10月31日05:25 | #5

    My brother suggested I might like this website.
    He was totally right. This post actually made my day.
    You can not imagine just how much time I had spent for this info!
    Thanks!

  6. 2017年10月31日21:57 | #6

    Bentyl Cod Only Low Price brand cialis and levitra Propecia Naturelle

  7. 2017年11月1日10:14 | #7

    I was wondering if you ever considered changing the page
    layout of your website? Its very well written; I love what youve
    got to say. But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or 2 pictures.

    Maybe you could space it out better?

  8. 2017年11月2日16:44 | #8

    When I originally commented I clicked the “Notify me when new comments are added”
    checkbox and now each time a comment is added I get four emails with the same comment.
    Is there any way you can remove me from that service?

    Bless you!

  9. 2017年11月7日13:09 | #9

    WOW just what I was searching for. Came here by searching for
    reverse phone directory

  10. 2017年11月8日04:38 | #10

    Viagra Pricelist Prednisone Buy Online No Prescription viagra Buy Cialis Online Secure Propecia Significa Bueno Clobetasol For Sale Discount

  11. 2017年11月9日09:43 | #11

    Appreciate the recommendation. Will try it out.

  12. 2017年11月11日06:28 | #12

    Thanks to my father who told me regarding this web site, this website
    is in fact amazing.

  13. 2017年11月13日19:57 | #13

    Does your website have a contact page? I’m having trouble locating it but, I’d
    like to send you an e-mail. I’ve got some suggestions for your blog you might
    be interested in hearing. Either way, great blog and I look forward to seeing
    it expand over time.

  14. 2017年11月14日03:43 | #14

    Viagra Legal Bestellen buy viagra Cialis 20 Prezzo Propecia Coupon Dosage

  15. 2017年11月15日06:41 | #15

    Are you that they may be more find on your property?

  16. 2017年11月16日04:47 | #16

    Will you end up being serious about anyone you care about?

  17. 2017年11月16日06:34 | #17

    These are in fact wonderful ideas in regarding blogging.
    You have touched some good factors here. Any way keep up wrinting.

  18. 2017年11月16日09:03 | #18

    I like the valuable info you provide in your
    articles. I will bookmark your weblog and check again here regularly.

    I am quite certain I will learn many new stuff right here!
    Best of luck for the next!

  19. 2017年11月17日16:24 | #19

    This blog was… how do you say it? Relevant!! Finally
    I have found something which helped me. Appreciate
    it!

  20. 2017年11月21日02:08 | #20

    Today, I went to the beach with my children. I found a sea shell and gave
    it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed.

    There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is entirely off
    topic but I had to tell someone!

  21. 2017年11月21日22:32 | #21

    Clomid Ovulation Pills For Sale Alberta Le Viagra En Libre Rezeptfreie Levitra buy cialis Comprar Cialis 20mg Espana Cialis Prix 10mg Get Doryx In Internet Secure Ordering Overseas Without Perscription

  22. 2017年11月22日21:49 | #22

    Heya i am for the first time here. I found this board and I to find
    It truly helpful & it helped me out much. I’m hoping to offer
    one thing back and help others such as you aided
    me.

  23. 2017年11月24日04:38 | #23

    all slots
    euro palace
    game slots
    slots vegas
    online slots

  24. 2017年11月26日07:53 | #24

    Simply desire to say your article is as amazing.
    The clearness in your post is simply nice and i can assume you’re an expert
    on this subject. Fine with your permission let me to grab your RSS feed to keep updated with
    forthcoming post. Thanks a million and please continue the gratifying
    work.

  25. 2017年11月28日06:57 | #25

    Greetings! I know this is kind of off topic but I was wondering which blog platform are you using for this site?

    I’m getting sick and tired of WordPress because I’ve had issues with hackers and I’m looking at options for another platform.
    I would be awesome if you could point me in the direction of a
    good platform.

  26. 2017年11月28日15:28 | #26

    Thanks designed for sharing such a nice thinking, paragraph
    is good, thats why i have read it fully

  27. 2017年11月29日07:35 | #27

    Fantastic post but I was wondering if you could write a litte more on this subject?
    I’d be very grateful if you could elaborate a little
    bit more. Many thanks!

  28. 2017年12月1日02:03 | #28

    payday loans
    payday loans online
    online loans
    online loans
    pay day loan

  29. 2017年12月1日11:46 | #29

    online gambling casino real money
    casino real money
    real gambling websites

  30. 2017年12月1日17:51 | #30

    cash advance loans
    online payday loans
    cash advance loans
    payday loan online
    payday loans no credit check

  31. 2017年12月2日22:13 | #31

    As the admin of this web page is working, no doubt very rapidly it
    will be renowned, due to its quality contents.

  32. 2017年12月7日16:06 | #32

    Thanks for sharing such a good thinking, paragraph is fastidious, thats why i have read it entirely

  33. 2017年12月8日07:24 | #33

    real money casino
    real money casino online usa
    play casino online
    play casino online
    real money casino

  34. 2017年12月10日07:27 | #34

    payday loans no credit
    online payday loans no credit check
    cash loans no credit check
    payday loans no credit check
    cash loans no credit check

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