KB1048 - Creating tcpdumps of the network traffic
Last update: 2007-06-07 10:00:48
Revision: 8
Keywords: product_zorp troubleshooting zorp tcpip

Applies to: All versions of Zorp

Introduction

Tcpdumps contain all traffic sent and received by a network interface and are invaluable in troubleshooting. Always create tcpdumps of all relevant interfaces of Zorp, e.g., the interfaces of both the client- and the server-side connections. Currently ZMC cannot produce tcpdumps; they must be created from the command line.

Solution

To create a tcpdump, complete the following steps:

  1. Login to the Zorp host from a local console, or remotely via SSH. NOTE: SSH access must be enabled in ZMC to access Zorp remotely.
  2. Execute the following command:

    tcpdump -peni ethx -s0 -w output.txt
    

    where ethx is the name of the network interface connected to the clients. The traffic is saved into the output.txt file of the local directory.

  3. Repeat Steps 1-2, and start a tcpdump on the network interface connected to the Internet.
  4. Reproduce the error.
  5. Stop both tcpdumps by pressing CTRL+C.
  6. Download the tcpdump files to your local machine using the scp command or a graphical scp client, like WinSCP.

  7. Attach the files to your BOSS support request.

NOTE: tcpdump can produce very large files on high-trafic networks. Therefore, you might need to use filters to record only relevant traffic, e.g., to record traffic only from a selected IP address.

Additional information / References

For details on enabling remote SSH access to Zorp, see the Skeleton concept section in the Zorp Administrator's Guide available at
http://www.balabit.com/dl/html/zorp-admin-guide.html/ch09s04.html#pf_create_skeleton
For an introduction on tcpdump filters, see the tcpdump(8) manual page available at
http://www.tcpdump.org/tcpdump_man.html

How useful would you rate this content ?

Poor Outstanding
What is your opinion about this article?