Run Diagnostic Tasks to Learn More About Log Messages

You can use the Firebox System Manager (FSM) Diagnostic Tasks tool to learn more about a log message, or to review information in your Firebox log messages to help you debug problems on your network. You can ping the source or destination IP address, trace the route to the source or destination IP address, look up DNS information for an IP address, or see information about the packets transmitted across your network (TCP dump). You can include arguments in your task details to narrow the results. You can also run the VPN Diagnostic Report to see configuration and status information for a VPN gateway and the associated branch office VPN tunnels.

For more information about some of the log messages generated by your Firebox, go to the Fireware Log Catalog, available on the WatchGuard Firebox and Dimension documentation page.

Run Diagnostic Tasks

From Firebox System Manager, you can run diagnostic tasks to review information in all the log messages from your Firebox. This can help you debug problems on your network.

  1. On the Traffic Monitor tab, right-click a message and select Diagnostic Tasks.
    Or, select Tools > Diagnostic Tasks.
    The Diagnostic Tasks dialog box appears, with the Network tab selected.

Screen shot of the Diagnostic Tasks dialog box

  1. From the Task drop-down list, select the task to run.
    • Ping IPv4
    • Ping IPv6
    • traceroute
    • DNS Lookup
    • TCP Dump
      If you select Ping, traceroute, or DNS Lookup, the Address text box appears.
      If you select TCP Dump, the Interface drop-down list appears.

  2. In the Address text box, type an IP address or host name.
    Or, from the Interface drop-down list, select an interface to include in the search.
  3. To reduce the number of results you see, select the Advanced Options check box.
    The Arguments text box appears.

Screen shot of the Diagnostic Tasks dialog box with the Arguments text box

  1. In the Arguments text box, type the arguments to include in the search.
    Make sure you include the value you specified in either the Address text box or the Interface drop-down list. If you do not include this value in the arguments you type, the search does not run.
    To see a list of available arguments, place your cursor over the Arguments text box, or keep the text box empty and click Run Task.

For information on the TCP dump arguments you can use, go to tcpdump.org.

  1. Click Run Task.
    The task information appears in the Results list and the Stop Task button appears.
  2. To stop the diagnostic task, click Stop Task.
  3. Click Close to close the Diagnostic Tasks dialog box and return to Traffic Monitor.

Ping or Trace Route for a Traffic Log Message

You can run a ping or traceroute task on the source or destination IP address for a specific traffic log message to refine the information you see for that message.

  1. On the Traffic Monitor tab, select a log message.
  2. Right-click the message and select a task:
    • Source IP address > Ping
    • Source IP address > Trace Route
    • Destination IP address > Ping
    • Destination IP address > Trace Route
      The Diagnostic Tasks dialog box appears with the information for the selected log message and task inserted in the appropriate fields. The selected task starts automatically.
  3. To reduce the number of results you see, select the Advanced Options check box.
    The Arguments text box appears.
  4. In the Arguments text box, type the arguments and the IP address you want to include in the search. Make sure you type the IP address from the Address text box again.
    To see a list of available arguments, place your cursor over the Arguments text box, or keep the text box empty and click Run Task.
  5. After you have typed any arguments, click Run Task.
    The task information appears in the Results list and the Stop Task button appears.
  6. To stop the diagnostic task, click Stop Task.

Find the IP Address for a Host Name

From your Firebox, you can use the DNS Lookup task to find which IP address a host name resolves to.

  1. From the Task drop-down list, select DNS Lookup.
    The Address text box appears.
  2. In the Address text box, type the host name.
  3. Click Run Task.
    The IP address for the host name you specified appears in the Results list.

Download a PCAP File

From the Diagnostic Tasks dialog box, you can download a packet capture (.PCAP) file to help you diagnose problems with the traffic on your network. The .PCAP file captures the results of the most recent TCP dump task that you run so you can review the protocols found in the task results outside of Traffic Monitor. If you do not save the TCP dump results to a .PCAP file, the results of the TCP dump task are cleared when you run a new diagnostic task. You can save the TCP dump data to a file on your computer as the task runs, or you can save the results on your Firebox and download the file later.

