mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1066] 能否实现外网服务器端口映射到本地内网的服务器? #839
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#839
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 @Michael2008S on GitHub (Jan 29, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1066
我想内网服务器访问外网的对应端口的非公开,但有不想建立正向的隧道。
请问 frp 能否实现外网服务器的内部服务端口映射到本地?
我看了文档好像没找到这方面。找到的都是本地端口映射到外网服务器。
@fatedier commented on GitHub (Jan 29, 2019):
可以采用 stcp 的方式,但是还是需要通过一台有公网 IP 的中间节点中转。
假设 A 是本地,B 是外网某个机器,C 可以是另外一台有公网 IP 的机器或者就是 B。
采用 stcp 方式,A 和 B 都部署 frpc,A 绑定本地一个端口映射到 B 的一个端口,访问 A 的本地端口即访问 B 的对应端口。
@Michael2008S commented on GitHub (Jan 29, 2019):
试了一下,解决了。
谢谢