[GH-ISSUE #142] 请问有现成能用的公网服务吗 #87

Closed
opened 2026-05-05 11:43:40 -06:00 by gitea-mirror · 16 comments
Owner

Originally created by @Qquanwei on GitHub (Oct 21, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/142

RT

Originally created by @Qquanwei on GitHub (Oct 21, 2016). Original GitHub issue: https://github.com/fatedier/frp/issues/142 RT
Author
Owner

@maodanp commented on GitHub (Oct 21, 2016):

目前还没有,只能个人租用公网服务器。后续会考虑搭建公网平台

<!-- gh-comment-id:255300293 --> @maodanp commented on GitHub (Oct 21, 2016): 目前还没有,只能个人租用公网服务器。后续会考虑搭建公网平台
Author
Owner

@szkins commented on GitHub (Oct 21, 2016):

在阿里云上申请域名和ECS服务期,现在很便宜了。
搭建也很简单,我按照官方说明,几分钟就把frp搭好。运行了几天,目前为止是稳定的

<!-- gh-comment-id:255300789 --> @szkins commented on GitHub (Oct 21, 2016): 在阿里云上申请域名和ECS服务期,现在很便宜了。 搭建也很简单,我按照官方说明,几分钟就把frp搭好。运行了几天,目前为止是稳定的
Author
Owner

@Qquanwei commented on GitHub (Oct 21, 2016):

只是想代理一下ssh ,不是跑服务,所以想即开即用的

<!-- gh-comment-id:255301098 --> @Qquanwei commented on GitHub (Oct 21, 2016): 只是想代理一下ssh ,不是跑服务,所以想即开即用的
Author
Owner

@cnluzhang commented on GitHub (Oct 21, 2016):

@Qquanwei

[common]
server_addr = 123.57.213.147
server_port = 4443
privilege_token = M2u49iNLeuadr6
[自定义内容]
type = http
local_ip = 127.0.0.1
local_port = 4000
use_gzip = true
use_encryption = true
pool_count = 20
privilege_mode = true
custom_domains = 自定义内容.tunnel.mobi

没有HTTPS,默认在HTTP域名前面加HTTPS即可访问HTTPS

<!-- gh-comment-id:255302141 --> @cnluzhang commented on GitHub (Oct 21, 2016): @Qquanwei [common] server_addr = 123.57.213.147 server_port = 4443 privilege_token = M2u49iNLeuadr6 [自定义内容] type = http local_ip = 127.0.0.1 local_port = 4000 use_gzip = true use_encryption = true pool_count = 20 privilege_mode = true custom_domains = 自定义内容.tunnel.mobi 没有HTTPS,默认在HTTP域名前面加HTTPS即可访问HTTPS
Author
Owner

@cnluzhang commented on GitHub (Oct 21, 2016):

@Qquanwei 才发现你要SSH,那么开一堆高端口吧

<!-- gh-comment-id:255304686 --> @cnluzhang commented on GitHub (Oct 21, 2016): @Qquanwei 才发现你要SSH,那么开一堆高端口吧
Author
Owner

@Qquanwei commented on GitHub (Oct 21, 2016):

@cnluzhang 只要一个就行了 另外感谢提供主机 :) 等我编译好试试

<!-- gh-comment-id:255305365 --> @Qquanwei commented on GitHub (Oct 21, 2016): @cnluzhang 只要一个就行了 另外感谢提供主机 :) 等我编译好试试
Author
Owner

@Qquanwei commented on GitHub (Oct 21, 2016):

@cnluzhang 连接不上。
按照上面的地址我的配置如下

[common]
server_addr = 123.57.213.147
server_port = 4443
privilege_token = M2u49iNLeuadr6

[ssh]
local_port = 3000

本地开启
echo 'hello' | nc -l 3000

启动frpc

./frpc -c ./config.ini

然后执行
nc 123.57.213.147 4443

没反应 (我给一个失败的地址也是没反应,所以应该是服务器连接失败?)

PS: 防火墙没开

<!-- gh-comment-id:255321887 --> @Qquanwei commented on GitHub (Oct 21, 2016): @cnluzhang 连接不上。 按照上面的地址我的配置如下 ``` [common] server_addr = 123.57.213.147 server_port = 4443 privilege_token = M2u49iNLeuadr6 [ssh] local_port = 3000 ``` 本地开启 `echo 'hello' | nc -l 3000` 启动frpc `./frpc -c ./config.ini` 然后执行 `nc 123.57.213.147 4443` 没反应 (我给一个失败的地址也是没反应,所以应该是服务器连接失败?) PS: 防火墙没开
Author
Owner

@cnluzhang commented on GitHub (Oct 21, 2016):

[common]
server_addr = 123.57.213.147
server_port = 4443
privilege_token = M2u49iNLeuadr6

[ssh]
privilege_mode = true
local_port = 22
remote_port = 55555

感觉应该这样写,然后用55555去访问。

