includeAllNetworks - Can't establish tunnel when includeAllNetworks is set

I've implemented a custom VPN app for macOS (using Packet Tunnel Provider). I set includeAllNetworks at the protocolConfiguration. When this field is set, I can't connect and I can't send traffic even at the extension. Even simple calls at the extension, like getaddrinfo or curl fails.
If I'm unsetting this variable (includeAllNetworks = false) then I can connect without a problem.
In addition I can see those lines at the Xcode Console:
Code Block
Connection 2: encountered error(1:53)
Connection 3: encountered error(1:53)
Connection 1: encountered error(1:53)


Code Block
And those lines at the Console:
No mDNS_Keepalive for interface en8/IOSkywalkLegacyEthernetInterface kr 0xE00002C0
NetWakeInterface: en8 <private> no WOMP
uDNS_CheckCurrentQuestion: host unreachable error for DNS server <private> for question
failed to send packet on InterfaceID 0x5 en8/4 to <private>:53 skt 74 error -1 errno 65 (No route to host) 


Was there ever a solution to this found? I'm seeing this same error, both using BSD sockets and using NWConnection. (65 - no route to host for BSD sockets, 50 - network is down for NWConnection)

The tunnel remote address, the server address in the config, and the address to which I'm connecting all match.

I'm connecting via IP address, not by hostname.

includeAllNetworks - Can't establish tunnel when includeAllNetworks is set
 
 
Q