On 2002-11-27 18:02, Darren Pilgrim <[EMAIL PROTECTED]> wrote: > I'm in need of a program that can show me just a list of packets as > they pass through a given interface. The only information I need > are the transport protocol (TCP, UDP, etc) and the source and > destination addresses and ports. > > I don't want to know any other information for various privacy/legal > reasons, this is for debugging and tuning routers and firewalls. > The idea is to run this on an interface to show what's actually > passing through.
Use tcpdump. It's in the base system too: gothmog# tcpdump -q -n -l -s 128 -c 10 tcpdump: listening on tun0 04:13:47.771703 212.205.244.148.50189 > 195.74.234.20.110: tcp 0 (DF) 04:13:47.930432 195.74.234.20.110 > 212.205.244.148.50189: tcp 0 (DF) 04:13:47.930510 212.205.244.148.50189 > 195.74.234.20.110: tcp 0 (DF) 04:13:48.116406 195.74.234.20.110 > 212.205.244.148.50189: tcp 92 (DF) 04:13:48.116548 212.205.244.148.50189 > 195.74.234.20.110: tcp 48 (DF) 04:13:48.284387 195.74.234.20.110 > 212.205.244.148.50189: tcp 0 (DF) 04:13:48.314383 195.74.234.20.110 > 212.205.244.148.50189: tcp 61 (DF) 04:13:48.414321 212.205.244.148.50189 > 195.74.234.20.110: tcp 0 (DF) 04:13:51.315990 212.205.244.148.50189 > 195.74.234.20.110: tcp 6 (DF) 04:13:51.477971 195.74.234.20.110 > 212.205.244.148.50189: tcp 9 (DF) ^C 26 packets received by filter 0 packets dropped by kernel To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message