From: "Artūras Šlajus" <x11@arturaz.net>
To: Ivan Petrushev <ivanatora@gmail.com>
Cc: Mart Frauenlob <mart.frauenlob@chello.at>, netfilter@vger.kernel.org
Subject: Re: Mystics of packet forwarding
Date: Thu, 08 Jan 2009 00:36:20 +0200 [thread overview]
Message-ID: <49652E64.7040303@arturaz.net> (raw)
In-Reply-To: <d39744a20901070752t45c57f98v51d04236bc81a5e8@mail.gmail.com>
Ivan Petrushev wrote:
> tcpdump could be a bit overwhelming with its mass of output information.
> Maybe Wireshark?
>
> If the case is virus/worm it could be doing port scans on the target
> sites or something that not involve port 80.
I'm lost. And desperate.
I added rule to log ALL packets that are forwarded through.
wrote a tiny script to filter them out.
#!/usr/bin/env ruby
targets = ARGV[0..-1]
puts "targets: #{targets.inspect}"
data = {}
File.open('syslogemu.log') do |f|
f.read.split("\n").each do |line|
parts = line.split
dst = parts[10].split('=')[1]
if targets.size == 0 or targets.include?(dst)
src = parts[9].split('=')[1]
data[src] ||= 0
data[src] += 1
end
end
end
data.to_a.sort_by { |e| e[0] }.each do |ip, conns|
puts "#{ip} => #{conns}"
end
gw:/var/log/ulog# ./newconns.rb 87.248.113.14 206.190.60.37 68.180.206.184
64.191.203.30
targets: ["87.248.113.14", "206.190.60.37", "68.180.206.184", "64.191.203.30"]
192.168.0.3 => 3
the 0.3 host is me trying to open digg.com
what the hell? No packets there and still it doesn't work? :((( I'm running out
of ideas.
next prev parent reply other threads:[~2009-01-07 22:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 19:41 Mystics of packet forwarding Artūras Šlajus
2009-01-06 20:54 ` Billy Crook
2009-01-06 22:20 ` Artūras Šlajus
2009-01-06 22:52 ` Artūras Šlajus
2009-01-07 6:15 ` Amos Jeffries
2009-01-07 8:00 ` Ivan Petrushev
2009-01-07 8:50 ` Artūras Šlajus
2009-01-07 8:43 ` Artūras Šlajus
2009-01-07 9:28 ` Artūras Šlajus
2009-01-07 10:51 ` Ivan Petrushev
2009-01-07 11:26 ` Roman Fiedler
2009-01-07 13:59 ` Billy Crook
2009-01-07 15:07 ` Mart Frauenlob
2009-01-07 15:52 ` Ivan Petrushev
2009-01-07 22:36 ` Artūras Šlajus [this message]
2009-01-08 1:26 ` /dev/rob0
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49652E64.7040303@arturaz.net \
--to=x11@arturaz.net \
--cc=ivanatora@gmail.com \
--cc=mart.frauenlob@chello.at \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.