232-001203-00 rev a sonicos 4.0 packet capture feature module

24
1 SonicOS Enhanced 4.0: Packet Capture SonicOS Enhanced 4.0: Packet Capture Document Scope  This solut ions document describes how to con figu re and use t he pa cket cap ture  feature. This document contains the following sections:  “Feature Overview” section on page 2  “Using Packet Capture” section on page 5  “Configuring Packet Capture” section on page 10  “Verifying Packet Capture Activity” section on page 19  “Related Information” section on page 21  “Glossary” section on page 24

Upload: manopriyan

Post on 03-Jun-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 1/24

1SonicOS Enhanced 4.0: Packet Capture

SonicOS Enhanced 4.0: Packet Capture

Document Scope

 This solutions document describes how to configure and use the packet capture feature. This documentcontains the following sections:

  • “Feature Overview” section on page 2

  • “Using Packet Capture” section on page 5

  • “Configuring Packet Capture” section on page 10

  • “Verifying Packet Capture Activity” section on page 19

  • “Related Information” section on page 21

  • “Glossary” section on page 24

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 2/24

Feature Overview

2 SonicOS Enhanced 4.0: Packet Capture

Feature Overview This section provides an introduction to the SonicWALL SonicOS Enhanced packet capture feature. This

section contains the following subsections:

  • “What is Packet Capture?” section on page 2

  • “Benefits” section on page 2

  • “How Does Packet Capture Work?” section on page 3

  • “Platforms” section on page 4

What is Packet Capture?

Packet capture is a mechanism that allows you to capture and examine the contents of individual data packetsthat traverse your SonicWALL firewall appliance. The captured packets contain both data and addressing

information. The captured addressing information from the packet header includes the following:

  • Interface identification

  • MAC addresses

  • Ethernet type

  • Internet Protocol (IP) type

  • Source and destination IP addresses

  • Port numbers

  • L2TP payload details

  • PPP negotiations details

 You can configure the packet capture feature in the SonicOS Enhanced user interface (UI). The UI provides

a way to configure the capture criteria, display settings, and file export settings, and displays the capturedpackets.

Benefits

 The SonicOS Enhanced packet capture feature provides the functionality and flexibility that you need to

examine network traffic without the use of external utilities, such as Wireshark (formerly known asEthereal). SonicOS Enhanced 3.6 and above include the following improvements in the packet capture tool:

  • Capture control mechanism with improved granularity for custom filtering 

  • Display filter settings independent from capture filter settings

  • Packet status indicates if the packet was dropped, forwarded, generated, or consumed by the firewall

  •  Three-window output in the UI:

  –List of packets

  – Decoded output of selected packet

  – Hexadecimal dump of selected packet

  • Export capabilities include text or HTML format with hex dump of packets, plus CAP file format

  •  Automatic export to FTP server when the buffer is full

  • Bidirectional packet capture based on IP address and port

  • Configurable wrap-around of packet capture buffer when full

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 3/24

Feature Overview

3SonicOS Enhanced 4.0: Packet Capture

How Does Packet Capture Work?

 As an administrator, you can configure the general settings, capture fi lter, display filter, advanced settings,

and FTP settings of the packet capture tool. As network packets enter the packet capture subsystem, thecapture filter settings are applied and the resulting packets are written to the capture buffer. The display filter

settings are applied as you view the buffer contents in the UI. You can log the capture buffer to view in theUI, or you can configure automatic transfer to the FTP server when the buffer is full.

Default settings are provided so that you can start using packet capture without configuring it first. The basicfunctionality is as follows:

Refer to the figure below to see a high level view of the packet capture subsystem. This shows the different

filters and how they are applied.

Start: Click Start to begin capturing all packets except those used for communication

between the SonicWALL appliance and the UI on your console system.

Stop: Click Stop to stop the packet capture.

Reset: Click Reset to c lear the status counters that are displayed at the top of the Packet

Capture page.

Refresh: Click Refresh to display new buffer data in the Captured Packets window. You can

then click any packet in the window to display its header information and data in thePacket Detail and Hex Dump windows.

Export As: Display or save a snapshot of the current buffer in the file format that you select

from the drop-down list. Saved files are placed on your local management system(where the UI is running). Choose from the following formats:

  • CAP - Select CAP format if you want to view the data with the Wireshark(formerly Ethereal) network protocol analyzer. This is also known as libcap orpcap format. A dialog box allows you to open the buffer file with Wireshark, or

save it to your local hard drive with the extension .pcap.

  • HTML - Select HTML to view the data with a browser. You can use File > Save As to save a copy of the buffer to your hard drive.

  •  Text - Select Text to view the data in a text editor. A dialog box allows you toopen the buffer file with the registered text editor, or save it to your local harddrive with the extension .wri.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 4/24

Feature Overview

4 SonicOS Enhanced 4.0: Packet Capture

Figure 1 High level packet capture on subsystem view 

Platforms

 The updated packet capture feature is available on the SonicWALL TZ 190 running SonicOS Enhancedrelease 3.6. It will be widely available on all platforms running later releases of SonicOS Enhanced, except

for SonicPoint.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 5/24

Using Packet Capture

5SonicOS Enhanced 4.0: Packet Capture

Using Packet Capture This section contains the following subsections:

  • “Accessing Packet Capture in the UI” section on page 5

  • “Starting and stopping packet capture” section on page 6

  • “Viewing the captured packets” section on page 6

Accessing Packet Capture in the UI

 This section describes how to access the packet capture tool in the SonicOS UI. There are two ways to access

the Packet Capture screen.

Step 1 Log in to the SonicOS UI as admin.

Step 2  To go directly to the Packet Capture screen, in the left pane, under System, click Packet Capture.

Figure 2 Packet Capture Screen

Step 3  Alternatively, to access packet capture from the Diagnostics screen, in the left pane, under System, clickDiagnostics.

Step 4 In the right pane, in the Diagnostic Tool list, click Packet Capture.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 6/24

Using Packet Capture

6 SonicOS Enhanced 4.0: Packet Capture

Starting and stopping packet capture

 The Packet Capture screen has buttons for start ing and stopping a packet capture. You can start a packet

capture that uses default settings without configuring specific criteria for packet capture, display, FTPexport, and other settings. If you start a default packet capture, the SonicWALL appliance will capture all

packets except those for internal communication, and will stop when the buffer is full or when you clickStop.

Starting packet capture

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.

Step 2 Under Packet Capture, optionally click Reset.

 The Packet Capture page displays several l ines of statistics above the Start and Stop buttons. You can click

Reset to set the statistics back to zero.

Step 3 Under Packet Capture, click Start.

Step 4  To refresh the packet display windows to show new buffer data, click Refresh.

 You can view the captured packets in the Captured Packets, Packet Detail, and Hex Dump sections of thescreen. See “Viewing the captured packets” on page 6.

Stopping packet capture

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.

Step 2 Under Packet Capture, click Stop.

Viewing the captured packets

 The UI provides three windows to display different views of the captured packets. The following sectionsdescribe the viewing windows:

  • “About the Captured Packets Window” on page 6

  • “About the Packet Detail Window” on page 8

  • “About the Hex Dump Window” on page 9

About the Captured Packets Window

 The Captured Packets window displays the following statistics about each packet:

  • # - The packet number relative to the start of the capture

  •  Time - The date and time that the packet was captured

  • Ingress - The SonicWALL appliance interface on which the packet arrived is marked with an asterisk

(*). The subsystem type abbreviation is shown in parentheses. Subsystem type abbreviations are definedin Table 1.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 7/24

Using Packet Capture

7SonicOS Enhanced 4.0: Packet Capture

Table 1 Subsystem Types

Figure 3 Captured Packets Window 

  • Egress - The SonicWALL appliance interface on which the packet was captured when sent out

 The subsystem type abbreviation is shown in parentheses. See Table 1 for definitions of subsystem typeabbreviations.

  • Source IP - The source IP address of the packet

  • Destination IP - The destination IP address of the packet

  • Ether Type - The Ethernet type of the packet from its Ethernet header

  • Packet Type - The type of the packet depending on the Ethernet type; for example:

 – For IP packets, the packet type might be TCP, UDP, or another protocol that runs over IP

  – For PPPoE packets, the packet type might be PPPoE Discovery or PPPoE Session

  – For ARP packets, the packet type might be Request or Reply 

  • Ports [Src,Dst] - The source and destination TCP or UDP ports of the packet

  • Status - The status field for the packet

