You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/vpn-gateway/packet-capture.md
+16-10Lines changed: 16 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ Connectivity and performance-related problems are often complex. It can take sig
15
15
16
16
There are some commonly available packet capture tools. Getting relevant packet captures with these tools can be cumbersome, especially in high-volume traffic scenarios. The filtering capabilities provided by Azure VPN Gateway packet capture are a major differentiator. You can use VPN Gateway packet capture together with commonly available packet capture tools.
You can run VPN Gateway packet capture on the gateway or on a specific connection, depending on your needs. You can also run packet capture on multiple tunnels at the same time. You can capture one-way or bi-directional traffic, IKE and ESP traffic, and inner packets along with filtering on a VPN gateway.
20
+
You can run VPN Gateway packet capture on the gateway, or on a specific connection, depending on your needs. You can also run packet capture on multiple tunnels at the same time. You can capture one-way or bi-directional traffic, IKE and ESP traffic, and inner packets along with filtering on a VPN gateway.
21
21
22
22
It's helpful to use a five-tuple filter (source subnet, destination subnet, source port, destination port, protocol) and TCP flags (SYN, ACK, FIN, URG, PSH, RST) when you're isolating problems in high-volume traffic.
23
23
@@ -32,7 +32,7 @@ The following examples of JSON and a JSON schema provide explanations of each pr
32
32
> [!NOTE]
33
33
> Set the **CaptureSingleDirectionTrafficOnly** option to **false** if you want to capture both inner and outer packets.
34
34
35
-
### Example JSON
35
+
**Example JSON**
36
36
37
37
```JSON-interactive
38
38
{
@@ -62,7 +62,9 @@ The following examples of JSON and a JSON schema provide explanations of each pr
62
62
]
63
63
}
64
64
```
65
-
### JSON schema
65
+
66
+
**JSON schema**
67
+
66
68
```JSON-interactive
67
69
{
68
70
"type": "object",
@@ -317,17 +319,21 @@ The following examples of JSON and a JSON schema provide explanations of each pr
317
319
}
318
320
```
319
321
320
-
## Key considerations
322
+
###Key considerations
321
323
322
324
- Running packet capture can affect performance. Remember to stop the packet capture when you don't need it.
323
325
- Suggested minimum packet capture duration is 600 seconds. Because of sync issues among multiple components on the path, shorter packet captures might not provide complete data.
324
326
- Packet capture data files are generated in PCAP format. Use Wireshark or other commonly available applications to open PCAP files.
325
327
- Packet captures aren't supported on policy-based gateways.
326
-
- The maximum filesize of packet capture data files is 500MB.
328
+
- The maximum filesize of packet capture data files is 500 MB.
327
329
- If the `SASurl` parameter isn't configured correctly, the trace might fail with Storage errors. For examples of how to correctly generate an `SASurl` parameter, see [Stop-AzVirtualNetworkGatewayPacketCapture](/powershell/module/az.network/stop-azvirtualnetworkgatewaypacketcapture).
328
330
- If you're configuring a User Delegated SAS, make sure the user account is granted proper RBAC permissions on the storage account such as Storage Blob Data Owner.
329
331
330
-
## Start packet capture - portal
332
+
## Packet capture - portal
333
+
334
+
This section helps you start and stop a packet capture using the Azure portal.
335
+
336
+
### Start packet capture - portal
331
337
332
338
You can set up packet capture in the Azure portal.
333
339
@@ -340,15 +346,15 @@ You can set up packet capture in the Azure portal.
340
346
1. On the **Start Packet Capture** page, make any necessary adjustments. Don't select the "Capture Single Direction Traffic Only" option if you want to capture both inner and outer packets.
341
347
1. Once you've configured the settings, click **Start Packet Capture**.
342
348
343
-
## Stop packet capture - portal
349
+
###Stop packet capture - portal
344
350
345
351
To complete a packet capture, you need to provide a valid SAS (or Shared Access Signature) URL with read/write access. When a packet capture is stopped, the output of the packet capture is written to the container that is referenced by the SAS URL.
346
352
347
353
1. To get the SAS URL, go to the storage account.
348
354
1. Go to the container you want to use and right-click to show the dropdown list. Select **Generate SAS** to open the Generate SAS page.
349
355
1. On the Generate SAS page, configure your settings. Make sure that you have granted read and write access.
350
356
1. Click **Generate SAS token and URL**.
351
-
1. The SAS token and SAS URL will appear below the button immediately. Copy the Blob SAS URL.
357
+
1. The SAS token and SAS URL is generated and appears below the button immediately. Copy the Blob SAS URL.
352
358
353
359
:::image type="content" source="./media/packet-capture/generate-sas.png" alt-text="Screenshot of generate SAS token." lightbox="./media/packet-capture/generate-sas.png":::
354
360
@@ -362,7 +368,7 @@ To complete a packet capture, you need to provide a valid SAS (or Shared Access
362
368
363
369
The following examples show PowerShell commands that start and stop packet captures. For more information on parameter options, see [Start-AzVirtualnetworkGatewayPacketCapture](/powershell/module/az.network/start-azvirtualnetworkgatewaypacketcapture).
364
370
365
-
### Prerequisites
371
+
**Prerequisites**
366
372
367
373
* Packet capture data needs to be logged into a storage account on your subscription. See [create storage account](../storage/common/storage-account-create.md).
0 commit comments