Post

Replies

Boosts

Views

Activity

Combining Packet Tunnel and Content Filter in network extension
Hi, We are writing a vpn based filter network extension app for closed group which is provided over managed devices. Our algorithm and filter works fine but we are facing an issue with identifying the source application for a specific request from the tunnel. packetFlow.readPacketObjects provides a packet but packet.metaData is always nil We also tried using content filter extension and it provides correct bundle if for the source application but it execute independently on the system and we can not figure out a way to transfer control between extensions. Also, When trying to enable both capabilities (tunnel provide and content filter) seem impossible because in the plist of extension we can only define 1 NSExtensionPrincipalClass Thank you for the help in advance
3
0
578
May ’23
Unable to access logs and data from Network extension class
Hello, i am trying to record logs in my network extension class, and then i want to read it in my application class, i.e. viewModel. However, i am unable to read the data. I have tried different ways like UserDefaults, Keychain, FileManager, NotificationCenter and CoreData. I have also used Appgroups but still there is blocker for reading data outside the scope of Extension class.
7
0
597
May ’24
Read and write permission error in FilterDataProvider Network Extension class
Hi, in my Extension FilterDataProvider class that is inherited from NEFilterDataProvider i am trying to insert logs into my CoreData entity, but when i insert it gives me error "NSCocoaErrorDomain: -513 "reason": Unable to write to file opened Readonly Any suggestions please to update the read write permission i already have tried this way but no luck let description = NSPersistentStoreDescription(url: storeURL) description.shouldInferMappingModelAutomatically = true description.shouldMigrateStoreAutomatically = true description.setOption(false as NSNumber, forKey: NSReadOnlyPersistentStoreOption) ?
4
0
493
May ’24