问题描述
我已经用我要通过JamF Now分发的VPN配置创建了一个mobileconfig文件。经过一天的挫败,当我检查设备上的配置时,我仍然没有设法自动将SharedSecret填充为配置文件。这适用于iOS和Mac设备。
我要创建的连接是没有RSA SecurID的L2TP连接。
然后我在设备上手动添加SharedSecret时,连接将按预期工作。
我们将不胜感激。
我创建的配置文件如下:
<?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>PayloadContent</key>
<array>
<dict>
<key>VPNType</key> <string>L2TP</string>
<key>PPP</key>
<dict>
<!-- RemoteAdress should be the VPN server's IP or DNS name -->
<key>CommRemoteAddress</key> <string>TARGET_ADDRESS</string>
<!-- Auth Configuration -->
<key>AuthName</key> <string>USERNAME</string>
<key>AuthPassword</key> <string>PASSWORD</string>
</dict>
<key>IPSEC</key>
<dict>
<!-- AuthenticationMethod can either be "SharedSecret" or "Certificate" -->
<key>AuthenticationMethod</key> <string>SharedSecret</string>
<key>LocalIdentifierType</key> <string>KeyID</string>
<!-- SharedSecret must be base64 encoded -->
<key>SharedSecret</key>
<data>
SHARED_SECRET
</data>
</dict>
<key>IPv4</key>
<dict>
<key>OverridePrimary</key> <integer>1</integer>
</dict>
<key>OverridePrimary</key> <true/>
<key>ondemandEnabled</key> <integer>0</integer>
<key>PayloaddisplayName</key> <string>Manual VPN connection</string>
<key>PayloadIdentifier</key> <string>com.apple.vpn.managed</string>
<key>PayloadType</key> <string>com.apple.vpn.managed</string>
<key>PayloadUUID</key> <string>76ac6025-f8c4-46e6-b5eb-2980b61b36d1</string>
<key>PayloadVersion</key> <integer>1</integer>
<key>PayloadEnabled</key> <true/>
<key>UserDefinedname</key> <string>VPN</string>
</dict>
</array>
<key>PayloadDescription</key> <string>Tunnel all traffic through VPN</string>
<key>PayloaddisplayName</key> <string>VPN Configurations for bqon</string>
<key>PayloadIdentifier</key> <string>DB.BAB78424-28FB-4654-915D-93D0CB87CC7B</string>
<key>PayloadOrganization</key> <string>ORGANIZATION NAME</string>
<key>PayloadRemovaldisallowed</key> <false/>
<key>PayloadType</key> <string>Configuration</string>
<key>PayloadUUID</key> <string>e838fd06-4c8c-4bb1-ac04-fb9b2390b042</string>
<key>PayloadVersion</key> <integer>1</integer>
</dict>
</plist>
我在日志中遇到以下错误:
Payload “Manual VPN connection” contains ignored fields. They are: {
IPSEC = {
AuthenticationMethod = SharedSecret;
LocalIdentifierType = KeyID;
SharedSecret = {removed};
};
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)