xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
3.13k stars 433 forks source link

[Feature] Dynamic proxy changer #226

Closed themiralay closed 1 year ago

themiralay commented 1 year ago

Description

Is it possible to have multiple proxy servers for tun2socks or can I change proxy address while tun adapter is running? For example, I enter the following proxy address while tun adapter is standing up. Can I dynamically change the proxy while the same adapter and tun2socks service are running?

tun2socks.exe -device tun://wintun0 -proxy socks5://127.0.0.1:1080 tun2socks.exe -device tun://wintun0 -proxy socks5://127.0.0.1:1081 tun2socks.exe -device tun://wintun0 -proxy socks5://127.0.0.1:1082 tun2socks.exe -device tun://wintun0 -proxy http://187.235.235.235:443 tun2socks.exe -device tun://wintun0 -proxy http://43.235.267.235:443

Is this feature related to a specific bug?

No response

Do you have a specific solution in mind?

A quick proxy change can be achieved by giving an external command parameter to the tun2socks router.

github-actions[bot] commented 1 year ago

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