V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Hanson666
V2EX  ›  问与答

surge 如何添加多个机场

  •  
  •   Hanson666 · 249 天前 · 2244 次点击
    这是一个创建于 249 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    11 条回复    2024-02-25 18:06:53 +08:00
    bailitusu
        1
    bailitusu  
       249 天前
    [Proxy Group]里面多定义几个 External 策略组就好了。

    https://surge.mitsea.com/policy/group#external-ce-lve-zu
    gp0119
        2
    gp0119  
       249 天前
    ```
    [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  
       249 天前
    有 subStore 方法,也有自己加策略组的方法
    hfl1995
        4
    hfl1995  
       249 天前
    谷歌搜一下「节点转换」,可以添加多个机场,用回车分割
    4Qd5zQCm26
        5
    4Qd5zQCm26  
       249 天前 via iPhone
    inhzus
        6
    inhzus  
       249 天前   ❤️ 1
    可以参考我的配置。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  
       249 天前 via Android
    sub store 自己搞一个
    zhady009
        8
    zhady009  
       248 天前 via iPhone
    Hanson666
        9
    Hanson666  
    OP
       246 天前
    感谢楼上的老铁们,已完成规则。
    Ccf
        10
    Ccf  
       85 天前
    @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 能贴出来参考下么?
    YiyangDing
        11
    YiyangDing  
       63 天前
    @gp0119 #2 最后写的有点问题,include-other-group 的值需要加双引号
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1312 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.