mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #2966] [CLOSED] feat: support aead encryption #4665
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#4665
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?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/2966
Author: @mzz2017
Created: 6/3/2022
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
c23114cfeat: support aead encryption📊 Changes
26 files changed (+68 additions, -21 deletions)
View changed files
📝
client/control.go(+2 -2)📝
client/proxy/proxy.go(+5 -5)📝
client/visitor.go(+4 -3)📝
cmd/frpc/sub/http.go(+2 -0)📝
cmd/frpc/sub/https.go(+2 -0)📝
cmd/frpc/sub/root.go(+1 -0)📝
cmd/frpc/sub/stcp.go(+3 -0)📝
cmd/frpc/sub/sudp.go(+3 -0)📝
cmd/frpc/sub/tcp.go(+2 -0)📝
cmd/frpc/sub/tcpmux.go(+2 -0)📝
cmd/frpc/sub/udp.go(+2 -0)📝
cmd/frpc/sub/xtcp.go(+3 -0)📝
go.mod(+2 -0)📝
go.sum(+0 -2)📝
pkg/auth/token.go(+1 -0)📝
pkg/config/client_test.go(+7 -0)📝
pkg/config/proxy.go(+7 -0)📝
pkg/config/proxy_test.go(+7 -0)📝
pkg/config/visitor.go(+2 -0)📝
pkg/msg/msg.go(+2 -0)...and 6 more files
📄 Description
As we all know, stream encryption is vulnerable and recognizable. Compared with that, AEAD is more difficult to break and is a mainstream encryption method.
Related PR: https://github.com/fatedier/golib/pull/16
We enables frp to support the AEAD method (currently only aes-gcm).
Notice: we should remove the
replaceinstruction ingo.modbefore merging. It should be only for our test.Example configs:
Server side:
Client side:
Then we can use following commands to test:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.