[GH-ISSUE #10] 二级TCP代理的上级代理有什么要求么? #7

Closed
opened 2026-02-27 23:14:59 +03:00 by kerem · 3 comments
Owner

Originally created by @mengmo on GitHub (Oct 31, 2017).
Original GitHub issue: https://github.com/snail007/goproxy/issues/10

VPS上的设置

tcp
--tls
--local=0.0.0.0:8080
--parent-type=tcp
--parent=127.0.0.1:8090
--pool-size=0
--cert=proxy.crt
--key=proxy.key

本地的设置

tcp
--local=0.0.0.0:8000
--parent-type=tls
--parent=host:8080
--cert=proxy.crt
--key=proxy.key

但是打不开网页
VPS 的 log

2017/10/31 13:49:46 use tcp parent 127.0.0.1:8090
2017/10/31 13:49:46 conn pool closed
2017/10/31 13:49:46 tls proxy on [::]:8080
2017/10/31 13:50:36 connect to 127.0.0.1:8090 , err:dial tcp 127.0.0.1:8090: i/o timeout
2017/10/31 13:50:36 connect to tcp parent 127.0.0.1:8090 fail, ERR:dial tcp 127.0.0.1:8090: i/o timeout

还是说必须有一个可用的上级代理服务器

Originally created by @mengmo on GitHub (Oct 31, 2017). Original GitHub issue: https://github.com/snail007/goproxy/issues/10 VPS上的设置 ``` tcp --tls --local=0.0.0.0:8080 --parent-type=tcp --parent=127.0.0.1:8090 --pool-size=0 --cert=proxy.crt --key=proxy.key ``` 本地的设置 ``` tcp --local=0.0.0.0:8000 --parent-type=tls --parent=host:8080 --cert=proxy.crt --key=proxy.key ``` 但是打不开网页 VPS 的 log ``` 2017/10/31 13:49:46 use tcp parent 127.0.0.1:8090 2017/10/31 13:49:46 conn pool closed 2017/10/31 13:49:46 tls proxy on [::]:8080 2017/10/31 13:50:36 connect to 127.0.0.1:8090 , err:dial tcp 127.0.0.1:8090: i/o timeout 2017/10/31 13:50:36 connect to tcp parent 127.0.0.1:8090 fail, ERR:dial tcp 127.0.0.1:8090: i/o timeout ``` 还是说必须有一个可用的`上级代理服务器`?
kerem closed this issue 2026-02-27 23:14:59 +03:00
Author
Owner

@snail007 commented on GitHub (Oct 31, 2017):

一级tcp的parent必须可以访问,不然tcp代理没有任何意义啊,用户访问8000,就是访问vps的8090。

<!-- gh-comment-id:340813426 --> @snail007 commented on GitHub (Oct 31, 2017): 一级tcp的parent必须可以访问,不然tcp代理没有任何意义啊,用户访问8000,就是访问vps的8090。
Author
Owner

@mengmo commented on GitHub (Oct 31, 2017):

那这个TCP代理设计的是什么样的使用场景?
看起来比HTTP代理多了一台服务器。
国内中转?

<!-- gh-comment-id:340822649 --> @mengmo commented on GitHub (Oct 31, 2017): 那这个`TCP代理`设计的是什么样的使用场景? 看起来比`HTTP代理`多了一台服务器。 国内中转?
Author
Owner

@snail007 commented on GitHub (Oct 31, 2017):

中转是一种用途

<!-- gh-comment-id:340933611 --> @snail007 commented on GitHub (Oct 31, 2017): 中转是一种用途
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#7
No description provided.