mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #160] about ipsec in slow network #144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @uranio-235 on GitHub (Sep 24, 2019).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/160
What you suggest to handle slow network and outages? After network fails, ipsec expend so much time to reconnect because it expected to still connected. What parameters could I tweak? What could I do to improve this situation.
@hwdsl2 commented on GitHub (Sep 25, 2019):
@uranio-235 Hello! You can try changing the values of
dpddelayand/ordpdtimeoutin/etc/ipsec.confon the VPN server, then runservice ipsec restart. See [1] for more details. This might help, or alternatively, you can give OpenVPN a try with the "keepalive" parameter.If you are using the Docker image, you will need to build it from source after changing those parameters. See [2].
[1] https://libreswan.org/man/ipsec.conf.5.html
[2] https://github.com/hwdsl2/docker-ipsec-vpn-server#advanced-usage