Hello!
I am trying to make a VPN-client on custom protocol. I had read many things on apple.com and others and find that it’s not easy way.
My collegue write Android app and how is work: he take all traffic from android, filter tcp-packets and after incapsulate tcp packet on own protocol and send to server via tcp-connection. Can I make do same thing on iOS?
I found that thread https://forums.developer.apple.com/thread/13503and find that we can make access to FileDescriptor. But I don't know how to "see" (or print) a packet from TUN interface. I know that it can be possibility to make to operate with packets and handle them.
This what I mean about to "see" a packets:
packetFlow.readPackets { (packets: [Data], protocols: [NSNumber]) in
for packet in packets {
print("packet: ", packet)
}
Thank you very much!