TONYHEAD
V2EX  ›  问与答

如何建立稳定的L2TP VPN服务?

  •  
  •   TONYHEAD · Apr 7, 2012 · 7561 views
    This topic created in 5180 days ago, the information mentioned may be changed or developed.
    安装的是L2TP VPN (IPSEC验证),问题是经常性断线,几分钟到几十分钟就断一次,链接断开后马上重拨是不成功的,要SSH到服务器重启一下IPSEC服务才能重新连接。

    大家有什么VPN调试心得吗?看过一遍配置文件好像没找到什么窍门,请问有配置心得分享的吗?谢谢。

    VPS环境:CentOS 6.0 for SolusVM on x86

    目前解决方法是设定了一个每30分钟重启一次IPSEC服务的CRON,但效果依旧不理想。
    6 replies    1970-01-01 08:00:00 +08:00
    humiaozuzu
        1
    humiaozuzu  
       Apr 7, 2012
    前几天配置好了openvpn over ipv6,相当稳定,木有断线过~ 不过可能不是lz要l2tp的
    http://blog.lovemaple.info/blog/2012/04/06/setup-ipv6-vpn/
    csx163
        2
    csx163  
       Apr 7, 2012
    linux下各种断线,不知为什么,换win2003就好了,稳定半年多 L2TP+IPSEC的
    qiuai
        3
    qiuai  
    PRO
       Apr 7, 2012
    来一起团个VPS搞VPN...?
    fsw90628
        4
    fsw90628  
       Apr 7, 2012
    今天下午解决了我的 VirtualBox 里的 Ubuntu 的问题,
    和网络环境关系很大,NAT,防火墙之类的。

    参考了这篇,很有用,分享给你:
    http://wiki.l2tpipsecvpn.tuxfamily.org/wiki/index.php?title=Main_Page#Troubleshooting
    TONYHEAD
        5
    TONYHEAD  
    OP
       Apr 9, 2012
    @fsw90628 谢谢,研究一下。
    just44
        6
    just44  
       Apr 9, 2012
    为什么要选择L2TP? PPTP试过没有?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1045 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 23:07 · PVG 07:07 · LAX 16:07 · JFK 19:07
    ♥ Do have faith in what you're doing.