mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #257] IKEv2 multiple devices with same public IP address #239
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 @miladabc on GitHub (Sep 17, 2021).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/257
Describe the issue
I'm not able to connect multiple devices on my home network to IKEv2 server.
I've generated two different clients for macbook and iphone devices, they can connect completely fine on their own
but not simultaneously.
Also there is no
@in theleftidproperty in ikev2 config file.To Reproduce
This is my docker compose file:
/etc/ipsec.d/ikev2.conf
ipsec --version
Server
Client
Additional context
Please let me know how can I provide you more information.
@hwdsl2 commented on GitHub (Sep 18, 2021):
@miladabc Hello! Please enable Libreswan (IPsec) logs [1] in the container. Try to reproduce the issue, then check the logs for errors. Reply with the redacted logs for further troubleshooting.
[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#enable-libreswan-logs
@miladabc commented on GitHub (Sep 18, 2021):
I first connected successfully with iphone then tried connecting with macbook, it stays connecting for a minute or two then says vpn server did not respond.
@hwdsl2 commented on GitHub (Sep 19, 2021):
@miladabc I tested but was unable to reproduce this issue - I was able to successfully connect both an iPhone and a macbook device simultaneously from behind the same NAT, and they both stayed connected without problems.
The logs you posted seem incomplete, because it does not contain the connection attempt by the macbook device. Your logs contain
retransmissionandMOBIKE UPDATE_SA, and I suspect that there are network issues between your VPN server and VPN client. Perhaps try a different server location or different provider. You may also try disabling MOBIKE to see if it makes any difference. To disable, run:I'm closing this because I can't reproduce the issue. If you have additional findings, reply to let us know.
@miladabc commented on GitHub (Sep 19, 2021):
Turning off mobike had no effects.
It's weird, I generated a new client for an android device and it successfully connected along with macbook.
Iphone and macbook can not connect at the same time under same network. Different networks work normally.