Azure-docs: capture private traffic on tunnel interface instead of encrypted public to public traffic

Created on 13 Sep 2020  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

[Enter feedback here]

I just tried Start-AzVirtualnetworkGatewayPacketCapture and Start-AzVirtualNetworkGatewayConnectionPacketCapture ,
The two captured files only show packets like:

[on-prem VPN public IP] [VPN Gateway public IP] ESP 222 ESP (SPI=0xef1955ba)

Not the private traffic on the tunnel interface. This isn't really very helpful.

Is this it supposed to be?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cxp product-question triaged vpn-gatewasvc

All 6 comments

@jackchenquest Thanks for the feedback. We are investigating the issue and will update you shortly.

@jackchenquest, Appreciate your patience. I have captured the similar log in my test environment. But It should capture both encrypted and plaintext packets. It will capture all packets going into/from VNETs. Each packet from VNet VMs to on premises should result in 2 packets: one from VNet (not encrypted) and one encrypted packet.

SS:
image

Thanks SubhashVasarapu! Not sure why I only got encrypted packet, I will retest it.

@jackchenquest, are we good to close this issue? For any kind of troubleshooting scenerios and technical help, please post your quesries on Microsoft Q&A platform for better reach. GitHub platform concentrates more on improvising Azure Docs in case there is a need for Doc enhancement.

Sure.

It looks like you need to specify a filter to get any inner packets to show up in the capture.

You can use a "catch-all" filter from https://docs.microsoft.com/en-us/powershell/module/az.network/start-azvirtualnetworkgatewaypacketcapture?view=azps-4.8.0#example-3 to get all the inner traffic:

$a = "{`"TracingFlags`": 11,`"MaxPacketBufferSize`": 120,`"MaxFileSize`": 500,`"Filters`" :[{`"CaptureSingleDirectionTrafficOnly`": false}]}"
Start-AzVirtualnetworkGatewayPacketCapture -ResourceGroupName "PktCaptureTestSite2RG" -Name "PktCaptureTestSite2VNG" -FilterData $a

In my opinion the documentation can be improved to make this clearer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharbieh picture jharbieh  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments