[GH-ISSUE #72] container always is in a restart status and is not running #63

Closed
opened 2026-03-02 07:11:26 +03:00 by kerem · 1 comment
Owner

Originally created by @darius-khll on GitHub (Apr 20, 2018).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/72

I completely followed the instruction but I couldn't figure out how it works
I pulled docker pull hwdsl2/ipsec-vpn-server inside Ubuntu server then created a file named vpn.env which is filled by this and I generated Ip sec pre shared key using this address generator with password 1 and key 1

VPN_IPSEC_PSK=C5seNqcaSl9XshZbeYf5gDtihaMLOtKZWpaFKawhdTVXe7M0WhtY2DlvGpO04vZy
VPN_USER=your_vpn_username
VPN_PASSWORD=your_vpn_password

after that, I did this sudo modprobe af_key then I ran container by this instruction

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

but container is not running and just says it is restarting, what's wrong?

Originally created by @darius-khll on GitHub (Apr 20, 2018). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/72 I completely followed the instruction but I couldn't figure out how it works I pulled `docker pull hwdsl2/ipsec-vpn-server` inside Ubuntu server then created a file named vpn.env which is filled by this and I generated Ip sec pre shared key using this address [generator](https://www.pskgen.com/) with password 1 and key 1 ``` VPN_IPSEC_PSK=C5seNqcaSl9XshZbeYf5gDtihaMLOtKZWpaFKawhdTVXe7M0WhtY2DlvGpO04vZy VPN_USER=your_vpn_username VPN_PASSWORD=your_vpn_password ``` after that, I did this `sudo modprobe af_key` then I ran container by this instruction ``` 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 ``` but container is not running and just says it is restarting, what's wrong?
kerem closed this issue 2026-03-02 07:11:27 +03:00
Author
Owner

@hwdsl2 commented on GitHub (May 2, 2018):

@Alikhll Hello! Cannot reproduce this issue on a Ubuntu 16.04 server. The problem is most likely with your server configuration. Check "docker logs ipsec-vpn-server".

<!-- gh-comment-id:385908734 --> @hwdsl2 commented on GitHub (May 2, 2018): @Alikhll Hello! Cannot reproduce this issue on a Ubuntu 16.04 server. The problem is most likely with your server configuration. Check "docker logs ipsec-vpn-server".
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#63
No description provided.