Hello Gongya Yu (admin)
I understand that you're running into some routing issues with your endpoint behind the security appliance in the Hub VNet.
It seems that while the ping requests are going through the security appliance, TCP traffic is bypassing it, which could be due to the traffic being routed through Azure's network rather than your defined path.
Here are a couple of steps to help troubleshoot this:
- If your endpoint is a Private Endpoint, make sure that network policies on the subnet are enabled. This setting forces the traffic through your user-defined routes (UDR), guiding it to the firewall.
- Inspect the routing tables associated with your VNet and ensure that traffic destined for the endpoint is routed correctly through your security appliance.
- Check any Network Security Groups (NSGs) that may be applied to your VNet. Sometimes NSGs can inadvertently allow, or block traffic based on predefined rules.
- Utilize Azure Network Watcher to analyze the effective routes to your endpoint and diagnose any issues with network flow.
Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.