Skip to content

Commit 21cbad4

Browse files
committed
add trojan readme
1 parent 4750140 commit 21cbad4

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎README.rst‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ Protocols
112112
+-------------------+------------+------------+------------+------------+--------------+
113113
| shadowsocksR | ✔ | ✔ | | | ssr:// |
114114
+-------------------+------------+------------+------------+------------+--------------+
115+
| trojan | ✔ | ✔ | | | trojan:// |
116+
+-------------------+------------+------------+------------+------------+--------------+
115117
| ssh tunnel | | ✔ | | | ssh:// |
116118
+-------------------+------------+------------+------------+------------+--------------+
117119
| iptables nat | ✔ | | | | redir:// |
@@ -230,6 +232,8 @@ URI Syntax
230232
+----------+-----------------------------+
231233
| ssr | shadowsocksr (SSR) protocol |
232234
+----------+-----------------------------+
235+
| trojan | trojan_ protocol |
236+
+----------+-----------------------------+
233237
| ssh | ssh client tunnel |
234238
+----------+-----------------------------+
235239
| redir | redirect (iptables nat) |
@@ -249,6 +253,8 @@ URI Syntax
249253
| direct | direct connection |
250254
+----------+-----------------------------+
251255

256+
.. _trojan: https://trojan-gfw.github.io/trojan/protocol
257+
252258
- "http://" accepts GET/POST/CONNECT as server, sends CONNECT as client. "httponly://" sends "GET/POST" as client, works only on http traffic.
253259

254260
- Valid schemes: http://, http+socks4+socks5://, http+ssl://, ss+secure://, http+socks5+ss://
@@ -669,6 +675,16 @@ Examples
669675
670676
SSH connection known_hosts feature is disabled by default.
671677

678+
- Trojan protocol example
679+
680+
Normally trojan:// should be used together with ssl://. You should specify the SSL crt/key file for ssl usage. A typical trojan server would be:
681+
682+
.. code:: rst
683+
684+
$ pproxy --ssl ssl.crt,ssl.key -l trojan+tunnel{localhost:80}+ssl://:443#yourpassword -vv
685+
686+
If trojan password doesn't match, the tunnal{localhost:80} will be switched to. It will be the same as a normal TLS website.
687+
672688

673689
Projects
674690
--------

0 commit comments

Comments
 (0)