[GH-ISSUE #175] IPSEC-XAUTH disconnects after 10 hours #160

Closed
opened 2026-03-02 07:28:10 +03:00 by kerem · 2 comments
Owner

Originally created by @majdya on GitHub (Feb 26, 2020).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/175

Hi,
I am using the always on VPN feature of android,
I'm facing a disconnect after 10 hours, phone sends data, vpn connected on phone, but cant see traffic.
First thought that its DNS related, tried few did not help(google, Cloudflare and FreeDNS),
apparently its not,so I thought its related to renew the connection/keys - which wired why it stops after 10 hours,
tried to find the config to adjust it, also didn't manage to find it,
any idea on what going on ?

Originally created by @majdya on GitHub (Feb 26, 2020). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/175 Hi, I am using the always on VPN feature of android, I'm facing a disconnect after 10 hours, phone sends data, vpn connected on phone, but cant see traffic. First thought that its DNS related, tried few did not help(google, Cloudflare and FreeDNS), apparently its not,so I thought its related to renew the connection/keys - which wired why it stops after 10 hours, tried to find the config to adjust it, also didn't manage to find it, any idea on what going on ?
kerem closed this issue 2026-03-02 07:28:10 +03:00
Author
Owner

@majdya commented on GitHub (Feb 26, 2020):

I just found the rekey in conn shared - which were set by default to no, changed it to yes, will update you after 11 hours if this solves the problem for me.
I just found it after posting the issue !!

<!-- gh-comment-id:591331569 --> @majdya commented on GitHub (Feb 26, 2020): I just found the rekey in conn shared - which were set by default to no, changed it to yes, will update you after 11 hours if this solves the problem for me. I just found it after posting the issue !!
Author
Owner

@hwdsl2 commented on GitHub (Apr 12, 2020):

@majdya Glad that you resolved the issue. For the rekey option in /etc/ipsec.conf, if set to no, it just means that the VPN server does not request the renegotiation, but "it does not prevent responding to renegotiation requested from the other end" (see [1]).

If not working, try the latest version of the Docker image. Libreswan 3.31 fixed some rekey bugs [2].

[1] https://libreswan.org/man/ipsec.conf.5.html
[2] https://github.com/libreswan/libreswan/issues/293

<!-- gh-comment-id:612675195 --> @hwdsl2 commented on GitHub (Apr 12, 2020): @majdya Glad that you resolved the issue. For the `rekey` option in `/etc/ipsec.conf`, if set to `no`, it just means that the VPN server does not request the renegotiation, but "it does not prevent responding to renegotiation requested from the other end" (see [1]). If not working, try the latest version of the Docker image. Libreswan 3.31 fixed some rekey bugs [2]. [1] https://libreswan.org/man/ipsec.conf.5.html [2] https://github.com/libreswan/libreswan/issues/293
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#160
No description provided.