Forum Discussion
TCPDUMP captures
Is there a way to capture traffic through an LTM in both directions? I've captured a few tcpdumps, but they are all in one direction (i.e. filter a specific ip address and it is always either a source or a destination). I'd like to see the delta time between LTM and server communication.
Regards,
Tony Marques
4 Replies
- What_Lies_Bene1
Cirrostratus
Tony,
If you specify an IP address in a tcpdump filter expression (without using the src or dst parameters) then you should see packets to and from that host. If this isn't the case then something is wrong.
If however, you meant you want to capture packets on both server-side and client-side interfaces this is possible too by using the -i any or -i 0.0 interface specification. If you're using SNAT you'll have to consider your filter expression carefully. - Tony_Marques_92
Nimbostratus
Hi Steve,
After I read your post I realize what I was doing "wrong". I was limiting my tcptump to destination port 4000. Therefore, that would only give me traffic in one direction. I removed that option and I'm now seeing everything I want to see (too much in fact).
Thanks,
Tony - What_Lies_Bene1
Cirrostratus
Good stuff, you're welcome. - smp_86112
Cirrostratus
Posted By Tony Marques on 03/26/2013 12:34 PM
Hi Steve,
After I read your post I realize what I was doing "wrong". I was limiting my tcptump to destination port 4000. Therefore, that would only give me traffic in one direction. I removed that option and I'm now seeing everything I want to see (too much in fact).
Thanks,
Tony
If you just do this:tcpdump -ni <host> and <port>
this will capture all traffic to/from and to/from port 4000. This should limit the traffic to what you want, but still see both directions. Sorry about the original post, my gt and lt chars got munged...
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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