hwdsl2 / docker-ipsec-vpn-server

Docker image to run an IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
https://hub.docker.com/r/hwdsl2/ipsec-vpn-server
Other
6.35k stars 1.38k forks source link

Some Linux clients cannot connect #405

Closed SJ-Y054 closed 10 months ago

SJ-Y054 commented 10 months ago

Checklist

Describe the enhancement request A clear and concise description of your enhancement request.

When some Linux clients connect this server with IPsec/IKEv2, they can't connect and leaves ANY logs. I think it is because this: https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#linux In that link, in order to connect linux clients to this server, the server side /etc/ipsec.d/ikev2 need to changed: adding authby=rsa-sha1 in conn ikev2-cp section. But, in docker environment, though I edit the file, the change does not persist after restart of the container. I think some env config is need to change that config.

Is your enhancement request related to a problem? Please describe. (If applicable) A clear and concise description of what the problem is.

Additional context Add any other context about the enhancement request here.

hwdsl2 commented 10 months ago

@SJ-Y054 Hello! Changes to /etc/ipsec.d/ikev2.conf are normally NOT overwritten on container restart. Please start a Bash shell inside the container, then follow instructions to add authby=rsa-sha1 in conn ikev2-cp section of /etc/ipsec.d/ikev2.conf. After that you can either restart the container or restart the IPsec service (reference).