Open tsawyer opened 1 year ago
I'm attempting to use the Events Management system to disable incoming connections with cop,49. However, Events Management seems broken per Issue #102.
This looks like it will handle this issue. However a fix for events was needed and is being tested.
MAXLINKS = v|e|$[${RPT_NUMALINKS} >= 1] ; Test inbound links for GE n links
cop,49 = c|t|MAXLINKS ; Disable links if MAXLINKS goes true
cop,50 = c|f|MAXLINKS ; Enable links if MAXLINKS goes false
This thread on community raises a number of social if not also technical issues. https://community.allstarlink.org/t/blocking-bad-actors-via-rf/19899/35
Perhaps there is a way to disconnect the last node that connected if xnode RPT_NUMLINKS exceeds a rpt.conf parameter (perhaps maxlinkednodes=n).
For outbound connects RPT_NUMLINKS could be checked before the connect is made, thus preventing the connection. That may not be possible on inbound connects but it would be desirable.
Please note that RPT_NUMLINKS doesn't always update instantly. It does update eventually, but not sure when or how. Seems to occur only on the node connecting into the others.