Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Ley
V2EX  ›  Linux

怎样在 Ubuntu 上搭建 Android 4.0 可用的 PPTP VPN?

  •  
  •   Ley ·
    Soyofuki · Sep 13, 2012 · 4719 views
    This topic created in 5016 days ago, the information mentioned may be changed or developed.
    试了 L2TP 的 VPN ,可以在 PC 和 2.3 的 Android 上使用,但是无法在 4.0 版本上使用。
    又试了 PPTP 的 VPN,虽然手机和 PC 都可以连接上,但是无网络访问,不知道是哪里出了问题。
    搜索了网上的教程,也没有找到解决方案,求教有什么办法解决这个问题?
    4 replies    2014-09-23 18:27:37 +08:00
    Mutoo
        1
    Mutoo  
       Sep 13, 2012
    PPTP 别忘了写路由表

    sudo iptables -t nat -A POSTROUTING -o eth0 -s ##你的localip网络号##/24 -j MASQUERADE
    21grams
        2
    21grams  
       Sep 13, 2012
    4.0的VPN有问题,4.1就OK了
    aWangami
        3
    aWangami  
       Sep 23, 2014
    我来挖坟了,@Mutoo 这一条是什意思呀,为什么我执行之后iptables -L -n找不到相关记录呢?
    aWangami
        4
    aWangami  
       Sep 23, 2014
    @aWangami 噢,我知道了,要这样看 iptables -t nat -L
    http://www.cnblogs.com/JemBai/archive/2009/03/19/1416364.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3244 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 11:58 · PVG 19:58 · LAX 04:58 · JFK 07:58
    ♥ Do have faith in what you're doing.