-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Ban C Class networks / C-Class-recidive #953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
My output is
I would set |
Could it be implemented as 1 sqlite query? |
@szepeviktor Members of a class C network may not be from the same country - so I think this is not a good idea in practice. What correlation is there between one IP being banned and every other IP in the same class C network (other than being in the same class C network, obviously)? |
Here I read that a class C network has 256 IP-s, so |
BTW. You may keep this limit at 100 to be sure it is a botnet. |
Yes, that is what a class C address is - if classful networking was still used (see below). RIR's are responsible for multiple countries - and can (and do) allocate networks to different countries which are both subsets of the same /24 network (e.g. a /25 to an ISP in Germany and the other /25 to an ISP in Ukraine). There is no basis for what you are attempting to do, so I don't think it matters what limit or threshold - as associating all members of the /24 is flawed logic from the start. I was using "class C network" as a general term for a /24 network. From the wikipedia article you cited: |
Because fail2ban sends me more than 50 emails I still do: ## disable auth from attackers
<FilesMatch "(wp-login|xmlrpc)\.php$">
<Limit POST>
Order Allow,Deny
Allow from all
# BT Italia S.p.A.
Deny from 78.4.0.0/16
Deny from 78.5.0.0/16
Deny from 78.6.0.0/16
Deny from 78.7.0.0/16
Deny from 78.7.115.0/24
# Fastweb S.p.A.
Deny from 89.96.0.0/15
Deny from 93.48.0.0/13
Deny from 93.56.0.0/14
Deny from 93.60.0.0/15
</Limit>
</FilesMatch> |
Do you have something on your mind? |
@szepeviktor Given what I said and the two IPs you found that are so close, but allocated to different countries, do you still believe it is a good idea to block entire /24's based on one or some number of individual IP's being banned? |
No. It is bad idea. |
Could you help me reduce the number of emails? Maybe based on whois |
I think the email quantity topic is covered in Issue #832 Can this one be closed? |
I am sorry. I can do only debugging in python. It would be nice to have less emails. |
Is it a good idea to ban the whole C Class after
N
bans in it?The text was updated successfully, but these errors were encountered: