mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4530] 咨询一些安全实践的问题 #3578
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#3578
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 @ghost on GitHub (Nov 10, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4530
Describe the feature request
我是在公网服务器配置了nginx反向代理到frps的remote port端口,用户与公网服务器之间由nginx的https负责加密,后来我🙏公网服务器与我内网服务器之间通讯岂不是未加密的?于是我在frpc配置服务的时候开启了https类型的代理,并在frpc开了一个vhosthttpsport,然后将指定端口反代到vhosthttpsport上,查看链接已经建立,但是死活路由不到正确的地方,请问是什么原因呢?

如果我直接访问subdomain:remote port可以正确的访问,但是再经过一层nginx的反代就无法正确访问了。
后来看到frp自带frpc与frps的加密,想问这种是比较安全的吗,下面的这种架构:
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (Nov 11, 2024):
frpc 和 frps 之间的通信默认是 TLS 加密的,你的场景中不需要使用 https,保持原来的配置即可。
@Matthew-Harris-36 commented on GitHub (Dec 16, 2024):
@fatedier 哪怕一点都没做安全相关的设置,frps 和 frpc 之间的数据传输也是加密的吗?很抱歉我需要多问一嘴,因为我在 snowdream 的群组里、另一个VPS群组询问,他们都讲不会加密。


@ghost commented on GitHub (Dec 16, 2024):
用户侧向公网服务器发起请求由nginx配置的tls负责加密,对外只暴露nginx监听443端口,由nginx路由到frps,frps根据host字段与frpc通讯,过程中使用frp的内置加密算法aes-128-cfb,需要在配置中打开transport.useEncryption = true,打开这个frps与frpc就是加密的了,详情可查看官网:通信安全及优化。
@Matthew-Harris-36 commented on GitHub (Dec 16, 2024):
@MasterKe2003 你好,我添加了这行配置,可是 frps 面板里显示的还是未加密、未压缩。
@ghost commented on GitHub (Dec 16, 2024):
模式改成http试试
@Matthew-Harris-36 commented on GitHub (Dec 16, 2024):
@MasterKe2003 连接不上服务器了,提示这个。

@ghost commented on GitHub (Dec 16, 2024):
没有域名么
@Matthew-Harris-36 commented on GitHub (Dec 16, 2024):
@MasterKe2003 有啊,这域名我已经解析到服务器上了,而且7000和http的8080端口都开放了,但日志里就提示没配。


@ghost commented on GitHub (Dec 16, 2024):
frps配置如下字段
@Matthew-Harris-36 commented on GitHub (Dec 17, 2024):
暂时不清楚什么原因, frps 不用 Docker 按官方的部署,现在没问题了。