I would like to provide a .mobileconfig file to our remote Mac (not iOS) users that pre-populates the VPN settings for our organization. I have generated one and it works all except for the fact that I cannot get the profile to properly control the setting for "Send all Traffic Over VPN". I need that setting to be on (in a checked state).
Here is my profile (with location specifics masked). Can anyone let me know where I might be going wrong? I thank folks in advance. I will note that Apple suggests use of the OverridePrimary key in their documentation. It doesn't seem to work though. The profile works other than that functionality though so if anyone knows perhaps a way that "Send all traffic over VPN" can be toggled in a script, that would work too.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>HasRemovalPasscode</key>
<false/>
<key>PayloadContent</key>
<array>
<dict>
<key>IPSec</key>
<dict>
<key>AuthenticationMethod</key>
<string>SharedSecret</string>
<key>SharedSecret</key>
<data>
OURSHAREDSECRETDATAHERE
</data>
</dict>
<key>OverridePrimary</key>
<true/>
<key>PPP</key>
<dict>
<key>AuthName</key>
<string>USERNAMEHERE</string>
<key>CommRemoteAddress</key>
<string>ADDRESSHERE</string>
<key>OnDemandEnabled</key>
<integer>0</integer>
</dict>
<key>PayloadDescription</key>
<string></string>
<key>PayloadDisplayName</key>
<string>VPN</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>D8AC2374-5961-4F2A-A829-183AEFC3C67F.com.apple.vpn.managed.F100F9D8-D668-4AAB-9AC7-C0EFBC09CC9A</string>
<key>PayloadOrganization</key>
<string>OUR ORGANIZATION HERE</string>
<key>PayloadType</key>
<string>com.apple.vpn.managed</string>
<key>PayloadUUID</key>
<string>21D4B909-964C-4ACE-AA12-C081FB47A88A</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>Proxies</key>
<dict>
<key>HTTPEnable</key>
<integer>0</integer>
<key>HTTPSEnable</key>
<integer>0</integer>
<key>ProxyAutoConfigEnable</key>
<integer>0</integer>
<key>ProxyAutoDiscoveryEnable</key>
<integer>0</integer>
</dict>
<key>UserDefinedName</key>
<string>MacVPN</string>
<key>VPNType</key>
<string>L2TP</string>
</dict>
</array>
<key>PayloadDescription</key>
<string></string>
<key>PayloadDisplayName</key>
<string>MacVPN</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>D8AC2374-5961-4F2A-A829-183AEFC3C67F</string>
<key>PayloadOrganization</key>
<string>OUR ORGANIZATION NAME HERE</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>C37953EF-AD55-4889-AFDA-998361FA10F0</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>