When you enable the Advanced Options to include arguments in the TCP dump task, you must always specify an interface. This can be a physical interface on the Firebox (such as, eth0), a Link Aggregation interface (such as, bond0), a wireless interface (such as, ath0), or a VLAN interface (such as, vlan10). If you specify a VLAN or bridge interface, and the traffic matches a proxy rule, TCP dump only captures the first incoming packet on that interface. To capture all packets, you must run the TCP dump task on the physical interface from where the packets originate.

About TCP Dump Arguments

When you run the TCP dump task, you must specify the interface on which to run the task. You an also include expressions in the task arguments to filter for specific traffic.

To specify the interface, you include the -i argument and the interface name and number. For example:

-i eth1 — Physical interface #1

-i ath1 — Wireless interface #1

-i br1 — Bridge interface #1

-i bond1 — Link aggregation interface #1

-i vlan1 — VLAN interface #1

To build an expression to filter the traffic from the interface you specify, you can use any of the standard TCP dump keywords and operators. Some of the common keywords and operators are:

host — Only include traffic to or from the specified host IP address.

net — Only show traffic to or from the IP addresses in the specified subnet. For example, for 10.0.1.0/24, type 10.0.1.

port — Only show traffic with either a source or destination of the specified port.

portrange — Only show traffic from the specified range of ports.

ip proto — Only show traffic from the specified protocol. For example, for ESP packets, type 50.

src or dst — Use with the keywords host or port to specify the source or destination.

tcp or udp — Use with the keywords port or portrange to specify the protocol.

and / or — Use to combine expressions.

For a complete list of the available keywords and detailed examples of how to create filter expressions, see the PCAP-Filter manpage at http://www.tcpdump.org/manpages/pcap-filter.7.html.

Examples of TCP dump arguments:

-i eth1 host 10.0.1.25 and dst port 80

Show only traffic on interface eth1, to or from 10.0.1.25 with destination port 80.

-i eth0 tcp port 25

Show only traffic on interface eth0, to or from TCP port 25.

-i vlan1024

Show only traffic tagged with VLAN 1024.

-i eth0 udp port 500 or ip proto 50

Show all UDP port 500 or ESP packets for the eth0 interface.

-i eth2 src 10.0.1.100 and dst 10.0.2.25

Show all traffic from 10.0.1.100 to 10.0.2.25 on the eth2 interface.

For information on the TCP dump arguments you can use, go to tcpdump.org.

Save TCP Dump Data Directly to a PCAP File

To save the TCP dump data in a .PCAP file as the task runs:

  1. On the Traffic Monitor tab, right-click a message and select Diagnostic Tasks.
    Or, select Tools > Diagnostic Tasks.
    The Diagnostic Tasks dialog box appears, with the Network tab selected.
  2. From the Task drop-down list, select TCP Dump.
    The Interface drop-down list appears.
  3. Select the Advanced check box.
    The Advanced options appear.

Screen shot of the Diagnostic Tasks dialog box, TCP Dump task

  1. In the Arguments text box, type the parameters for the search. Parameters are case sensitive.
    For example, to capture PCAP data for the default external interface, type -ieth0.
  2. Select the Stream data to a file check box.
  3. Click Browse to specify a location to save the .PCAP file and a name for the file.
  4. Click Run Task.
    The TCP Dump task runs . TCP dump data does not appear in the Results list.

Screen shot of the Diagnostic Tasks dialog box, with a TCP Dump task running

  1. When the TCP dump has collected enough results, click Stop Task.
    The TCP dump stops automatically if the file reaches either the maximum allowed size for your computer, or the amount you specified in the Arguments text box.
    The TCP dump task stops and the .PCAP file is saved to the specified location.

Screen shot of the Diagnostic Tasks dialog box, with TCP Dump task results

After you have saved the .PCAP file, you can open the file in a third-party application, such as Wireshark, and review the included protocols to resolve issues in your network configuration.

Save TCP Dump Data on Your Firebox

You can also select to capture the TCP dump data on your Firebox and then save it as a .PCAP file on your computer.

