[GH-ISSUE #160] about ipsec in slow network #144

Closed
opened 2026-03-02 07:28:04 +03:00 by kerem · 1 comment
Owner

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.

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.
kerem closed this issue 2026-03-02 07:28:04 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Sep 25, 2019):

@uranio-235 Hello! You can try changing the values of dpddelay and/or dpdtimeout in /etc/ipsec.conf on the VPN server, then run service 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

<!-- gh-comment-id:534883194 --> @hwdsl2 commented on GitHub (Sep 25, 2019): @uranio-235 Hello! You can try changing the values of `dpddelay` and/or `dpdtimeout` in `/etc/ipsec.conf` on the VPN server, then run `service 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#144
No description provided.