Forum Discussion
tcpdump portrange option
- Jul 18, 2014
try:
tcpdump -i SRV -s0 -w capture_file.trc port 8080 or port 8081 or port 8082
This worked for me, I saw traffic on all 3 ports in both directions in my dump. My only diff was the interface name.
This was on 10.2.4 HF5, tcpdump version 3.9.4, libpcap version 0.7.2
Again, no idea why portrange doesn't work, but I can confirm the same problem on this version.
try:
tcpdump -i SRV -s0 -w capture_file.trc port 8080 or port 8081 or port 8082
This worked for me, I saw traffic on all 3 ports in both directions in my dump. My only diff was the interface name.
This was on 10.2.4 HF5, tcpdump version 3.9.4, libpcap version 0.7.2
Again, no idea why portrange doesn't work, but I can confirm the same problem on this version.
- moog67_108621Jul 19, 2014NimbostratusThanks mimlo!! It finally worked as I need it, I can see traffic on both directions as well. We'll be upgrading to 11.x in the short term , I'll give it another go then. Regards moog67
- Rebecca_MoloneyJun 07, 2023Admin
Glad you found a reply for this! Here's a few articles by tcpdump enthusiast JRahm in case you (or anyone else) is interested:
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com