From the Diagnostic Tasks dialog box:

  1. From the Task drop-down list, select TCP Dump.
    The Interface drop-down list appears.
  2. Select the Advanced check box.
    The Advanced options appear.
  3. In the Arguments text box, type the parameters for the search. Parameters are case sensitive.
    For example, to capture .PCAP data for the default external interface, type -ieth0.
  4. Select the Buffer data to save later check box.
  5. Click Run Task.
    The TCP dump task runs. Data from the TCP dump appears in the Results list, and the Stop Task button appears.

Screen shot of the Diagnostic Tasks dialog box, TCP Dump task with Buffer data to save later option selected

  1. When the TCP dump has collected enough results, click Stop Task.
    The TCP dump also stops automatically when all results are captured.
    The TCP dump task stops and the Save Pcap file button appears.

Screen shot of the Diagnostic Tasks dialog box, TCP Dump task with Buffer data to save later option  and the Save Pcap file button

  1. Click Save Pcap file to specify a location to save the .PCAP file and a name for the file.

The maximum size of the .PCAP file is 30 MB. If your Firebox has limited memory, the size of the .PCAP file is constrained relative to the available memory available on your Firebox.

For more information about TCP dump, go to the Firebox TCP Dump Diagnostics video tutorial (5 minutes).

Copy a Log Message IP Address

You can copy the source or destination IP address for a log message in Traffic Monitor to paste in another program or dialog box.

  1. On the Traffic Monitor tab, select a log message.
  2. Right-click the message and select a task:
    • Source IP address > Copy Source IP address
    • Destination IP address > Copy Destination IP address
      The selected IP address is copied to the system clipboard.

Get More Information About IPS Signatures in Traffic Log Messages

If you have enabled logging for Intrusion Prevention Service (IPS) signatures, you can use Traffic Monitor to find more information about the signature IDs associated with traffic log messages.

On the Traffic Monitor tab:

  1. Select a traffic log message with a signature ID, such as Detect IPS.
  2. Right-click the log message and select Lookup Signature Information.
    The WatchGuard signature website appears with details for the signature.

For more information about IPS and IPS signatures, go to About Intrusion Prevention Service and Show IPS Signature Information.

Run a VPN Diagnostic Report

To see configuration and status information for a VPN gateway and the associated branch office VPN tunnels, you can run a VPN Diagnostic Report. When you run a report, the Firebox temporarily increases the log level for the selected gateway.

In the Diagnostic Tasks dialog box:

  1. Select the VPN tab.

Screen shot of the Diagnostic Tasks dialog box, VPN tab

  1. From the Gateway drop-down list, select a VPN gateway.
  2. To refresh the VPN gateways included in the Gateway drop-down list, click the Gateway Refresh icon.
  3. In the Duration text box, type or select the number of seconds to run the VPN Diagnostic Report.
  4. Click Start Report.
    The diagnostic task starts and generates the report.

Screen shot of the VPN Diagnostic Report Generating message

The Firebox collects log messages for the duration you specified. When the task is completed, details about the gateway and tunnel configuration and information about the status of any active tunnels for the selected gateway appear in the Results section. The log level is then returned to the previously set level.

Screen shot of the VPN Diagnostic Report results

You can also run the VPN Diagnostic Report from the FSM Front Panel tab:

  1. Expand the Branch Office VPN Tunnels tree.
  2. Select a VPN interface or gateway.
  3. Right-click the selected VPN interface or gateway and select VPN Diagnostic Report.
    The Diagnostic Tasks dialog box appears with the VPN tab selected. The VPN Diagnostic Report runs for the selected gateway, for a duration of 20 seconds.
  4. To run the report again, click Start Report.

For more information about the diagnostic report for VPNs, go to Use the VPN Diagnostic Report.

Related Topics

Device Log Messages (Traffic Monitor)

About Firebox Logging and Notification

Firebox TCP Dump Diagnostics video tutorial (5 minutes)

See Log Messages & Reports in WebCenter

About Firebox Wireless Configuration

About Virtual Local Area Networks (VLANs)

Monitor Link Aggregation Interfaces