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

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

  •  
  •   Ley ·
    Soyofuki · Sep 13, 2012 · 4988 views
    This topic created in 5177 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
    Mutoo
    Sep 13, 2012
    1
    PPTP 别忘了写路由表

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