mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 18:15:50 +03:00
[GH-ISSUE #368] Libreswan: Protocol not supported (errno 93) #343
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 @keelfy-lilly on GitHub (Apr 20, 2023).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/368
Checklist
Describe the issue
None of my devices can connect to IKEv2 VPN. I've tried macOS 13, Windows 11, and Android 11.
Windows says that the problem is unknown and macOS just stops connecting after 1-2 sec.
After finding out about this issue I've enabled logs of Libreswan to look at what happens on the server side. You can find them down below.
The logs are the same for each device I've tried. By the same I mean the same steps and errors.
I've tried to recreate VPS 2 times (installed CentOS and the problem was the same), I've tried to re-clone the repo, restart the container, and recreate the container.
I'm thinking about the problem with my network preferences, but I don't know where to look or what to fix.
To Reproduce
VPN_DNS_NAMEto my domain (previously I've added A record pointing to VPS)VPN_IKEV2_ONLY=yesbecause I'm planning to use only IKEv2 (I've also tried without this variable)Expected behavior
Logs
I've replaced my actual domain with 'mydomain'
Libreswan log
Status log
Server (please complete the following information)
Client (please complete the following information)
Client (please complete the following information)
Client (please complete the following information)
Additional context
I newbie in that kind of stuff, but I created one not containerized VPN using strongswan-starter under ubuntu system which worked fine.
@hwdsl2 commented on GitHub (Apr 21, 2023):
@keelfy-lilly Hello! Thanks for reporting this issue and providing details. The error
netlink response for Add SA ... Protocol not supported (errno 93)typically means that your Docker host's Linux kernel does not properly support the IPsec protocol. If your VPS is OpenVZ or lxc based, it may run a shared Linux kernel which lacks IPsec support. Otherwise, if it's KVM-based, it should generally work fine, unless there's an issue with your hosting provider's VM implementation.Alternatively, you can try creating a non-containerized VPN on a new VPS using scripts in this repo.