[GH-ISSUE #4529] mysql connect to local service [172.18.0.2:3308] error: dial tcp 172.18.0.2:3308: connect: connection refused #3579

Closed
opened 2026-05-05 14:17:56 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @huangkemingyyds on GitHub (Nov 9, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4529

Bug Description

proxy mysql to public ip .

frpc Version

0.60.0

frps Version

0.60.0

System Architecture

linux/amd64

Configurations

FRPC

服务端地址 https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml

serverAddr = "xxx.xxx.xx.xxx"

服务端配置的bindPort

serverPort = 7000

token =

proxies

代理应用名称,根据自己需要进行配置

name = "mysql8"

代理类型 有tcp\udp\stcp\p2p

type = "tcp"

客户端代理应用IP

localIP = "172.18.0.2"

客户端代理应用端口

localPort = 3308

服务端反向代理端口;提供给外部访问

remotePort = 3306

proxies

代理应用名称,根据自己需要进行配置

name = "portainer"

代理类型 有tcp\udp\stcp\p2p

type = "tcp"

客户端代理应用IP

localIP = "172.17.0.2"

客户端代理应用端口

localPort = 9000

服务端反向代理端口;提供给外部访问

remotePort = 9330

FRPS

https://github.com/fatedier/frp/blob/dev/conf/frps_full_example.toml

[common]

监听端口

bind_port = 7000

面板端口

dashboard_port = 7500

登录面板的账号密码(修改成自己的)

dashboard_user = admin
dashboard_pwd = admin

token =

Logs

image
image
image
image

Steps to reproduce

portainer SUSEECC , BUT mysql FAIL

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @huangkemingyyds on GitHub (Nov 9, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4529 ### Bug Description proxy mysql to public ip . ### frpc Version 0.60.0 ### frps Version 0.60.0 ### System Architecture linux/amd64 ### Configurations **FRPC** # 服务端地址 https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml serverAddr = "xxx.xxx.xx.xxx" # 服务端配置的bindPort serverPort = 7000 # token = [[proxies]] # 代理应用名称,根据自己需要进行配置 name = "mysql8" # 代理类型 有tcp\udp\stcp\p2p type = "tcp" # 客户端代理应用IP localIP = "172.18.0.2" # 客户端代理应用端口 localPort = 3308 # 服务端反向代理端口;提供给外部访问 remotePort = 3306 [[proxies]] # 代理应用名称,根据自己需要进行配置 name = "portainer" # 代理类型 有tcp\udp\stcp\p2p type = "tcp" # 客户端代理应用IP localIP = "172.17.0.2" # 客户端代理应用端口 localPort = 9000 # 服务端反向代理端口;提供给外部访问 remotePort = 9330 **FRPS** # https://github.com/fatedier/frp/blob/dev/conf/frps_full_example.toml [common] # 监听端口 bind_port = 7000 # 面板端口 dashboard_port = 7500 # 登录面板的账号密码(修改成自己的) dashboard_user = admin dashboard_pwd = admin # token = ### Logs ![image](https://github.com/user-attachments/assets/da88207d-ddf6-4429-9ee9-f241820dbc46) ![image](https://github.com/user-attachments/assets/f8c11833-f090-424e-a3fa-239166f10e21) ![image](https://github.com/user-attachments/assets/fbf63463-f4ae-4d98-8ab3-5f7a2449a0df) ![image](https://github.com/user-attachments/assets/7aedd8d4-2725-4b7f-8750-83e83920a41a) ### Steps to reproduce portainer SUSEECC , BUT mysql FAIL ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@huangkemingyyds commented on GitHub (Nov 9, 2024):

localPort 修改为使用内网id 不使用容器id 。 已经连上

<!-- gh-comment-id:2466304072 --> @huangkemingyyds commented on GitHub (Nov 9, 2024): localPort 修改为使用内网id 不使用容器id 。 已经连上
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3579
No description provided.