mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[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
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#3579
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 @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
Steps to reproduce
portainer SUSEECC , BUT mysql FAIL
Affected area
@huangkemingyyds commented on GitHub (Nov 9, 2024):
localPort 修改为使用内网id 不使用容器id 。 已经连上