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

How do I generate new password? #412

Closed Mathiaszero closed 8 months ago

Mathiaszero commented 8 months ago

Hello, it looks like my ipsec/ike password to connect to vpn might be compromised; is there a way to generate new random password, and how would that be done?

For example, if vpn server is already installed, do I run: wget https://get.vpnsetup.net -O vpn.sh && sudo sh vpn.sh?

Thanks in advance

hwdsl2 commented 8 months ago

@Mathiaszero Hello! Yes, you can run the command to reinstall the VPN and generate a new random password for IPsec/L2TP and IPsec/XAuth ("Cisco IPsec") modes. On the other hand, if you are using the Docker image, you can remove and recreate the Docker container, see project documentation.