Re: [SLE] Firewall is getting hammered...help
From: Stephen (stephen_at_mirramar.fsnet.co.uk)
Date: 09/29/03
- Previous message: Curtis Rey: "Re: [SLE] 9.0 coming tomorrow (Sep. 30)? BEWARE"
- Maybe in reply to: Tom Nielsen: "[SLE] Firewall is getting hammered...help"
- Next in thread: Stephen: "Re: [SLE] Firewall is getting hammered...help"
- Reply: Stephen: "Re: [SLE] Firewall is getting hammered...help"
- Reply: David Krider: "Re: [SLE] Firewall is getting hammered...help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Sep 2003 20:32:05 +0100 To: "suse-linux-e@suse.com" <suse-linux-e@suse.com>
Tom Nielsen wrote:
> On Mon, 2003-09-29 at 11:11, Stephen wrote:
>
>>/I even wrote a little script to find out the worst offenders, and tried to
>>contact them, but to no avail./
>>
>
> Can I get a copy of that script?
>
> Tom
Tom
I had grep'ped for 'DPT=135' through all the accumulated messages log files
and dumped them to a file, then ran this script against it.
It isn't a great script as it isn't what I do, but I had a bash, or a perl,
at it in this case, and it worked, learned something new. No doubt someone
will improve it, probably to a one liner, but it worked for me.
It will print out a list of IP addresses with the number of probes from
that address. I did a reverse dns and a port scan against the worst one,
found that some where running web sites which had a contact address on it.
Wrote to them, but have had nothing back, except more probes.
Change the filename to suit
--------------------------------------------------------------------------
#!/usr/bin/perl
open(IPFILE, '/home/stephen/log/messages.log');
foreach $line (<IPFILE>)
{
($line) =~ /(\d+\.\d+\.\d+\.\d+)/g;
$ip{$1}+=1;
}
close(IPFILE);
foreach $key (sort keys %ip)
{
$rdns = `host $key`;
print "$key($ip{$key}) => $rdns\n";
}
---------------------------------------------------------------------------
Steve
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
- Previous message: Curtis Rey: "Re: [SLE] 9.0 coming tomorrow (Sep. 30)? BEWARE"
- Maybe in reply to: Tom Nielsen: "[SLE] Firewall is getting hammered...help"
- Next in thread: Stephen: "Re: [SLE] Firewall is getting hammered...help"
- Reply: Stephen: "Re: [SLE] Firewall is getting hammered...help"
- Reply: David Krider: "Re: [SLE] Firewall is getting hammered...help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|