[GH-ISSUE #2313] 多个frpc,https流量转发到了错误的frpc上(不知道是frp的bug还是我配置的问题) #1835

Closed
opened 2026-05-05 13:11:10 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @h3110w0r1d-y on GitHub (Mar 19, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2313

一个云服务器,一个内网服务器,云服务器上运行着frps和frpc,frps监听了443,内网服务器上运行着frpc,
问题:访问aaa.com之后,接着访问bbb.com,就会变成aaa.com的页面。重启浏览器后直接访问bbb.com,正常,但是一旦访问过aaa.com之后,再访问bbb.com就会出错。
不知道这是我配置问题还是frp的bug
云服务器frpc配置文件如下:

[common]
token = *****
server_addr = 云服务器内网IP
server_port = 6490
tls_enable = true

[my_https]
type = https
local_ip = 127.0.0.1
local_port = 443
use_encryption = false
use_compression = false
custom_domains = aaa.com

云服务器上的frps配置文件:

[common]
bind_port = 6490
bind_addr = 云服务器内网IP
token = ********
vhost_http_port = 80
vhost_https_port = 443
subdomain_host = abc.bbb.com

内网服务器上的frpc配置文件

[common]
token = ******
server_addr = 云服务器IP
server_port = 6490
pool_count = 2000
tls_enable = true

[aaa_https]
type = https
local_ip = 127.0.0.1
local_port = 443
use_encryption = true
use_compression = true
custom_domains = abc.bbb.com,bbb.com

Originally created by @h3110w0r1d-y on GitHub (Mar 19, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2313 一个云服务器,一个内网服务器,云服务器上运行着frps和frpc,frps监听了443,内网服务器上运行着frpc, 问题:访问aaa.com之后,接着访问bbb.com,就会变成aaa.com的页面。重启浏览器后直接访问bbb.com,正常,但是一旦访问过aaa.com之后,再访问bbb.com就会出错。 不知道这是我配置问题还是frp的bug 云服务器frpc配置文件如下: ```ini [common] token = ***** server_addr = 云服务器内网IP server_port = 6490 tls_enable = true [my_https] type = https local_ip = 127.0.0.1 local_port = 443 use_encryption = false use_compression = false custom_domains = aaa.com ``` 云服务器上的frps配置文件: ```ini [common] bind_port = 6490 bind_addr = 云服务器内网IP token = ******** vhost_http_port = 80 vhost_https_port = 443 subdomain_host = abc.bbb.com ``` 内网服务器上的frpc配置文件 ```ini [common] token = ****** server_addr = 云服务器IP server_port = 6490 pool_count = 2000 tls_enable = true [aaa_https] type = https local_ip = 127.0.0.1 local_port = 443 use_encryption = true use_compression = true custom_domains = abc.bbb.com,bbb.com ```
Author
Owner

@h3110w0r1d-y commented on GitHub (Mar 19, 2021):

用了0.36版本的https2https插件,解决了这个问题,这样应该相当于多加解密了一次吧。
但是有新的问题导致在我的应用场景中无法使用新版本的frps #2317
目前是frps0.35和frpc0.36混搭哈哈哈。

<!-- gh-comment-id:802865389 --> @h3110w0r1d-y commented on GitHub (Mar 19, 2021): 用了0.36版本的https2https插件,解决了这个问题,这样应该相当于多加解密了一次吧。 但是有新的问题导致在我的应用场景中无法使用新版本的frps #2317 , 目前是frps0.35和frpc0.36混搭哈哈哈。
Author
Owner

@Sxxjava commented on GitHub (Jun 12, 2021):

我也遇到这个问题, https2https配置后会有其他的问题吗?

<!-- gh-comment-id:860105809 --> @Sxxjava commented on GitHub (Jun 12, 2021): 我也遇到这个问题, https2https配置后会有其他的问题吗?
Author
Owner

@ax2009live commented on GitHub (Aug 24, 2021):

#628
把通配域名证书改成单域名证书,这个问题也困扰我很久,我是通过这个解决的!不知道楼主是不是这种问题;

<!-- gh-comment-id:904743533 --> @ax2009live commented on GitHub (Aug 24, 2021): #628 把通配域名证书改成单域名证书,这个问题也困扰我很久,我是通过这个解决的!不知道楼主是不是这种问题;
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#1835
No description provided.