什麼是機場訂閱
機場訂閱(Airport Subscription)讓你能快速取得並更新代理節點。透過一個訂閱連結,ClashX 會自動下載服務商提供的所有節點並定期更新,無須手動維護。
訂閱通常由代理服務商(俗稱"機場")提供。購買後會得到一個連結,裡面包含所有節點的設定,例如伺服器位址、連接埠與加密方式。
這個稱呼源自早期 Shadowsocks 的紙飛機圖示,提供 Shadowsocks 服務的地方被戲稱為"飛機場",久而久之就簡化成"機場",即便協定早已不限於 Shadowsocks。
訂閱的優點
- 自動更新:服務商調整節點後,點一下更新即可拿到最新設定
- 批次管理:一次匯入所有節點,免去逐一新增的麻煩
- 多裝置同步:同一個訂閱連結可在多台裝置使用
- 規則整合:大多數訂閱附帶分流規則,開箱即用
- 節點優選:支援延遲測試與負載平衡
訂閱連結的類型
主流訂閱格式大致分為以下幾種,了解差異才能正確使用:
1. Clash 訂閱(推薦)
為 Clash 系列客戶端量身打造,包含完整設定。
特色:
- YAML 結構的設定檔
- 內含 Proxy Group(代理群組)
- 預設分流規則
- 支援策略群組與自動選擇
- ClashX 原生支援,無需轉換
連結示例:
https://example.com/clash/subscribe?token=abc123
2. 通用訂閱(需轉換)
相容多種客戶端,通常是 SS/SSR/V2Ray 的節點清單。
特色:
- 常見以
sub或link結尾 - 只包含節點資訊,沒有規則
- 需先透過轉換工具變成 Clash 格式
- 相容性高,可在多數客戶端使用
連結示例:
https://example.com/sub?token=abc123
3. Base64 訂閱
節點資訊以 Base64 編碼的訂閱連結。
特色:
- 內容經 Base64 編碼
- 多用於 Shadowsocks/ShadowsocksR
- 必須轉換後才能在 ClashX 使用
- 安全性較低(編碼不等於加密)
ClashX 只支援 Clash 格式訂閱。若機場提供的是通用或 Base64 訂閱,請先用轉換工具處理後再匯入。
article18.section3.title
article18.section3.p1
article18.section3.method1Title
article18.section3.stepsLabel
- article18.section3.method1.step1
- article18.section3.method1.step2
- article18.section3.method1.step3
- article18.section3.method1.step4
- article18.section3.method1.step5
- article18.section3.method1.step6
- article18.section3.method1.step7
article18.section3.method2Title
article18.section3.stepsLabel
- article18.section3.method2.step1
- article18.section3.method2.step2
- article18.section3.method2.step3
- article18.section3.method2.step4
- article18.section3.method2.step5
article18.section3.verifyTitle
article18.section3.checklistTitle
- article18.section3.verify1
- article18.section3.verify2
- article18.section3.verify3
- article18.section3.verify4
article18.section3.tipDesc
article18.section4.title
article18.section4.p1
article18.section4.item1Title
article18.section4.item1.reasonTitle
- article18.section4.item1.reason1
- article18.section4.item1.reason2
- article18.section4.item1.reason3
- article18.section4.item1.reason4
article18.section4.item1.freqTitle
- article18.section4.item1.freq1
- article18.section4.item1.freq2
- article18.section4.item1.freq3
article18.section4.item2Title
- article18.section4.item2.step1
- article18.section4.item2.step2
- article18.section4.item2.step3
- article18.section4.item2.step4
- article18.section4.item2.step5
- article18.section4.item2.step6
article18.section4.item3Title
article18.section4.item3.p1
article18.section4.item3.methodTitle
- article18.section4.item3.step1
- article18.section4.item3.step2
- article18.section4.item3.step3
# 订阅自动更新间隔(小时)
update-interval: 24
# 启动时自动更新
update-on-start: true
article18.section4.item3.noteTitle
- article18.section4.item3.note1
- article18.section4.item3.note2
article18.section4.item4Title
article18.section4.item4.p1
article18.section4.item4.namingTitle
- article18.section4.item4.naming1
- article18.section4.item4.naming2
- article18.section4.item4.naming3
article18.section4.item4.strategyTitle
- article18.section4.item4.strategy1
- article18.section4.item4.strategy2
- article18.section4.item4.strategy3
article18.section4.item5Title
article18.section4.item5.p1
article18.section5.title
article18.section5.p1
article18.section5.subconverterTitle
article18.section5.subconverterDesc
article18.section5.onlineTitle
article18.section5.onlinePlatformsTitle
- article18.section5.onlinePlatform1
- article18.section5.onlinePlatform2
- article18.section5.onlinePlatform3
article18.section5.onlineStepsTitle
- article18.section5.onlineStep1
- article18.section5.onlineStep2
- article18.section5.onlineStep3
- article18.section5.onlineStep4
- article18.section5.onlineStep5
- article18.section5.onlineStep6
- article18.section5.onlineStep7
article18.section5.localTitle
article18.section5.localDesc
article18.section5.dockerTitle
# 拉取镜像
docker pull tindy2013/subconverter
# 运行容器
docker run -d --name subconverter \\
-p 25500:25500 \\
tindy2013/subconverter
# 访问本地转换服务
# http://localhost:25500
article18.section5.localAccessTitle
http://localhost:25500/sub?target=clash&url=你的订阅链接
article18.section5.advancedTitle
article18.section5.advancedParamsTitle
- article18.section5.paramTarget
- article18.section5.paramUrl
- article18.section5.paramConfig
- article18.section5.paramInclude
- article18.section5.paramExclude
- article18.section5.paramEmoji
- article18.section5.paramUdp
article18.section5.sampleTitle
http://localhost:25500/sub?target=clash&url=订阅链接&include=(香港|台湾|HK|TW)&emoji=true
article18.section5.privacyDesc
- article18.section5.privacyTip1
- article18.section5.privacyTip2
- article18.section5.privacyTip3
- article18.section5.privacyTip4
article18.section6.title
article18.section6.p1
article18.section6.item1Title
article18.section6.item1.principleTitle
- article18.section6.item1.point1
- article18.section6.item1.point2
- article18.section6.item1.point3
- article18.section6.item1.point4
article18.section6.item2Title
article18.section6.item2.checkTitle
- article18.section6.item2.step1
- article18.section6.item2.step2
- article18.section6.item2.step3
- article18.section6.item2.step4
article18.section6.item3Title
- article18.section6.item3.point1
- article18.section6.item3.point2
- article18.section6.item3.point3
- article18.section6.item3.point4
- article18.section6.item3.point5
article18.section6.item3.tip
article18.section6.item4Title
article18.section6.item4.monitorTitle
- article18.section6.item4.point1
- article18.section6.item4.point2
- article18.section6.item4.point3
- article18.section6.item4.point4
article18.section6.item5Title
article18.section6.item5.strategyTitle
- article18.section6.item5.point1
- article18.section6.item5.point2
- article18.section6.item5.point3
- article18.section6.item5.point4
- article18.section6.item5.point5
article18.section7.title
article18.section7.p1
article18.section7.problem1Title
article18.section7.problem1.causesTitle
- article18.section7.problem1.cause1
- article18.section7.problem1.cause2
- article18.section7.problem1.cause3
- article18.section7.problem1.cause4
article18.section7.problem1.solutionTitle
- article18.section7.problem1.solution1
- article18.section7.problem1.solution2
- article18.section7.problem1.solution3
- article18.section7.problem1.solution4
- article18.section7.problem1.solution5
article18.section7.problem2Title
article18.section7.problem2.stepsTitle
- article18.section7.problem2.step1
- article18.section7.problem2.step2
- article18.section7.problem2.step3
- article18.section7.problem2.step4
- article18.section7.problem2.step5
- article18.section7.problem2.step6
article18.section7.problem3Title
article18.section7.problem3.analysisTitle
- article18.section7.problem3.case1
- article18.section7.problem3.case2
- article18.section7.problem3.case3
article18.section7.problem3.solutionTitle
- article18.section7.problem3.solution1
- article18.section7.problem3.solution2
- article18.section7.problem3.solution3
article18.section7.problem4Title
article18.section7.problem4.causesTitle
- article18.section7.problem4.cause1
- article18.section7.problem4.cause2
- article18.section7.problem4.cause3
article18.section7.problem4.solutionTitle
- article18.section7.problem4.solution1
- article18.section7.problem4.solution2
- article18.section7.problem4.solution3
- article18.section7.problem4.solution4
article18.section7.problem5Title
article18.section7.problem5.symptomTitle
- article18.section7.problem5.symptom1
- article18.section7.problem5.symptom2
- article18.section7.problem5.symptom3
article18.section7.problem5.solutionTitle
- article18.section7.problem5.solution1
- article18.section7.problem5.solution2
- article18.section7.problem5.solution3
- article18.section7.problem5.solution4
article18.section7.generalTipDesc
- article18.section7.generalStep1
- article18.section7.generalStep2
- article18.section7.generalStep3
- article18.section7.generalStep4
- article18.section7.generalStep5
- article18.section7.generalStep6
- article18.section7.generalStep7
article18.section8.title
article18.section8.p1
article18.section8.item1Title
article18.section8.item1.desc
- article18.section8.item1.step1
- article18.section8.item1.step2
- article18.section8.item1.step3
- article18.section8.item1.step4
article18.section8.item2Title
article18.section8.item2.p1
article18.section8.item2.stepsTitle
- article18.section8.item2.step1
- article18.section8.item2.step2
- article18.section8.item2.step3
- article18.section8.item2.step4
- article18.section8.item2.step5
article18.section8.item2.exampleTitle
rules:
# 自定义规则 - 优先级最高
- DOMAIN-SUFFIX,openai.com,Proxy
- DOMAIN-SUFFIX,chatgpt.com,Proxy
- DOMAIN-KEYWORD,google,Proxy
# 以下是订阅原有规则
- DOMAIN-SUFFIX,google.com,Proxy
# ...
article18.section8.item3Title
article18.section8.item3.directTitle
# 国内网站直连
- DOMAIN-SUFFIX,taobao.com,DIRECT
- DOMAIN-SUFFIX,jd.com,DIRECT
# IP 段直连
- IP-CIDR,192.168.0.0/16,DIRECT
- IP-CIDR,10.0.0.0/8,DIRECT
article18.section8.item3.assignTitle
# Netflix 使用美国节点
- DOMAIN-SUFFIX,netflix.com,US-Node
# 游戏使用香港节点
- DOMAIN-SUFFIX,steam.com,HK-Node
article18.section8.item3.blockTitle
# 屏蔽常见广告域名
- DOMAIN-SUFFIX,googleads.com,REJECT
- DOMAIN-SUFFIX,doubleclick.net,REJECT
- DOMAIN-KEYWORD,analytics,REJECT
article18.section8.item4Title
article18.section8.item4.p1
rule-providers:
reject:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./ruleset/reject.yaml
interval: 86400
rules:
- RULE-SET,reject,REJECT
# 其他规则...
article18.section8.item4.noteTitle
- article18.section8.item4.note1
- article18.section8.item4.note2
- article18.section8.item4.note3
- article18.section8.item4.note4
article18.section8.item5Title
article18.section8.item5.p1
- article18.section8.item5.solution1
- article18.section8.item5.solution2
- article18.section8.item5.solution3
article18.section8.item5.p2
config=https://你的自定义规则配置地址
article18.section9.title
article18.section9.p1
article18.section9.keyPointsTitle
- article18.section9.keyPoint1
- article18.section9.keyPoint2
- article18.section9.keyPoint3
- article18.section9.keyPoint4
- article18.section9.keyPoint5
article18.section9.bestPracticeTitle
- article18.section9.checklist1
- article18.section9.checklist2
- article18.section9.checklist3
- article18.section9.checklist4
- article18.section9.checklist5
- article18.section9.checklist6
article18.section9.learnMoreTitle
article18.section9.learnMoreDesc
- article18.section9.learnMore1
- article18.section9.learnMore2
- article18.section9.learnMore3
- article18.section9.learnMore4
- article18.section9.learnMore5
article18.section9.noticeDesc