Troubleshooting Tricks and Hints
Troubleshooting Tricks and Hints
Config Files
Review basic navigation of the CLI, looking at software versions and license specifics.
Two methods of viewing the configuration are available from the CLI: show config
running from the main prompt and show from the configure prompt.
To view the configuration in set mode rather than XML format, set cli configoutput-format set should be entered from the main prompt. This will then change
the output shown in configure mode.
Moving a configuration file over from a TFTP server is done with the tftp import
configuration command.
The difference between the running and candidate configs can be seen with show
config diff.
The commit command from the configure prompt will apply changes.
Key points:
Comfort with XML and set formats for configuration
Process for loading and committing from the CLI.
PAN-EDU-311
PAN-OS 5.0
Page 2
PAN-EDU-311
PAN-OS 5.0
Page 3
PAN-EDU-311
Management/Admin issues
Management interface settings.
> show system services
To turn on services use commands like the ones below (for https GUI)
# set deviceconfig system service disable-https no
Discussion/Caveats:
Interface access is configured by service.
Admin Roles
There can be multiple roles configured on the firewall (Students and students). Roles
can be customized to have limited functionality.
Discussion/Caveats:
System logs can provide general details.
General searching of log files groups can be performed (grep mp-log *
pattern [word]) to find which log files contain which concepts
Key points:
Pay attention to which role is assigned to a user account.
Key points:
Pay attention to how a user is authenticated.
PAN-OS 5.0
Page 4
PAN-EDU-311
DHCP issues
In this scenario, the DHCP server may be misconfigured to give out a gateway address
(ie:192.168.1.100 instead of 192.168.1.1) The desktops will not be able to ping (or
access) the default gateway and only by looking at the correct topology will one be able
to identify and correct the problem.
The default gateway for the firewall could also configured incorrectly. (The next-hop is
configured for 172.16.X.253 when according to the topology, the correct next-hop
should be 172.16.X.254).
Discussion topics and caveats:
Knowing the topology will help troubleshoot this problem
After the DHCP problem is solved, debug flow will help identify the incorrect routing
issue.
Key points:
Look at the known topology
Dont take anything for granted
Ask if you are not sure!
Page Display issues (get part of a web page, but not all of it)
In this scenario, there is a Policy Based Forwarding policy configured to route the webbrowsing application to a next-hop which is unreachable.
Discussion topics and caveats:
DNS is not using PBF, so the title pages are resolved. Web-browsing is being blackholed, so the content on the pages will not display.
The traffic logs will show the application as incomplete.
PAN-OS 5.0
Page 5
PAN-EDU-311
Key points:
Troubleshooting PBF may be difficult, but debug flow should help.
Solution is to delete or disable the PBF rule or use a Monitor profile that if the next hop
is unreachable, use the routing table.
Routing Issues
The adjacent OSPF router does not have an OSPF authentication profile or password,
while this firewall does (palaalto).
Viewing the routed log file (less mp-log routed.log) an error message will show
an authentication mismatch. The neighbor router will show authentication type 0, while
this one has type 1. You will need to infer that this means the neighbor router does not
have an authentication profile/password configured, and they will have to remove it from
the OSPF interface configuration on the local firewall.
Once the auth-profile is removed, they will be able to see, again in the log file, a
mismatched hello timer. This can also be corrected through the CLI. This will complete
the lab. At this point, a show routing protocol ospf neighbor should show the
neighbor. show routing route should show plenty of OSPF routes.
Students may also attempt a packet capture on the interface to view the packet in its
entirety. This would allow correction of the problem in one stage rather than two.
Discussion/Caveats:
System logs can provide important details.
General searching of log files groups can be performed (grep mp-log *
pattern [word]) to find which log files contain which concepts
Key points:
Logs are useful for this exercise; this level of log detail would not be visible in the GUI (a
PCAP would be required)
NAT issues
Testing of the NAT policies using the test command will first show if NAT policies are in
the incorrect order and must be moved must be moved Point out the move
command in the config CLI, which will make this process much easier.
Discussion topics and caveats:
Diagnosing the impact of NAT rules is straightforward via the CLI
Re-ordering of NAT rules is easier via the GUI. The move command allows rule
reordering in the CLI.
PAN-OS 5.0
Page 6
PAN-EDU-311
Once the first NAT rule is matched, no other translation will be applied. For any
destination NAT, the requirement for source translation needs to be considered.
Key points:
Order of processing matters for all rule bases (NAT, security policy, QoS)
Only one rule hits, the first match, in a rule base
Source and destination can be included in the same rule
PAN-OS 5.0
Page 7
PAN-EDU-311
In this example there is no permit for web-browsing, so any websites listed will be
inaccessible. This is the key concept of application dependency.
Explicit allows for applications (ping, ssl) and applications (LinkedIn, Facebook,
Pandora, Gmail)
Explicit denies for Gmail-chat (prior to Gmail)
Explicit deny all at the end
Also note that web browsing is not equivalent to port 80.
Look in show log traffic action equal deny to see web-browsing denies.
The application dependency error is visible in the mp-log ms.log. A grep of all mp-logs
for the keyword dependency would reveal this.
Discussion topics and caveats:
It is important to understand the impact of application dependencies. Problems in this
space can be seen in the mp-log files.
Lab Manual Rev A
PAN-OS 5.0
Page 8
PAN-EDU-311
Ordering of applications may not make a difference in control but can help with
readability.
The GUI commit is more clear in understanding dependencies, cannot simply rely on its
output for complex configurations
Copy and paste through CLI set mode works, but command ordering adds challenge.
Key points:
Web browsing is an application, not equivalent to port 80
Apps change within a single session
Application dependency concept
Decryption
The encrypted (HTTPS) nature of the Gmail site prevents blocking of the talk
application.
A decryption filter needs to be put in place to allow this content to be processed as the
proper application.
A certificate must be generated, set as the forward ssl-decrypt cert, and a decryption
policy enabled.
> request certificate generate ca yes certificate-name ssl-9 name
10.30.11.9
# set shared ssl-decrypt forward-trust-certificate ssl-9
# set rulebase decryption rules ssl-9-decrypt from trust to
untrust source any destination any category any action decrypt
type ssl-forward-proxy
show system setting ssl-decrypt setting will show if forward proxy cert is
ready.
Discussion/Caveats:
Lack of visibility of data due to encryption is common.
This decryption puts the firewall into man-in-the-middle decryption. This functionality
can be visible to end users.
Decryption is intended to allow policy application rather than interception of traffic
Key point:
Decryption required to apply policy to an encrypted session
PAN-OS 5.0
Page 9
PAN-EDU-311
User ID issues
Key points:
View mapping of User-ID attributes in the CLI
show user ip-user-mapping all
show user user-id-agent statistics
PAN-OS 5.0
Page 10