[GH-ISSUE #374] Maximum retries exceeded for tunnel 5391. Closing. #349

Closed
opened 2026-03-02 08:01:33 +03:00 by kerem · 1 comment
Owner

Originally created by @tianwanqiang on GitHub (Apr 25, 2023).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/374

Debain9 The docker log says :

Maximum retries exceeded for tunnel 5391.  Closing.
xl2tpd[1]: Connection 1 closed to my_ip, port 1701 (Timeout)
xl2tpd[1]: Unable to deliver closing message for tunnel 5391. Destroying anyway.

And the vpn-client can't login

Originally created by @tianwanqiang on GitHub (Apr 25, 2023). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/374 Debain9 The docker log says : ``` Maximum retries exceeded for tunnel 5391. Closing. xl2tpd[1]: Connection 1 closed to my_ip, port 1701 (Timeout) xl2tpd[1]: Unable to deliver closing message for tunnel 5391. Destroying anyway. ``` And the vpn-client can't login
kerem closed this issue 2026-03-02 08:01:34 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Apr 28, 2023):

@tianwanqiang Hello! This error could mean that there are network issues between the VPN client and server. You may enable Libreswan logs, try the VPN connection again, then check the logs for errors. You can also try IKEv2 mode, which is recommended over IPsec/L2TP mode.

<!-- gh-comment-id:1527582624 --> @hwdsl2 commented on GitHub (Apr 28, 2023): @tianwanqiang Hello! This error could mean that there are network issues between the VPN client and server. You may [enable Libreswan logs](https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/docs/advanced-usage.md#enable-libreswan-logs), try the VPN connection again, then check the logs for errors. You can also try [IKEv2 mode](https://github.com/hwdsl2/docker-ipsec-vpn-server#configure-and-use-ikev2-vpn), which is recommended over IPsec/L2TP mode.
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#349
No description provided.