[GH-ISSUE #3013] [Feature Request] Global encryption and compression. #2408

Closed
opened 2026-05-05 13:32:58 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @fernvenue on GitHub (Jul 13, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3013

Describe the feature request

Hi, I just found out that all my frpc connection using encryption and compression, and I have to write them over and over again, could you please make them global? When the user write them in the [common] like this:

[common]
...
use_encryption = true
use_compression = true
...

Then, all the connection will enable encryption and compression.

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @fernvenue on GitHub (Jul 13, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3013 ### Describe the feature request Hi, I just found out that all my frpc connection using encryption and compression, and I have to write them over and over again, could you please make them global? When the user write them in the `[common]` like this: ``` [common] ... use_encryption = true use_compression = true ... ``` Then, all the connection will enable encryption and compression. ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jul 13, 2022):

Use tls_enable instead of use_encryption.

<!-- gh-comment-id:1183235799 --> @fatedier commented on GitHub (Jul 13, 2022): Use `tls_enable` instead of `use_encryption`.
Author
Owner

@fernvenue commented on GitHub (Jul 13, 2022):

Use tls_enable instead of use_encryption.

Sounds great, thanks a lot for your answer, I just added tls_enable to my config as you said, and I have some questions about that, hope this will not take up too much of your time:

  • Does TLS will make traffic easier to identify?
  • Is it require more resources than use_encryption?
  • And what should I do if I wanna use compression for all connections?

Again, thanks for your help :)

<!-- gh-comment-id:1183691298 --> @fernvenue commented on GitHub (Jul 13, 2022): > Use `tls_enable` instead of `use_encryption`. Sounds great, thanks a lot for your answer, I just added `tls_enable` to my config as you said, and I have some questions about that, hope this will not take up too much of your time: - Does TLS will make traffic easier to identify? - Is it require more resources than `use_encryption`? - And what should I do if I wanna use compression for all connections? Again, thanks for your help :)
Author
Owner

@fatedier commented on GitHub (Jul 14, 2022):

TLS is very common in the internet. You can also add disable_custom_tls_first_byte = true to eliminate particularity in frp.

Global compression is not planned. Maybe frp v2, we are working on it.

<!-- gh-comment-id:1183921764 --> @fatedier commented on GitHub (Jul 14, 2022): TLS is very common in the internet. You can also add `disable_custom_tls_first_byte = true` to eliminate particularity in frp. Global compression is not planned. Maybe frp v2, we are working on it.
Author
Owner

@fernvenue commented on GitHub (Jul 14, 2022):

Thanks for such a clear answer, I will use tls_enable and disable_custom_tls_first_byte instead of use_encryption. Expect to see global compression in frp v2, I'm gonna close this issue for now, thanks again.

<!-- gh-comment-id:1183925095 --> @fernvenue commented on GitHub (Jul 14, 2022): Thanks for such a clear answer, I will use `tls_enable` and `disable_custom_tls_first_byte` instead of `use_encryption`. Expect to see global compression in frp v2, I'm gonna close this issue for now, thanks again.
Author
Owner

@zsinba commented on GitHub (Aug 12, 2022):

TLS 在 Internet 中非常常见。您还可以添加disable_custom_tls_first_byte = true以消除 frp 中的特殊性。

未计划全局压缩。也许 frp v2,我们正在努力。

请问使用压缩,大概会多使用多少cpu,减少多少带宽?

<!-- gh-comment-id:1213229468 --> @zsinba commented on GitHub (Aug 12, 2022): > TLS 在 Internet 中非常常见。您还可以添加`disable_custom_tls_first_byte = true`以消除 frp 中的特殊性。 > > 未计划全局压缩。也许 frp v2,我们正在努力。 请问使用压缩,大概会多使用多少cpu,减少多少带宽?
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#2408
No description provided.