[GH-ISSUE #3184] remote_port不能设置为22么 #2555

Closed
opened 2026-05-05 13:38:42 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @yutent on GitHub (Nov 24, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3184

Bug Description

服务端22端口是空闲的。
我想把内网中一台机器的ssh端口, 映射到远程的22端口上, 发现不起作用, 也没报错。
换其他端口, 如2222, 就正常。

frpc Version

0.43

frps Version

0.43

System Architecture

linux/amd64

Configurations

.

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 @yutent on GitHub (Nov 24, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3184 ### Bug Description 服务端22端口是空闲的。 我想把内网中一台机器的ssh端口, 映射到远程的22端口上, 发现不起作用, 也没报错。 换其他端口, 如2222, 就正常。 ### frpc Version 0.43 ### frps Version 0.43 ### System Architecture linux/amd64 ### Configurations . ### 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

@Becods commented on GitHub (Nov 24, 2022):

端口冲突

<!-- gh-comment-id:1326459521 --> @Becods commented on GitHub (Nov 24, 2022): 端口冲突
Author
Owner

@yutent commented on GitHub (Nov 25, 2022):

端口冲突

没冲突, 应该只是程序内部不允许设置吧, 我试了几个比较小的端口都不行。 现在用iptables做一层转发来实现22端口了

<!-- gh-comment-id:1326937835 --> @yutent commented on GitHub (Nov 25, 2022): > 端口冲突 没冲突, 应该只是程序内部不允许设置吧, 我试了几个比较小的端口都不行。 现在用iptables做一层转发来实现22端口了
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#2555
No description provided.