Forum Discussion
Michael_Newton
May 30, 2019Nimbostratus
Setting up a tcpdump filter
ALCON need an assist if you can. I have a customer who want a TCPDUMP using a specific filter. (ip.src == 192.102.67.73) && (tcp.srcport == 443) && (tcp.flags == 0x018) && (tls.record.content...
May 30, 2019
WIRESHARK <-> TCPDUMP
(ip.src == 192.102.67.73) <-> (src host 192.102.67.73)
(tcp.srcport == 443 <-> (src port 443)
(tcp.flags == 0x018) <-> (tcp[13] == 24)
(ssl.record.content_type == 22) <-> (tcp[((tcp[12] & 0xf0) >> 2)] = 0x16)
(ssl.handshake.type == 2) <-> (tcp[((tcp[12] & 0xf0) >> 2)+5] = 0x02)
You cannot create the last line in tcpdump. Take into account tcpdump uses a deterministic matching. To do the last, you should use post-processing (scripting).
I would appreciate if you rate my answer.
KR,
Dario.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects