Hanson666
V2EX  ›  问与答

surge 如何添加多个机场

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

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

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

    https://surge.mitsea.com/policy/group#external-ce-lve-zu
    gp0119
    gp0119
    Aug 23, 2023❤️1
    2
    ```
    [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
    Rrrrrr
    Aug 23, 2023
    3
    有 subStore 方法,也有自己加策略组的方法
    FringJX
    FringJX
    Aug 23, 2023
    4
    谷歌搜一下「节点转换」,可以添加多个机场,用回车分割
    inhzus
    inhzus
    Aug 23, 2023❤️2
    6
    可以参考我的配置。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
    JensenQian
    Aug 23, 2023 via Android
    7
    sub store 自己搞一个
    zhady009
    zhady009
    Aug 24, 2023 via iPhone
    8
    Hanson666
    Hanson666
    OP
    Aug 26, 2023
    9
    感谢楼上的老铁们,已完成规则。
    Ccf
    Ccf
    Feb 3, 2024
    10
    @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
    iu1ea1ivJeBVtRah
    Feb 25, 2024
    11
    @gp0119 #2 最后写的有点问题,include-other-group 的值需要加双引号
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1167 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 17:49 · PVG 01:49 · LAX 09:49 · JFK 12:49
    ♥ Do have faith in what you're doing.