Zerg rush from @google.com is again at large (tousands of ips). Some botnet
is again on the mass spam attack. Assp 1.x is again constantly slow
responding.
I suck at perl so I only managed to put this code in front of reciving
connection and it mitigated slow downs for assp

if ( $l =~ /mail from:.*\@google.com/i ){
#hardcoded google ip ranges from its spf - I'm to lame at perl to make it
properly.
my $regexp = Net::IP::Match::Regexp::create_iprange_regexp(qw(
216.239.32.0/19 64.233.160.0/19 66.249.80.0/20 72.14.192.0/18
209.85.128.0/17 66.102.0.0/20 74.125.0.0/16 64.18.0.0/20 207.126.144.0/20
173.194.0.0/16
));
if (!Net::IP::Match::Regexp::match_ip($this->{ip}, $regexp)) {

    NoLoopSyswrite($fh,"530 5.7.0 gg error\r\n");
    mlog($fh,"google.com odrzucenie",1);
    done($fh);
    return;
}
}
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Assp-user mailing list
Assp-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to