I'm running an VPN app using NetworkExtension on macos 13.2.1.
I'm able to connect to VPN server and run the tunnel. But if I change the VPN profile which triggers VPN reconnection (reasserting=true
), while the System Settings app is open, the tunnel is stopped by the VPN.appex/Contents/MacOS/VPN
app. The only "fix" for this is to close System Settings and then everything works fine.
The logs contain lots of messages generated by VPN.appex
e.g.:
VPN current generation (7734) does not equal posted generation (7735), fetching a new index
....
VPN Skipping configuration App1 because it is of the wrong type
VPN Skipping configuration App2 because it is of the wrong type
VPN Skipping configuration App2 because it is of the wrong type
VPN loadAll complete
but they are printed also when the tunnel is not stopped.
Sometimes the tunnel is stopped and the logs contain
Received a stop command from VPN[26144] with reason 1
...
Calling stopTunnelWithReason because: Stop command received
The only fix found so far is to close System settings so VPN.appex is closed.
Do you have any suggestions how to fix this?
Thanks