Abbreviation Definition

i Interface

hc Hardware based encryption or decryption

sc Software based encryption or decryption

m Multicastr Packet reassembly  

s System stack  

ip IP helper

f Fragmentation

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 8/24

Using Packet Capture

8 SonicOS Enhanced 4.0: Packet Capture

 The status field shows the state of the packet with respect to the firewall . A packet can be dropped,generated, consumed or forwarded by the SonicWALL appliance. You can position the mouse pointer

over dropped or consumed packets to show the following information.

  • Length [Actual] - Length value is the number of bytes captured in the buffer for this packet. Actual value, in brackets, is the number of bytes transmitted in the packet.

 You can configure the number of bytes to capture. See “Configuring General Settings” on page 10.

About the Packet Detail Window

 When you click on a packet in the Captured Packets window, the packet header f ields are displayed in the

Packet Detail window. The display will vary depending on the type of packet that you select.

Figure 4 Packet Detail Window displaying ARP packet 

Figure 5 Packet Capture Detail Window displaying IP packet 

Packet status Displayed value Definition of displayed value

Dropped Module-ID = <integer> Value for the protocol subsystem ID

Drop-code = <integer> Reason for dropping the packet

Reference-ID: <code> SonicWALL-specific data

Consumed Module-ID = <integer> Value for the protocol subsystem ID

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 9/24

Using Packet Capture

9SonicOS Enhanced 4.0: Packet Capture

About the Hex Dump Window

 When you click on a packet in the Captured Packets window, the packet data is displayed in hexadecimal and

 ASCII format in the Hex Dump window. The hex format is shown on the left side of the window, with thecorresponding ASCII characters displayed to the right for each line. When the hex value is zero, the ASCII

 value is displayed as a dot.

Figure 6 Hex Dump Window 

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 10/24

Configuring Packet Capture

10 SonicOS Enhanced 4.0: Packet Capture

Configuring Packet Capture You can access the packet capture tool on the System > Packet Capture page of the SonicOS UI. There are

five main areas of configuration for the packet capture tool. The following sections describe theconfiguration options, and provide procedures for accessing and configuring packet capture:

  • “Configuring General Settings” section on page 10

  • “Configuring Capture Filter Settings” section on page 11

  • “Configuring Display Filter Settings” section on page 13

  • “Configuring Logging Settings” section on page 15

  • “Configuring Advanced Settings” section on page 16

  • “Restarting FTP logging” section on page 17

Configuring General Settings

 This section describes how to configure packet capture general settings, including the number of bytes to

capture per packet and the buffer wrap option. You can specify the number of bytes using either decimal or

hexadecimal, with a minimum value of 14. The buffer wrap option enables the packet capture to continueeven when the buffer becomes full, by overwriting the buffer from the beginning.

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.

Step 2 Under Packet Capture, click Configure.

Step 3 In the Packet Capture Configuration window, click the General tab.

Figure 7 General Settings Window 

Step 4 In the Number of Bytes To Capture (per packet)  box, type a number.

 The minimum value is 14.

Step 5  To continue capturing packets after the buffer fills up, select the  Wrap Capture Buffer Once Full  checkbox.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 11/24

Configuring Packet Capture

11SonicOS Enhanced 4.0: Packet Capture

Selecting this option will cause packet capture to start writing captured packets at the beginning of the bufferagain after the buffer fills.

Step 6 Click OK .

Configuring Capture Filter Settings

 This section describes how to configure packet capture capture fi lter settings, including the following:  • Interface on your SonicWALL appliance

 You can specify up to ten interfaces separated by commas. Refer to the Network > Interfaces screen inthe UI for the available interface names. For example, for a SonicWALL PRO Series, you could specify:

X0, X1, X2, X3. You can also use a negative value to configure all interfaces except the one(s) specified;for example: !X0, !X1. For the TZ 190, you could specify WAN, LAN, WWAN, OPT, or !WWAN, !OPT

  • Ethernet type of the packets that you want to capture

 You can specify up to ten Ethernet types separated by commas. Currently, the following Ethernet typesare supported: ARP, IP, PPPoE-SES, and PPPoE-DIS. The latter two can be specified by PPPoE alone.

 This option is not case-sensitive. For example, to capture all supported types, you could enter: ARP, ip,PPPOE. You can use one or more negative values to capture all Ethernet types except those specified;

for example: !ARP, !PPPoE. You can also use hexadecimal values to represent the Ethernet types, ormix hex values with the standard representations; for example: ARP, 0x800, IP. Normally you would

only use hex values for Ethernet types that are not supported by acronym in SonicOS Enhanced. See“Supported Packet Types” on page 21.

  • IP type of the packets that you want to capture

 You can specify up to ten IP types separated by commas. The following IP types are supported: TCP,

UDP, ICMP, GRE, IGMP, AH, ESP. This option is not case-sensitive. You can use one or more negative values to capture all IP types except those specified; for example: !TCP, !UDP. You can also use

hexadecimal values to represent the IP types, or mix hex values with the standard representations; forexample: TCP, 0x1, 0x6. See “Supported Packet Types” on page 21.

  • Source IP addresses(es) from which to capture packets

 You can specify up to ten IP addresses separated by commas; for example: 10.1.1.1, 192.2.2.2. You canuse one or more negative values to capture packets from all but the specified addresses; for example:

!10.3.3.3, !10.4.4.4.

  • Source port(s) from which to capture packets

 You can specify up to ten port numbers separated by commas; for example: 20, 21, 22, 25. You can use

one or more negative values to capture packets from all but the specified ports; for example: !80, !8080

  • Destination IP address(es) for which to capture packets

 You can specify up to ten IP addresses separated by commas; for example: 10.1.1.1, 192.2.2.2. You can

use one or more negative values to capture packets destined for all but the specified addresses; forexample: !10.3.3.3, !10.4.4.4.

  • Destination port(s) for which to capture packets

 You can specify up to ten port numbers separated by commas; for example: 20, 21, 22, 25. You can useone or more negative values to capture packets destined for all but the specified ports; for example: !80,!8080.

  • Bidirectional address and port mapping 

 When this option is selected, IP addresses and ports specified here wi ll be matched against both the

source and destination fields in each packet.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 12/24

Configuring Packet Capture

12 SonicOS Enhanced 4.0: Packet Capture

Note If a field is left blank, no filtering is done on that field. Packets are captured without regard

to the value contained in that field of their headers.

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.Step 2 Under Packet Capture, click Configure.

Step 3 In the Packet Capture Configuration window, click the Capture Filter tab.

Figure 8 Capture Filter Window 

Step 4 In the Interface Name(s) box, type the SonicWALL appliance interfaces on which to capture packets, or

use the negative format (!X0) to capture packets from all interfaces except those specified. To capture on allinterfaces, leave blank.

Step 5 In the Ether Type(s) box, enter the Ethernet types for which you want to capture packets, or use the

negative format (!ARP) to capture packets from all Ethernet types except those specified. To capture allEthernet types, leave blank.

Step 6 In the IP Type(s) box, enter the IP packet types for which you want to capture packets, or use the negative

format (!UDP) to capture packets from all IP types except those specified. To capture all IP types, leaveblank.

Step 7 In the Source IP Address(es) box, type the IP addresses from which you want to capture packets, or usethe negative format (!10.1.2.3) to capture packets from all source addresses except those specified. To

capture packets from all source addresses, leave blank.

Step 8 In the Source Port(s) box, type the port numbers from which you want to capture packets, or use thenegative format (!25) to capture packets from all source ports except those specified. To capture packets

from all source ports, leave blank.

Step 9 In the Destination IP Address(es) box, type the IP addresses for which you want to capture packets, oruse the negative format (!10.1.2.3) to capture packets with all destination addresses except those specified.

 To capture packets for all destination addresses, leave blank.

Step 10 In the Destination Port(s) box, type the port numbers for which you want to capture packets, or use the

