Comments (2)
@userofjack 你好!感谢你提供解决方案。另外你也可以尝试增加 retransmit timeout 的值,请参见另外这个 Issue。在默认情况下,Libreswan 会通过 dead peer detection (reference) 功能向客户端自动发送类似的 ping,但在超出 retransmit timeout 之后(比如因为网络不稳定导致)则会在服务器端断开该 VPN 连接,从而出现你所说的情况。
from setup-ipsec-vpn.
@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)
- Problem to Connect with l2tp windows and android HOT 1
- No internet after a while when connected to VPN HOT 4
- 客户端互ping不通 HOT 1
- Unable to Connect to Ikev2 protocol HOT 1
- Increase maximum no of simultansous connections using same ikev2 file HOT 5
- Can I generate files while adding a new user for ikev2 with encryption algorithm ed448 or ed25519? HOT 1
- Can I use nftables instead of iptables HOT 1
- 目前手机是华为鸿蒙4.0系统,可以使用华为手机自带vpn连接不,不使用第三方vpn HOT 1
- OpenVPN overs IKEv2 slow HOT 1
- Error: Connection activation failed: The 'strongswan' plugin only supports a single active connection. HOT 2
- Windows客户端使用IKEv2连接成功一两个小时出现无法ping通,断开重连后恢复 HOT 1
- in ikev2setup.sh shouldn't this use openssl sha2 HOT 2
- 没事了
- Renew revoked or expired certificate HOT 1
- apt-get Install Failed HOT 2
- 路由器端口回流功能失效 HOT 1
- Telegram notification HOT 1
- It doesn't seem to work with GCP HOT 3
- ipsec.conf obsolete keyword dpdaction and fail2ban conf warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-ipsec-vpn.