tcpdump mailing list archives
Re: filtering port ranges
From: Ed Sawicki <ed () alcpress com>
Date: Tue, 24 Aug 2004 19:28:55 -0700
alex medvedev wrote:
Hi Ed, this is strange, because at least: # tcpdump tcp[0:2] \> 1 and tcp[0:2] \< 79 # tcpdump 'tcp[0:2] > 1 and tcp[0:2] < 79' both correctly work for me
These do not work for me. No packets are displayed.
on # tcpdump -V tcpdump version 3.6 libpcap version 0.6 and # ./tcpdump -V tcpdump version 3.8 libpcap version 0.7.2
I'm using: tcpdump 3.8.3 libpcap 0.8.3 I should try an earlier version.
could it be your shell?
I'm using bash 2.05b.0 on Linux.
-alexm 20:51 24/08/2004 On Tue, 24 Aug 2004, Ed Sawicki wrote:I'm running the latest versions of tcpdump and pcap. I can't filter on tcp port ranges. These don't work - no packets are captured: tcpdump -i eth1 tcp[0:2] > 1023 and tcp[0:2] < 60000 tcpdump -i eth1 'tcp[0:2] > 1023 and tcp[0:2] < 60000' tcpdump -i eth1 'tcp[0:2] > 1023' and 'tcp[0:2] < 60000' tcpdump -i eth1 'tcp[0:2]>1023' and 'tcp[0:2]<60000' tcpdump -i eth1 \( 'tcp[0:2] > 1023' and 'tcp[0:2] < 60000' \) Is there a way to make this work? Ed - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.- This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
- This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
Current thread:
- filtering port ranges Ed Sawicki (Aug 24)
- number of concurrent TCP sessions César Cárdenas (Aug 24)
- Re: number of concurrent TCP sessions César Cárdenas (Aug 24)
- Re: number of concurrent TCP sessions Kiss Karoly (Aug 24)
- Re: number of concurrent TCP sessions César Cárdenas (Aug 24)
- Concurrent TCP Connections César Cárdenas (Aug 25)
- Re: Concurrent TCP Connections ronnie sahlberg (Aug 25)
- Re: number of concurrent TCP sessions Stephen Donnelly (Aug 25)
- Estimating whole parameters in a switched net César Cárdenas (Aug 29)
- number of concurrent TCP sessions César Cárdenas (Aug 24)
- Re: filtering port ranges Ed Sawicki (Aug 24)