mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3798] [Feature Request] :关于移动光猫tcp转发的问题 #3022
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#3022
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 @bzlzm on GitHub (Nov 25, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3798
Describe the feature request
一个中国移动宽带送的光猫,型号H2-3,默认drop阻断了ipv6入站,现实情况是这光猫是朋友的家里的,他家也没电脑,手机不太容易操作破解telenet。目前是光猫拨号且带有wifi,现在在这台光猫下接了一台x86的linux server小主机,需要外网ssh进入这个小主机,所以在这台linux上安装了docker frpc 0.39.1,第一次使用frp,目前配置一切正常。可以实现穿透访问linux上安装的服务。
这个linux小主机IP 192.168.1.33,frpc.ini配置如下
[common]
server_addr = 155.155.155.155
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 7001
[mao]
type = tcp
local_ip = 192.168.1.1
local_port = 80
remote_port = 7002
现在的问题是我在家里浏览器输入 155.155.155.155:7002 访问 给跳转到 http://192.168.1.1/webcmcc/login.html 了,才接触frp,也查了不少资料,也试过在服务器加入vhost后用http协议,可仍然不行。请各位吴彦祖指点一下这种情况该如何配置,谢谢!
[mao]
type = http
local_ip = 192.168.1.1
local_port = 80
custom_domains = www.abc.com
服务端
vhost_http_port = 9099
然后用www.abc.com:9099也打不开。
Describe alternatives you've considered
No response
Affected area
@superzjg commented on GitHub (Nov 25, 2023):
我试过了,湖南联通、湖南移动的光猫界面使用 tcp 、http等类型都无法代理,浏览器跳转异常。有点搞不懂,既然是转发而已,为何浏览器打不开。可以确定不是配置问题。
输入密码以后,提示:
400 Bad Reuqest
Your request has bad syntax or is inherently impossible to satisfy.
后面用vpn才能访问。
@xqzr commented on GitHub (Nov 25, 2023):
https://gofrp.org/zh-cn/docs/reference/proxy/#httpproxyconfig
@bzlzm commented on GitHub (Nov 26, 2023):
大佬能说得明白些嘛,不会用啊
[mao-http]
type = http
local_ip = 192.168.1.1
local_port = 80
custom_domains = www.abc.com
host_header_rewrite = www.abc.com
服务器vhost_http_port = 9099 这样配置仍然www.abc.com:9099 仍然跳转到 http://192.168.1.1/webcmcc/login.html
@bzlzm commented on GitHub (Nov 26, 2023):
谢谢大佬,已经解决,frpc.ini参数里加入 host_header_rewrite = 192.168.1.1 即可解决。再次感谢!
@sungamma commented on GitHub (Jan 10, 2025):
一样的问题,你怎么用vpn解决的,能细细说说吗
@superzjg commented on GitHub (Jan 11, 2025):
我是在公网端(路由器)部署vpn服务器(用的SoftEther,教程),客户端(路由器)接入这个内网,使两个局域网合成一个虚拟网,访问自然没有问题。
@84896150 commented on GitHub (Jan 14, 2025):
请问下我加了host_header_rewrite = 192.168.1.1,还是可以打开登录界面,但是登录不了。这是什么原因呢?