找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1004|回复: 11

光猫用frp转发本机WEB端口后不能打开!!

[复制链接]
发表于 2024-12-3 20:13:55 | 显示全部楼层 |阅读模式
frpc端配置:
[common]
server_addr = xxx.xxx.com
server_port = 7000
login_fail_exit = false

[Web1]
local_ip = 192.168.1.1
local_port = 80
remote_port = 10080
use_compression = true

[Web2]
local_ip = 192.168.1.1
local_port = 8080
remote_port = 18080
use_compression = true
192.168.1.1是中兴光猫的IP地址,能成功转发,但是在打开WEB页面的时候会提示报错:

400 Bad Reuqest
Your request has bad syntax or is inherently impossible to satisfy.
进不去下一步,猜想应该是光猫的WEB服务器有IP地址类的限制!? 请教一下大神们有没有什么好的解决办法? frps服务端本地访问我是用的 http://127.0.0.1:18080  打开就会有上述问题! 如果用tailscale的话就能正常打开光猫的管理页面!光猫的TELNET已打开!
 楼主| 发表于 2024-12-4 15:09:47 | 显示全部楼层
目前测试只有华为的hn8145v 的8080端口在转发后可以正常访问,但是它的80端口在转发后会提示about:blank#blocked
 楼主| 发表于 2024-12-5 23:56:04 | 显示全部楼层
顶上去~ 就没有人遇到过这种需求的吗?
发表于 2024-12-6 08:15:05 | 显示全部楼层
是不是防火墙的问题
 楼主| 发表于 2024-12-6 10:56:24 | 显示全部楼层
13856232540 发表于 2024-12-6 00:15
是不是防火墙的问题

我怀疑是光猫的防火墙问题,但是光猫里WEB页面的防火墙设置是关完了
发表于 2024-12-14 11:49:37 | 显示全部楼层
frpc要设置type=https,remote_port设为vhosthttpsport,frps要设置vhosthttpsport,访问地址要走https协议
发表于 2024-12-27 19:12:23 | 显示全部楼层
求告知解决方案
 楼主| 发表于 2025-2-7 20:40:48 | 显示全部楼层
wociao 发表于 2024-12-14 03:49
frpc要设置type=https,remote_port设为vhosthttpsport,frps要设置vhosthttpsport,访问地址要走https协议 ...

不不不,你这个设置也是错误的,光猫本身的80 就是http 不带S。我已经找到办法解决了。
 楼主| 发表于 2025-2-7 20:44:03 | 显示全部楼层

frp要启用socks转发才可以正常访问~
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-7-31 14:15 , Processed in 0.026517 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表