Forum Discussion

Clint_Denham_16's avatar
Clint_Denham_16
Icon for Nimbostratus rankNimbostratus
Aug 27, 2009

TCPDUMP -A Option?

I'm trying to find an equivalent option of TCPDUMP -A on our 6400s (LTM 9.4). This option is nice for monitoring HTTP traffic to pool nodes - the other options don't provide the same parsing capabilities.

 

 

We use this option on some of our Linux hosts but this option doesn't work on the LTMs. Is it supported to install a different version of TCPDUMP, or am I just being daft and missing the right option?

 

 

Right now, I've just been dumping the output to a PCAP and getting it onto my desktop but this is getting old...

4 Replies

  • It decodes the HTTP traffic at the shell instead of just seeing the TCP SYN/ACK/PUSH flow. Pretty nice to see the errors from the web servers, especially when configuring monitors.
  • The only reference I could find to the -A flag was on this page:

     
     http://openmaniak.com/tcpdump.php 
     To display the packets content: 
      
     tcpdump -A 
     Packets capture during a FTP connection. The FTP password can be easily intercepted because it is sent in clear text to the server. 
      
     tcpdump: verbose output suppressed, use -v or -vv for full protocol decode 
     listening on ath0, link-type EN10MB (Ethernet), capture size 96 bytes 
     20:53:24.872785 IP ubuntu.local.40205 > 192.168.1.2.ftp: S 4155598838:4155598838(0) win 5840 
     ....g.................... 
     ............ 
     20:53:24.879473 IP ubuntu.local.40205 > 192.168.1.2.ftp: . ack 1228937421 win 183 
     ....g.I@............. 
     ........ 
     20:53:24.881654 IP ubuntu.local.40205 > 192.168.1.2.ftp: . ack 43 win 183 
     ....g.I@.......8..... 
     ......EN 
     20:53:26.402046 IP ubuntu.local.40205 > 192.168.1.2.ftp: P 0:10(10) ack 43 win 183 
     ....g.I@......`$..... 
     ...=..ENUSER teddybear 
      
     20:53:26.403802 IP ubuntu.local.40205 > 192.168.1.2.ftp: . ack 76 win 183 
     ....h.I@............. 
     ...>..E^ 
     20:53:29.169036 IP ubuntu.local.40205 > 192.168.1.2.ftp: P 10:25(15) ack 76 win 183 
     ....h.I@......c..... 
     ......E^PASS wakeup  
     

    I don't think there is an exact corollary to -A in LTM's (or most other platforms') versions of tcpdump. As you found, you can use -X, but it prints the hex along with the data. For monitor troubleshooting it can actually be better to see the hex than just the printable characters in the data. It's handy being able to differentiate between the different non-printable characters.

    You could compile your own tcpdump, but this isn't supported by F5.

    Aaron