sniffing the forwarded packets
What can I use to view the packets passing through my router/firewall? I've tried tethereal but that only seems to be able to capture on the specific devices (eth1 or eth2) not the packets being forwarded, can anyone help?
'sniffing' usually refers to listening on a specific interface - that's why the tools you tried, do that.
I have found that by first declaring what I am looking for, I can usually get a good idea of it by tcpdump, etc. In other words - if I want to know who from my LAN 192.168.0.* is going where, I look at the internal interface and grep for port 80:
tcpdump -i eth0 port 80
If I need to know why an IPSec tunnel isn't coming up, I look at the external interface and grep for those packets:
tcpdump -i eth2 port 500
I used to use ksnuffle to dump all the daily packets on the inside LAN going to 80 to a file and then did some grepping through for a report of internet usage; now I redirect port 80 to squid and use squid data files for my reports
aldo
Quoted 15 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Patrick Ahler
Sent: Monday, March 10, 2003 4:05 PM
To: netfilter EMAIL
Subject: sniffing the forwarded packetsWhat can I use to view the packets passing through my router/firewall? I've tried tethereal but that only seems to be able to capture on the specific devices (eth1 or eth2) not the packets being forwarded, can anyone help?
Quoted 3 lines · Patrick Ahler
What can I use to view the packets passing through my router/firewall? I've tried tethereal but that only seems to be able to capture on the specific devices (eth1 or eth2) not the packets being forwarded, can anyone help?
Unfortunately that's just how it works. Any packet sniffer attaches
to a device and only sees the packets that go through that specific device.
The best you can do is run multiple sniffers, one per interface.
*Possibly* you might be able to use tcpdump for this and then write something to interleave the packets from the timestamps.
-Ath
Signature · 4 lines
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME