Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Apple IPSec Profile exporter tool exporting some invalid configs

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 704 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      beatvjiking
      last edited by

      I was tinkering with the tool to build stronger IPSec remote access configs and I noticed something strange - the exporter doesn't export the proper keys for some encryption algorithms. For example, newer versions of iOS can use the AES-GCM algorithms for IKEv2 when the settings are applied via a .mobileconfig file. The tool can export corresponding keys. However, the keys aren't the correct ones:

      The tool will export:

      <string>AES256GCM-128</string>
      

      When what is required is:

      <string>AES-256-GCM</string>
      ```(iOS uses a 16-octet ICV so the -128 portion is redundant in this context.)
      
      The failure to export correctly causes the iOS device to fall back to 3DES(!) and the connection to fail. Manual editing of the .mobileconfig XML can fix the issue but sort of defeats the purpose of the tool.
      
      Here's the source for the correct keys and strings for iOS:
      
      https://developer.apple.com/library/content/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW612
      
      This seems like a bug report-worthy item but I figured I'd check here first to make sure I wasn't off. Anyone have thoughts?
      1 Reply Last reply Reply Quote 0
      • B
        beatvjiking
        last edited by

        Another issue is that the tool doesn't export the EnablePFS key when applicable. Again, can be added manually, but kinda defeats the purpose.

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          I opened up an internal ticket to look into those issues, thanks for letting us know!

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 1
          • B
            beatvjiking
            last edited by

            Awesome, thanks so much!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.