# BedRock custom profile for Clash Verge
# Sources: NCloud + sub. Edgetunnel nodes are intentionally kept out.

allow-lan: true
mode: rule
log-level: info
ipv6: false
unified-delay: true
tcp-concurrent: true
profile:
  store-selected: true
  store-fake-ip: true

dns:
  enable: true
  ipv6: false
  listen: 0.0.0.0:1053
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  use-hosts: true
  use-system-hosts: true
  default-nameserver:
    - 223.5.5.5
    - 119.29.29.29
    - 114.114.114.114
  nameserver:
    - https://doh.pub/dns-query
    - https://dns.alidns.com/dns-query
    - https://dns.tuna.tsinghua.edu.cn/dns-query
  direct-nameserver:
    - system
  nameserver-policy:
    "+.lan": system
    "+.local": system
    "+.home.arpa": system
    "+.novatools.vip": system
    "+.novastar.tech": system
    "+.novaops.tech": system
    localhost: system
    "+.bsurl.cn": 223.5.5.5
    # Add intranet domains here when public DNS resolves them incorrectly.
    # '+.corp.example.com': system
  proxy-server-nameserver:
    - system
    - https://doh.pub/dns-query
    - https://dns.alidns.com/dns-query
  fallback:
    - https://1.1.1.1/dns-query
    - https://8.8.8.8/dns-query
  fallback-filter:
    geoip: true
    geoip-code: CN
    ipcidr:
      - 240.0.0.0/4
      - 0.0.0.0/32
      - 127.0.0.1/32
    domain:
      - +.google.com
      - +.facebook.com
      - +.twitter.com
      - +.youtube.com
      - +.googleapis.com
  fake-ip-filter:
    - "*.lan"
    - "*.local"
    - "*.home.arpa"
    - "*.novatools.vip"
    - "*.novastar.tech"
    - "*.novaops.tech"
    # Add intranet domains here too if applications must receive the real LAN IP.wei
    # - '*.corp.example.com'
    - localhost.ptlogin2.qq.com
    - stun.*.*
    - stun.*.*.*
    - time.windows.com
    - time.nist.gov
    - time.apple.com
    - time.asia.apple.com
    - "*.ntp.org.cn"
    - pool.ntp.org
    - ntp.aliyun.com
    - "*.msftconnecttest.com"
    - "*.msftncsi.com"

