Azure Firewall Setup

  • Trying to configure a basic firewall in azure to pass traffic thru before it hits the VM's two interfaces simple setup what are the steps required to make this work. I have the netgate image installed on Azure currently. I want the ips of the vm's to be what is seen not one ip that gets nated. Any help is greatly appreciated.

  • Does anyone have instructions for a simple Wan/Lan firewall deployment in Azure. I believe my issue is with the user-defined routes and nating. When ever i add the route that points to the appliance i lose all connections to the virtual network machines on the subnet. I want the public ips to be what is sent out. What am I missing?

  • LAYER 8 Netgate

    You want LAN public IPs to be routed from the outside to the inside VMs on the pfSense inside interface?

    Does Azure even support routing like that? Without NAT, they would have to know to route the traffic to those addresses to the pfSense WAN address.

  • We have several public ip's that azure has assigned to our different network interfaces i'd love to be able to continue to use them instead of putting it all through one firewall ip. Is that possible? It seems my error is somewhere in the routes as soon as i add to the LAN route table I lose all the VM's. Over 3 days and can't get it talking correctly. Not sure what I'm missing here.

  • LAYER 8 Netgate

    I don't think you can do that.

    I would put one on the same subnet as the LAN interface and try changing the route on that and see if you at least can get a normal, natted LAN connection going.

  • So attempt Lan and Wan on same subnet add the and see if a NAT connection can be had. I'm no expert at networking could it be possible that 1:1 natting could be used to allow the use of the azure front facing public ips? How do we have two port 80's on one IP? We have a few front end applications we'd like to protect but they share several of the same ports currently we are doing this with NSG's.

  • LAYER 8 Netgate

    That can be done if:

    1. Azure will route public addresses to the public address of pfSense. In this case you might be able to just use the publics as they are.

    2. Azure will allow multiple public addresses on the WAN interface.

    You might be able to get away with one outside address for multiple inside servers by using something like HAproxy to steer the traffic to the correct server based on requested hostname or SNI.

  • Any idea when I route to the appliance i lose all communication to the vm's on the lan subnet?

  • LAYER 8 Netgate

    Did you try it like I suggested with an interface on the LAN subnet + NAT instead of those publics?

    Azure has zero way of knowing it needs to route those inside publics to the pfSense WAN. If it is going to be possible, that needs to happen.

  • I'm a little confused. Interface on the Lan subnet? what exactly would you like me to do with the interfaces and routes. Currently I have two interfaces in the system.
    Wan = and Lan

    In azure I have to virtual subnets and
    Nat set to manual
    allow all on the lan and wan for testing

    been going at this 10/hrs a day since saturday I'll try anything at this point to get it working. Never was this hard to install pfsense locally :)

    Help greatly appreciated

    ![Effective Routes.png](/public/imported_attachments/1/Effective Routes.png)
    ![Effective Routes.png_thumb](/public/imported_attachments/1/Effective Routes.png_thumb)

  • LAYER 8 Netgate

    In azure I have to virtual subnets and

    Looks like that LAN interface is to me.

  • updated the LAN interface to /24 and removed the old NAT entries this is what I have now not even seeing the attempts to connect on the firewall log.

  • Another interesting thing is I can ping from the LAN IP but never can I get connected to or ping the systems in the LAN subnet.

  • Was this ever worked? I am in a similar situation...

Log in to reply