0

我已经使用Apple Configuration 2创建了下面的 VPN 配置文件,但是当我尝试从System Settings安装它时,我收到以下错误消息:

在此处输入图像描述

<?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>DNS</key>
            <dict>
                <key>SupplementalMatchDomainsNoSearch</key>
                <integer>0</integer>
            </dict>
            <key>IKEv2</key>
            <dict>
                <key>AuthName</key>
                <string>john</string>
                <key>AuthenticationMethod</key>
                <string>None</string>
                <key>ChildSecurityAssociationParameters</key>
                <dict>
                    <key>DiffieHellmanGroup</key>
                    <integer>14</integer>
                    <key>EncryptionAlgorithm</key>
                    <string>AES-256</string>
                    <key>IntegrityAlgorithm</key>
                    <string>SHA2-256</string>
                    <key>LifeTimeInMinutes</key>
                    <integer>1440</integer>
                </dict>
                <key>DeadPeerDetectionRate</key>
                <string>Medium</string>
                <key>DisableMOBIKE</key>
                <integer>0</integer>
                <key>DisableRedirect</key>
                <integer>0</integer>
                <key>EnableCertificateRevocationCheck</key>
                <integer>0</integer>
                <key>EnableFallback</key>
                <integer>0</integer>
                <key>EnablePFS</key>
                <integer>0</integer>
                <key>ExtendedAuthEnabled</key>
                <true/>
                <key>IKESecurityAssociationParameters</key>
                <dict>
                    <key>DiffieHellmanGroup</key>
                    <integer>14</integer>
                    <key>EncryptionAlgorithm</key>
                    <string>AES-256</string>
                    <key>IntegrityAlgorithm</key>
                    <string>SHA2-256</string>
                    <key>LifeTimeInMinutes</key>
                    <integer>1440</integer>
                </dict>
                <key>LocalIdentifier</key>
                <string>1.2.3.4</string>
                <key>RemoteAddress</key>
                <string>1.2.3.4</string>
                <key>RemoteIdentifier</key>
                <string>1.2.3.4</string>
                <key>UseConfigurationAttributeInternalIPSubnet</key>
                <integer>0</integer>
            </dict>
            <key>PayloadDescription</key>
            <string>Configure les réglages VPN</string>
            <key>PayloadDisplayName</key>
            <string>VPN</string>
            <key>PayloadIdentifier</key>
            <string>com.apple.vpn.managed.E00C3366-E6B6-432F-BBC3-53F7E596F5EE</string>
            <key>PayloadType</key>
            <string>com.apple.vpn.managed</string>
            <key>PayloadUUID</key>
            <string>E00C3366-E6B6-432F-BBC3-53F7E596F5EE</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>Proxies</key>
            <dict>
                <key>HTTPEnable</key>
                <integer>0</integer>
                <key>HTTPSEnable</key>
                <integer>0</integer>
            </dict>
            <key>UserDefinedName</key>
            <string>FOO</string>
            <key>VPNType</key>
            <string>IKEv2</string>
        </dict>
    </array>
    <key>PayloadDisplayName</key>
    <string>vpnB3</string>
    <key>PayloadIdentifier</key>
    <string>MacBook-Pro.4E18BF67-71DA-4BD4-953F-412A575352EE</string>
    <key>PayloadRemovalDisallowed</key>
    <false/>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>38B9A4E4-325A-4CF7-A8BC-40D186DDDD2F</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>

我的个人资料有什么问题?

4

1 回答 1

0

删除 DNS 条目使其适用于我的情况:

<key>DNS</key>
<dict>
    <key>SupplementalMatchDomainsNoSearch</key>
    <integer>0</integer>
</dict>

我早在 2020 年 1 月就使用了 Apple Configurator 2 v2.11.1 :
没有将其添加到配置文件中,并且导入适用于
- macOS Catalina 10.15.2 和
- macOS Monterey 12.1。

我现在使用 Apple Configurator 2 v2.15 (7A23):自动添加
密钥,导致导入失败 - macOS Monterey 12.1 (21C52)。

还有一点特别之处:如果你删除了一次,通过Apple Configurator 2 再次保存它就不会回来了。它只会出现在新的连接中。

于 2022-01-19T12:54:56.157 回答