Re: [mailop] too many bad IP blocked

2024-06-22 Thread Ralph Seichter via mailop
* Alessandro Vesely via mailop: > Researchshows that thousands of rules are fine, but hundreds of > thousands bring it on its knees. I attach a picture. Nobody spoke of hundreds of thousands of rules. That includes the OP. Unless this magnitude is ever even remotely reached, I see little incenti

Re: [mailop] too many bad IP blocked

2024-06-22 Thread Alessandro Vesely via mailop
On Fri 21/Jun/2024 18:12:13 +0200 Ralph Seichter via mailop wrote: * Jeff Pang via mailop: given currently I have 3000+ block IPs, every normal client requests to submission, the ip will be checked through those 3000+ list, which slow down the normal client's connection certainly. I consider

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
before it gets resolved I have to take time to do: 1. setup iptables + ipset for fail2ban, or 2. update the system to use nftables, or 3. use null route, and/or 4. use spamhaus XBL Thanks for all the help. regards But I feel like this discussion has been resolved already. -- Jeff Pang jef

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Alan Hodgson via mailop
On Fri, 2024-06-21 at 01:01 +, Ferris, Rhys (SCC) via mailop wrote: > > > > I guess my mentality is a large IPTables is still less of a load > than letting them establish a connection and attempt to > authenticate, but I'm certainly open to better ideas. Somewhat OT, but if you can switch t

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Ralph Seichter via mailop
* Jeff Pang via mailop: > given currently I have 3000+ block IPs, every normal client requests > to submission, the ip will be checked through those 3000+ list, which > slow down the normal client's connection certainly. I consider this is a case "measure, don't guess". I am right now logged into

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Benny Pedersen via mailop
Matus UHLAR - fantomas via mailop skrev den 2024-06-21 17:27: But I feel like this discussion has been resolved already. unless :) i have solve to just know my custummers asn's, and only let there isp asn be allowed, this saves much more lines in shorewall then if i did shorewall blacklisti

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Matus UHLAR - fantomas via mailop
On 2024-06-21 04:53, Jeff Pang via mailop wrote: given currently I have 3000+ block IPs, every normal client requests to submission, the ip will be checked through those 3000+ list, which slow down the normal client's connection certainly. On 21.06.24 10:57, Anthony Howe via mailop wrote: I th

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Anthony Howe via mailop
On 2024-06-21 04:53, Jeff Pang via mailop wrote: given currently I have 3000+ block IPs, every normal client requests to submission, the ip will be checked through those 3000+ list, which slow down the normal client's connection certainly. I think you are worrying about nothing. 3000+ IPv4 o

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Peng via mailop
On 2024-06-21 22:04, Bill Cole via mailop wrote: On 2024-06-20 at 20:10:32 UTC-0400 (Fri, 21 Jun 2024 08:10:32 +0800) Jeff Pang via mailop is rumored to have said: And in an hour it gets double IPs blocked. $ sudo iptables -L -n|grep DROP|wc -l 2805 any idea? About what? Unless you are ser

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Bill Cole via mailop
On 2024-06-21 at 02:56:44 UTC-0400 (Fri, 21 Jun 2024 08:56:44 +0200) Dominique Rousseau via mailop is rumored to have said: Also, if the same IPs are comming back often, you could look the "recidive" rules, for long term ban, and/or (semi)manually check wether IPs are from somme common netblo

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Bill Cole via mailop
On 2024-06-20 at 20:10:32 UTC-0400 (Fri, 21 Jun 2024 08:10:32 +0800) Jeff Pang via mailop is rumored to have said: And in an hour it gets double IPs blocked. $ sudo iptables -L -n|grep DROP|wc -l 2805 any idea? About what? Unless you are seriously memory or cpu-constrained, 2805 simple drop

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Slavko via mailop
Dňa 21. júna 2024 13:43:15 UTC používateľ Alessandro Vesely via mailop napísal: >Login attempts don't seem to follow any kind of decent dictionary attack >strategy, as they try random userid/ password combinations, and repeat failed >ones. My devocot's auth daemon (mentioned early) can distin

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Alessandro Vesely via mailop
On Fri 21/Jun/2024 14:55:16 +0200 Slavko via mailop wrote: Dňa 21. júna 2024 11:50:23 UTC používateľ Alessandro Vesely via mailop napísal: That db currently holds 2,014,973 records. Rather than ipset or single iptables rules, the IPs are stored on a Berkeley DB. They get blocked by a few

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Slavko via mailop
Dňa 21. júna 2024 11:50:23 UTC používateľ Alessandro Vesely via mailop napísal: >That db currently holds 2,014,973 records. Rather than ipset or single >iptables rules, the IPs are stored on a Berkeley DB. They get blocked by a >few iptables rules ending in -j NFQUEUE. That passes the packe

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Marco Moock via mailop
Am 21.06.2024 um 10:46:02 Uhr schrieb L. Mark Stone via mailop: > It's not uncommon for us to be blocking 30K-50K IP addresses, with no > performance issues. Reboots do take about a minute or two longer > however; Fail2Ban rewrites the route table on service start/stop to > populate/depopulate the

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Bernardo Reino via mailop
On Fri, 21 Jun 2024, Jeff Pang via mailop wrote: today I clear up iptables rules, and run fail2ban again. in half of an hour, it blocked 1400+ IPs. $ sudo iptables -L -n|grep DROP|wc -l 1407 it seems the black ips are coming endlessly. most of the bad actions are like this one: postfix/smtps

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
that's really nice info. I will read them. thanks. Consider switching to ipset-s or null routes, both have a lower overhead than plain rules. Ipset-s also have the benefit of supporting expiration (timeout). -- Jeff Pang jeffp...@aol.com ___ mailo

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Peter N. M. Hansteen via mailop
On Fri, Jun 21, 2024 at 10:46:02AM +, L. Mark Stone via mailop wrote: > We use "route" as the banaction in our Fail2Ban. If iptables or other filtering performance is a concern, I would definitely support the suggestion to use blackhole routes instead. Searching on obvious keywords dug out th

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Alessandro Vesely via mailop
On Fri 21/Jun/2024 10:55:53 +0200 Jeff Pang wrote: Here is the drop list by iptables, https://cloud.hostcache.com/drop.list can you help take a look? Of those 2805 addresses, 2726 are also on my block db, 79 are not. That db currently holds 2,014,973 records. Rather than ipset or single ip

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
thanks Mark. i will check the docs to see how route works. There is a Zimbra-specific blog post here:https://wiki.zimbra.com/wiki/Configure_Fail2Ban_for_Zimbra_Server_with_route_instead_of_iptables_to_block_IPs Our filter/jail for a Zimbra-specific nginx add-on is here (again, Zimbra-specifi

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Taavi Eomäe via mailop
Consider switching to ipset-s or null routes, both have a lower overhead than plain iptables rules. We've tested ipsets with hundreds of thousands of IPs, ipset-s also have the benefit of supporting entry expiration (timeout). smime.p7s Description: S/MIME Cryptographic Signature __

