home lab

Installing and Configuring Palo Alto PA220 Home Lab Firewall

A look at Installing and Configuring Palo Alto PA220 Home Lab Firewall including the major configuration to be implemented to provide basic connectivity

I have been running a new Palo Alto PA-220 on a TAP interface mirroring my WAN traffic coming into the home lab and loving the visibility to applications that I didn’t have with my previous firewall. Palo certainly gives you that when you introduce it into an environment. The time for me came however, to introduce the firewall into “production”, replacing my existing firewall with the Palo to route and control traffic. Configuring any firewall is certainly tedious as they generally all have their tricks to getting up and running with slight variances on how technologies are implemented and how traffic is handled. In this post, we will take a look at Installing and Configuring Palo Alto PA220 Home Lab Firewall and step through some of the major points of configuration in getting traffic flowing.

Installing and Configuring Palo Alto PA220 Home Lab Firewall

At a high level, what is involved withย Installing and Configuring Palo Alto PA220 Home Lab Firewall?ย  Well there are several things that you want to accomplish during the installation and configuration to make sure network traffic flows correctly.ย  This assumes that you already have connectivity via the management interface which allows out-of-band management of the firewall.

  • Install Licenses
  • Configure Dynamic Updates
  • Configure Interfaces, VLANs, appropriate switch tagging
    • Setup DHCP Server(s)
  • Configure Zones
  • Configure Network Address Objects
  • Create Security Policies
  • Create NAT Policies
    • Ingress and Egress

The above list is by no means all inclusive, especially with the different needs of different network environments, however, it represents a few of the major configuration areas that you need to cover to get traffic flowing correctly.

Install Palo Alto Licenses

First things first, you want to have your licensing in order as the installed licensing unlocks the various functionality for the firewall itself, including Threat Prevention, PAN-DB URL Filtering, and Wildfire to name a few.ย  To do this, you should have an authorization code received from your vendor that you purchased your firewall from that allows you to match up the serial and authorization code to receive your licensing.ย  Go toย https://support.paloaltonetworks.com, create an account if you do not have one and then simply perform theย Register New Device process.

Getting-Palo-Alto-Firewall-License-Files
Getting Palo Alto Firewall License Files
Retrieving-License-Keys-from-Palo-Alto-license-server
Retrieving License Keys from Palo Alto license server

Configure Dynamic Updates

Once you have your licenses installed, you can configure the dynamic updates on the Palo Alto which aligns with the installed features and functionality via the licenses.ย  This allows you to schedule pulls of Antivirus definitions, Applications and threats, GlobalProtect Clientless VPN and Wildfire updates.ย  With theย Scheduleย options you can schedule the check for new downloads and install option for each of the various components.

Configuring-Palo-Alto-Dynamic-Udates-and-Scheduled-downloads
Configuring Palo Alto Dynamic Udates and Scheduled downloads

Configure Interfaces, VLANs, Appropriate Switch Tagging

Setting up the Interfaces on the Palo Alto is an essential part of the configuration process for the firewall. You have to setup your interfaces for the various subnets for which the Palo Alto will be routing traffic. This includes any VLAN tagging that needs to be done. For most, setting up the interfaces as Layer 3 Interface Types is preferrable. To setup VLANs, you can utilize subinterfaces which allow setting the VLAN tag.

One nice thing to note about the Palo is you can create new security zones and objects from most of the configuration menus.

Configuring-a-Layer-3-Subinterface-with-VLAN-tag
Configuring a Layer 3 Subinterface with VLAN tag

This follows suit with any VLAN tagging, however, part of the configuration of your physical switch you are utilizing to pass the tagged frames is to have the VLANs configured on the port(s) configured for uplinks.ย  With the PA-220 there are a ton of ports that can be configured as physical uplinks to your switch that can align with your logical interface configuration and zones.

Additionally, you can setup DHCP servers if you need them on various interfaces to service your configured subnets.ย  The DHCP servers are fully autonomous of one another and can have completely separate configuration settings and values.

Palo-Alto-DHCP-server-configuration-on-interfaces
Palo Alto DHCP server configuration on interfaces

Configuring Palo Alto Zones

Most modern firewalls have the concept ofย zones.ย  What are zones?ย  According to the official Palo Alto documentation:

