Search found 14 matches

by zmjwong
22 Oct 2015, 03:18
Forum: General Discussion (csf)
Topic: Exim Reject Mail - RBL Custom Regex
Replies: 5
Views: 6316

Re: Exim Reject Mail - RBL Custom Regex

Just an update, based on my finding its not clear if every rule requires a CUSTOM_LOG, in my testing for EXIM, its possible to only use 1 of 9 custom log rules if they all scan the same file. Hence why the rules above all use CUSTOM1_LOG.
by zmjwong
21 Oct 2015, 08:42
Forum: General Discussion (csf)
Topic: Exim Reject Mail - RBL Custom Regex
Replies: 5
Views: 6316

Re: Exim Reject Mail - RBL Custom Regex

Added a new block for spammers that don't wait for greetings or old MS clients (removed due to standards with SSLv3 and removal of IE8 support on most systems) ciphers won't let it connect anyways so who cares at this point. # Exim_Sync if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /^.* SMTP p...
by zmjwong
21 Oct 2015, 04:32
Forum: General Discussion (csf)
Topic: Exim Reject Mail - RBL Custom Regex
Replies: 5
Views: 6316

Re: Exim Reject Mail - RBL Custom Regex

I've decided to re-start this project and here are my updated rules. This rules is for Exim, Invalid HELO http://rubular.com/r/i6qKKbmqSY # Exim_RFC if (($globlogs{CUSTOM2_LOG}{$lgfile}) and ($line =~ /^.* H=.* \[(\S+)\]:.* rejected MAIL <.*>: Access denied - Invalid HELO name \(See RFC2821 .*\)$/))...
by zmjwong
17 Oct 2015, 06:23
Forum: General Discussion (csf)
Topic: CSF Cluster - Master configuration sending blocks to all slaves and vice versa
Replies: 3
Views: 4537

Re: CSF Cluster - Master configuration sending blocks to all slaves and vice versa

Just to update this post; The only solution i came up with was every slave posts to master and master has a cron to copy the csf.deny every X minutes to /var/share/nginx/html/fw/csf.deny and have slaves update their GLOBAL_DENY rules and then have LFD fetch the files every 6 minutes. This seems to b...
by zmjwong
12 Oct 2015, 23:33
Forum: General Discussion (csf)
Topic: CSF cluster
Replies: 1
Views: 2657

Re: CSF cluster

i've found that the most common issue is that LFD doesn't restart as expected.
you can do a /etc/init.d/lfd restart or csf -ra on newer versions.
by zmjwong
12 Oct 2015, 23:30
Forum: Suggestions (csf)
Topic: Cluster read-only (w/o key) option
Replies: 1
Views: 3707

Re: Cluster read-only (w/o key) option

I've been working on something similar and my only solution so far was to have a master node, have everyone send their blocks to the master and then copy the blocks into a directory accessible from apache/nginx and serve them in the GLOBAL_DENY directive to the clients. This way when the master node...
by zmjwong
12 Oct 2015, 23:22
Forum: Suggestions (csf)
Topic: Features CSF cluster allow/deny
Replies: 1
Views: 3937

Re: Features CSF cluster allow/deny

I see the benefit of clustering the temp allow / temp deny.

+1
by zmjwong
12 Oct 2015, 23:19
Forum: General Discussion (csf)
Topic: temporary block
Replies: 11
Views: 24747

Re: temporary block

Updated post with the answer

-tr, --temprm ip
Remove an IP from the temporary IP ban or allow list

csf -tr ip
by zmjwong
12 Oct 2015, 21:36
Forum: General Discussion (csf)
Topic: CSF Cluster - Master configuration sending blocks to all slaves and vice versa
Replies: 3
Views: 4537

Re: CSF Cluster - Master configuration sending blocks to all slaves and vice versa

Downfall of this config is temp ban is not being honoured. It forces it as a perm ban in this config.

-- update

it was a false positive, temp bans are not being set into csf.deny
by zmjwong
12 Oct 2015, 16:02
Forum: General Discussion (csf)
Topic: CSF Cluster - Master configuration sending blocks to all slaves and vice versa
Replies: 3
Views: 4537

Re: CSF Cluster - Master configuration sending blocks to all slaves and vice versa

My only solution so far was to use the GLOBAL_DENY option on the master node. Master node copies its /etc/csf/csf.deny every minute to a public accessible directory and running nginx on that folder. Then allowing all slaves to download the GLOBAL_D/A lists from there. Also ideally force the GeoLite ...