Hi, thanks for replying so quickly. Here are the details you asked for.
Let us explain all the steps that are taken during the installation of the app. This will answer all your questions.
Steps:
We added the log in main.swift which is in the extension. The sample code given in the post Debugging a Network Extension Provider was giving us compilation errors because WireGuard overrides its methods. So we added a simple line of code wg_log(.info, message: "abc test")
Build the app following the post Exporting a Developer ID Network Extension. Yes, we are using a Developer ID signed extension.
Copy the app to the /Applications folder and run it.
First, we ask for the system extension permission. Once the user allows it to load, we proceed with NE. Yes, the system extension is loading. We checked it using the terminal command "systemextensionsctl list" which shows "[activated enabled]".
While loading the NE, it asks the user for permission to load it. Once the user gives approval for the NE, it prints the log to the console app as mentioned in step 1. This works fine in both cases of SIP enabled and disabled. But the VPN connects only in case of SIP disabled and not if SIP enabled in macOS 15.1.
The strange thing is that regardless of whether SIP is enabled or disabled, it works fine in macOS 13.* and 14.*. But in case of macOS 15.1, it works if SIP is disabled and not if SIP is enabled. macOS 15.0 did not work in either case.
Topic:
App & System Services
SubTopic:
Networking
Tags: