Hello @eskimo ,
I apologize for any confusion.
At the beginning, I mentioned the use of PacketTunnelProvider, and you responded with a suggestion to use the createTCPConnectionThroughTunnel method, which works perfectly for PacketTunnelProvider.
However, we also have the NETransparentProxyProvider in the same target, which is why @arkadit mentioned NEAppProxyTCPFlow in his question.
we need to establish connections with some IPs from this range from NETransparentProxyProvider subclass as well. Unfortunately, the createTCPConnectionThroughTunnel method is specific to the PacketTunnelProvider class and cannot be used in the NETransparentProxyProvider class.
As a solution for NETransparentProxyProvider, we are planning to explicitly bind our NWConnection to the VPN interface using the requiredInterface property.
Thanks