How to add static routes to macOS IKEv2 VPN

Antoine_Richez
Antoine_Richez Posts: 3  Freshman Member
Friend Collector Third Anniversary

Hello,

Our users are accessing internal's network via a client-to-site IKEv2 VPN (using native clients both on macOS and Windows). On windows, we can configure a temporary route in the installation script that will redirect all "work-related" LAN to the IPSec tunnel.

Unfortunately, we haven't find a way to do that on macOS, sure we can use networksetup to configure additional routes but:

a. It won't work unless the client has connected to the VPN once

b. I hardly see myself sending a procedure out to people (who some are not in a technical field) in order to execute a command on their macs.

Did anyone ran into this problem before ? Is there a solution ? I have looked through Apple Developer's documentation but haven't found a key that I could use in the configuration file in order to set a route.

Cordially,