Hanson666
V2EX  ›  问与答

surge 如何添加多个机场

  •  
  •   Hanson666 · Aug 23, 2023 · 5539 views
    This topic created in 1025 days ago, the information mentioned may be changed or developed.

    surge for MAC ,怎么在原来一个机场的情况下再添加多个机场?是需要在文本配置里面把机场的配置重新复制一遍,然后改新机场订阅链接吗?

    11 replies    2024-02-25 18:06:53 +08:00
    bailitusu
        1
    bailitusu  
       Aug 23, 2023
    [Proxy Group]里面多定义几个 External 策略组就好了。

    https://surge.mitsea.com/policy/group#external-ce-lve-zu
    gp0119
        2
    gp0119  
       Aug 23, 2023   ❤️ 1
    ```
    [Proxy Group]
    # 手动选择
    机场 1 = select, no-alert=0, hidden=0, include-all-proxies=1, update-interval=0, policy-path=你的订阅链接
    机场 2 = select, no-alert=0, hidden=0, include-all-proxies=1, update-interval=0, policy-path=你的订阅链接
    # 香港分流
    香港 = select, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0, policy-regex-filter=(?=.*(🇭🇰|港|HK|(?i)Hong))^((?!(3 倍)).)*$, include-other-group=机场 1,机场 2
    ```
    Rrrrrr
        3
    Rrrrrr  
       Aug 23, 2023
    有 subStore 方法,也有自己加策略组的方法
    FringJX
        4
    FringJX  
       Aug 23, 2023
    谷歌搜一下「节点转换」,可以添加多个机场,用回车分割
    4Qd5zQCm26
        5
    4Qd5zQCm26  
       Aug 23, 2023 via iPhone
    inhzus
        6
    inhzus  
       Aug 23, 2023   ❤️ 2
    可以参考我的配置。Tag 、Dler 是两个机场的订阅,透过 include-other-group 和 policy-regex-filter 把这两个订阅合并、过滤为一个规则集(当然也可以用 GUI 配置),最后把这些添加到手动选择规则集中,就可以方便地切换了

    [Proxy Group]
    Proxies = select, Singapore, Japan, Tag, Dler, no-alert=0, hidden=0, include-all-proxies=0
    Singapore = select, update-interval=0, policy-regex-filter=新加坡, no-alert=0, hidden=0, include-all-proxies=0, include-other-group="Tag, Dler"
    HK = select, policy-regex-filter=香港, no-alert=0, hidden=0, include-all-proxies=0, include-other-group="Tag, Dler"
    Japan = select, policy-regex-filter=日本, include-all-proxies=0, include-other-group="Tag, Dler", no-alert=0, hidden=0
    Tag = select, policy-path=https://a.com, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0
    Dler = select, policy-path=https://b.com, update-interval=0, no-alert=0, hidden=0, include-all-proxies=0
    JensenQian
        7
    JensenQian  
       Aug 23, 2023 via Android
    sub store 自己搞一个
    zhady009
        8
    zhady009  
       Aug 24, 2023 via iPhone
    Hanson666
        9
    Hanson666  
    OP
       Aug 26, 2023
    感谢楼上的老铁们,已完成规则。
    Ccf
        10
    Ccf  
       Feb 3, 2024
    @inhzus mac 上怎么切换?我现在貌似策略组下拉列表里是默认选第一个的。 还有 rule 部分怎么弄的?
    chagpt 帮我弄的:[Rule]
    DOMAIN,apps.apple.com,nekov
    DOMAIN-SUFFIX,vercel.app,getml
    DOMAIN-SUFFIX,sg,Singapore
    DOMAIN-SUFFIX,hk,HK
    DOMAIN-SUFFIX,jp,Japan
    DOMAIN-SUFFIX,ls.apple.com,DIRECT // Apple Maps
    DOMAIN-SUFFIX,store.apple.com,DIRECT // Apple Store Online
    RULE-SET,SYSTEM,getml
    RULE-SET,LAN,DIRECT
    GEOIP,CN,DIRECT
    FINAL,nekov,dns-failed


    @Hanson666 能贴出来参考下么?
    iu1ea1ivJeBVtRah
        11
    iu1ea1ivJeBVtRah  
       Feb 25, 2024
    @gp0119 #2 最后写的有点问题,include-other-group 的值需要加双引号
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3035 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 95ms · UTC 07:29 · PVG 15:29 · LAX 00:29 · JFK 03:29
    ♥ Do have faith in what you're doing.