negative format (!80) to capture packets with all destination ports except those specified. To capture packetsfor all destination ports, leave blank.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 13/24

Configuring Packet Capture

13SonicOS Enhanced 4.0: Packet Capture

Step 11  To match the values in the source and destination fields against either the source or destination informationin each packet, select the Enable Bidirectional Address and Port Matching checkbox.

Configuring Display Filter Settings

 This section describes how to configure packet capture display filter settings. The values that you providehere are compared to corresponding fields in the captured packets, and only those packets that match are

displayed. Display filter settings include the following:

  • Interface on your SonicWALL appliance

 You can specify up to ten interfaces separated by commas. Refer to the Network > Interfaces screen in

the UI for the available interface names. For example, for a SonicWALL PRO Series, you could specify:X0, X1, X2, X3. You can also use a negative value to configure all interfaces except the one(s) specified;

for example: !X0, !X1. For the TZ 190, you could specify WAN, LAN, WWAN, OPT, or !WWAN, !OPT

  • Ethernet type of the packets that you want to display 

 You can specify up to ten Ethernet types separated by commas. Currently, the following Ethernet types

are supported: ARP, IP, PPPoE-SES, and PPPoE-DIS. The latter two can be specified by PPPoE alone. This option is not case-sensitive. For example, to display all supported types, you could enter: ARP, ip,

PPPOE. You can use one or more negative values to display all Ethernet types except those specified;

for example: !ARP, !PPPoE. You can also use hexadecimal values to represent the Ethernet types, ormix hex values with the standard representations; for example: ARP, 0x800, IP. Normally you would

only use hex values for Ethernet types that are not supported by acronym in SonicOS Enhanced. See“Supported Packet Types” on page 21.

  • IP type of the packets that you want to display 

 You can specify up to ten IP types separated by commas. The following IP types are supported: TCP,UDP, ICMP, GRE, IGMP, AH, ESP. This option is not case-sensitive. You can use one or more negative

 values to display all IP types except those specified; for example: !TCP, !UDP. You can also use

hexadecimal values to represent the IP types, or mix hex values with the standard representations; forexample: TCP, 0x1, 0x6. See “Supported Packet Types” on page 21.

  • Source IP addresses(es) from which to display packets

 You can specify up to ten IP addresses separated by commas; for example: 10.1.1.1, 192.2.2.2. You canuse one or more negative values to display packets with all but the specified source addresses; for

example: !10.3.3.3, !10.4.4.4.

  • Source port(s) from which to display packets

 You can specify up to ten port numbers separated by commas; for example: 20, 21, 22, 25. You can use

one or more negative values to display packets with all but the specified source ports; for example: !80,!8080.

  • Destination IP address(es) for which to display packets

 You can specify up to ten IP addresses separated by commas; for example: 10.1.1.1, 192.2.2.2. You can

use one or more negative values to display packets with all but the specified destination addresses; forexample: !10.3.3.3, !10.4.4.4.

  • Destination port(s) for which to display packets

 You can specify up to ten port numbers separated by commas; for example: 20, 21, 22, 25. You can use

one or more negative values to capture packets with all but the specified destination ports; for example:!80, !8080.

  • Bidirectional address and port mapping 

 When this option is selected, IP addresses and ports specified in either the source or destination fieldsare matched against both the source and destination fields in each packet.

  • Packet status values

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 14/24

Configuring Packet Capture

14 SonicOS Enhanced 4.0: Packet Capture

SonicOS Enhanced adds one of four poss ible packet status values to each captured packet: forwarded,generated, consumed, and dropped. You can select one or more of these status values to match when

displaying packets. The status value shows the state of the packet with respect to the firewall, as follows:

  – Forwarded - The packet arrived on one interface and the SonicWALL appliance sent it out onanother interface.

  – Generated - The SonicWALL appliance created the packet during the process of encryption or

decryption, fragmentation or reassembly, or as a result of certain protocols. – Consumed - The packet was destined for the SonicWALL appliance.

  – Dropped - The SonicWALL appliance did nothing further with the packet. The firewall might have

identified the packet as malformed, malicious, on the deny list, or not on the allow list.

Note If a field is left blank, no filtering is done on that field. Packets are displayed without regard

