[GH-ISSUE #3406] 本地端口转发支持,LocalPort Forwarding support [Feature Request] #2724

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

Originally created by @lovitus on GitHub (Apr 13, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3406

Describe the feature request

frpc映射到frps的127.0.0.1的端口,
我想要用另一个frpc把这些端口带到本地127.0.0.1去使用.
希望能支持 本地端口转发. 比如

type=ltcp
remote_ip:
remote_port:
local_ip:
local_port: [port which start listening on the frpc client ]

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @lovitus on GitHub (Apr 13, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3406 ### Describe the feature request frpc映射到frps的127.0.0.1的端口, 我想要用另一个frpc把这些端口带到本地127.0.0.1去使用. 希望能支持 本地端口转发. 比如 ``` type=ltcp remote_ip: remote_port: local_ip: local_port: [port which start listening on the frpc client ] ``` ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [X] Security - [X] User Experience - [ ] Test and Release - [X] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:45:20 -06:00
Author
Owner

@litrycn commented on GitHub (Apr 14, 2023):

stcp

[secret_tcp]
# If the type is secret tcp, remote_port is useless
# Who want to connect local port should deploy another frpc with stcp proxy and role is visitor
type = stcp
# sk used for authentication for visitors
sk = abcdefg
local_ip = 127.0.0.1
local_port = 22
use_encryption = false
use_compression = false

# user of frpc should be same in both stcp server and stcp visitor
[secret_tcp_visitor]
# frpc role visitor -> frps -> frpc role server
role = visitor
type = stcp
# the server name you want to visitor
server_name = secret_tcp
sk = abcdefg
# connect this address to visitor stcp server
bind_addr = 127.0.0.1
bind_port = 9000
use_encryption = false
use_compression = false
<!-- gh-comment-id:1508110342 --> @litrycn commented on GitHub (Apr 14, 2023): stcp ``` [secret_tcp] # If the type is secret tcp, remote_port is useless # Who want to connect local port should deploy another frpc with stcp proxy and role is visitor type = stcp # sk used for authentication for visitors sk = abcdefg local_ip = 127.0.0.1 local_port = 22 use_encryption = false use_compression = false # user of frpc should be same in both stcp server and stcp visitor [secret_tcp_visitor] # frpc role visitor -> frps -> frpc role server role = visitor type = stcp # the server name you want to visitor server_name = secret_tcp sk = abcdefg # connect this address to visitor stcp server bind_addr = 127.0.0.1 bind_port = 9000 use_encryption = false use_compression = false ```
Author
Owner

@github-actions[bot] commented on GitHub (May 15, 2023):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:1547047968 --> @github-actions[bot] commented on GitHub (May 15, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#2724
No description provided.