In <[EMAIL PROTECTED]> Chris Hastie <[EMAIL PROTECTED]> writes:
I've also been working on a hack of ntp_clients_stats intended just to extract a list of abusive clients from the dump file and then add block rules for each of these to ipfw.
Let me know if this stuff would work with ipchains.
I've no idea, I've never looked at ipchains. But if you want to investigate I've just dropped the script as it is at the moment into <http://ntp.raggedstaff.net/ntp_stats/ntp_block_abusers.pl>. I'm running it once per hour from crontab.
Still planning on a bit more tweaking, and in particular note that there's no great reason to use XML::Dumper with Data::Serializer other than it's slightly easier to debug what is being dumped, so I'll probably drop that and let Data::Serializer use its default eventually.
Some state information is stored so that once a client ceases to show up as abusive it remains blocked for a period of time (currently I'm using 24 hours). What are people's views on the most appropriate, or rather the most useful, rule?
You should be careful that blocking these ntp clients doesn't cause them to increase their polling rate.
I'm not seeing this at present. But nor am I seeing a general decline in the number of abusive clients. The number stays consistently in the low thirties, with generally about twice that many ipfw rules (rules persist for 24 hours after the client stops being abusive).
-- Chris Hastie _______________________________________________ timekeepers mailing list [email protected] https://fortytwo.ch/mailman/cgi-bin/listinfo/timekeepers
