[GH-ISSUE #704] Windows 环境下 http 代理插件不工作 #551

Closed
opened 2026-05-05 12:21:41 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Seaear on GitHub (Apr 12, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/704

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.16.1

What operating system and processor architecture are you using (go env)?
外网服务器: Windows Server 2016 Datacenter x64
内网A:Windows Server 2008 R2 Stadard x64
内网B:Windows Server 2008 R2 Enterprise x64
内网A可以访问外网,内网B无法访问外网需要通过内网A代理访问外网

Configures you used:
frps.ini
[common]
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
vhost_http_port = 8080
privilege_token = 12345

frpc.ini (内网A)
[common]
server_addr = 外网服务器ip
server_port = 7000
privilege_token = 12345
protocol = tcp

[http_proxy]
type = tcp
remote_port = 8088
plugin = http_proxy

frpc.ini (内网B)
[common]
server_addr = 外网服务器ip
server_port = 7000
privilege_token = 12345
protocol = tcp
http_proxy = http://内网A:8088

Steps to reproduce the issue:
1.使用内嵌的 http proxy 内网B 无法连接到服务器
2.换用 Privoxy 做 http 代理 内网B 可以连接到服务器
3.内网A telnet 127.0.0.1 8088 无响应

Describe the results you received:
内网A log
2018/04/12 23:46:25 [I] [proxy_manager.go:298] proxy removed: []
2018/04/12 23:46:25 [I] [proxy_manager.go:308] proxy added: [http_proxy]
2018/04/12 23:46:25 [I] [proxy_manager.go:331] visitor removed: []
2018/04/12 23:46:25 [I] [proxy_manager.go:340] visitor added: []
2018/04/12 23:46:25 [I] [control.go:240] [ee5edc68f518c77e] login to server success, get run id [ee5edc68f518c77e], server udp port [7001]
2018/04/12 23:46:25 [I] [control.go:165] [ee5edc68f518c77e] [http_proxy] start proxy success

内网B log
2018/04/12 23:59:28 [I] [proxy_manager.go:298] proxy removed: []
2018/04/12 23:59:28 [I] [proxy_manager.go:308] proxy added: [web01]
2018/04/12 23:59:28 [I] [proxy_manager.go:331] visitor removed: []
2018/04/12 23:59:28 [I] [proxy_manager.go:340] visitor added: []
2018/04/12 23:59:29 [W] [control.go:109] login to server failed: dial tcp 10.10.7.1:8088: connectex: No connection could be made because the target machine actively refused it. dial tcp 10.10.7.1:8088: connectex: No connection could be made because the target machine actively refused it.

Originally created by @Seaear on GitHub (Apr 12, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/704 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.16.1 **What operating system and processor architecture are you using (`go env`)?** 外网服务器: Windows Server 2016 Datacenter x64 内网A:Windows Server 2008 R2 Stadard x64 内网B:Windows Server 2008 R2 Enterprise x64 内网A可以访问外网,内网B无法访问外网需要通过内网A代理访问外网 **Configures you used:** frps.ini [common] bind_port = 7000 bind_udp_port = 7001 kcp_bind_port = 7000 vhost_http_port = 8080 privilege_token = 12345 frpc.ini (内网A) [common] server_addr = 外网服务器ip server_port = 7000 privilege_token = 12345 protocol = tcp [http_proxy] type = tcp remote_port = 8088 plugin = http_proxy frpc.ini (内网B) [common] server_addr = 外网服务器ip server_port = 7000 privilege_token = 12345 protocol = tcp http_proxy = http://内网A:8088 **Steps to reproduce the issue:** 1.使用内嵌的 http proxy 内网B 无法连接到服务器 2.换用 Privoxy 做 http 代理 内网B 可以连接到服务器 3.内网A telnet 127.0.0.1 8088 无响应 **Describe the results you received:** 内网A log 2018/04/12 23:46:25 [I] [proxy_manager.go:298] proxy removed: [] 2018/04/12 23:46:25 [I] [proxy_manager.go:308] proxy added: [http_proxy] 2018/04/12 23:46:25 [I] [proxy_manager.go:331] visitor removed: [] 2018/04/12 23:46:25 [I] [proxy_manager.go:340] visitor added: [] 2018/04/12 23:46:25 [I] [control.go:240] [ee5edc68f518c77e] login to server success, get run id [ee5edc68f518c77e], server udp port [7001] 2018/04/12 23:46:25 [I] [control.go:165] [ee5edc68f518c77e] [http_proxy] start proxy success 内网B log 2018/04/12 23:59:28 [I] [proxy_manager.go:298] proxy removed: [] 2018/04/12 23:59:28 [I] [proxy_manager.go:308] proxy added: [web01] 2018/04/12 23:59:28 [I] [proxy_manager.go:331] visitor removed: [] 2018/04/12 23:59:28 [I] [proxy_manager.go:340] visitor added: [] 2018/04/12 23:59:29 [W] [control.go:109] login to server failed: dial tcp 10.10.7.1:8088: connectex: No connection could be made because the target machine actively refused it. dial tcp 10.10.7.1:8088: connectex: No connection could be made because the target machine actively refused it.
Author
Owner

@Seaear commented on GitHub (Apr 12, 2018):

搞懂了,内网A需要另外运行一套 frps 和 frpc 做代理
frps.ini
[common]
bind_port = 7000
bind_udp_port = 7001
privilege_token = 12345

frpc.ini
[common]
server_addr = 127.0.0.1
server_port = 7000
privilege_token = 12345
protocol = tcp

[http_proxy]
type = tcp
remote_port = 8088
plugin = http_proxy

<!-- gh-comment-id:380873668 --> @Seaear commented on GitHub (Apr 12, 2018): 搞懂了,内网A需要另外运行一套 frps 和 frpc 做代理 frps.ini [common] bind_port = 7000 bind_udp_port = 7001 privilege_token = 12345 frpc.ini [common] server_addr = 127.0.0.1 server_port = 7000 privilege_token = 12345 protocol = tcp [http_proxy] type = tcp remote_port = 8088 plugin = http_proxy
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: github-starred/frp#551
No description provided.