Install the OpenSSL on Debian based systems
sudo apt-get install openssl
add the following to the frontend section of your haproxy configuration
## ------ LOG REQ BODY ----------
option http-buffer-request
declare capture request len 40000000
http-request capture req.body id 0
log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r %[capture.req.hdr(0)]"
## --------------------
---------------------------------------------------------------------------------------------------- | |
tcpdump -s 0 #capture entire etherner header and IP packet | |
tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets | |
tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB) | |
tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet | |
tcpdump -X -vvv -n -i eth0 |