Closed miws closed 1 year ago
我理解的是local_ip是指frpc所在的主机的IP,也就是只能是本机接口。 你这种情况可能需要在本地做个转发才能实现
@fatedier 帮忙看看需要怎么调整
@miws Github issue 仅接受明确的 bug report 和 feature request,精力不足,寻求帮助的话建议在其他平台上发帖求助。
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Describe the feature request
网络架构 我的电脑 <--> 前置机(公网) --> 指定内网服务器 <--> oracle服务器
于是
[common] bind_port = 9000
frpc.ini ` [ssh] type = stcp sk = ssh local_ip = 127.0.0.1 local_port = 22[oracle] type = stcp sk = oracle local_ip = 10.20.30.40 local_port = 1521 `
[sshv] type = stcp role = visitor server_name = ssh sk = ssh bind_addr = 127.0.0.1 bind_port = 9001
[ov] type = stcp role = visitor server_name = oracle sk = oracle bind_addr = 127.0.0.1 bind_port = 9002
这样将 指定内网服务器ssh 及 oracle数据库服务器 1521映射 到了 前置机上。 再通过另一frpc2.ini 将 前置机的 22, 9001, 9002向外映射。
[common] server_addr = x.x.x.x server_port = 7000 tls_enable = false log_level = debug [front] type = stcp sk = front local_ip = 127.0.0.1 local_port = 22 [back] type = stcp sk = mssh local_ip = 127.0.0.1 local_port = 9001[oracle] type = stcp sk = mssh local_ip = 127.0.0.1 local_port = 9002
结果 前置机的 22, 9001 这两个端口能够正常工作,但9002终于无法在外面访问,通过 trace方式看到 前置机 frpc2.log 中
2023/08/14 14:27:42 [D] [proxy_wrapper.go:255] [ceae20b5fb455200] [oracle] start a new work connection, .......... 2023/08/14 14:27:42 [D] [proxy.go:201] [ceae20b5fb455200] [oracle] join connections, ...................... 2023/08/14 14:27:42 [D] [proxy.go:213] [ceae20b5fb455200] [oracle] join connections closed ` 不知为何会关闭。求各位大神指导。
Describe alternatives you've considered
No response
Affected area