<!-- gh-comment-id:255322520 --> @cnluzhang commented on GitHub (Oct 21, 2016): [common] server_addr = 123.57.213.147 server_port = 4443 privilege_token = M2u49iNLeuadr6 [ssh] privilege_mode = true local_port = 22 remote_port = 55555 感觉应该这样写,然后用55555去访问。
Author
Owner

@Qquanwei commented on GitHub (Oct 21, 2016):

@cnluzhang 远程主机积极断开
去连接55555了,结果 refuse

<!-- gh-comment-id:255323818 --> @Qquanwei commented on GitHub (Oct 21, 2016): @cnluzhang 远程主机积极断开 去连接55555了,结果 refuse
Author
Owner

@cnluzhang commented on GitHub (Oct 21, 2016):

@Qquanwei try again?

输出如果没有以下三行,就有问题
2016/10/21 16:56:44 [main.go:109] [I] Start frpc success
2016/10/21 16:56:44 [control.go:185] [I] ProxyName [xxxxxxxxxx], connect to server [123.57.213.147:4443] success!
2016/10/21 16:56:44 [control.go:193] [I] Start to send heartbeat to frps

<!-- gh-comment-id:255330744 --> @cnluzhang commented on GitHub (Oct 21, 2016): @Qquanwei try again? 输出如果没有以下三行,就有问题 2016/10/21 16:56:44 [main.go:109] [I] Start frpc success 2016/10/21 16:56:44 [control.go:185] [I] ProxyName [xxxxxxxxxx], connect to server [123.57.213.147:4443] success! 2016/10/21 16:56:44 [control.go:193] [I] Start to send heartbeat to frps
Author
Owner

@Qquanwei commented on GitHub (Oct 21, 2016):

@cnluzhang 谢谢,可以了

<!-- gh-comment-id:255331915 --> @Qquanwei commented on GitHub (Oct 21, 2016): @cnluzhang 谢谢,可以了
Author
Owner

@rod-pang commented on GitHub (Oct 24, 2016):

@cnluzhang 请问 frps 是要放在自己的云主机上么?

<!-- gh-comment-id:255785277 --> @rod-pang commented on GitHub (Oct 24, 2016): @cnluzhang 请问 frps 是要放在自己的云主机上么?
Author
Owner

@zzjin commented on GitHub (Nov 9, 2016):

@cnluzhang 使用web代理还是出问题,卡在第一行,只输出了[main.go:109] [I] Start frpc success

<!-- gh-comment-id:259330872 --> @zzjin commented on GitHub (Nov 9, 2016): @cnluzhang 使用web代理还是出问题,卡在第一行,只输出了[main.go:109] [I] Start frpc success
Author
Owner

@cnluzhang commented on GitHub (Nov 9, 2016):

@fatedier 第三次遇到这种问题了,怎么排故障比较合适?
通常重启服务端就正常了

<!-- gh-comment-id:259331130 --> @cnluzhang commented on GitHub (Nov 9, 2016): @fatedier 第三次遇到这种问题了,怎么排故障比较合适? 通常重启服务端就正常了
Author
Owner

@fatedier commented on GitHub (Nov 10, 2016):

@cnluzhang 可以单独开个 issue 描述一下现象,再出现问题时最好用客户端连接的同时抓一下服务器端的 tcp包,看一下交互的过程。

<!-- gh-comment-id:259714463 --> @fatedier commented on GitHub (Nov 10, 2016): @cnluzhang 可以单独开个 issue 描述一下现象,再出现问题时最好用客户端连接的同时抓一下服务器端的 tcp包,看一下交互的过程。
Author
Owner

@severloh commented on GitHub (Nov 16, 2016):

配置内网的web服务器无法访问。
web服务器是windows10 系统 配置 信息如下

frpc.ini

[common]
server_addr = 123.56.251.141
server_port = 5443
auth_token = 123

[web]
type = http
local_port = 8080

frps.ini

公网服务器配置是
[common]
bind_port = 5443
vhost_http_port = 6000

[web]
type = http
custom_domains = www.lpf710282897.com
auth_token = 123

www.lpf710282897.com:6000 访问失败 大家是怎么配置的呢? 我是新手,端口都是打开的,内网启动后显示的ProxyName [web], connect to server[123.56.251.141:5443] success!

<!-- gh-comment-id:260864859 --> @severloh commented on GitHub (Nov 16, 2016): 配置内网的web服务器无法访问。 web服务器是windows10 系统 配置 信息如下 # frpc.ini [common] server_addr = 123.56.251.141 server_port = 5443 auth_token = 123 [web] type = http local_port = 8080 # frps.ini 公网服务器配置是 [common] bind_port = 5443 vhost_http_port = 6000 [web] type = http custom_domains = www.lpf710282897.com auth_token = 123 www.lpf710282897.com:6000 访问失败 大家是怎么配置的呢? 我是新手,端口都是打开的,内网启动后显示的ProxyName [web], connect to server[123.56.251.141:5443] success!
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#87
No description provided.