首页 > 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年1月29日01:31 | #1

    Thanks for sharing your thoughts about extraordinary business.
    Regards

  2. 2018年1月29日08:57 | #2

    payday loans
    payday loans online
    payday loans online
    payday loans
    payday loans

  3. 2018年1月30日00:07 | #3

    online casino
    online slots
    online slots
    online slots
    online slots

  4. 2018年1月30日11:12 | #4

    diet pill
    garcinia cambogia
    appetite suppressant
    best diet pills that work
    best diet supplements

  5. 2018年1月31日20:04 | #5

    casino games roulette
    online casinos for us players
    online casino
    casino games real money
    online casino gambling

  6. 2018年2月1日06:09 | #6

    I like the valuable info you provide for your articles.
    I will bookmark your blog and check once more here frequently.
    I am quite sure I’ll be informed lots of new stuff right right here!
    Good luck for the following!

  7. 2018年2月2日00:53 | #7

    Hello, everything is going sound here and ofcourse every
    one is sharing data, that’s actually fine, keep up writing.

  8. 2018年2月4日01:16 | #8

    This is a very good tip especially to those fresh to the blogosphere.
    Short but very precise information… Thank you for sharing this one.
    A must read post!

  9. 2018年2月4日01:37 | #9

    casino online
    online casino
    real money casino
    casino online
    casino online

  10. 2018年2月10日07:18 | #10

    Hello there I am so happy I found your weblog,
    I really found you by error, while I was searching on Askjeeve for something else, Anyways I am here now and would just like to say thank
    you for a fantastic post and a all round entertaining blog (I also love
    the theme/design), I don’t have time to read through it all at the minute but I have book-marked it and also added your RSS feeds, so when I
    have time I will be back to read more, Please do keep up the fantastic b.

  11. 2018年2月10日16:53 | #11

    play casino games online
    online gambling sites for real money
    casino slots
    casino online
    casino online free

  12. 2018年2月12日04:00 | #12

    casino casino
    vegas casino games
    casino online loc us
    casino games roulette
    online casino gambling

  13. 2018年2月13日01:34 | #13

    Damaged material may launch asbestos fibers.

  14. 2018年2月14日13:08 | #14

    forskolin for weight loss
    diet supplements that work
    2017 best weight loss pills
    weight loss pills over the counter
    weight loss for women

  15. 2018年2月17日23:23 | #15

    Award profitable landscape design, set up & upkeep.

  16. 2018年2月18日00:56 | #16

    Let’s face it, garden care services abound.

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