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.51k stars 1.4k forks source link

Can psk mode ikev2 connections be supported #449

Closed HX-Technology-LLC closed 1 month ago

HX-Technology-LLC commented 1 month ago

Checklist

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

Support the psk mode in ikev2 connections

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

The current ikev2 connection based on machine certificates is a bit complicated, especially when importing certificates and replacing them. If you use psk you can simply change the key .

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

If this is not directly supported, can I manually modify the libreswan config file to enable this functionality.

hwdsl2 commented 1 month ago

@HX-Technology-LLC Hello! IKEv2 mode with PSK is not currently supported in this project. If you want to explore that functionality yourself, you can learn more about IPsec configuration at: https://libreswan.org/man/ipsec.conf.5.html https://libreswan.org/wiki/Configuration_examples

To make changes to the VPN configuration, you can open a Bash shell inside the container, then edit /etc/ipsec.d/ikev2.conf. When finished, exit the container and restart the Docker container.