[GH-ISSUE #308] http代理不生效 #224

Closed
opened 2026-02-27 23:16:01 +03:00 by kerem · 1 comment
Owner

Originally created by @dingrui37 on GitHub (Aug 9, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/308

[root@vps48198425 goproxy]# ./proxy --version
free_8.0

海外主机:

[root@vps48198425 goproxy]# ./proxy http -t tcp -p "0.0.0.0:12306"
proxy free version 8.0  by snail , email : arraykeys@gmail.com
2019/08/09 03:29:14 tcp http(s) proxy on [::]:12306
2019/08/09 03:29:30 GET:http://www.google.com/
2019/08/09 03:29:30 use parent : false, www.google.com:80
2019/08/09 03:29:31 conn 121.32.198.172:50699 - 172.217.11.68:80 connected [www.google.com:80]
2019/08/09 03:29:31 conn 121.32.198.172:50699 - 172.217.11.68:80 released [www.google.com:80]
dingrui@ubuntu:~$ curl --connect-timeout 10 -x  45.89.197.38:12306  www.google.com
curl: (56) Recv failure: Connection reset by peer

tcpdump抓包:

[root@vps48198425 goproxy]# tcpdump -n  -i eth0 port 12306
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
03:29:29.831584 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [S], seq 186049261, win 29200, options [mss 1452,sackOK,TS val 1273507322 ecr 0,nop,wscale 7], length 0
03:29:29.831644 IP 45.89.197.38.12306 > 121.32.198.172.50699: Flags [S.], seq 2406798396, ack 186049262, win 28960, options [mss 1460,sackOK,TS val 1129836506 ecr 1273507322,nop,wscale 6], length 0
03:29:30.015199 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [.], ack 1, win 229, options [nop,nop,TS val 1273507366 ecr 1129836506], length 0
03:29:30.015253 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [P.], seq 1:130, ack 1, win 229, options [nop,nop,TS val 1273507366 ecr 1129836506], length 129
03:29:30.015274 IP 45.89.197.38.12306 > 121.32.198.172.50699: Flags [.], ack 130, win 470, options [nop,nop,TS val 1129836689 ecr 1273507366], length 0
03:29:30.015324 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R.], seq 130, ack 1, win 2387, length 0
03:29:30.015331 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R.], seq 130, ack 1, win 2387, length 0
03:29:30.015399 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R.], seq 130, ack 1, win 2387, length 0
03:29:30.015404 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R], seq 186049391, win 20587, length 0
03:29:30.190453 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R], seq 186049391, win 0, length 0
Originally created by @dingrui37 on GitHub (Aug 9, 2019). Original GitHub issue: https://github.com/snail007/goproxy/issues/308 ``` [root@vps48198425 goproxy]# ./proxy --version free_8.0 ``` 海外主机: ``` [root@vps48198425 goproxy]# ./proxy http -t tcp -p "0.0.0.0:12306" proxy free version 8.0 by snail , email : arraykeys@gmail.com 2019/08/09 03:29:14 tcp http(s) proxy on [::]:12306 2019/08/09 03:29:30 GET:http://www.google.com/ 2019/08/09 03:29:30 use parent : false, www.google.com:80 2019/08/09 03:29:31 conn 121.32.198.172:50699 - 172.217.11.68:80 connected [www.google.com:80] 2019/08/09 03:29:31 conn 121.32.198.172:50699 - 172.217.11.68:80 released [www.google.com:80] ``` ``` dingrui@ubuntu:~$ curl --connect-timeout 10 -x 45.89.197.38:12306 www.google.com curl: (56) Recv failure: Connection reset by peer ``` tcpdump抓包: ``` [root@vps48198425 goproxy]# tcpdump -n -i eth0 port 12306 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes 03:29:29.831584 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [S], seq 186049261, win 29200, options [mss 1452,sackOK,TS val 1273507322 ecr 0,nop,wscale 7], length 0 03:29:29.831644 IP 45.89.197.38.12306 > 121.32.198.172.50699: Flags [S.], seq 2406798396, ack 186049262, win 28960, options [mss 1460,sackOK,TS val 1129836506 ecr 1273507322,nop,wscale 6], length 0 03:29:30.015199 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [.], ack 1, win 229, options [nop,nop,TS val 1273507366 ecr 1129836506], length 0 03:29:30.015253 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [P.], seq 1:130, ack 1, win 229, options [nop,nop,TS val 1273507366 ecr 1129836506], length 129 03:29:30.015274 IP 45.89.197.38.12306 > 121.32.198.172.50699: Flags [.], ack 130, win 470, options [nop,nop,TS val 1129836689 ecr 1273507366], length 0 03:29:30.015324 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R.], seq 130, ack 1, win 2387, length 0 03:29:30.015331 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R.], seq 130, ack 1, win 2387, length 0 03:29:30.015399 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R.], seq 130, ack 1, win 2387, length 0 03:29:30.015404 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R], seq 186049391, win 20587, length 0 03:29:30.190453 IP 121.32.198.172.50699 > 45.89.197.38.12306: Flags [R], seq 186049391, win 0, length 0 ```
kerem closed this issue 2026-02-27 23:16:03 +03:00
Author
Owner

@snail007 commented on GitHub (Aug 9, 2019):

TCP裸奔,你这是挑战GFW。

https://github.com/snail007/goproxy/wiki/%E5%B0%8F%E7%99%BD%E5%BC%80%E5%BF%83%E4%B8%8A%E7%BD%91

<!-- gh-comment-id:519816450 --> @snail007 commented on GitHub (Aug 9, 2019): TCP裸奔,你这是挑战GFW。 https://github.com/snail007/goproxy/wiki/%E5%B0%8F%E7%99%BD%E5%BC%80%E5%BF%83%E4%B8%8A%E7%BD%91
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#224
No description provided.