Table of Contents
One of the easiest ways to view the traffic traversing the KEMP LoadMaster is to perform a TCP dump. This simple command will capture all of the traffic (or just a specified subset) that is being transmitted and received by the LoadMaster. The results can be examined by analysing the .pcap file with or another packet analyzer.
When using the console to perform the TCP dump, an FTP server that can be reached by the LoadMaster is required in order to retrieve the packet capture files.
The purpose of this document is to educate the reader on how to perform a TCP dump in the KEMP LoadMaster.
This document is intended to be read by anyone who is interested in finding out how to perform a TCP dump in the LoadMaster.
There are two ways to perform a TCP dump in the LoadMaster – via the Web User Interface (WUI), or via the console. Refer to the relevant section below for steps.
To perform a TCP dump via the WUI, follow the steps below:
- In the main menu, select System Configuration > Logging Options > System Log Files.
Figure 2‑1: Debug Options
- Click Debug Options.
Figure 2‑2: TCP dump
- A TCP dump can be captured either by one or all Ethernet ports. In the TCP dump section at the bottom of the screen, select the relevant Interface to run the TCP dump on, or select All.
- Optionally enter the IP Addressand the Port to be monitored.
- Enter any optional parameters as required in the Options text box.
The maximum number of characters permitted in the Options field is 255.
- Click Start.
- Make access from the client to the Virtual Server.
- When appropriate, click Stop.
- Click Download.
- This downloads the results of the TCP dump in a .pcap file. This file can be analysed using a packet trace tool such as .
To perform a TCP dump via the console, follow the steps below:
- Log in to the console.
Figure 2‑3: Utilities
- Select Utilities.
Figure 2‑4: Diagnostics
- Select Diagnostics.
Figure 2‑5: Diagnostic Shell
- Select Diagnostic Shell.
- Enter the relevant commands at the % prompt, for example:
tcpdump –s 1500 –c 10000 –i eth0 –w eth0.pcap FILTER0 &
If performing a TCP dump on a two-armed device, ensure to enter the ampersand (&) at the end of the command and also use the command below.
tcpdump –s 1500 –c 10000 –i eth1 –w eth1.pcap FILTER1
- Please select the appropriate filter for FILTER0 and FILTER1:
Host 18.104.22.168 and port 1234
For example, a complete TCP dump command might look like this:
tcpdump –s 1500 –c 10000 –i eth0 –w eth0.pcap host 22.214.171.124 and port 80
This will capture all traffic to or from IP 126.96.36.199 with a source or destination port of 80.
As the example command above is set to quit after 10,000 packets, the capture may need to be restarted if the situation in question does not occur within the first 10,000 packets captured, i.e. in the case of heavy load.
- Make access from the client to the Virtual Server to produce the error.
- Return to the diagnostic shell.
- Stop the packet capture by holding Ctrl on the keyboard and pressing C.
- If running a TCP dump on a two-armed setup, enter the command fg. The second trace will appear. Stop the second packet capture by holding Ctrl on the keyboard and pressing C.
- Connect to the FTP server and send the file by entering the command:
ftp <FTP IP address>
- Enter credentials (this depends on the FTP server).
- Then, enter the following commands:
put eth1.pcap (if running a packet tract on a two-armed configuration)
- It is now possible to retrieve the packet capture files from the FTP server and analyse them in the application of choice, for example .
- Use the exit command to exit the Diagnostic Shell.
If instructed by a KEMP Support Engineer, you can send them the packet trace file for analysis. Before sending the packet capture, please open it using a relevant tool, for example , to ensure both the quality of the data and the integrity of the file.
Please keep in mind any security implications of sending the packet capture.
188.8.131.52Error during FTP Transfer
Figure 2‑6: Error
If an error occurs which notifies of a damaged or corrupt file, it is likely that the file was not transferred in binary mode. Repeat Step 13 in Section 2.1.2 and ensure to issue the binary command before transferring.Web User Interface (WUI), Configuration Guide
Reason for Change
First draft of document