xjasonlyu / tun2socks

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

\core\device\iobased\endpoint.go:78 Read latency is high #353

Closed cappuccino5 closed 5 months ago

cappuccino5 commented 7 months ago

Verify steps

Version

v2.5.2

What OS are you seeing the problem on?

Windows

Description

env: windows 11 tun2socks: version v2.5.2 issue: Accessing youtube and google.con is very slow. Through pprof analysis, we found that the delay in reading data in tun is 27.81s. image

\tun2socks\v2@v2.5.2 line sn: \core\device\iobased\endpoint.go:78 \core\device\iobased\endpoint.go:99 \core\device\tun\tun_wireguard.go:76

CLI or Config

./tun2socks-windows-amd64.exe -device wintun -proxy socks5://127.0.0.1:1097 -interface "eth2"

netsh interface ipv4 set address name="wintun" source=static addr=192.168.132.12 mask=255.255.255.0 netsh interface ipv4 set dnsservers name="wintun" static address=8.8.8.8 register=none validate=no netsh interface ipv4 add route 0.0.0.0/0 "wintun" 192.168.132.12 metric=1 netsh interface ipv4 add route 38.77.232.6/32 eth2 192.168.7.1 metric=5

Logs

2024/04/04 20:51:55 socks connection from 127.0.0.1:59142 metadata 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59138 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59145 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59140 <-> 223.6.6.6:443"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59146 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59143 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59147 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59151 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59144 <-> 223.5.5.5:443"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59149 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59150 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59148 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59157 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59153 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59154 metadata 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59152 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59160 metadata 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59158 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59162 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59159 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59168 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59163 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59167 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59161 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59169 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59170 metadata 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59166 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59164 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59171 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59177 metadata 218.91.209.42:9999
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59165 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59173 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59176 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59172 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59178 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59174 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59179 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59175 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59185 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59180 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59184 metadata 223.6.6.6:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59181 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59186 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59188 metadata 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59182 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59183 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59191 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59193 metadata 218.91.209.42:9999
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59187 <-> 1.192.136.207:80"
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59190 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59192 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59189 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59199 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59194 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59201 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59195 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59204 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59198 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59205 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59196 <-> 223.6.6.6:443"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59206 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59202 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59208 metadata 223.5.5.5:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59203 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59210 metadata 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59207 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59212 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59209 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59213 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59216 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59211 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59214 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59217 metadata 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59215 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59220 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59218 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59221 metadata 223.6.6.6:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59219 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59225 metadata 223.5.5.5:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59222 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59227 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59223 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59229 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59226 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59228 metadata 218.91.209.42:9999
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59224 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59231 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59230 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59234 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59235 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59232 <-> 171.8.167.45:80"
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59233 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59238 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59241 metadata 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59236 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59237 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59242 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59240 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59243 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59239 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59246 metadata 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59250 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59244 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59245 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59251 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59247 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59252 metadata 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59248 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59253 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59249 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59257 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59255 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59258 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59254 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59260 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59256 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59262 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59259 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59263 metadata 218.91.209.42:9999
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59267 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59261 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59264 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
2024/04/04 20:51:55 socks connection from 127.0.0.1:59269 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59270 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59265 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59266 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59271 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59268 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59275 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59276 metadata 0.0.0.0:0
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59272 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[UDP] 192.168.132.12:62307 <-> 8.8.8.8:53"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59278 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=debug msg="[UDP] copy data for origin->remote: write udp [::]:59634->127.0.0.1:1097: wsasendto: The requested address is not valid in its context."
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59273 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59283 metadata 0.0.0.0:0
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59284 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59286 metadata 0.0.0.0:0
time="2024-04-04T20:51:55+08:00" level=info msg="[UDP] 192.168.132.12:65430 <-> 8.8.8.8:53"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59274 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[UDP] 192.168.132.12:59633 <-> 8.8.8.8:53"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59287 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=debug msg="[UDP] copy data for origin->remote: write udp [::]:59635->127.0.0.1:1097: wsasendto: The requested address is not valid in its context."
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=debug msg="[UDP] copy data for origin->remote: write udp [::]:59636->127.0.0.1:1097: wsasendto: The requested address is not valid in its context."
2024/04/04 20:51:55 socks connection from 127.0.0.1:59292 metadata 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59277 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59288 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59293 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59289 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59295 metadata 171.8.167.45:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59291 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59294 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59290 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59298 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59296 <-> 223.6.6.6:443"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59299 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59302 metadata 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59297 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59300 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59304 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59306 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59301 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59303 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59309 metadata 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59305 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59312 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59313 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59307 <-> 171.8.167.45:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59308 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59314 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59310 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59320 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59315 metadata 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59317 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59311 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59319 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59316 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59321 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59318 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59326 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59323 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59327 metadata 218.91.209.42:9999
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59322 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59328 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59329 metadata 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59324 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59325 <-> 171.8.167.45:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59335 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59336 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59331 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59330 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59340 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59334 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59339 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59338 metadata 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59332 <-> 223.5.5.5:443"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59333 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
2024/04/04 20:51:55 socks connection from 127.0.0.1:59342 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59344 metadata 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59337 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59341 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59347 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59343 <-> 171.8.167.45:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59348 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59349 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59345 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59346 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59351 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59350 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59355 metadata 223.5.5.5:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59352 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59356 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59353 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59358 metadata 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59354 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59362 metadata 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59363 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59357 <-> 218.91.209.42:9999"
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59361 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59366 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59365 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59360 <-> 171.8.167.45:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59359 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59370 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59367 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59369 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59364 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59371 metadata 223.5.5.5:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59368 <-> 223.5.5.5:443"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59375 metadata 223.6.6.6:443
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.5.5.5:443
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59372 <-> 223.6.6.6:443"
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59376 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 223.6.6.6:443
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59373 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59378 metadata 218.91.209.42:9999
2024/04/04 20:51:55 socks connection from 127.0.0.1:59381 metadata 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59374 <-> 218.91.209.42:9999"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 218.91.209.42:9999
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59377 <-> 171.8.167.45:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 171.8.167.45:80
2024/04/04 20:51:55 socks5 connection
2024/04/04 20:51:55 socks connection from 127.0.0.1:59383 metadata 1.192.136.207:80
2024/04/04 20:51:55 socks5 connection
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59379 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks connection from 127.0.0.1:59384 metadata 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
2024/04/04 20:51:55 socks connection from 127.0.0.1:59385 metadata 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59380 <-> 1.192.136.207:80"
2024/04/04 20:51:55 -------------->relayConnLoop inbound: 1.192.136.207:80
time="2024-04-04T20:51:55+08:00" level=info msg="[TCP] 192.168.132.12:59382 <-> 1.192.136.207:80"
2024/04/04 20:51:55 socks5 connection

How to Reproduce

none

xjasonlyu commented 7 months ago

Hi, are you using the pre-release tun2socks or your modified one? As I notice some of the logs are not part of this project.

kelleygo commented 7 months ago

是基于v2.5.2改后的,我把tun2socks作为库使用,就改了tcp超时时间改为15s了,发现访问youtube找不到DNS,要多少刷新后或者等5-10分钟后才能访问外网,不知道如何解决,困扰我许久了

github-actions[bot] commented 5 months 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