to the value contained in that field of their headers.

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.

Step 2 Under Packet Capture, click Configure.

Step 3 In the Packet Capture Configuration window, click the Display Filter tab.

Figure 9 Filter Settings Window 

Step 4 In the Interface Name(s) box, type the SonicWALL appliance interfaces for which to display packets, or

use the negative format (!X0) to display packets captured from all interfaces except those specified. Todisplay packets captured on all interfaces, leave blank.

Step 5 In the Ether Type(s) box, enter the Ethernet types for which you want to display packets, or use the

negative format (!ARP) to display packets of all Ethernet types except those specified. To display allEthernet types, leave blank.

Step 6 In the IP Type(s) box, enter the IP packet types for which you want to display packets, or use the negativeformat (!UDP) to display packets of all IP types except those specified. To display all IP types, leave blank.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 15/24

Configuring Packet Capture

15SonicOS Enhanced 4.0: Packet Capture

Step 7 In the Source IP Address(es) box, type the IP addresses from which you want to display packets, or usethe negative format (!10.1.2.3) to display packets captured from all source addresses except those specified.

 To display packets from all source addresses, leave blank.

Step 8 In the Source Port(s) box, type the port numbers from which you want to display packets, or use thenegative format (!25) to display packets captured from all source ports except those specified. To display

packets from all source ports, leave blank.

Step 9 In the Destination IP Address(es) box, type the IP addresses for which you want to display packets, oruse the negative format (!10.1.2.3) to display packets with all destination addresses except those specified. To display packets for al l destination addresses, leave blank.

Step 10 In the Destination Port(s) box, type the port numbers for which you want to display packets, or use the

negative format (!80) to display packets with all destination ports except those specified. To display packetsfor all destination ports, leave blank.

Step 11  To match the values in the source and destination fields against either the source or destination information

in each captured packet, select the Enable Bidirectional Address and Port Matching checkbox.

Step 12  To display captured packets that the SonicWALL appliance forwarded, select the Forwarded checkbox.

Step 13  To display captured packets that the SonicWALL appliance generated, select the Generated checkbox.

Step 14  To display captured packets that the SonicWALL appliance consumed, select the Consumed checkbox.

Step 15  To display captured packets that the SonicWALL appliance dropped, select the Dropped checkbox.

Configuring Logging Settings

 This section describes how to configure packet capture logging settings. These settings provide a way to

configure automatic logging of the capture buffer to an external FTP server. When the buffer fills up, thepackets are transferred to the FTP server. The capture continues without interruption.

If you configure automatic logging, this supercedes the setting for wrapping the buffer when full. Withautomatic FTP logging, the capture buffer is effectively wrapped when full, but you also retain all the datarather than overwriting it each time the buffer wraps.

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.

Figure 10 Logging Settings Window 

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 16/24

Configuring Packet Capture

16 SonicOS Enhanced 4.0: Packet Capture

Step 2 Under Packet Capture, click Configure.

Step 3 In the Packet Capture Configuration window, click the Logging tab.

Step 4 In the FTP Server IP Address box, type the IP address of the FTP server. For example, type 10.1.2.3.

Note Make sure that the FTP server IP address is reachable by the SonicWALL appliance.

 An IP address that is reachable only via a VPN tunnel is not supported.

Step 5 In the Login ID box, type the login name that the SonicWALL appliance should use to connect to the FTPserver.

Step 6 In the Password box, type the password that the SonicWALL appliance should use to connect to the FTP

server.

Step 7 In the Directory Path box, type the directory location for the transfer red files. The files are written to this

location relative to the default FTP root directory.

For libcap format, files are named “packet-log--<>.cap”, where the <> contains a run number and dateincluding hour, month, day, and year. For example, packet-log--3-22-08292006.cap. For HTML format, file

names are in the form: “packet-log_h-<>.html”. An example of an HTML file name is:packet-log_h-3-22-08292006.html.

Step 8  To enable automatic transfer of the capture file to the FTP server when the buffer is full, se lect the Log To

FTP Server Automatically checkbox. Files are transferred in both libcap and HTML format.

Step 9  To enable transfer of the fi le in HTML format as well as libcap format, select the Log HTML File Along

 With .cap File (FTP).

