mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3929] 穿透内网多个http端口出来 #3118
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#3118
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 @pigping88 on GitHub (Jan 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3929
Bug Description
frpc.toml:
serverAddr = "x.x.x.x"
serverPort = 7000
proxies
name = "web"
type = "http"
localIP = "127.0.0.1"
localPort = 8000
customDomains = ["x.x.x.x"]
proxies
name = "mobile"
type = "http"
localIP = "127.0.0.1"
localPort = 8080
customDomains = ["x.x.x.x:8080"]
proxies
name = "file"
type = "http"
localIP = "127.0.0.1"
localPort = 9300
customDomains = ["x.x.x.x:9300"]
frps.toml:
bindPort = 7000
vhostHTTPPort = 80
目前这样无法通过ip映射多个端口,x.x.x.x是公网ip,目前没有域名,备案麻烦
frpc Version
frp_0.53.0_windows_amd64
frps Version
frp_0.53.2_linux_amd64
System Architecture
client: windows, server: centos7
Configurations
frpc.toml:
serverAddr = "x.x.x.x"
serverPort = 7000
proxies
name = "web"
type = "http"
localIP = "127.0.0.1"
localPort = 8000
customDomains = ["x.x.x.x"]
proxies
name = "mobile"
type = "http"
localIP = "127.0.0.1"
localPort = 8080
customDomains = ["x.x.x.x:8080"]
proxies
name = "file"
type = "http"
localIP = "127.0.0.1"
localPort = 9300
customDomains = ["x.x.x.x:9300"]
frps.toml:
bindPort = 7000
vhostHTTPPort = 80
Logs
No response
Steps to reproduce
...
Affected area
@pigping88 commented on GitHub (Jan 12, 2024):
我需要内网多个端口,同时穿透映射到外网一样的端口,不然我要改动调整,直接端口对端口,简单,
@pigping88 commented on GitHub (Jan 12, 2024):
已处理,用tcp,服务端,监听多个端口,客服端,绑定映射多个端口
@zzyouyou commented on GitHub (Jan 24, 2024):
方便看下配置项嘛?
为什么我这样不行
客户端:
serverAddr = "x.x.x.x"
serverPort = 7000
proxies
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
web_cas
name = "cas"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 480
web_homeassistant
name = "homeassistant"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8080
remotePort = 48080
服务端:
bindPort = 7000
@just12321 commented on GitHub (Feb 4, 2024):
应该要都是proxies
@github-actions[bot] commented on GitHub (Feb 26, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.