-
Notifications
You must be signed in to change notification settings - Fork 770
Transparent proxy in Windows
ssrlive edited this page Jun 12, 2022
·
4 revisions
To use it in windows, download wintun and tun2socks in the same folder or the system PATH and start the program. like this
C:\a>dir
06/11/2022 20:30 7,976,448 tun2socks-windows-amd64.exe
06/11/2022 15:31 427,552 wintun.dll
Run tun2socks
with administrator
privilage.
start cmd /k tun2socks-windows-amd64.exe -device tun://tun00 -proxy socks5://127.0.0.1:1080
We need to assign an IP address to it.
netsh interface ip set address name="tun00" source=static address=10.10.10.2 mask=255.255.255.0 gateway=10.10.10.1
netsh interface ip set dns name="tun00" static 8.8.8.8
Then route default traffic to TUN interface and make proxy server ip as an exception. format likes route add $ip $DefaultGateway metric 5
route add 66.123.45.67 192.168.28.2 metric 5
route add 0.0.0.0 mask 0.0.0.0 10.10.10.1
任何疑问或建议, 请到 Issues 提出.