Re: [mailop] too many bad IP blocked

2024-06-21 Thread L. Mark Stone via mailop
m: "Jeff Pang via mailop" | To: "Mailop Mailing List" | Sent: Thursday, June 20, 2024 7:20:17 PM | Subject: [mailop] too many bad IP blocked | today I clear up iptables rules, and run fail2ban again. | in half of an hour, it blocked 1400+ IPs. | | $ sudo iptables -L -n|grep

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Marco Moock via mailop
Am 21.06.2024 um 16:55:53 Uhr schrieb Jeff Pang via mailop: > Here is the drop list by iptables, > https://cloud.hostcache.com/drop.list > > can you help take a look? You can create a small script that parses the addresses to the application rblcheck in linux. IIRC ipset also offers a way to for

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
Here is the drop list by iptables, https://cloud.hostcache.com/drop.list can you help take a look? regards. You can also use dnsbl (that may run locally) if that is faster. Is a valuable amount of those IPs listed in blocklist.de, spamhaus, uceprotect etc.? -- Jeff Pang jeffp...@aol.com ___

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Slavko via mailop
Dňa 21. 6. o 6:57 Viktor Dukhovni via mailop napísal(a): That said, it seemed reasonable to implement a recent suggestion from the Postfix list and block XBL-listed IPs from connecting to my submission services. This had a rather noticeable effect on the rate of failed SASL probes. The suggest

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
Thanks Dominique. I will check ipset and learn it. iirc, current fail2ban can put the banned IPs in an ipset, which is very effcient for iptables filtering. -- Jeff Pang jeffp...@aol.com ___ mailop mailing list mailop@mailop.org https://list.mailop.

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Slavko via mailop
Dňa 21. 6. o 8:44 Matus UHLAR - fantomas via mailop napísal(a): Not sure about nftables. nowadays both, the iptables & ntables, share the same netfilter code/hooks. regards -- Slavko https://www.slavino.sk/ ___ mailop mailing list mailop@mailop.or

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
given currently I have 3000+ block IPs, every normal client requests to submission, the ip will be checked through those 3000+ list, which slow down the normal client's connection certainly. regards. what is a theoretical performance hit worth to you, when compared to the possible cost of eve

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
never know ipsets. I will check it. thank you. regards. ipsets should be much more effective to work and maintain than iptables. -- Jeff Pang jeffp...@aol.com ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Jeff Pang via mailop
I will try to use spamhaus XBL for submission. thanks victor. the Postfix list and block XBL-listed IPs from connecting to my -- Jeff Pang jeffp...@aol.com ___ mailop mailing list mailop@mailop.org https://list.mailop.org/listinfo/mailop

