[GH-ISSUE #3616] ssh开启proxy_protocol后无法连接 #2886

Closed
opened 2026-05-05 13:51:48 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @CyrusLee1 on GitHub (Sep 15, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3616

Bug Description

openwrt 客户端开启proxy_protocol 会出现 Connection closed。
服务端日志:
2023/09/14 23:49:10 [I] [proxy.go:199] [354552c8a08dc737] [xxxx] get a user connection [xx.xx.xx.xx:4859]
客户端没有日志
openwrt的日志:
Fri Sep 15 11:48:46 2023 authpriv.info dropbear[9705]: Child connection from 10.0.0.1:39512
Fri Sep 15 11:48:46 2023 authpriv.info dropbear[9705]: Exit before auth from <10.0.0.1:39512>: Exited normally
关闭proxy_protocol后可以正常连接

frpc Version

0.51.3

frps Version

0.51.3

System Architecture

openwrt / amd64

Configurations

客户端配置
[common]
server_addr=xx.xx.xx.xx
server_port=xxxx
token=xxxxxxxx
user=xxxx
log_level=info
log_max_days=3
protocol=tcp
log_file=/var/etc/frp/frpc.log
tcp_mux=true
tls_enable=true
login_fail_exit=false

[openwrt-ssh]
type=tcp
remote_port=xxxxx
local_ip=10.0.0.1
local_port=22
use_encryption=true
use_compression=true
proxy_protocol_version=v2

服务端配置
[common]
bind_port = xxxx
quic_bind_port = xxxx
token=xxxxxxxx

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @CyrusLee1 on GitHub (Sep 15, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3616 ### Bug Description openwrt 客户端开启proxy_protocol 会出现 Connection closed。 服务端日志: 2023/09/14 23:49:10 [I] [proxy.go:199] [354552c8a08dc737] [xxxx] get a user connection [xx.xx.xx.xx:4859] 客户端没有日志 openwrt的日志: Fri Sep 15 11:48:46 2023 authpriv.info dropbear[9705]: Child connection from 10.0.0.1:39512 Fri Sep 15 11:48:46 2023 authpriv.info dropbear[9705]: Exit before auth from <10.0.0.1:39512>: Exited normally 关闭proxy_protocol后可以正常连接 ### frpc Version 0.51.3 ### frps Version 0.51.3 ### System Architecture openwrt / amd64 ### Configurations 客户端配置 [common] server_addr=xx.xx.xx.xx server_port=xxxx token=xxxxxxxx user=xxxx log_level=info log_max_days=3 protocol=tcp log_file=/var/etc/frp/frpc.log tcp_mux=true tls_enable=true login_fail_exit=false [openwrt-ssh] type=tcp remote_port=xxxxx local_ip=10.0.0.1 local_port=22 use_encryption=true use_compression=true proxy_protocol_version=v2 服务端配置 [common] bind_port = xxxx quic_bind_port = xxxx token=xxxxxxxx ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@CyrusLee1 commented on GitHub (Sep 15, 2023):

抱歉。ssh好像并不支持proxy_protocol。

<!-- gh-comment-id:1720714709 --> @CyrusLee1 commented on GitHub (Sep 15, 2023): 抱歉。ssh好像并不支持proxy_protocol。
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#2886
No description provided.