@matt, thanks for the support :)
The configuration for packet tunnel is that:
protocolConfiguration
type = plugin
identifier = 7FCF645B-4707-42AE-BFB9-76903115D4F5
serverAddress = x.x.x.x:PORT // This is IP:PORT FORMAT
identityDataImported = NO
disconnectOnSleep = NO
disconnectOnIdle = NO
disconnectOnIdleTimeout = 0
disconnectOnWake = NO
disconnectOnWakeTimeout = 0
includeAllNetworks = NO
excludeLocalNetworks = YES
enforceRoutes = NO
pluginType = bundleIdentifier of the app that contains the extension
authenticationMethod = 0
reassertTimeout = 0
And the code of the start tunnel
override func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) {
let newTunnel = ClientTunnel()
newTunnel.delegate = self
if let error = newTunnel.startTunnel(self) {
completionHandler(error as NSError)
} else {
// Save the completion handler for when the tunnel is fully established.
pendingStartCompletion = completionHandler
tunnel = newTunnel
}
}
And the VPNStatus is .connected
My ClientTunnelConnection receive packets.
The connection to tunnel seems to be ok:
parameters = {
processUUID = A22C0610-214E-3C0F-9ABB-DDEB02351D12
effectiveProcessUUID = A22C0610-214E-3C0F-9ABB-DDEB02351D12
pid = 1153
uid = 501
protocolTransforms = (
)
ipProtocol = 6
}
endpoint = { IP:PORT // Owned by server
}
}
:(.
Why there's no simple tunnel example of Apple updated to the latest version of Xcode and Swift?