mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1731] [DISCUSS]Trace access IP and notify #1368
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#1368
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 @rainbend on GitHub (Apr 4, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1731
Motivation
Trace the source IP of the access proxy, and notify other software.
Modification
TraceAccessIpmethod in HandleUserTcpConnection(pxy Proxy, userConn net.Conn, serverCfg config.ServerCommonConf)Result
Based on the above ideas and manager-plugin, I can quickly see who is accessing the proxy.
@fatedier commented on GitHub (Apr 5, 2020):
NewUserConn.HandleUserTcpConnectionmaybe not suitable to inject plugin opeartion. Not all proxy type will call this function such as http, udp. We may need to refctor code If we want to implement this plugin in a graceful way.@rainbend commented on GitHub (Apr 5, 2020):
Hi @fatedier thank you for your quick reply. Do we need to discuss the details of refactoring through WeChat?
@fatedier commented on GitHub (Apr 5, 2020):
@arugal It's convenient for others to track the issue if we discuss here.
I consider that you can first implement this plugin API in your way and describe which proxy types it supports in document, since refactoring is a complex work and i will take much time to redesign it. WDYT?
@rainbend commented on GitHub (Apr 5, 2020):
Agreed
I will initiate a PR based on the comments.