Hi. We setup OpenVPN protocol based VPN tunnel on MacOS using Packet Tunnel Provider / Network extension framework. We are trying to configure forced tunneling that means passing all the internet bound traffic via VPN tunnel. We configure routes on virtual tun interface:
0.0.0.0/ 0 - Works correctly.
But this setup doesn't work:
0.0.0.0/1
128.0.0.0/1
(Covers full IPv4 address range). Routes get added on the tun interface but TCP socket gets disconnected within few seconds with error: No route to host.
Both were working correctly on MacOS < 14.0.
Any pointers on this?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
We create custom VPN tunnel by overriding PacketTunnelProvider on MacOS. Normal VPN connection works seamlessly. But if we enable onDemand rules on VPN manager, intemittently during tunnel creation via OnDemand, internet goes away on machine leading to a connection stuck state.
Why does internet goes away during tunnel creation?