In <[EMAIL PROTECTED]> Chris Hastie <[EMAIL PROTECTED]> writes:
> that jumps out is that the vast majority of abusive clients that I'm > seeing are polling almost exactly every 15 seconds. I also see a lot of 30s and 60s clients. > Does anyone have any idea what this client might be? Nope, but I haven't spent much time on these either. It is the clients that send 10 packets per second that I really worry about. > 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. > 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. In my experience with blocking the 1pps-10pps clients is that they don't increase their polling rates because they have a stupid firewall that is already blocking the packets after they have crossed the internet. The don't poll any less often, but if you have an asymmetric connection, chances are that your upload bandwidth is less than your download bandwidth. This may not be the case for these 15s per packet clients. Also, I had a hand full of cases where some ntp client would send me a request, my server would send a reply, and then their firewall would send an ICMP host-unreachable packet. By blocking them, I could cut the amount of data they send to me in half, and eliminate what I send to them. I guess my point is that if you are collecting stats, you should check to make sure that blocking the abusive clients is actually helping and not hurting. It could easily go either way. > Should I deny (discard packets), unreach host (discard and send > ICMP host unreachable) or unreach host-prohib? Or something else? I've > tried each of those three and all seem to have relatively little > effect on the vast majority of clients. When I last pondered modifying the ntp_clients_stats script to do what you are doing, I thought about trying to set up ipchains rules that would randomly send an ICMP packet maybe 10% of the time and drop the rest. -wayne _______________________________________________ timekeepers mailing list [email protected] https://fortytwo.ch/mailman/cgi-bin/listinfo/timekeepers
