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

frps监听ipv6:7000端口,无法监听ipv4:7000端口 #4585

Closed
11 tasks
Evergarden-Alan opened this issue Dec 16, 2024 · 1 comment
Closed
11 tasks

frps监听ipv6:7000端口,无法监听ipv4:7000端口 #4585

Evergarden-Alan opened this issue Dec 16, 2024 · 1 comment

Comments

@Evergarden-Alan
Copy link

Bug Description

在frps端配置好启动后,日志显示正常监听ip:7000端口,但是使用netstat -tuln | grep 7000查看,监听的是ipv6的7000端口,没有监听ipv4的7000端口.而后导致frpc无法连接到frps,日志显示"connect: no route to host"

frpc Version

0.61.0

frps Version

0.61.0

System Architecture

linux/amd64

Configurations

frpc

serverPort = 7000

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6022

[[proxies]]
name = "cloud"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8880
remotePort = 8880

[[proxies]]
name = "dmzs"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5001
remotePort = 5001

[[proxies]]
name = "dmz"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 5000

[[proxies]]
name = "home"
"/usr/local/frp/frpc.toml" 41L, 532B
serverAddr = "IP"
serverPort = 7000

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6022

[[proxies]]
name = "cloud"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8880
remotePort = 8880

[[proxies]]
name = "dmzs"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5001
remotePort = 5001

[[proxies]]
name = "dmz"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 5000

[[proxies]]
name = "home"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 6080

#frps:

bindPort = 7000
bindAddr = "0.0.0.0"
vhostHTTPPort = 8080
vhostHTTPSPort = 443

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "admin"

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
@superzjg
Copy link

不太可能,要是这样不早就炸锅了。检察你的配置、防火墙等
frps日志显示 frps tcp listen on 0.0.0.0:7000 就表示同时监听ipv4/ipv6。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants