01-26-2012 02:05 PM
I'm looking to use FQDNs inside Address Objects but have some reservations. What happens if my DNS goes down, or becomes corrupted for some reason. In other words, when using FQDNs, what happens if the PA can't resolve the address? Is all traffic to FQDN configured objects blocked?
As an example, let's say access to my DNS server (or some other critical device) is through a rule with an address object of FQDN and not IP. Since I know the IP address of my DNS server, would I be able to SSH to it through an IP call or am I totally blocked until DNS comes back online? If true, I would need a separate rule to allow traffic by IP Netmask to my DNS server just in case DNS goes down and I need to gain access to my server to troubleshoot any problem?
Another example would be use FQDN for my email servers. If DNS goes missing, does all email stop?
01-26-2012 02:40 PM
If im not mistaken FQDN rules are resolved when the ruleset is committed and not dynamically.
Also note that the ruleset can be automatically committed if you have "download-and-apply" threat preventation and/or url-category database updates (usually once or twice a day).
Generelly its bad to use FQDN for firewalls mainly because you will then rely on some external information.
Let us assume you setup a rule which looks like:
And then let us assume someone dns poision the dns-server your firewall is using when committing the rules so mail.example.com resolves into "0.0.0.0" (or even worse hacks your dns-server to manually setup the zones). Or for that matter if the dns-server is unavailable when you commits the ruleset - is the default in the firewall "0.0.0.0" for unresolved addresses or is it "255.255.255.255" (or will it even commit)?
The result would then be that you allow the current port and/or app-id to EVERY ip-address available for that particular zone (or even worse if you select zone:any).
If you want to setup rules towards your email servers we can be pretty sure you already use static ip's for those servers and therefor your have another reason for why you shouldnt use FQDN (because there is simply no need to).
You can setup local names in the firewall if you go to Network -> Address objects (and even Address Groups) to setup stuff like:
Mailservers (mail1.example.com, mail2.example.com)
The above will point to the address objects named mail1. and mail2. NOT the FQDN). Or if you think you could be confused if its FQDN or not then just:
Mailservers (mail1, mail2)
and then setup the rule as (just an example, in real life one would choose designated port along with zone AND app-id etc):
01-26-2012 03:02 PM
If I understand you correctly, the FQDN in regards to function, is really an alias - meaning, the FQDN is resolved at rule commit and the firewall then holds the IP address of the resolve action to manage the traffic defined within the rule.
Your example, mail1.example.com is a FQDN, but you state the firewall uses 184.108.40.206 as the real address of the object and not an nslookup each time the rule is hit.
01-26-2012 03:25 PM
If you setup an address object such as:
and use this in a rule the FQDN will be resolved during commit and the ip address which mail1.example.com points to according to the dns-server used will be used.
1) You click commit
2) The PAN will replace the names of each address object with the content each address object refers to (mail1.example.com for above example).
3) Next the PAN detects that you use FQDN so it will need to resolve mail1.example.com (lets say into 220.127.116.11) by query your dns-server.
4) The PAN will (hidden from you) "rewrite" the rule so "18.104.22.168" will be actually written to the hardware (FPGA's).
Now, if you use address objects which points to ip-addresses (instead of FQDN) there is no need to query external dns-server.
During commit the following will then happen:
1) You click commit.
2) The PAN will replace the names of each address object with the content each address object referes to (22.214.171.124 for above example).
3) Since you have no FQDN's at this stage the PAN wont need to perform any dns-queries.
4) The PAN will (hidden from you) "rewrite" the rule so "126.96.36.199" will be actually written to the hardware (FPGA's).
01-27-2012 07:29 AM
Thank you, that helps.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!