mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #332] 新版0.10.0 http类型不可以加密,压缩 #244
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @newcastlecy on GitHub (May 24, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/332
Type tcp / http
use_encryption = true
use_compression = true
客户端可以telnet端口通,不可以访问http网页,
use_encryption = false
use_compression = false
客户端访问http网页正常
0.9.3 http类型可以加密,压缩
@fatedier commented on GitHub (May 24, 2017):
请按照 issue 模版提交问题,方便查看。
@newcastlecy commented on GitHub (May 24, 2017):
#服务端配置:
[common]
bind_port = 7000
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
vhost_http_port = 8888
tcp_mux = true
authentication_timeout = 900
privilege_token = xxxxxxxx
subdomain_host = a.b.c
max_pool_count = 50
log_file = /dev/null
#客户端配置:
[http]
privilege_mode = true
type = http
local_ip = 127.0.0.1
local_port = 80
#use_encryption = true
#use_compression = true
subdomain = xyz
log_file = /dev/null
[ssh]
privilege_mode = true
remote_port = 22222
type = tcp
local_ip = 127.0.0.1
local_port = 22
use_encryption = true
use_compression = true
log_file = /dev/null
[http2]
privilege_mode = true
remote_port = 8080
type = tcp
local_ip = 127.0.0.1
local_port = 80
#use_encryption = true
#use_compression = true
log_file = /dev/null
若 [http] [http2]开启use_encryption use_compression选项 ,则
http://xyz.a.b.c:8888 与http://a.b.c:8080 不可以打开网页,但是 8888 8080 端口是通的
去掉use_encryption use_compression选项,2个页面打开均正常
[ssh] 可以正常使用use_encryption use_compression选项
@fatedier commented on GitHub (May 24, 2017):
在你 New issue 的时候不要删除里面的模版内容,按照模版内容填写相关信息。
另外你的问题无法复现。
@newcastlecy commented on GitHub (May 24, 2017):
客户端配置:为路由器 100%复现以上
@fatedier commented on GitHub (May 24, 2017):
你没有按照模版内容填写相关信息,所以缺少系统信息等内容,我也没有环境去复现,很难排查问题。
@rampageX commented on GitHub (May 25, 2017):
我这里也有这个问题。同样是运行在路由器上,映射到路由器的 Web 设置页面,端口是 8889。
路由器型号: ASUS RT-AC68P
操作系统: Tomato/Linux asus 2.6.36.4brcmarm #19 SMP PREEMPT Wed Apr 19 16:20:58 CEST 2017 armv7l GNU/Linux
配置文件 frpc.ini:
What version of frp are you using (./frpc -v or ./frps -v)?
0.10.0
What operating system and processor architecture are you using (
go env)?Steps to reproduce the issue:
Describe the results you received:
当 use_encryption = true 是,可以跳出 Web 设置页面的用户名密码输入界面,证明端口转发成功,但是输入用户名密码后,浏览器只能显示出页面的标题,整个内容是空的,浏览器一直显示加载中;附上 Chrome F12 网络调试信息:
连接失败时:

连接成功时:

Describe the results you expected:
开启加密任然可以连接。
Additional information you deem important (e.g. issue happens only occasionally):
无
Can you point out what caused this issue (optional)
无
@fatedier commented on GitHub (May 25, 2017):
@rampageX 推测和加密的方法有关,0.10.0 版本更新了加密的方法,不同平台的兼容性可能不是很好。不过我没有 arm 的机器,不方便调试。
@fatedier commented on GitHub (May 25, 2017):
@rampageX 找了一个手机测试了,仍然无法复现这个问题。
@rampageX commented on GitHub (May 25, 2017):
@fatedier 同一台路由器上同样版本的 frpc ,用 tcp 类型来转发 ssh 端口,启用加密也是可以的,是否可以排除与硬件/平台无关?
@fatedier commented on GitHub (May 25, 2017):
@rampageX 最好能够提供在 linux 系统上可以稳定复现的示例。
@rampageX commented on GitHub (May 26, 2017):
@fatedier
我又反复测试了几种情况:
@fatedier commented on GitHub (May 26, 2017):
@rampageX 你的测试结论是 华硕自己写的一个认证系统 开启加密后是正常的,但是如果本身的 web 服务有 HTTP Basic Auth 认证,则开启加密会导致不能访问?
@rampageX commented on GitHub (May 26, 2017):
@fatedier 是的。
@lnzoro commented on GitHub (Jun 2, 2017):
我的也是这个问题,我联合kcptun一起用frp打开压缩,网站打不开,现在只能关闭压缩才能打开网页。
@fatedier commented on GitHub (Jun 5, 2017):
大致上定位到原因了,考虑下怎么修复。
@fatedier commented on GitHub (Jun 5, 2017):
@rampageX 感谢你提供的详细的信息,临时编译的版本放在百度网盘上了,可以试试是否解决了你遇到的问题。
https://pan.baidu.com/s/1eRTu3mU
yfwm
@lnzoro commented on GitHub (Jun 6, 2017):
这个应该可以了。压缩能开网页了
@newcastlecy commented on GitHub (Jun 6, 2017):
可以了
lnzoro notifications@github.com于2017年6月6日 周二 08:31写道:
--
感谢您在百忙之中阅读我的信件。
@rampageX commented on GitHub (Jun 6, 2017):
@fatedier OK 啦!感谢!