Step 10  To test the connection to the FTP server and transfer the capture buffer contents to it, click Log Now .

In this case the file name will contain an ‘F’. For example, packet-log-F-3-22-08292006.cap orpacket-log_h-F-3-22-08292006.html.

Step 11  To save your settings and exit the screen, cl ick OK .

Configuring Advanced Settings This section describes how to configure settings for the following:

  • Capturing packets generated by the SonicWALL appliance

  • Capturing intermediate packets generated by the appliance

  • Excluding traffic from SonicWALL Global Management System (GMS)

  • Excluding management traffic

  • Excluding syslog traffic

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.Step 2 Under Packet Capture, click Configure.

Step 3 In the Packet Capture Configuration window, click the Advanced tab.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 17/24

Configuring Packet Capture

17SonicOS Enhanced 4.0: Packet Capture

Figure 11 Advanced Settings Window 

Step 4  To capture packets generated by the SonicWALL appliance, select the Capture Firewall Generated

Packets checkbox.

Even when interfaces specified in the capture filters do not match, this option ensures that packetsgenerated by the SonicWALL appliance are captured. This includes packets generated by HTTP(S), L2TP,

DHCP servers, PPP, PPPOE, and routing protocols. Captured packets are marked with ‘s’ in the incominginterface area when they are from the system stack. Otherwise, the incoming interface is not specified.

Step 5  To capture intermediate packets generated by the SonicWALL appliance, select the Capture Intermediate

Packets checkbox.

Intermediate packets include packets generated as a result of fragmentation or reassembly, intermediate

encrypted packets, IP helper generated packets, and replicated multicast packets.

Step 6  To exclude encrypted management or syslog traffic to or from GMS, select the Exclude encrypted GMS

traffic checkbox.

 This setting only affects encrypted traffic within a configured primary or secondary GMS tunnel. GMS

management traffic is not excluded if it is sent via a separate tunnel.

Step 7  To exclude management traffic, select the Exclude Management Traffic checkbox and select one or more

checkboxes for HTTP/HTTPS, SNMP, or SSH.

If management traffic is sent via a tunnel, the packets are not excluded.

Step 8  To exclude syslog traffic to a server, select the Exclude Syslog Traffic to checkbox and select one or more

checkboxes for Syslog Servers or GMS Server.

If syslog traffic is sent via a tunnel, the packets are not excluded.

Restarting FTP logging

If automatic FTP logging is off, either because of a failed connection or simply disabled, you can restart itin Configure > Logging.

Step 1 Navigate to the Packet Capture page in the UI.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 18/24

Configuring Packet Capture

18 SonicOS Enhanced 4.0: Packet Capture

See “Accessing Packet Capture in the UI” on page 5.

Step 2 Under Packet Capture, click Configure.

Step 3 In the Packet Capture Configuration window, click the Logging tab.

Step 4  Verify that the settings are correct for each item on the page.

See “Configuring Logging Settings” on page 15.

Step 5  To change the FTP logging status on the main packet capture page to “active”, select the Log To FTPServer Automatically checkbox.

Step 6 Click OK .

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 19/24

Verifying Packet Capture Activity

19SonicOS Enhanced 4.0: Packet Capture

Verifying Packet Capture Activity This section describes how to tell if your packet capture is working correctly according to the configuration

It contains the following sections:

  • “Understanding Status Indicators” section on page 19

  • “Resetting the Status Information” section on page 20

Understanding Status Indicators

 The main Packet Capture screen displays status indicators for packet capture and FTP logging. The packet

capture status indicator shows one of the following three conditions:

  • Red: Capture is stopped

  • Green: Capture is running and the buffer is not full

  • Orange: Capture is running, but the buffer is full

Figure 12 Main Packet Capture Window 

 The UI also displays the buffer size, the number of packets captured, the percentage of buffer space used,

and how much of the buffer has been lost. Lost packets occur when automatic FTP logging is turned on,but the file transfer is slow for some reason. If the transfer is not finished by the time the buffer is full again,the data in the newly filled buffer is lost.

Note  Although the buffer wrap option clears the buffer upon wrapping to the beginning, this