proxies:
    - { name: 🇸🇬 SG Nova, type: http, server: 10.90.1.3, port: 3128, username: Nova004746, password: 'Bedrock123=', tls: false }
    - { name: 🇸🇬 SG BedRock, type: vless, server: 3x.bedrockjie.win, port: 443, uuid: 2ee06f0d-6235-4e26-a6e6-ed305a1be9ed, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: products.amd.com, reality-opts: { public-key: f7nnY7mvaqr59_Bon61olEViwpFRQz4Bk4Pj8t4nURs, short-id: 5cbe }, client-fingerprint: chrome, network: tcp }
    - { name: '[hy2]香港 1 直连', server: hktv01.outleft-hy.xyz, port: 543, sni: hktv01.outleft-hy.xyz, up: 600, down: 600, skip-cert-verify: false, type: hysteria2, password: f37840cb-4900-4c94-a351-51d4d0ad6265, obfs: salamander, obfs-password: ZDMwYmM5ZjYyZDVmMTk0Ng== }
    - { name: '[hy2]香港 2 直连', server: hktv02.outleft-hy.xyz, port: 5002, sni: hktv02.outleft-hy.xyz, up: 700, down: 700, skip-cert-verify: false, type: hysteria2, password: f37840cb-4900-4c94-a351-51d4d0ad6265, obfs: salamander, obfs-password: YTRkMDE1MzQ4NmFlNmQxNg== }
    - { name: '[hy2]香港 3 直连', server: hktv03.outleft-hy.xyz, port: 543, sni: hktv03.outleft-hy.xyz, up: 700, down: 700, skip-cert-verify: false, type: hysteria2, password: f37840cb-4900-4c94-a351-51d4d0ad6265, obfs: salamander, obfs-password: YjcwMDNiMDhhZWU1OTU4MA== }
    - { name: '[hy2]香港 4 直连', server: hktv04.outleft-hy.xyz, port: 543, sni: hktv04.outleft-hy.xyz, up: 700, down: 700, skip-cert-verify: false, type: hysteria2, password: f37840cb-4900-4c94-a351-51d4d0ad6265, obfs: salamander, obfs-password: YjcwMDNiMDhhZWU1OTU4MA== }
    - { name: '俄罗斯 B', type: ss, server: edir2end.cloud2orbit.com, port: 1025, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '[Vless] 日本 [直连]', type: vless, server: cloudsa-jp.outleft-hy.xyz, port: 443, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: www.apple.com, reality-opts: { public-key: gThuDXevnythoIRLiCGP2go9z3WvSjV5HAtzVw4vwmg, short-id: 9e391f50 }, client-fingerprint: safari }
    - { name: '[Vless] 日本 [直连-2]', type: vless, server: cloudsa-jp-2.outleft-hy.xyz, port: 443, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: sns-video-al.xhscdn.com, reality-opts: { public-key: NGTpSPFVQlFvN22Zwn7q2bwBlK7TSlHYBvMN_AZ83C4, short-id: 19655e1b }, client-fingerprint: qq }
    - { name: '[Vless] 新加坡 1 [直连]', type: vless, server: sgpclouds-a.outleft-hy.xyz, port: 443, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: www.apple.com, reality-opts: { public-key: XWq8LYWB6VK_m3a4274NwasY4sLv8yFComcZjvfBNiw, short-id: 37f4c87d }, client-fingerprint: safari }
    - { name: '[Vless] 新加坡 2 [直连]', type: vless, server: cloudsgp-b.outleft-hy.xyz, port: 443, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: www.apple.com, reality-opts: { public-key: xijWLJNmsFrjlEfkVKSrjPnBAGyp5S2CJwNGP-oSzA8, short-id: 5ca436a6 }, client-fingerprint: chrome }
    - { name: '新加坡 A', type: vless, server: sasia-cloud9.orbit-links.com, port: 635, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: sns-video-al.xhscdn.com, reality-opts: { public-key: SKcaabHvWBPjt9YWU-6NMKVEBmDJ5ZCIZIcmriu_tFg, short-id: b3773a87 }, client-fingerprint: qq }
    - { name: '新加坡 B', type: vless, server: sasia-cloud9.orbit-links.com, port: 736, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: sns-video-al.xhscdn.com, reality-opts: { public-key: SKcaabHvWBPjt9YWU-6NMKVEBmDJ5ZCIZIcmriu_tFg, short-id: b3773a87 }, client-fingerprint: chrome }
    - { name: '新加坡 C', type: vless, server: sasia-cloud9.orbit-links.com, port: 739, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: sns-video-al.xhscdn.com, reality-opts: { public-key: SKcaabHvWBPjt9YWU-6NMKVEBmDJ5ZCIZIcmriu_tFg, short-id: b3773a87 }, client-fingerprint: firefox }
    - { name: 台湾, type: ss, server: orbitwcn01.orbit-links.com, port: 12001, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG A', type: ss, server: hkredir-d.ultra1stand.com, port: 644, cipher: 2022-blake3-aes-128-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMQ==:ZjM3ODQwY2ItNDkwMC00Yw==', udp: true }
    - { name: 'HKG B', type: ss, server: cshklayer-1.ultra1stand.com, port: 633, cipher: 2022-blake3-aes-256-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMWU1ZmE3ZjEwOGJhNDEzMTI=:ZjM3ODQwY2ItNDkwMC00Yzk0LWEzNTEtNTFkNGQwYWQ=', udp: true }
    - { name: 'HKG D 电信推荐', type: ss, server: cnrealdirhk-03.orbit-links.com, port: 1054, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG E', type: ss, server: cshklayer-1.ultra1stand.com, port: 635, cipher: 2022-blake3-aes-256-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMWU1ZmE3ZjEwOGJhNDEzMTI=:ZjM3ODQwY2ItNDkwMC00Yzk0LWEzNTEtNTFkNGQwYWQ=', udp: true }
    - { name: 'HKG F 电信推荐', type: ss, server: dircloudshk-g.orbit-links.com, port: 1051, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG G 电信推荐', type: ss, server: dircloudshk-g.orbit-links.com, port: 1053, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG H', type: ss, server: hkredir-d.ultra1stand.com, port: 645, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG I 电信推荐', type: ss, server: dircloudshk-g.orbit-links.com, port: 1056, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG J 电信推荐', type: ss, server: uodirhk02.orbit-links.com, port: 1120, cipher: 2022-blake3-aes-256-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMWU1ZmE3ZjEwOGJhNDEzMTI=:ZjM3ODQwY2ItNDkwMC00Yzk0LWEzNTEtNTFkNGQwYWQ=', udp: true }
    - { name: 'HKG K 电信推荐', type: vless, server: cloudouthk-b1.ultra2max.com, port: 1123, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: sns-video-qc.xhscdn.com, reality-opts: { public-key: CWYHeUE7Mo416w_cZEpIOknbKpYfS3VNz1pv4CYSAgs, short-id: 00d40d72 }, client-fingerprint: qq }
    - { name: 'HKG L 电信推荐', type: vless, server: cloudouthk-b1.ultra2max.com, port: 1125, uuid: f37840cb-4900-4c94-a351-51d4d0ad6265, alterId: 0, cipher: auto, udp: true, flow: xtls-rprx-vision, tls: true, servername: sns-video-qc.xhscdn.com, reality-opts: { public-key: CWYHeUE7Mo416w_cZEpIOknbKpYfS3VNz1pv4CYSAgs, short-id: 00d40d72 }, client-fingerprint: ios }
    - { name: 'HKG M 电信推荐', type: ss, server: cnrealdirhk-03.orbit-links.com, port: 1055, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 'HKG Q 电信推荐', type: ss, server: uodirhk02.orbit-links.com, port: 1122, cipher: 2022-blake3-aes-256-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMWU1ZmE3ZjEwOGJhNDEzMTI=:ZjM3ODQwY2ItNDkwMC00Yzk0LWEzNTEtNTFkNGQwYWQ=', udp: true }
    - { name: '美国 A', type: ss, server: cloudusns-a.orbit-links.com, port: 581, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '美国 B', type: ss, server: cloudusns-a.orbit-links.com, port: 582, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '美国 C', type: ss, server: cloudusns-a.orbit-links.com, port: 583, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '美国 D', type: ss, server: cloudusns-a.orbit-links.com, port: 584, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '美国 E', type: ss, server: cloudusns-a.orbit-links.com, port: 585, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '美国 F', type: ss, server: cloud3usn-b.orbit-links.com, port: 792, cipher: 2022-blake3-aes-128-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMQ==:ZjM3ODQwY2ItNDkwMC00Yw==', udp: true }
    - { name: '美国 G', type: ss, server: cloud3usn-b.orbit-links.com, port: 793, cipher: 2022-blake3-aes-128-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMQ==:ZjM3ODQwY2ItNDkwMC00Yw==', udp: true }
    - { name: '美国 H', type: ss, server: cloud3usn-b.orbit-links.com, port: 794, cipher: 2022-blake3-aes-128-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMQ==:ZjM3ODQwY2ItNDkwMC00Yw==', udp: true }
    - { name: '美国 I', type: ss, server: cloud3usn-b.orbit-links.com, port: 795, cipher: 2022-blake3-aes-128-gcm, password: 'OTZmZmZkZTMwOTkwMDFkMQ==:ZjM3ODQwY2ItNDkwMC00Yw==', udp: true }
    - { name: '台湾 B', type: ss, server: orbitwcn01.orbit-links.com, port: 12003, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '台湾 C', type: ss, server: orbitwcn01.orbit-links.com, port: 12005, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '台湾 D', type: ss, server: orbitwcn01.orbit-links.com, port: 12007, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '台湾 E', type: ss, server: orbitwcn01.orbit-links.com, port: 12009, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '台湾 F', type: ss, server: orbitwcn01.orbit-links.com, port: 12011, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '台湾 G', type: ss, server: orbitwcn01.orbit-links.com, port: 12013, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '台湾 H', type: ss, server: orbitwcn01.orbit-links.com, port: 12015, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 加拿大, type: ss, server: edir2end.cloud2orbit.com, port: 1069, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '英国 A', type: ss, server: edir2end.cloud2orbit.com, port: 1055, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: '英国 B', type: ss, server: edir2end.cloud2orbit.com, port: 1057, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 西班牙, type: ss, server: edir2end.cloud2orbit.com, port: 1063, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 印度, type: ss, server: edir2end.cloud2orbit.com, port: 1053, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 土耳其, type: ss, server: edir2end.cloud2orbit.com, port: 1059, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 意大利, type: ss, server: edir2end.cloud2orbit.com, port: 1061, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 荷兰, type: ss, server: edir2end.cloud2orbit.com, port: 1065, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }
    - { name: 德国, type: ss, server: edir2end.cloud2orbit.com, port: 1067, cipher: aes-128-gcm, password: f37840cb-4900-4c94-a351-51d4d0ad6265, udp: true }

proxy-groups:
  - name: ruleproxy
    type: select
    proxies:
      - AUTO-FALLBACK
      - GLOBAL
      - DIRECT
    include-all: true
  - name: AUTO-FALLBACK
    type: fallback
    include-all: true
    url: http://www.gstatic.com/generate_204
    interval: 300
  - name: GLOBAL
    type: select
    include-all: true

rules:
  - DOMAIN-SUFFIX,bsurl.cn,DIRECT
  - DOMAIN-SUFFIX,local,DIRECT
  - DOMAIN-SUFFIX,lan,DIRECT
  - DOMAIN,localhost,DIRECT
  - DOMAIN-SUFFIX,telegra.ph,ruleproxy
  - DOMAIN-SUFFIX,telegram.org,ruleproxy
  # Add your intranet domains above GEOSITE,cn, for example:
  # - DOMAIN-SUFFIX,corp.example.com,DIRECT
  # - DOMAIN,router.lan,DIRECT
  - IP-CIDR,127.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,10.0.0.0/8,DIRECT,no-resolve
  - IP-CIDR,172.16.0.0/12,DIRECT,no-resolve
  - IP-CIDR,192.168.0.0/16,DIRECT,no-resolve
  - GEOSITE,private,DIRECT
  - GEOSITE,cn,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,ruleproxy
