mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3430] [Feature Request] Support for remote_unix_path #2746
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#2746
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 @pierre-pretorius on GitHub (Apr 29, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3430
Describe the feature request
Below is a very simple example that is already possible:
It would be very useful if you can create a remote unix socket instead of a remote listening port:
Why? If the server is exposing these ports through something like nginx or a custom application, then it can connect via unix socket instead of TCP socket to scale to more clients. Currently if there are many clients, it will cause many listening connections and sockets:
Describe alternatives you've considered
No response
Affected area
@fatedier commented on GitHub (May 4, 2023):
I am somewhat concerned about the potential security risks. Because UDS is often used in various Linux tools, there may be a risk of hijacking.
In the scenario of intranet penetration, such optimization can be almost negligible.
This should not be a big problem. For the HTTP protocol, there is no need to do mapping through ports, only through
vhost_http_portto reuse the port. With proper configuration, Linux can handle a very high number of concurrent requests.@pierre-pretorius commented on GitHub (Jun 22, 2023):
Similar to the
allow_portssetting, there could be aallow_unix_pathwhere you could limit usage to be within a certain directory such as/var/run/some_app/.I understand if this request is too specific to our usecase. We can consider forking the project if we run into problems with the existing TCP approach in the future. I note what you say about the
vhost_http_port, we will re-evaluate this option. I believe in the past there was an issue with using websockets through it.@fatedier commented on GitHub (Jun 25, 2023):
If this requirement is commonly present, then we can consider it.
I tend to prefer solving the problems encountered in the current situation first, and only consider other solutions when it is truly impossible to solve them. You can provide more information about the problem and if possible, try to reproduce it locally. This will help me identify the root cause of the issue.
@github-actions[bot] commented on GitHub (Oct 12, 2023):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.