frp icon indicating copy to clipboard operation
frp copied to clipboard

Print detailed information about connection termination to enable external programmes to track connection status from the log

Open kenvix opened this issue 1 month ago • 2 comments

WHY

Currently, frps only prints detailed connection information upon connection establishment, whereas when the connection is closed it merely displays join connections closed.

This hinders external programmes such as fail2ban from tracking connection lifecycles effectively. This pull request will enable connection information to be printed upon termination as well, facilitating the tracking of connections.

kenvix avatar Dec 02 '25 19:12 kenvix

Relying on log format for external programs like fail2ban is fragile - log messages aren't a stable API and can change anytime.

fatedier avatar Dec 03 '25 02:12 fatedier

I understand the risks, but using fail2ban to track logs generated by frps to against SSH brute-force attacks has become the most widely used solution.

This PR aims to improve the accuracy of detection of existing solutions.

kenvix avatar Dec 03 '25 04:12 kenvix