pfsense plus on Azure - PAT not working
-
I have activate the pfsense plus image on my cloud VM,the Azure VM has 2 subnets
LAN subnet : 10.20.1.0/24 - VM Lan interface : 10.20.1.10 static IP address
WAN subnet : 10.20.2.0/24 - VM WAN interface : 10.20.2.10 DHCP IP address ( default gateway IP 10.20.2.1 Via auto provisioning by Azure network layer)
Public IP x.x.x.x is 1:1 Azure mapped to WAN IP 10.20.2.10i can connect to the public IP address (x.x.x.x) and access pfsense web UI (https : 443 ). i am also able to SSH to the public address (ssh: 22) , and able to successfully SSH to pfsense firewall appliance.
but any port forwarding on pfsense is not working. For example:
A windows OS VM with 10.20.1.11 (lan subnet) which has RDP configured and active on it. in the pfsense webgui settings, i have configured port forwarding (3389) on WAN interface pfsense to forward to 10.20.1.11, also i have confirmed relevant firewall Rule (WAN) is configured as well.
regarding Azure network NSG settings, on the private wan interface (IP : 10.20.2.10 ) of the pfsense VM i have allowed RDP port 3389 to windows OS VM (IP: 10.20.1.11). But the RDP is not getting connected from internet.
other VMs in the lan subnet (10.20.1.0/24) can do RDP connection to this windows OS (and vice-versa). All these VMs in lan subnet has the 10.20.1.10 (LAN IP of pfsense firewall) as their default gateway, and these VMs can reach out to internet.
Note : I have tried to connect via RDP to the same windows VM a direct public IP (temporarily leased from azure, outside the pfsense firewall), this connectivity also worked fine. but the port forwarding pfsense -> NSG part is not working.
Can anyone tell me what went wrong here ? why the basic PAT is not working.
-
@MtMt said in pfsense plus on Azure - PAT not working:
regarding Azure network NSG settings, on the private wan interface (IP : 10.20.2.10 ) of the pfsense VM i have allowed RDP port 3389 to windows OS VM (IP: 10.20.1.11). But the RDP is not getting connected from internet.
Apart from this you have also to enable IP forwarding on all envolved pfSense interface in Azure.
-
thank you for the reply.
I have enabled IP fowarding on both WAN and LAN interfaces of pfsense VM as well.
Not sure where to focus my troubleshooting.
I guess it is something related to the 'double NAT' (azure network layer <-> pfsense appliance). but i really cant spot the catch.
Regards
MT
-
@MtMt
Also remember, that access to the RDP server is not allowed from outside of the subnet by default in Windows. You have to configure its firewall accordingly.