Nodes (proxy servers)
A node represents one proxy server. You can add nodes one by one by hand, or download them as a subscription. Loon itself does not provide any nodes.
Subscription nodes
A subscription is a collection of nodes published by your service provider. Loon only downloads and parses them — the nodes cannot be edited inside the Loon app. Contact your subscription provider if a node needs changing.
Traffic details of subscription nodes
Loon reads the Subscription-Userinfo entry from the subscription response headers, in this format:
Subscription-Userinfo:upload=1111;download=111;total=123456;expire=1614527045Proxy protocols
A proxy protocol is the data format that client and server must agree on while transmitting traffic. Only when both sides speak the same protocol can they exchange data — the protocols you meet every day, such as HTTP and HTTPS, work the same way.
Protocols supported by 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 also lets you implement a custom proxy protocol in JavaScript — see custom HTTP proxy in JS.
Node format
To add or edit a single node in the configuration file by hand, follow the format below.
#ss
# node name = protocol, server address, port, encryption method, password, fast-open=enable fast open (node must support it), udp=use for UDP (node must support it)
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
# node name = protocol, server address, port, encryption method, password, obfs-name=http|tls, obfs-host=obfuscation host, obfs-uri=obfuscation path, fast-open=enable fast open (node must support it), udp=use for UDP (node must support it)
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
# node name = protocol, server address, port, encryption method, password, protocol=protocol, protocol-param=protocol parameter, obfs=obfuscation, obfs-param=obfuscation parameter, fast-open=enable fast open (node must support it), udp=use for UDP (node must support it)
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
# node name = protocol, server address, port, encryption method, password
http1 = http,example.com,80
http2 = http,example.com,80,username,"password"
#https
# node name = protocol, server address, port, encryption method, password, skip-cert-verify=skip certificate verification (default false), 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
# node name = protocol, server address, port, encryption method, UUID, transport=tcp, alterId=alterId (0 by default, which enables AEAD)
vmess1 = vmess,example.com,10086,aes-128-gcm,"52396e06-041a-4cc2-be5c-8525eb457809",transport=tcp,alterId=0,over-tls=false
#vmess+tcp+tls
# node name = protocol, server address, port, encryption method, UUID, transport=tcp, alterId=alterId (0 by default, which enables AEAD), over-tls=enable TLS, tls-name=SNI, skip-cert-verify=skip certificate verification (default false)
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
# node name = protocol, server address, port, encryption method, UUID, transport=ws, alterId=alterId (0 by default, which enables AEAD), path=path in the websocket handshake header, host=host in the websocket handshake header
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
# node name = protocol, server address, port, encryption method, UUID, transport=ws, alterId=alterId (0 by default, which enables AEAD), path=path in the websocket handshake header, host=host in the websocket handshake header, over-tls=enable TLS, tls-name=SNI, skip-cert-verify=skip certificate verification (default false)
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
# node name = protocol, server address, port, encryption method, UUID, transport=http, alterId=alterId (0 by default, which enables AEAD), path=path in the HTTP header, host=host in the HTTP header
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
# node name = protocol, server address, port, encryption method, UUID, transport=http, alterId=alterId (0 by default, which enables AEAD), path=path in the HTTP header, host=host in the HTTP header, over-tls=enable TLS, tls-name=SNI, skip-cert-verify=skip certificate verification (default false)
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
# node name = protocol, server address, port, UUID, transport=tcp
VLESS1 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=tcp,over-tls=false
#VLESS+tcp+tls
# node name = protocol, server address, port, UUID, transport=tcp, over-tls=enable TLS, tls-name=SNI, skip-cert-verify=skip certificate verification (default false)
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
# node name = protocol, server address, port, UUID, transport=ws, path=path in the websocket handshake header, host=host in the websocket handshake header
VLESS3 = VLESS,example.com,10086,"52396e06-041a-4cc2-be5c-8525eb457809",transport=ws,path=/,host=v3-dy-y.ixigua.com,over-tls=false
#VLESS+wss
# node name = protocol, server address, port, UUID, transport=ws, path=path in the websocket handshake header, host=host in the websocket handshake header, over-tls=enable TLS, tls-name=SNI, skip-cert-verify=skip certificate verification (default false)
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
# node name = protocol, server address, port, UUID, transport=http, path=path in the HTTP header, host=host in the HTTP header
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
# node name = protocol, server address, port, UUID, transport=http, path=path in the HTTP header, host=host in the HTTP header, over-tls=enable TLS, tls-name=SNI, skip-cert-verify=skip certificate verification (default false)
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
# node name = protocol, server address, port, alpn=TLS extension, skip-cert-verify=skip certificate verification (default false), tls-name=SNI, udp=use for UDP (node must support it)
trojan1 = trojan,example.com,443,"password",alpn=http1.1,skip-cert-verify=false,tls-name=example.com,udp=true
#trojan+ws
# node name = protocol, server address, port, alpn=TLS extension, transport=ws, path=path in the websocket handshake header, host=host in the websocket handshake header, skip-cert-verify=skip certificate verification (default false), tls-name=SNI, udp=use for UDP (node must support it)
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
# node name = protocol, server address, port, alpn=TLS extension, transport=http, path=path in the HTTP header, host=host in the HTTP header, skip-cert-verify=skip certificate verification (default false), tls-name=SNI, udp=use for UDP (node must support it)
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
# node name = protocol, server address, port, password, skip-cert-verify=skip certificate verification (default false), tls-name=SNI, udp=use for UDP (node must support it), fast-open=enable fast open
hysteria2Node = Hysteria2,example.com,9898,"password",skip-cert-verify=true,tls-name=example.com,udp=true,fast-open=true
#js custom
# node name = protocol, server address, port, script-path=script path (a file name for a local script, a URL for a remote script)
jsHTTP = custom,192.168.1.139,6152,script-path=http.jsBesides the official node formats, Loon parses the subscriptions published by most service providers. If you hit an unsupported format, a parser script can handle it — the most widely used one is provided by SubStore. Declare it in the general section of the configuration file and enable the parser on the add-subscription screen afterwards.
resource-parser = https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/backend/dist/sub-store-parser.loon.min.js