mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #456] frpc启动成功,但是穿透失败 #344
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#344
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 @sagexy on GitHub (Sep 8, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/456
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
0.13.0
What operating system and processor architecture are you using (
go env)?server:Centos 6 x86
client:synology nas DS216+II
Configures you used:

frps.ini
frpc.ini

Steps to reproduce the issue:
1.服务器端配置后启动成功
2.群晖nas通过docker安装了frpc配置后启动成功,以下是docker的日志
3.服务端frp控制台显示正常

Describe the results you received:
服务端绑定的vhost_http_port = 88 所以浏览器中用 域名:88 该地址无法访问

另外aria2 rpc也远程失败
Describe the results you expected:
我用域名:88访问的话 正常应该是显示群晖nas的控制台界面
正常远程aria2
Additional information you deem important (e.g. issue happens only occasionally):
有一段时间我服务端vhost_http_port绑定的80端口 然后直接通过域名访问 可以打开群晖的控制台界面,但是过了一段时间又打不开了
Can you point out what caused this issue (optional)
我感觉是不是我frpc.ini的某些参数配置错误导致的?另外是不是每次修改了frpc.ini 群晖都需要重启一下
@DiamondYuan commented on GitHub (Sep 8, 2017):
不需要重启,建议直接使用docker来安装在群晖上。
@sagexy commented on GitHub (Sep 8, 2017):
@GeorgeYuen 我就是直接通过docker安装的frp 但是不知道哪里配置错了 导致穿透失败
@DiamondYuan commented on GitHub (Sep 8, 2017):
@sagexy 你frp的网络模式选择错误了。应该选择host模式。
就是这种时候选择和主机相同。
@sagexy commented on GitHub (Sep 8, 2017):
@GeorgeYuen host模式是应该怎么搞的? 具体我应该怎么修改frps.ini和frpc.ini?
@DiamondYuan commented on GitHub (Sep 8, 2017):
docker启动frp的时候选择高级设置-网络
使用与docker host相同的网络。那里打勾
@sagexy commented on GitHub (Sep 8, 2017):
@GeorgeYuen 打钩了 也新建了一个启动了

docker日志里也显示start proxy success
但是通过 域名:88 还是访问不了
我的frpc.ini设置

这里有没有问题呢?
@DiamondYuan commented on GitHub (Sep 8, 2017):
把local_ip去掉试试看
@sagexy commented on GitHub (Sep 8, 2017):
local_ip去掉也不行
填127.0.0.1和局域网ip都不行
嗨 好纠结 大神 我还有哪里有问题
@sagexy commented on GitHub (Sep 8, 2017):
@GeorgeYuen 经过仔细研究中文说明文档后 我发现我的域名解析地址出错了 应该指向我的frp的远程服务器ip,结果默认synology.me指向的是外网ip