Are you an LLM? You can read better optimized documentation at /zh-TW\document\node.md for this page in Markdown format
節點(代理伺服器)
一個節點表示一個代理伺服器,你可以手動新增單個節點,也可以透過連結下載訂閱節點。Loon 本身不提供任何的節點
訂閱節點
訂閱節點是你的服務提供商提供的節點的集合,Loon只負責下載、解析這些節點,在Loon App中是無法修改這些節點的,如需修改請聯絡您的訂閱提供商
關於訂閱節點的流量明細
目前Loon會讀取訂閱響應header中的Subscription-Userinfo資訊,具體格式如下:
Subscription-Userinfo:upload=1111;download=111;total=123456;expire=1614527045代理服務協議
代理服務協議指的是在進行網路傳輸的過程中客戶端和服務端需要遵循的一種資料組裝格式,只有服務端和客戶端使用相同的協議,兩者才能進行正常的資料互動,我們每天在網路中接觸到的協議有HTTP,HTTPS等
Loon支援以下協議
- ShadowSocks
- ShadowSocksR
- VMESS
- VMESS + TLS
- VMESS + WebSocket
- VMESS + WebSocket + TLS
- VMESS + HTTP
- VMESS + HTTP + TLS
- VLESS
- VLESS + WebSocket
- VLESS + HTTP
- Trojan
- Trojan + WebSocket
- Trojan + HTTP
- HTTP
- HTTPS
- Wireguard
- Hysteria2
- Custom by JS
同時,Loon也支援使用JavaScript進行自定義代理協議,可參考使用JS自定義HTTP代理
節點格式
如果要在配置檔案中手動新增、修改單個節點,請遵從下面的格式
#ss
# 節點名稱 = 協議,伺服器地址,埠,加密方式,密碼,fast-open=是否開啟fast open(需要節點支援),udp=是否在UDP中使用(需要節點支援)
ss1 = Shadowsocks,example.com,443,aes-128-gcm,"password",fast-open=false,udp=true
ss2 = Shadowsocks,example2.com,443,chacha20,"password",fast-open=true,udp=true
#ss+simple obfs
# 節點名稱 = 協議,伺服器地址,埠,加密方式,密碼,混淆方式=http|tls,obfs-host=混淆host,obfs-uri=混淆路徑,fast-open=是否開啟fast open(需要節點支援),udp=是否在UDP中使用(需要節點支援)
ssObfs1 = Shadowsocks,example.com,80,aes-128-gcm,"password",obfs-name=http,obfs-host=www.micsoft.com,obfs-uri=/,fast-open=true,udp=true
ssObfs2 = Shadowsocks,example.com,443,aes-128-gcm,"password",obfs-name=tls,obfs-host=www.micsoft.com,obfs-uri=/,fast-open=true,udp=true
#ssr
# 節點名稱 = 協議,伺服器地址,埠,加密方式,密碼,protocol = 協議,protocol-param = 協議引數,obfs=混淆,obfs-param=混淆引數,fast-open=是否開啟fast open(需要節點支援),udp=是否在UDP中使用(需要節點支援)
ssr1 = ShadowsocksR,example.com,443,aes-256-cfb,"password",protocol=origin,obfs=http_simple,obfs-param=download.windows.com,fast-open=false,udp=true
ssr2 = ShadowsocksR,example.com,10076,aes-128-cfb,"password",protocol=auth_chain_a,protocol-param=9555:loon,obfs=http_post,obfs-param=download.windows.com,fast-open=false,udp=true
ssr3 = ShadowsocksR,example.com,10076,chacha20,"password",protocol=auth_aes128_md5,protocol-param=9555:loon,obfs=tls1.2_ticket_auth,obfs-param=download.windows.com,fast-open=false,udp=true
ssr4 = ShadowsocksR,example.com,10076,chacha20-ietf,"password",protocol=auth_aes128_sha1,protocol-param=9555:loon,obfs=plain,fast-open=false,udp=true
#http
# 節點名稱 = 協議,伺服器地址,埠,加密方式,密碼
http1 = http,example.com,80
http2 = http,example.com,80,username,"password"
#https
# 節點名稱 = 協議,伺服器地址,埠,加密方式,密碼,skip-cert-verify=是否跳過證書校驗(預設否),tls-name=SNI
https1 = https,example.com,443
https2 = https,example.com,443,username,"password"
https3 = https,example.com,443,username,"password",skip-cert-verify=true,tls-name=example.com
#vmess+tcp
# 節點名稱 = 協議,伺服器地址,埠,加密方式,UUID,transport(傳輸方式)=tcp,alterId=alterId(預設0,表示開啟aead)
vmess1 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=tcp,alterId=0,over-tls=false
#vmess+tcp+tls
# 節點名稱 = 協議,伺服器地址,埠,加密方式,UUID,transport(傳輸方式)=tcp,alterId=alterId(預設0,表示開啟aead),over-tls=是否啟用TLS,tls-name=SNI,skip-cert-verify=是否跳過證書校驗(預設否)
vmess2 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=tcp,alterId=0,path=/,host=v3-dy-y.ixigua.com,over-tls=true,tls-name=example.com,skip-cert-verify=true
#vmess+ws
# 節點名稱 = 協議,伺服器地址,埠,加密方式,UUID,transport(傳輸方式)=ws,alterId=alterId(預設0,表示開啟aead),path=websocket握手header中的path,host=websocket握手header中的host
vmess3 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=ws,alterId=0,path=/,host=v3-dy-y.ixigua.com,over-tls=false
#vmess+wss
# 節點名稱 = 協議,伺服器地址,埠,加密方式,UUID,transport(傳輸方式)=ws,alterId=alterId(預設0,表示開啟aead),path=websocket握手header中的path,host=websocket握手header中的host,over-tls=是否啟用TLS,tls-name=SNI,skip-cert-verify=是否跳過證書校驗(預設否)
vmess4 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=ws,alterId=0,path=/,host=v3-dy-y.ixigua.com,over-tls=true,tls-name=example.com,skip-cert-verify=true
#vmess+http
# 節點名稱 = 協議,伺服器地址,埠,加密方式,UUID,transport(傳輸方式)=http,alterId=alterId(預設0,表示開啟aead),path=httpheader中的path,host=httpheader的host
vmess5 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=http,alterId=0,path=/,host=v3-dy-y.ixigua.com,over-tls=false
#vmess+http+tls
# 節點名稱 = 協議,伺服器地址,埠,加密方式,UUID,transport(傳輸方式)=http,alterId=alterId(預設0,表示開啟aead),path=httpheader中的path,host=httpheader的host,over-tls=是否啟用TLS,tls-name=SNI,skip-cert-verify=是否跳過證書校驗(預設否)
vmess6 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=http,alterId=0,path=/,host=v3-dy-y.ixigua.com,over-tls=true,tls-name=example.com,skip-cert-verify=true
#VLESS+tcp
# 節點名稱 = 協議,伺服器地址,埠,UUID,transport(傳輸方式)=tcp
VLESS1 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=tcp,over-tls=false
#VLESS+tcp+tls
# 節點名稱 = 協議,伺服器地址,埠,UUID,transport(傳輸方式)=tcp,over-tls=是否啟用TLS,tls-name=SNI,skip-cert-verify=是否跳過證書校驗(預設否)
VLESS2 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=tcp,path=/,host=v3-dy-y.ixigua.com,over-tls=true,tls-name=example.com,skip-cert-verify=true
#VLESS+ws
# 節點名稱 = 協議,伺服器地址,埠,UUID,transport(傳輸方式)=ws,path=websocket握手header中的path,host=websocket握手header中的host
VLESS3 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=ws,path=/,host=v3-dy-y.ixigua.com,over-tls=false
#VLESS+wss
# 節點名稱 = 協議,伺服器地址,埠,UUID,transport(傳輸方式)=ws,path=websocket握手header中的path,host=websocket握手header中的host,over-tls=是否啟用TLS,tls-name=SNI,skip-cert-verify=是否跳過證書校驗(預設否)
VLESS4 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=ws,path=/,host=v3-dy-y.ixigua.com,over-tls=true,tls-name=example.com,skip-cert-verify=true
#VLESS+http
# 節點名稱 = 協議,伺服器地址,埠,UUID,transport(傳輸方式)=http,path=httpheader中的path,host=httpheader的host
VLESS5 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=http,path=/,host=v3-dy-y.ixigua.com,over-tls=false
#VLESS+http+tls
# 節點名稱 = 協議,伺服器地址,埠,UUID,transport(傳輸方式)=http,path=httpheader中的path,host=httpheader的host,over-tls=是否啟用TLS,tls-name=SNI,skip-cert-verify=是否跳過證書校驗(預設否)
VLESS6 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=http,path=/,host=v3-dy-y.ixigua.com,over-tls=true,tls-name=example.com,skip-cert-verify=true
#trojan
# 節點名稱 = 協議,伺服器地址,埠,alpn=tls擴充套件,skip-cert-verify=是否跳過證書校驗(預設否),tls-name=SNI,udp=是否在UDP中使用(需要節點支援)
trojan1 = trojan,example.com,443,"password",alpn=http1.1,skip-cert-verify=false,tls-name=example.com,udp=true
#trojan+ws
# 節點名稱 = 協議,伺服器地址,埠,alpn=tls擴充套件,transport(傳輸方式)=ws,path=websocket握手header中的path,host=websocket握手header中的host,skip-cert-verify=是否跳過證書校驗(預設否),tls-name=SNI,udp=是否在UDP中使用(需要節點支援)
trojan2 = trojan,example.com,443,"password",transport=ws,path=/,host=micsoft.com,alpn=http1.1,skip-cert-verify=true,tls-name=example.com,udp=true
#trojan+http
# 節點名稱 = 協議,伺服器地址,埠,alpn=tls擴充套件,transport(傳輸方式)=http,path=httpheader中的path,host=httpheader的host,skip-cert-verify=是否跳過證書校驗(預設否),tls-name=SNI,udp=是否在UDP中使用(需要節點支援)
trojan2 = trojan,example.com,443,"password",transport=ws,path=/,host=micsoft.com,alpn=http1.1,skip-cert-verify=true,tls-name=example.com,udp=true
#Wireguard
wireguardNode = wireguard,interface-ip=192.168.2.2,interface-ipV6=2402:4e00:1200:ed00:0:9089:6dac:96b6,private-key="qF22B3ezOhWGJA4SHwQSsgMa9d6mPGHyFdZMaDTae2E=",mtu=1280,dns=192.168.2.1,dnsV6=2402:4e00:1200:ed00:0:9089:6dac:96b6,keeyalive=45,peers=[{public-key="JFuTIJEcFnt8R04UnAE5o2WfIPJUsumSxsD2ayXzoWY=",preshared-key="yVNv5K05AwVnWaR4OB8BlMX3jJlkS74aKlYC3PD95IE=",reserved=[1,2,3],allowed-ips="0.0.0.0/0",endpoint=192.168.3.17:51820}]
#Hysteria2
# 節點名稱 = 協議,伺服器地址,埠,密碼,skip-cert-verify=是否跳過證書校驗(預設否),tls-name=SNI,udp=是否在UDP中使用(需要節點支援),fast-open=是否開啟fast open
hysteria2Node = Hysteria2,example.com,9898,"password",skip-cert-verify=true,tls-name=example.com,udp=true,fast-open=true
#js custom
# 節點名稱 = 協議,伺服器地址,埠,script-path=腳本路徑(本地腳本直接為檔名,遠端腳本為url)
jsHTTP = custom,192.168.1.139,6152,script-path=http.js除了可以解析官方定義的節點格式,Loon也可以解析大部分服務提供商所提供的訂閱節點,如遇到不支援的情況可以使用節點訂閱解析腳本進行解析,目前常用的解析腳本由SubStore提供,可在配置檔案的general模組下進行如下配置,在之後的新增訂閱節點頁面開啟解析器即可。
resource-parser = https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/backend/dist/sub-store-parser.loon.min.js