hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
24.9k stars 6.28k forks source link

Newly generated mobileconfig files don't work with the same pass that works for older configs #1564

Closed rolandjitsu closed 2 months ago

rolandjitsu commented 2 months ago

Checklist

Describe the issue

It looks like any new mobileconfig file the ikev2 script generates, does not work with the password that was used so far. I tried older configs and those work ok.

Screenshot 2024-06-13 at 12 49 18

I have tried to get the certs from the p12 file and that works as well (both on the same machine where I generated it and other machines).

To Reproduce Steps to reproduce the behavior:

  1. Run
    sudo bash ikev2.sh --addclient test-1
  2. Get the .mobileconfig file to a macOS
  3. Try to install the profile

Expected behavior

I should be able to install the profile.

Logs Check logs and VPN status, and add error logs to help explain the problem, if applicable.

Server (please complete the following information)

Client (please complete the following information)

Additional context Add any other context about the problem here.

I know this is not a lot to go by, but I'd appreciate some help with pointers where this issue could be. Maybe the OS got some patch from GCP and some libs were updated (I haven't updated anything on the VM)?

hwdsl2 commented 2 months ago

@rolandjitsu Hello! The libnss3 packages on Ubuntu 20.04 were recently updated to newer versions in the Ubuntu repositories, and as a result, the IKEv2 script was updated on April 10, 2024 in 25670f3 to fix the creation of .mobileconfig files on this OS.

Please update the IKEv2 script on your server using these instructions [1]. After that, re-run the script (sudo ikev2.sh) to re-create the client configuration .mobileconfig files, then import to your iOS or macOS device(s).

[1] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#update-ikev2-helper-script

rolandjitsu commented 1 month ago

Thanks @hwdsl2 . I've applied the patch and it seems to work.