Hi,
I am facing some issues accessing my web page using application gateway's public IP.
My configuration is as below:
VNET:
FrontendSubnet -> associated with NSG (frontend)
- (frontend)NSG has rules:
-Destination Port: 9443
-Protocol: TCP
-Source: Any
-Destination: Any
- frontendSubnet is associated with VM
VM has application server deployed in it which I am able to access it using it's public IP on port 9443. i.e.:
https://<VM Public IP>:9443/
ApplicationGatwaySubnet:
-Appgw subnet has no any NSG
-Appgw has backend pool with targeting above VM (NIC (Private IP)
-HttpSetting is configured with port 9443 because I want to allow traffic on port 9443
-Listener is configured with Basic type.
Note: I am able to browse (access) web page (hosted in VM) using application gateway's private IP. i.e.:
https://<appgw's private ip>:9443/
Issue: I am not able to browse web page using Application Gateway's public IP
What I've done:
I've tried to create a rule in frontEnd NSG as below:
Destination Port: 9443
Protocol: TCP
Source IP: <Application Gateway public (frontend) IP>
Destination: <VM's private IP>,<VM's public IP>
What I followed:
I followed this document which is working fine for me because there is no NSG associated with backend subnet (in this document)
https://learn.microsoft.com/en-us/azure/application-gateway/quick-create-portal
What I am supposed to achieve:
I want to access my web application (hosted in VM) using Application Gateway's Public IP.
I've no further clue about how I can access web page using application gateway's public ip.