Re: [mailop] too many bad IP blocked

2024-06-21 Thread Dominique Rousseau via mailop
Hi Jeff, Le Fri, Jun 21, 2024 at 07:20:17AM +0800, Jeff Pang via mailop [mailop@mailop.org] a écrit: > today I clear up iptables rules, and run fail2ban again. > in half of an hour, it blocked 1400+ IPs. > > $ sudo iptables -L -n|grep DROP|wc -l > 1407 > > > it seems the black ips are coming e

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Matus UHLAR - fantomas via mailop
On 21.06.24 07:20, Jeff Pang via mailop wrote: today I clear up iptables rules, and run fail2ban again. in half of an hour, it blocked 1400+ IPs. $ sudo iptables -L -n|grep DROP|wc -l 1407 I use ipset: REJECT tcp -- anywhere anywhere match-set block-mail src rej

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Marco Moock via mailop
Am 21.06.2024 um 07:20:17 Uhr schrieb Jeff Pang via mailop: > postfix/smtps/smtpd[451948]: warning: unknown[211.184.190.87]: SASL > LOGIN authentication failed: UGFzc3dvcmQ6 > > I am afraid too many iptables will slow down the performance of > systems. do you have any suggestion for handling t

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Ralph Seichter via mailop
* Jeff Pang via mailop: > postfix/smtps/smtpd[451948]: warning: unknown[211.184.190.87]: SASL > LOGIN authentication failed: UGFzc3dvcmQ6 > > I am afraid too many iptables will slow down the performance of systems. Are you worried about iptables slowing systems down compared to Postfix (and what

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Viktor Dukhovni via mailop
On Fri, Jun 21, 2024 at 07:20:17AM +0800, Jeff Pang via mailop wrote: > It seems the black ips are coming endlessly. Most of the bad actions > are like this one: > > postfix/smtps/smtpd[451948]: warning: unknown[211.184.190.87]: SASL LOGIN > authentication failed: UGFzc3dvcmQ6 > > I am afraid

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Niels Kobschätzki via mailop
> > On 21. Jun 2024, at 05:15, Raymond Burkholder via mailop > wrote: > > On 2024-06-20 17:20, Jeff Pang via mailop wrote: >> today I clear up iptables rules, and run fail2ban again. >> in half of an hour, it blocked 1400+ IPs. >> >> $ sudo iptables -L -n|grep DROP|wc -l >> 1407 >> >> I am

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Raymond Burkholder via mailop
On 2024-06-20 17:20, Jeff Pang via mailop wrote: today I clear up iptables rules, and run fail2ban again. in half of an hour, it blocked 1400+ IPs. $ sudo iptables -L -n|grep DROP|wc -l 1407 I am afraid too many iptables will slow down the performance of systems. do you have any suggestion for

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Ferris, Rhys (SCC) via mailop
I guess my mentality is a large IPTables is still less of a load than letting them establish a connection and attempt to authenticate, but I'm certainly open to better ideas. Rhys (R-ee-s) Ferris Internet Mail Team | SMAS Support Team U.S. Senate Sent from my mobile device On Jun 20, 2024 8:38

Re: [mailop] too many bad IP blocked

2024-06-20 Thread Jeff Pang via mailop
And in an hour it gets double IPs blocked. $ sudo iptables -L -n|grep DROP|wc -l 2805 any idea? Thanks today I clear up iptables rules, and run fail2ban again. in half of an hour, it blocked 1400+ IPs. $ sudo iptables -L -n|grep DROP|wc -l 1407 it seems the black ips are coming endlessly. m

[mailop] too many bad IP blocked

2024-06-20 Thread Jeff Pang via mailop
today I clear up iptables rules, and run fail2ban again. in half of an hour, it blocked 1400+ IPs. $ sudo iptables -L -n|grep DROP|wc -l 1407 it seems the black ips are coming endlessly. most of the bad actions are like this one: postfix/smtps/smtpd[451948]: warning: unknown[211.184.190.87]: