Accessing Routing tables

My question is regarding https://forums.developer.apple.com/thread/15508
As you told its constraint isn't technical, its question of legitimacy what I understood from your comment. System Guard & apps like cisco anyconnect, how they are working if they are not accessing routing tables?


Can it be done using network extensions?

Accessing Routing tables

What platform are you targeting?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

iOS

To be clear, accessing the routing table has never been supported on iOS. Doing this requires that you use various structures defined in

<net/route.h>
, and that header has never been present in the iOS SDK [1].

Can it be done using network extensions?

No. NetworkExtension providers can change the routing table, but they don’t have any special mechanism to access it.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

[1] At one time it was present in the iOS Simulator SDK (see this thread) but a) that time has passed, and b) it’s the device SDK that matters.

Can You help me to understand then how Cisco Anyconnect or Open VPN is working, without reading the routing table!?

Sorry, but I can’t comment on other developer’s apps.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I want to add some static route on macOS, can I do this without creating personal VPN?

Please start a new thread for that. The story on macOS is more nuanced than the story on iOS and its descendents.

Tag it with NetworkExtension so that I see it. And feel free to link back to this thread for context.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accessing Routing tables
 
 
Q