Aย zoneย is a grouping of interfaces (physical or virtual) that represents a segment of your network that is connected to, and controlled by, the firewall. Because traffic can only flow between zones if there is a Security policy rule to allow it, this is your first line of defense. The more granular the zones you create, the greater control you have over access to sensitive applications and data and the more protection you have against malware moving laterally throughout your network. For example, you might want to segment access to the database servers that store your customer data into a zone called Customer Data. You can then define security policies that only permit certain users or groups of users to access the Customer Data zone, thereby preventing unauthorized internal or external access to the data stored in that segment.

Zones are an extremely important part of the overall security design and construct of your policies to plumb traffic into your various network segments.ย  In many SMB sized enterprises, a lot of times the security zones simply align with the various uplinked physical interfaces and their purpose, however, there are many creative ways that zones can be implemented to control traffic flow.

You can either create zones ahead of time, or you can configure the interface and create the zone at that time.ย  The key areas of configuration here are theย Name,ย Type andย Interfaces.

Configuring-new-Palo-Alto-security-zones
Configuring new Palo Alto security zones

Configure Palo Alto Network Address Objects

What are Address Objects?ย  These allow creating entities that represent network addresses that can be used inside policies.ย  A huge advantage to using address objects are they allow you to make changes to address objects inย one place and the change is represented across all security or NAT policies the address object is referenced in.ย  This approach is way more efficient than changing an IP address in 100 different policies where it may be referenced.

This was also great from the standpoint of taking the firewall live into my production environment. I simply changed the network address objects that I had assigned to each of the interfaces on the Palo and once the commit was complete, due to changing the objects, all the interfaces, and security policies were configured as I wanted them to be.

Address groups allow you to group together multiple address objects.ย  This allows you to reference one object and that one object containing multiple address objects.ย  Creating your Address Objects before delving off into your security policies allows you to have your address objects in place so you can begin working with them inside policies either security or NAT.ย  However, as is the case with most of the PAN-OS GUI, you can actually create the address object from within the security or NAT policy configuration when scoping a rule down to a certain object.ย  You can select to create aย new address object.

Create Security Policies

Once you have the above configuration in place, you can really start getting down to creating your security policies.ย  Security policies are basically your firewallย rules as such that allow or disallow traffic from a source to a destination.ย  However, one of the great abilities of the Palo Alto firewall is being able to filter traffic based onย application ID.ย  This allows you to filter traffic based on the ID of the application and not based on IP and port rules.ย  So for instance, you can simply allow “facebook” and not worry about which IPs and ports that need to be allowed.ย  The Palo is able to see the application ID and block or allow traffic at the application layer.ย  This is a much more powerful approach than strictly layer 3 or 4 traffic.

A couple of special rules to note – the Palo by default creates the two rules below,ย intrazone-defaultย andย interzone-default which are default rules that control traffic inside a zone and between zones.ย  By default PAN-OS blocks traffic between zones.ย  A point to note that can cause confusion – PAN-OS does not log the drops by default that are a result of the interzone-default rule.ย  To enable logging on these default rules, click the rule, and then select theย Override button which allows you to make changes to these default rules (logging, etc).ย ย Default-Palo-Intrazone-and-Interzone-Security-Policies

Configure NAT Policies

NAT policies are what allow a firewall to present source traffic as a certain IP address such as for Internet connectivity (you want a whole subnet to present to the Internet at the outside IP of the firewall.)ย  Also, it allows setting up destination NAT so that ingress traffic coming into the firewall on the public IP can be forwarded to the inside IP address or DMZ address of a web server.

Below, on my DHCP assigned WAN IP address, I am translating theย Source Addressย to theย Interface Address of the firewall.

NAT-translation-for-Internet-connectivity
NAT translation for Internet connectivity

Takeaways

So far my transition to the Palo Alto PA-220 firewall in the home lab has been fairly smooth.ย  I have encountered the normal wrinkles in getting security policies in place that needed to be carried over from my other firewall that were missed in the outset.ย  However, all in all,ย Installing and Configuring Palo Alto PA220 Home Lab Firewall has been intuitive and fairly uneventful.ย  Looking forward to diving into the Palo even further and doing some more advanced networking and filtering in the home lab.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.