AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
2 stars 2 forks source link

Maximum linked nodes #91

Open tsawyer opened 1 year ago

tsawyer commented 1 year ago

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.

tsawyer commented 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.

tsawyer commented 1 year ago

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