is not considered lost data.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 20/24

Verifying Packet Capture Activity

20 SonicOS Enhanced 4.0: Packet Capture

 The FTP logging status indicator shows one of the following three conditions:

  • Red: Automatic FTP logging is off 

  • Green: Automatic FTP logging is on

• Orange: The last attempt to contact the FTP server failed, and logging is now off 

 To restart automatic FTP logging, see “Restarting FTP logging” on page 17.

Next to the FTP logging indicator, the UI also displays the number of successful and failed attempts totransfer the buffer contents to the FTP server, the current state of the FTP process thread, and the statusof the capture buffer.

Under the FTP logging indicator, on the Current Buffer Statistics l ine, the UI displays the number of packets

dropped, forwarded, consumed, generated, or unknown.

On the Current Configurations line, you can hover your mouse pointer over Filters, General, or Logging to view the currently configured value for each setting in that category. The Filters display includes the capture

filter and display filter settings. The display for General includes both the general and advanced settings. TheLogging display shows the FTP logging settings.

Resetting the Status Information

 You can reset the displayed statistics for the capture buffer and FTP logging. If a capture is in progress, i t

is not interrupted when you reset the statistics display.

Step 1 Navigate to the Packet Capture page in the UI.

See “Accessing Packet Capture in the UI” on page 5.

Step 2 Under Packet Capture, click Reset.

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 21/24

Related Information

21SonicOS Enhanced 4.0: Packet Capture

Related Information This section contains the following:

  • “Supported Packet Types” section on page 21

  • “File Formats for Export As” section on page 21

Supported Packet Types

 When specifying the Ethernet or IP packet types that you want to capture or display, you can use either thestandard acronym for the type, if supported, or the corresponding hexadecimal representation. To

determine the hex value for a protocol, refer to the RFC for the number assigned to it by IANA. Theprotocol acronyms that SonicOS Enhanced currently supports are as follows:

File Formats for Export As

 This section contains the following examples of the file formats available in the Export As option:

  • “HTML Format” on page 22

  • “Text File Format” on page 23

Supported Ethernet types:   •  ARP

  • IP

  • PPPoE-DIS

  • PPPoE-SES

 To specify both PPPoE-DIS and PPPoE-SES, you can

simply use PPPoE.

Supported IP types:   •  TCP

  • UDP

  • ICMP

  • IGMP

  • GRE

  •  AH

  • ESP

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 22/24

Related Information

22 SonicOS Enhanced 4.0: Packet Capture

HTML Format

 You can view the HTML format in a browser. The following is an example showing the header and part of

the data for the first packet in the buffer.

Figure 13 HTML Output from Export As

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 23/24

Related Information

23SonicOS Enhanced 4.0: Packet Capture

Text File Format

 You can view the text format output in a text editor. The following is an example showing the header and

part of the data for the first packet in the buffer.

Figure 14 Text Format Output from Export As

8/12/2019 232-001203-00 Rev a SonicOS 4.0 Packet Capture Feature Module

http://slidepdf.com/reader/full/232-001203-00-rev-a-sonicos-40-packet-capture-feature-module 24/24

Glossary

Glossary

 AH Authentication Header

 ARP Address Resolution Protocol

CAP Converged Application Platform, used by Wireshark/Ethereal

DHCP Dynamic Host Configuration Protocol

ESP Encapsulating Security Payload

FTP File Transfer Protocol

GMS Global Management System

GRE Generic Route Encapsulation

HTML Hypertext Markup Language

HTTP Hypertext Transfer Protocol

HTTPS Secure Hypertext Transfer Protocol

ICMP Internet Control Message Protocol

IGMP Internet Group Management Protocol

IP Internet Protocol

L2TP Layer 2 Tunneling Protocol

MAC Media Access Control

PPP Point to Point Protocol

PPPoE-DIS Point to Point Protocol over Ethernet - Discovery 

PPPoE-SES Point to Point Protocol over Ethernet - Session

RFC Request for Comments

SNMP Simple Network Management Protocol

SSH Secure Shell

 TCP Transmiss ion Control Protocol

UDP User Datagram Protocol

UI User Interface