frp 穿透后网速过慢

2023-03-22 13:46:15 +08:00
 hzjseasea

之前在良心云买了一台服务器,配置过低了,然后我自己家里的台式配置高点,我想把服务器+frp 的方式访问到家里面,现在网络都打通了,但是 ssh 上去会非常的卡,请问这是服务器带宽的问题吗,有没有专门做中转的服务器的

本地机器 ping 中转的延时如下 64 bytes from xxxx: icmp_seq=0 ttl=64 time=0.737 ms 64 bytes from xxxx: icmp_seq=1 ttl=64 time=0.260 ms 64 bytes from xxxx: icmp_seq=2 ttl=64 time=0.359 ms 64 bytes from xxxx: icmp_seq=3 ttl=64 time=0.633 ms 64 bytes from xxxx: icmp_seq=4 ttl=64 time=0.291 ms 64 bytes from xxxx: icmp_seq=5 ttl=64 time=0.398 ms 64 bytes from xxxx: icmp_seq=6 ttl=64 time=0.409 ms 64 bytes from xxxx: icmp_seq=7 ttl=64 time=0.271 ms 64 bytes from xxxx: icmp_seq=8 ttl=64 time=0.539 ms 64 bytes from xxxx: icmp_seq=9 ttl=64 time=1.017 ms 64 bytes from xxxx: icmp_seq=10 ttl=64 time=0.397 ms 64 bytes from xxxx: icmp_seq=11 ttl=64 time=0.231 ms 64 bytes from xxxx: icmp_seq=12 ttl=64 time=0.373 ms 64 bytes from xxxx: icmp_seq=13 ttl=64 time=0.310 ms 64 bytes from xxxx: icmp_seq=14 ttl=64 time=0.333 ms 64 bytes from xxxx: icmp_seq=15 ttl=64 time=0.420 ms 64 bytes from xxxx: icmp_seq=16 ttl=64 time=0.399 ms 64 bytes from xxxx: icmp_seq=17 ttl=64 time=0.352 ms 64 bytes from xxxx: icmp_seq=18 ttl=64 time=0.231 ms 64 bytes from xxxx: icmp_seq=19 ttl=64 time=0.378 ms 64 bytes from xxxx: icmp_seq=20 ttl=64 time=0.475 ms 64 bytes from xxxx: icmp_seq=21 ttl=64 time=0.384 ms 64 bytes from xxxx: icmp_seq=22 ttl=64 time=0.346 ms 64 bytes from xxxx: icmp_seq=23 ttl=64 time=0.268 ms 64 bytes from xxxx: icmp_seq=24 ttl=64 time=0.961 ms 64 bytes from xxxx: icmp_seq=25 ttl=64 time=0.575 m

1421 次点击
所在节点    问与答
13 条回复
kkl00231sop351
2023-03-22 13:53:12 +08:00
腾讯云网络就是这么垃圾
建议换成阿里云
之前从阿里云换到腾讯云差点没把我整吐
同样的带宽配置 阿里云丝滑顺畅 腾讯云卡的让人想砸电脑
kosmgco
2023-03-22 13:57:36 +08:00
ping 延迟 0 点几毫秒,我怀疑你在 ping 局域网
hzjseasea
2023-03-22 14:00:30 +08:00
@kosmgco 我刚刚去确认了一下,还真是云服务器的地址,家里的电脑 ping 云服务的延迟在 70ms 左右,但是我公司的电脑 ping 云服务器就在零点几毫秒... 那原因就在家里电脑到云服务器这段问题里了
hzjseasea
2023-03-22 14:04:20 +08:00
补一下 frp 配置

client

[common]
server_addr = xxx
server_port = 7000
tls_enable = true

[ssh]
type=tcp
local_ip=127.0.0.1
local_port=22
remote_port=6000
use_encryption = true
use_compression = true

server

[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
kcp_bind_port = 7000
# 开启控制面板
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
totoro625
2023-03-22 14:19:21 +08:00
配置看起来没任何问题
已有 tls_enable = true ,use_encryption = true 就重复加密了
建议删除 use_encryption = true 试试
实在不行再删除 use_compression = true 试试

文档: https://gofrp.org/docs/features/common/network/network-tls/
documentzhangx66
2023-03-22 17:55:48 +08:00
公司的电脑 ping 云服务器就在零点几毫秒???????

机房光纤直接 ping 运营商网关都没那么离谱的。感觉哪里搞错了吧??
oylinv
2023-03-22 19:20:34 +08:00
是不是开了翻墙?走了代理?
flynaj
2023-03-22 19:22:45 +08:00
FRP 这类软件是中转,速度肯定是慢,要快用穿透软件,zerotier.
vyseyao9
2023-03-22 19:52:16 +08:00
试试打洞呢
marksaas
2023-03-22 21:07:29 +08:00
别用 frp 了,用 cloudflare 的 tunnel 免费很好用,有 can 加入,欢迎关注 https://t.me/webexplorers 频道,有问题可以 https://t.me/webexploregroup 交流
Silent7Wang
2023-03-23 09:12:01 +08:00
ping 延迟这么低,是不是开了 tun 的 fakeip
hzjseasea
2023-03-23 11:12:46 +08:00
@documentzhangx66 好像是开了梯子的缘故,香港出去就这么快,今天我关了梯子是了一下 300ms....
mikaelson
304 天前
@kkl00231sop351 真的吗?我最近也是从阿里云迁移到腾讯云,从 4M 提升到 20M ,结果 tinc 组网各种掉速,我至今找不到原因,换了 tailscale 也这样。。。不过我 frp 倒是正常

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/926165

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX