Can't get the syntax correct for my tcpdump command
Pietro Cerutti
gahr at gahr.ch
Thu May 10 19:46:09 UTC 2007
Andrew Falanga wrote:
> Hi,
>
> I'm about to launch this computer through the roof! This tcpdump is
> more finicky than feline when it comes to eating. What really bugs me
> is that just a couple of days ago I was doing this very same thing
> with no problems. For some reason, however, I just can't resurrect
> the memory of how the syntax goes.
>
> I want to capture only the IPv6 UDP traffic from my FreeBSD box to a
> host I'm trying to mount through NFS. A couple of days ago, I got it,
> but I had to kill that terminal session abnormally and the commands
> aren't in my history. So, I have something like this,
>
> tcpdump -v -s 192 -i fxp0 ip6 host remote
>
> The above works. However, when I try to modify the command to filter
> out only the UDP traffic, I've tried something like this:
>
> tcpdump -v -s 192 -i fxp0 ip6 udp host remote
>
> To which tcpdump complains of syntax errors. Variations I've tried are:
>
> tcpdump -v -s 192 -i fxp0 ip6 proto udp host remote
>
> tcpdump -v -s 192 -i fxp0 udp ip6 host remote
expression primitives have to be AND'd.
tcpdump -v -s 192 -i fxp0 host _remote_ and udp and ip6
> Please help!
Hope this helps,
>
> Thanks,
> Andy
--
Pietro Cerutti
PGP Public Key ID:
http://gahr.ch/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070510/f55a869c/signature.pgp
More information about the freebsd-questions
mailing list