mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #89] failing when restarting docker #76
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 @mariosanchez23 on GitHub (Aug 28, 2018).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/89
When I restart the machine or just docker the vpn server restarts but does not work, i.e. I am not able to connect. If I just do a manual restart doing:
docker restart ipsec-vpn-server
it works fine.
What can I look for?
The command I used to install it was the one in the documentation (with my own env file)
docker run
--name ipsec-vpn-server
--env-file ./vpn.env
--restart=always
-p 500:500/udp
-p 4500:4500/udp
-v /lib/modules:/lib/modules:ro
-d --privileged
hwdsl2/ipsec-vpn-server
@hwdsl2 commented on GitHub (Aug 28, 2018):
@mariosanchez23 Hello! Make sure that the
af_keykernel module is loaded on system boot. See [1]. Inspect logs for further troubleshooting by runningdocker logs ipsec-vpn-server. To enable and check Libreswan logs, see [2].[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#start-the-ipsec-vpn-server
[2] https://github.com/hwdsl2/docker-ipsec-vpn-server#enable-libreswan-logs
@mariosanchez23 commented on GitHub (Aug 29, 2018):
Thanks for the answer.
Regarding 1) as I am using docker on Mac, I believe I don't need to do anything, do you need to run sudo modprobe af_key INSIDE the IPSec-vpn docker instance? It is not clear to me.
If so, how? how can I make sure it is loaded automatically?
@hwdsl2 commented on GitHub (Aug 29, 2018):
@mariosanchez23 Using this image with Docker for Mac is not yet supported
at this time. Only Linux hosts have been tested.