Subj : large *.can files make things slow
To   : MRO
From : DaiTengu
Date : Tue Jan 02 2024 11:00 am

 Re: large *.can files make things slow
 By: MRO to Digital Man on Tue Jan 02 2024 07:37 am

MR> So I have an ip.can file that is about 1.3 gigs large, and when it gets
MR> this large there is a very long delay before a user can connect because I
MR> believe the bbs is working on parsing each line and seeing if the ip
MR> matches.   I would assume I would have the same issue with host.can and
MR> other .can files.

MR> I was wondering if there's anything I can do on my end to keep these large
MR> .can files and speed things up, or if synchronet needs some internal
MR> changes.

Do you have some kind of automated system that dumps IPs in there?

It might be worth passing that task off to something that will block those via firewall, like fail2ban or csf/lfd (for Linux). I guess there's something similar for windows (wail2ban? It hasn't been updated in forever but there are forks on github and people claim it still works)

I use csf/lfd on my linux box, much like fail2ban it can watch log files and look for specific lines/words/etc.  It also catches portscans and will block an IP if there are too many connections in a certain time period.

One of these days I should sit down and clean up my scripts for it, then create a wiki page about it.

DaiTengu

...Cross-country skiing is great if you live in a small country.
---
� Synchronet � War Ensemble BBS - The sport is war, total war - warensemble.com