Skip to content

Commit

Permalink
Add a tip in forward section (trojan-gfw#372)
Browse files Browse the repository at this point in the history
* Add a tip in forward section

To distinguish between connection redirection and reverse proxy for novice users.

* Refine wording in the docs

Co-authored-by: GreaterFire <32649575+GreaterFire@users.noreply.github.com>
  • Loading branch information
Chigusa0w0 and GreaterFire authored Apr 2, 2020
1 parent 3382a83 commit cce9ce7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ In this page, we will look at the config file of trojan. Trojan uses [`JSON`](ht

## A valid forward.json

This forward config is for port forwarding. Everything is the same as the client config, except for `target_addr` and `target_port`, which point to the destination endpoint, and `udp_timeout`, which controls how long (in seconds) a UDP session will last in idle.
This forward config is for port forwarding through a trojan connection. Everything is the same as the client config, except for `target_addr` and `target_port`, which point to the destination endpoint, and `udp_timeout`, which controls how long (in seconds) a UDP session will last in idle.

PROTIP: If you simply want to redirect a raw TCP connection, you can use `iptables` or `socat` to do that. The forward mode is not for this purpose.

```json
{
Expand Down

0 comments on commit cce9ce7

Please sign in to comment.