Looking forward to read SourceAppId from packetFlow.readPacketObjects()
of my PacketTunnelProvider.
Note: I've implemented the Per app VPN too. looking forward for the further steps,
regards:
Thanks for being so kind. under your guidance I adjusted my configuration profile but still my packet.metadata?.sourceAppUniqueIdentifier
is nil
. attaching my updated profile.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadUUID</key>
<string>C3179238-32FE-406E-A3E1-30700BF42977</string>
<key>PayloadType</key>
<string>com.apple.vpn.managed.applayer</string>
<key>PayloadIdentifier</key>
<string>com.apple.vpn.managed.applayer.C3179238-32FE-406E-A3E1-30700BF42977</string>
<key>VPNSubType</key>
<string>bundle id of my source app</string>
<key>VPNType</key>
<string>VPN</string>
<key>UserDefinedName</key>
<string>VPN_CONFIG</string>
<key>PayloadDescription</key>
<string>Configure VPN settings</string>
<key>PayloadDisplayName</key>
<string>VPN</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>VPNUUID</key>
<string>3D7A07D8-97D0-4E5A-BB04-1EB82DD12A35</string>
<key>IPv4</key>
<dict>
<key>OverridePrimary</key>
<integer>0</integer>
</dict>
<key>Proxies</key>
<dict>
<key>HTTPEnable</key>
<integer>0</integer>
<key>HTTPSEnable</key>
<integer>0</integer>
</dict>
<key>VPN</key>
<dict>
<key>AuthName</key>
<string>xxxx</string>
<key>AuthPassword</key>
<string>yyyy</string>
<key>AuthenticationMethod</key>
<string>Password</string>
<key>ProviderBundleIdentifier</key>
<string>zzzz</string>
<key>RemoteAddress</key>
<string>abc.co.jp</string>
</dict>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Testing Name</string>
<key>PayloadIdentifier</key>
<string>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>88D93328-F0AE-4AC6-9AE5-FFA6A4B5BCBF</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>