Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use VEthernet with Tor, Shadowsock,... #6

Open
Doimatcuabautroi opened this issue Jul 17, 2022 · 4 comments
Open

How to use VEthernet with Tor, Shadowsock,... #6

Doimatcuabautroi opened this issue Jul 17, 2022 · 4 comments

Comments

@Doimatcuabautroi
Copy link

Tor, Shadowsock, Latern, Psiphon,... They open socks proxy on localhost then transfer traffic to internet. They have a loopback connection.
Instead of: Browser -> VEthernet -> Tor -> Internet; then: Browser -> (Tor -> VEthernet; loopback) -> Internet.
So how to use VEthernet with them, and I dont know the command --product=yes it is for what.

@liulilittle
Copy link
Owner

If you connect to 127.0.0.1:1080 of the host then tun2socks sends all data to 127.0.0.1:1080. shadowsocks sends all data to the server ip address (assume: 1.1.1.1:7777), then 1.1.1.1:7777 is not configured with the ip route then it will go tun2socks so in fact loopback.

You need to add the server ip connected to "shadowsocks" to the system ip route table.

Such as add 1.1.1.1 ip route:
runas cmd
route add 1.1.1.1 192.168.0.1

@Doimatcuabautroi
Copy link
Author

May you support VEthernet with command "-proxy direct://".
It may help me with that feature.
I borrowed that idea from this project: https://github.com/xjasonlyu/tun2socks/wiki/Proxy-Models

@liulilittle
Copy link
Owner

In fact, you can use the existing "--bypass-iplist=./ip.txt"...

Configure the shadowsocks server ip address within the ip.txt file.

@Doimatcuabautroi
Copy link
Author

Thank you for your support.
In fact, I dont use VEthernet for only PC, but also for my other devices.

With tun2socks from xjasonlyu: Devices (TV, phones, ...) -> Wifi router (Adapter Interface) -> Internet connection sharing -> Tun2socks (Proxy mode direct) -> GoodbyeDPI (windivert only modify app, not interface) -> Internet.
Above config help me bypass firewall without impact performance (socks is slower than GoodbyeDPI).

So may you support that feature ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants