Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

穿透内网多个http端口出来 #3929

Closed
11 tasks
pigping88 opened this issue Jan 12, 2024 · 5 comments
Closed
11 tasks

穿透内网多个http端口出来 #3929

pigping88 opened this issue Jan 12, 2024 · 5 comments

Comments

@pigping88
Copy link

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@pigping88
Copy link
Author

我需要内网多个端口,同时穿透映射到外网一样的端口,不然我要改动调整,直接端口对端口,简单,

@pigping88
Copy link
Author

已处理,用tcp,服务端,监听多个端口,客服端,绑定映射多个端口

@zzyouyou
Copy link

已处理,用tcp,服务端,监听多个端口,客服端,绑定映射多个端口

方便看下配置项嘛?
为什么我这样不行
客户端:
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
Copy link

已处理,用tcp,服务端,监听多个端口,客服端,绑定映射多个端口

方便看下配置项嘛? 为什么我这样不行 客户端: 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

应该要都是[[proxies]]

Copy link

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants