GithubHelp home page GithubHelp logo

Comments (2)

hwdsl2 avatar hwdsl2 commented on May 27, 2024

@userofjack 你好!感谢你提供解决方案。另外你也可以尝试增加 retransmit timeout 的值,请参见另外这个 Issue。在默认情况下,Libreswan 会通过 dead peer detection (reference) 功能向客户端自动发送类似的 ping,但在超出 retransmit timeout 之后(比如因为网络不稳定导致)则会在服务器端断开该 VPN 连接,从而出现你所说的情况。

from setup-ipsec-vpn.

userofjack avatar userofjack commented on May 27, 2024

@userofjack 你好!感谢你提供解决方案。另外你也可以尝试增加 retransmit timeout 的值,请参见另外这个 Issue。在默认情况下,Libreswan 会通过 dead peer detection (reference) 功能向客户端自动发送类似的 ping,但在超出 retransmit timeout 之后(比如因为网络不稳定导致)则会在服务器端断开该 VPN 连接,从而出现你所说的情况。

经过实验,这个方法最多能够延缓到到1小时左右出现连接丢失。
我试过dpd和nat-keepalive的各种设置组合,retransmit timeout已经设置为86400s,问题依旧。
应该不是nat的原因,毕竟假死后如果重启ipsec服务,客户端会立马提示断开连接。
实在搞不懂了。。。

from setup-ipsec-vpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.