Trojan
Tips
Trojan is designed to operate in correctly configured TLS connections, as it does not provide encryption on its own.
Trojan Inbound (simplified)
- Name:
trojan - Type: Inbound Protocol
- ID:
inbound.trojan
Structure
{
"users": [],
"packetEncoding": "None"
}
Fields
users: [string]
A set of recognized password for this inbound.
packetEncoding: ["None" | "Packet"]
UDP packet encoding method,None by default。(v5.4.0+)
When this value is None , UDP connections will be split into streams based on their destination (Address and Port-Dependent Mapping)。
When this value is Packet, UDP connections from a single source connection will be encoded as UDP packet addr connection, which will be restored to its original form by a supported outbound as an Endpoint Independent Mapping UDP connection. This UDP behaviour is also known as FullCone or NAT1.
Trojan Outbound (simplified)
- Name:
trojan - Type: Outbound Protocol
- ID:
outbound.trojan
Structure
{
"address": "",
"port": 0,
"password": ""
}
Fields
address: string
The server address. Both IP and domain name is supported.
port: number
The server port number.
password: string
A password recognized by server.
Trojan Inbound (complete)
- Name:
#v2ray.core.proxy.trojan.ServerConfig
Structure
{
"users": [],
"packetEncoding": "None",
"fallbacks": []
}
Fields
users: [UserObject]
packetEncoding: ["None" | "Packet"]
fallbacks: [FallbackObject]
Trojan Outbound (complete)
- Name:
#v2ray.core.proxy.trojan.ClientConfig
Structure
{
"server": []
}
server: [ServerEndpoint]
AccountObject
Structure
{
"@type": "v2ray.core.proxy.trojan.Account",
"password": ""
}
Fields
@type: "v2ray.core.proxy.trojan.Account"
password: string
FallbackObject
Structure
{
"alpn": "",
"path": "",
"type": "",
"dest": "",
"xver": 0
}
Fields
alpn: string
path: string
type: string
dest: string
xver: uint64
