Skip to main content

Proxies

Egern supports multiple proxy protocols, including HTTP, Socks5, Shadowsocks, Trojan, Hysteria2, Vless, and Vmess.

HTTP

Field NameTypeRequiredDescription
namestringYesProxy name
serverstringYesServer address
portintegerYesServer port
usernamestringNoUsername, if authentication is required by server
passwordstringNoPassword, if authentication is required by server
tfobooleanNoEnable TCP Fast Open; default is false

Socks5

Field NameTypeRequiredDescription
namestringYesProxy name
serverstringYesServer address
portintegerYesServer port
usernamestringNoUsername, if authentication is required by server
passwordstringNoPassword, if authentication is required by server
tfobooleanNoEnable TCP Fast Open; default is false
udp_relaybooleanNoEnable UDP relay; default is false

Shadowsocks

Field NameTypeRequiredDescription
namestringYesProxy name
methodstringYesEncryption method
serverstringYesServer address
portintegerYesServer port
passwordstringYesPassword
tfobooleanNoEnable TCP Fast Open; default is false
udp_relaybooleanNoEnable UDP relay; default is false
obfsstringNoObfuscation type
obfs_hoststringNoObfuscation host
obfs_uristringNoObfuscation path

Trojan

Field NameTypeRequiredDescription
namestringYesProxy name
serverstringYesServer address
portintegerYesServer port
snistringYesServer Name Indication (SNI)
passwordstringYesPassword
tfobooleanNoEnable TCP Fast Open; default is false
udp_relaybooleanNoEnable UDP relay; default is false

Vmess

Field NameTypeRequiredDescription
namestringYesProxy name
serverstringYesServer address
portintegerYesServer port
user_idstringYesUser ID
securitystringYesEncryption method
legacybooleanNoUse deprecated protocol; default is false
tfobooleanNoEnable TCP Fast Open; default is false
udp_relaybooleanNoEnable UDP relay; default is false
transportobjectNoTransport protocol
transport.tls.snistringNoTLS SNI if using TLS transport
transport.wss.uristringNoWSS URI if using WSS transport
transport.ws.uristringNoWS URI if using WS transport

Vless

Field NameTypeRequiredDescription
namestringYesProxy name
serverstringYesServer address
portintegerYesServer port
user_idstringYesUser ID
tfobooleanNoEnable TCP Fast Open; default is false
udp_relaybooleanNoEnable UDP relay; default is false
transportobjectNoTransport protocol
transport.tls.snistringNoTLS SNI if using TLS transport
transport.wss.uristringNoWSS URI if using WSS transport
transport.ws.uristringNoWS URI if using WS transport

Hysteria2

Field NameTypeRequiredDescription
namestringYesProxy name
serverstringYesServer address
portintegerYesServer port
authstringYesAuthentication
snistringYesServer Name Indication (SNI)
obfsstringNoObfuscation protocol
obfs_passwordstringNoObfuscation protocol password
skip_tls_verifybooleanNoSkip TLS verification; default is false

Configuration Example

proxies:
- http:
name: Http
server: 127.0.0.1
port: 1080
username: ""
password: ""
tfo: true
- socks5:
name: Socks5
server: 127.0.0.1
port: 1080
username: ""
password: ""
tfo: true
udp_relay: true
- shadowsocks:
name: Shadowsocks
method: ChaCha20-Poly1305
password: password
server: 127.0.0.1
port: 433
tfo: false
udp_relay: true
- trojan:
name: Trojan
server: 127.0.0.1
port: 443
sni: bing.com
password: password
tfo: false
udp_relay: true
- vless:
name: Vless
server: 127.0.0.1
port: 443
user_id: 27848739-7e62-4138-9fd3-098a63964b6b
tfo: false
udp_relay: true
transport:
wss:
uri: "wss://www.bing.com/"
- vmess:
name: Vmess
server: 127.0.0.1
port: 443
user_id: 27848739-7e62-4138-9fd3-098a63964b6b
security: auto
legacy: false
tfo: false
udp_relay: true
transport:
wss:
uri: "wss://www.bing.com/"