mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2480] TCP端口映射无法正常访问到IIS的应用 #1968
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#1968
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 @zsinba on GitHub (Jul 13, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2480
[REQUIRED] hat version of frp are you using
Version: 0.37.0
[REQUIRED] What operating system and processor architecture are you using
OS: Windows2012
CPU architecture: Xen Aliyun Ecs Server
[REQUIRED] description of errors
有一台服务器启动了IIS(监听20000端口),IIS 启动了多个网站,通过域名区分,所有网站都使用20000端口.
FRPC映射本地20000端口到FRPS的20000端口.
frpc.ini
[webport]
type = tcp
local_ip = 127.0.0.1
local_port = 20000
remote_port = 20000
frps 的ip为 1.1.1.1
使用CDN,HTTPS 访问:
https://www.abc.com( CDN) --- >http://1.1.1.1:20000
问题:
网站400错误
怀疑是使用了HTTPS访问再映射到http协议的时候出的问题. 以前一直这样用没有出问题,最近出问题的.好像是0.37.0开始有这个问题的.
confile
log file
Steps to reproduce the issue
1.
2.
3.
Supplementary information
Can you guess what caused this issue
Checklist:
@zsinba commented on GitHub (Jul 14, 2021):
老板有人吗?
我有尝试添加 协议等于V2在frpc的配置文件,也是不行。
@blizard863 commented on GitHub (Jul 25, 2021):
frpc 和 frps 有报错日志吗 ?
@zsinba commented on GitHub (Jul 25, 2021):
没有报错。
线上最新版本可复现
@blizard863 commented on GitHub (Jul 25, 2021):
“”怀疑是使用了HTTPS访问再映射到http协议的时候出的问题. “”
以前是 http - http 吗?
@zsinba commented on GitHub (Jul 26, 2021):
不是的。
我是直接使用的TCP映射,没有使用HTTP映射;
IIS 使用的是80端口,对外映射了80端口;
把内网的80端口,映射到一台服务器上面的80端口;
192.168.1.123:80 --- 11.22.33.44:80这样的FRP TCP 端口映射 ;
Nginx是HTTPS----访问到:11.22.33.44:80这个HTTP协议上;
Nginx对外是使用HTTPS协议的, 这仅是常规的Nginx端的功能了.
以前也是这样用的,FRP没有出现问题, 是近期发布的FRP更新出现的问题.
使用FRP有几年了 ,不是常见问题.
@blizard863 commented on GitHub (Jul 26, 2021):
恩,我来复现一下。
@zsinba commented on GitHub (Aug 2, 2021):
请问有复现吗?
@blizard863 commented on GitHub (Aug 3, 2021):
没有复现出来,你 frpc 和 frps 的版本一样吗 ?
@zsinba commented on GitHub (Aug 3, 2021):
奇怪了,这应该是必现的呀。 我的FTPC和FRPS是同一套代码编译出来 的。
@zsinba commented on GitHub (Aug 3, 2021):
你看啊: https://showdoc.un-bug.com/web/static/js/app.1773fa4abe372dfac8ef.js
访问这个地址, 出来 的是HTTP Error 400. The request verb is invalid.
这个400,是因为FRPS --FTPC --TCP 端口转发, 只转发了端口,并没有把域名带过去,所以出来了400。
这就是必现的。
@zsinba commented on GitHub (Aug 3, 2021):
这个是打开网页的表现。
因为这是内部系统,短暂的可以中断, 一会我要恢复它。
@zsinba commented on GitHub (Aug 3, 2021):
已经恢复不使用FRPS映射的了,现在线上是正常的。