Skip to content

[BUG] Doesn't work under proxychains #722

@milkywayfarer

Description

@milkywayfarer
  • [*] I certify that I have read the contributing guidelines and I acknowledge if I don't follow the format below, or I'm using an old version of trojan, or I apparently fail to provide sufficient information (such as logs, specific numbers), or I don't check this box, my issue will be closed immediately without any notice.

Trojan Version
1.16.0

Describe the bug
When using a VM as a server and a client simultaneously (to terminate SSL and then make a new SSL connection to another instance, bypassing GFW) with proxychains, client instance receives output bytes but server instance (under proxychains) does not.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a server on VM2. Nothing special about it.
  2. Set up a client on VM1 to connect to VM2 through Trojan.
  3. Run a server on VM1 through proxychains so that the terminated request would reach the SOCKS5 proxy that the client spun up.
  4. Connect to VM1 using random client.

Expected behavior
Expected to passthrough the traffic and request correctly.

Logs
none

Environment
Client - macOS trojan client
VM1 - proxychains 3, trojan client and server (same binary)
VM2 - trojan server (works as expected)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions