Closed smukee closed 1 year ago
What’s your proxy server?
Did you make sure that your local proxy server bind to a specific interface so that it can avoid route loop too?
Also, please make sure your en1 interface is your primary interface.
The proxy server is a Trojan running as SOCKS5 and bound to exactly 127.0.0.1:1080. en1 is my primary and only active device, yes.
Then I guess the problem is you didn’t bind your trojan server to the interface, so it gets into a route looping.
I'm sorry I don't get it, Socks is running on 127.0.0.1:1080 so tun2socks knows where to communicate to!
Yep, but when the trojan server tries to establish connections, the connections receive by tun2socks and tun2socks sends them back to the trojan server, which causes an infinite loop.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Verify steps
Version
tun2socks-2.4.1
What OS are you seeing the problem on?
macOS
Description
Here's what I do:
sudo tun2socks -device utun123 -proxy socks5://127.0.0.1:1080 -interface en1
sudo ifconfig utun123 198.18.0.1 198.18.0.1 up
sudo route delete default
and add the newsudo route add default 198.18.0.1
After this nothing goes in and out.
CLI or Config
No response
Logs
How to Reproduce
No response