Skip to content

[Bug] iOS 系统生成doh mobileconfig 无法使用,切换到第三方的 doh 可以使用 #908

@losywee

Description

@losywee

在提交之前,请确认

  • 我已经尝试搜索过 Issue ,但没有找到相关问题。
  • 我正在使用最新的 mosdns 版本(或者最新的 commit),问题依旧存在。
  • 我仔细看过 wiki 后仍然无法自行解决该问题。
  • 我非常确定这是 mosdns 核心的问题。(如果是通过第三方衍生软件使用 mosdns 核心,不确定问题源头时,请先向衍生软件开发者提交问题。)

mosdns 版本

v5.3

操作系统

debian

Bug 描述和复现步骤

PayloadContent DNSSettings DNSProtocol HTTPS ServerAddresses x.x.x.x
        </array>
        <key>ServerURL</key>
        <string>https://xxx.com/dnsapi-query</string>
      </dict>
      <key>PayloadDescription</key>
      <string>Configures device to use myservice Encrypted DNS over HTTPS</string>
      <key>PayloadDisplayName</key>
      <string>myservice DNS over HTTPS</string>
      <key>PayloadIdentifier</key>
      <string>com.apple.dnsSettings.managed.7bd74dd7-77c2-43b1-9a8e-7e0b7256b23d</string>
      <key>PayloadType</key>
      <string>com.apple.dnsSettings.managed</string>
      <key>PayloadUUID</key>
      <string>6672359c-8a6c-4302-9e63-284ddc7b7c80</string>
      <key>PayloadVersion</key>
      <integer>1</integer>
      <key>ProhibitDisablement</key>
      <false/>
    </dict>
  </array>
  <key>PayloadDescription</key>
  <string>Adds the myservice DNS to Big Sur and iOS 14 based systems</string>
  <key>PayloadDisplayName</key>
  <string>myservice DNS over HTTPS</string>
  <key>PayloadIdentifier</key>
  <string>plus.simpledns.apple-dns</string>
  <key>PayloadRemovalDisallowed</key>
  <false/>
  <key>PayloadType</key>
  <string>Configuration</string>
  <key>PayloadUUID</key>
  <string>43e49f33-8e6d-45b8-b70c-965d52e6d477</string>
  <key>PayloadVersion</key>
  <integer>1</integer>

使用的配置文件

*** nginx ***
server_name xxx.com;
ssl_certificate     /etc/ssl/x_bundle.crt;
   ssl_certificate_key /etc/x.com.key;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_prefer_server_ciphers on;
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
    ssl_session_cache shared:SSL:10m;
    ssl_session_timeout 10m;
    include acme.conf;
    location /dns-query {
       proxy_pass http://127.0.0.1:19444;
       proxy_set_header X-Real-IP $remote_addr;

---------------------- *** --------------------------


*** mosdns ***
- tag: tls_server
    type: "tcp_server"
    args:
      entry: main_sequence
      listen: :9443
      cert: "/etc/ssl/x_bundle.crt"
      key: "/etc/ssl/x_.afncx.com.key"
      idle_timeout: 10
  - tag: http_server
    type: http_server
    args:
      entries:
        - path: /dns-query
          exec: main_sequence
      listen: 127.0.0.1:19444

mosdns 的 log 记录

开启info 没有任何dns请求记录

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions