mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1126] use_encryption 和 tls_enable 可以同时使用不? #882
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#882
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 @Xeath on GitHub (Mar 11, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1126
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.25.0
What operating system and processor architecture are you using (
go env)?Linux
偶尔使用 frp 加密链接某款代理软件实现绕过某东西,今天看到更新日志增加 tls_enable 支持,立马给两端都更新了 frp,可以连上但是过不了多久似乎开始被某东西给你懂的,现在已经改回去之前的配置。所以就想问问能否两个同时启用(是否会同时生效)。
@fatedier commented on GitHub (Mar 11, 2019):
可以同时使用,相当于做了两次加密,所以并不是很有必要。
只使用 use_encryption 的话,login 信息是明文的,也就是说根据连接建立后发送的报文就可以识别到其中的内容,login 完成后的通信内容都是加密的。
tls_enable 启用的话,所有 frpc 和 frps 之间的流量都会经过加密。倾向于使用这个参数取代 use_encryption。
至于启用 TLS 后被拦截之类的,这方面我不是很了解。
@mvscode commented on GitHub (Mar 12, 2019):
启用tls,速度会有所下降吗
@fatedier commented on GitHub (Mar 12, 2019):
@MvsCode 会下降,就像 http 和 https 的差距一样,牺牲效率,提高安全性。
@Xeath commented on GitHub (Mar 12, 2019):
use_encryption 也会降低速度吗?相对 tls 这个应该会增加少许负载。
@fatedier commented on GitHub (Mar 12, 2019):
需要加密,必然会牺牲性能,但是如果 CPU 资源足够,影响应该可以忽略。和启用 TLS 的消耗类似。
@vmvz commented on GitHub (May 5, 2019):
@fatedier 请问开启了 tls_enable 是不是在控制台看不到状态
显示 Encryption false
@fatedier commented on GitHub (May 5, 2019):
@vmvz tls_enable 是全局的,启用了之后,此 frpc 和 frps 之间的流量都是加密的,和
use_encryption这个参数无关了,所以不显示在具体的某个 proxy 上了。