1. Enable Config Sync (untick on both)(commit).
2. Specify Panorama Server on HA Firewalls and Enable Policy, Objects and Templates options (commit).
3. Add Firewalls as Manages devices in Panorama using serial numbers (Tick Group HA Peers) (commit Panorama).
4. Import Device configuration to Panorama (Post Rule/Leave ticked) (Primary)
5. Import Device configuration to Panorama (Post Rule/Leave ticked) (Secondary)
6. Commit (Panorama) (Creates Device Groups and Templates for both).
7. Remove Secondary Template and Device Group and Add both to the Primary Device Group and Template.
8. Export Configuration (Push and commit) Device Group config to Secondary only and Make the Primary suspended for Secondary to takeover.
9. Export Configuration (Push and commit) Device Group config to Primary now and Failback to the Primary.
(Both Should be showing In Sync under Managed Devices under Device Group and Templates)
Category: Palo Alto Networks & SASE
Palo Alto Networks NGFW, Panorama, PAN-OS upgrades and commands, PCNSE study notes, and Prisma Access / SASE.
-
Steps: Adding HA devices to Panorama
-
Upgrade Palo Firewalls (CLI)
Steps:
0. Confirm firewalls are in sync and turn preemption off on both
1. Failover to Secondary
2. Install 8.1.6 on Primary
3. Reboot Primary
4. Login and check if 8.1.6 is installed on Primary and then failback to Primary
5. Check traffic going through Primary
6. Install and reboot 8.1.6 for Secondary
7. Login and check if 8.1.6 is installed on Secondary
8. Turn preemption on bothUseful commands:
request system software info
request system software check
request system software download version 8.1.6
request restart system
delete software version 8.1.6show high-availability state
request system software install version 8.1.6
request high-availability state suspend
request high-availability state functional
request high-availability sync-to-remote
show jobs all -
Palo Alto Commands (Important)
Show Running Config:
> set cli config-output-format set (xml format running config)
>show config running (see running config in xml format)
> set cli config-output-format set (to see the set commands running config)
> configure
# showShow version command on Palo:
>show system infoSet management IP address:
>configure
#set deviceconfig system ip-address 192.168.3.100 netmask 255.255.255.0
(# set deviceconfig system ip-address <ip address> netmask <netmask> default-gateway <default gateway> dns-setting servers primary <DNS ip address>)#commit
>show interface management (see mgmt interface)
To see interfaces status:
>show interface allPing from a dataplane interface to a destination IP address:
> ping source <ip-address-on-dataplane> host <destination-ip-address>Trigger a Gratuitous ARP (GARP) from a Palo Alto Networks Device:
> show interface ethernet1/3
> test arp gratuitous ip 10.66.24.139 interface ethernet1/3Display the routing table:
> show routing route> show routing table
Restart or Shutdown Palos:
request shutdown system
request restart systemRestart management server on Palo:
debug software restart process management-serverSystem logs to see for Errors:
less mp-log ms.logHA pair sync error logs:
less mp-log ha_agent.logPush the config/sync to the HA peer:
request high-availability sync-to-remote running-configHA:
Force configuration and session synchronisation to peer device:
>request high-availability sync-to-remote
Fail to peer and suspend current device:
>request high-availability state suspend
Re-enable HA on suspended system:
>request high-availability state functional
Shows the high-availability information on current device:
>show high-availability all
Shows the control link statistics:
>show high-availability control-link
Shows the high-availability state information:
>show high-availability state
Shows the synchronisation state to the peer device:
>show high-availability state-synchronisationTo see the sessions (sip sessions):
show session all
show session all | match sip
To clear all the sessions:
clear session all
clear session all filter application skype
clear session all filter source 192.168.51.71
clear session all filter destination 8.8.8.8To test authentication for a user:
>test authentication authentication-profile AD username iee\tungera passwordPalo Monitoring Authentication logs:
>debug authentication on debug
>tail follow yes mp-log authd.log
>debug authentication offUser-group mapping for a specific user:
show user ip-user-mapping ip 192.168.64.18Force refresh group mappings:
>debug user-id refresh group-mapping all
To see the groups that the firewall knows about:
>show user group name
The lists for every group can be read using the following CLI command:
> show user group list
To use the needed group in the previous step:
> show user group name cn=firewall-mf-rave-pcs,ou=_groups,dc=iee,dc=mfh
The group-mappings on the LDAP profile can be reset with the following CLI command:
> debug user-id reset group-mapping AD_Group_MappingVerify that the groups are being pulled:
> show user group-mapping state all
> show user group-mapping statisticsThe following commands can be used to clear and see the user to IP mappings:
> clear user-cache-mp ip <IP-address> //user-cache-mp (Clear management plane user cache)
> clear user-cache ip <IP-address> //user-cache (Clear dataplane user cache)
> clear user-cache all
> show user ip-user-mapping ip <IP-address>
> show user ip-user-mapping allRestart ldap user-id service Palo:
debug software restart process user-idSee the user-id agent version from the CLI on Palo:
show user user-id-agent config name MM-DC_MMISEXCHANGE_LOCALCheck GlobalProtect currently connected users:
show global-protect-gateway current-userShow IKE phase 1 SAs:
> show vpn ike-sa
Show IKE phase 2 SAs:
> show vpn ipsec-saSave an Entire Configuration for Import into Another Palo Alto Networks Device:
> configure
# save config to 2014-09-22_CurrentConfig.xml
# exit
> scp export configuration from 2014-09-22_CurrentConfig.xml to username@scpserver/PanConfigs> scp import configuration username@scpserver/PanConfigs/2014-09-22_CurrentConfig.xml
> configure
# load config from 2014-09-22_CurrentConfig.xml
# commit
# exitSee NTP status:
>show ntp
To manually restart the NTP process, use the following CLI command:
>debug software restart process ntp
To view whether the NTP process has a new PID, execute:
>show system software status | match ntp
To verify current system date and time, use the following CLI command:
> show clock
To see the jobs being processed or all the jobs:
show jobs all
show jobs processed
Immediately after restarting, every Palo Alto Networks firewall performs an auto-commit. This takes place in the background and can last up to 30 minutes. The firewall can be accessed from the management interface during that time, but the data plane will be down and the physical interfaces will be down.Palo Upgrade Commands:
request high-availability state suspend
request system software info
request system software check
request system software download version 7.1.19
request system software install version 7.1.19
request restart system
request high-availability state functional
show jobs all -
ACE/PCNSE
0.0 Palo Alto CBT Nuggets
0.1 Palo Alto Training Videos1. How to Import and Export Address and Address Objects (CLI) (Creating objects from a file of IPs)
2. How to Create an IPSec Tunnel to AWS (Amazon Web Services) From a Palo Alto Firewall with Static Routing
3. Revert Firewall Configuration Changes (Revert to the current running configuration)
4. Best Practices for PAN-OS Upgrade (Palo Alto Upgrade)
4.1 Upgrade Palo Firewalls (CLI)
5. How to Unblock Addresses after Block-IP Action is Triggered by Threat Protection
6.0 What is IPSec?
6.1 Palo Alto (8.0) Site to Site VPNs
6.2 IPSec VPN Setup (Site to Site VPN Config)
6.3 IPSec Site to Site tunnel: Palo Alto to Cisco
7.0 Example NAT Rules (Important)
7.1 Tutorial: How to Configure Source NAT on the PAN-OS GUI
7.2 Tutorial: Network Address Translation
7.3 Tutorial: Understanding the NAT/Security Policy Configuration
7.4 How to Configure U-Turn NAT
7.5 Configure Destination NAT Using Dynamic IP Addresses
8.0 Palo Alto Commands (Important)
8.1 Useful Troubleshooting Commands
9.0 SSL Outbound Decryption
9.1 How to Implement and Test SSL Decryption (Inbound and Outbound)
9.2 HOW TO TEMPORARILY DISABLE SSL DECRYPTION
10.0 GlobalProtect Logs from the Client
10.1 How to Configure GlobalProtect Portal Page to be Accessed on any Port
10.2 GLOBALPROTECT CLIENT STUCK AT CONNECTING WHEN WORKSTATION IS ON THE LOCAL NETWORK
10.3 BASIC GLOBALPROTECT CONFIGURATION WITH USER-LOGON
11.0 Brute Force Related Signatures
11.1 Best Practice for FTP Brute Force
12.0 End-of-Life Summary
13.0 How to Generate a CSR (Certificate Signing Request) & Import the Signed Certificate
14.0 TSHOOT USER-ID: Useful CLI Commands to Troubleshoot LDAP Connection
14.1 USER-ID TSHOOT: Agentless User-ID Connection to Active Directory Servers Intermittently Connect and Disconnect
14.2 AGENTLESS USER-ID ‘ACCESS DENIED’ ERROR IN SERVER MONITOR
14.3 Palo Alto NTSTATUS: NT_STATUS_ACCESS_DENIED – Access denied
14.4 HOW TO CONFIGURE AGENTLESS USER-ID
15.0 Viewing the configuration in set and XML format
16.0 How to View and Install PAN-OS Software through the CLI
17.0 Configuring IKEv2 IPsec VPN for Microsoft Azure Environment
17.1 Configuring IKEv2 IPsec VPN for Microsoft Azure Environment
18.0 What Happens When Licenses Expire on the Palo Alto Networks Firewall?
19.0 Deploy Palo Alto in Azure
20.0 NOT-APPLICABLE, INCOMPLETE, INSUFFICIENT DATA IN THE APPLICATION FIELD
21.0 WHAT IS A PORT SCAN?
22.0 AFTER CONFIGURING SSL DECRYPTION, WEB BROWSING SESSIONS DO NOT MATCH THE CONFIGURED POLICY
23.0 Multiple ISPs (Load Balancing and Load Sharing)
23.1 HOW TO CONFIGURE ISP REDUNDANCY AND LOAD BALANCING
23.2 HOW TO IMPLEMENT ECMP (LOAD BALANCING) ON THE FIREWALL
23.3 ECMP Load-Balancing Algorithms
24.0 Palo Alto Networks-Add HA Firewall Pair to Panorama
24.1 HOW TO ADD A LOCALLY MANAGED FIREWALL TO PANORAMA MANAGEMENT
24.2 HOW TO PERFORM A DEVICE CONFIG IMPORT INTO PANORAMA
24.3 Steps: Adding HA devices to Panorama
25.0 Comparing Palo Alto Next Gen Firewalls with Web Application Firewalls (WAF)
26.0 Reset/Recover Password Palo Alto
26.1 How to perform a Factory Reset on a Palo Alto Networks Device?
27.0 Log Retention and Quotas
27.1 TIPS & TRICKS: LOG DELETION BASED ON TIME
28.0 HOW TO IMPORT AND EXPORT ADDRESS AND ADDRESS OBJECTS
29.0 Migrating Checkpoint to Palo using Migration Tool 3.x
29.1 Migration Tool 3 Info and Guide
29.2 Checkpoint to Palo Alto Migration (Video)
30.0 Useful Palo Alto CLI Commands
31.0 SNMP configuration examples
31.1 Configuring Syslog, SNMP and NetFlow on a Palo Alto Networks Firewall
32.0 DNS Sinkhole
33.0 CONTROLLING WEBMAIL
34.0 Estimate logging rate based on log receiver statistics
35.0 Export Palo Policies in excel/xls format for version 7.x.x
36.0 User-ID Redistribution (Using Main firewall as User ID agent for other firewalls)
37.0 DUAL ISP REDUNDANCY USING STATIC ROUTES PATH MONITORING FEATURE, FOR TRAFFIC FAILOVER
38.0 HOW TO CHECK USERS IN LDAP GROUPS
39.0 CONFIGURING WINDOWS 2008 R2 RADIUS AUTHENTICATION (NPS RADIUS SERVER)
40.0 Connecting PAN-OS to MineMeld using External Dynamic Lists
40.1 Enable Access to Office 365 with MineMeld
40.2 MineMeld Overview
40.3 Quick Tour of MineMeld Default ConfigBest Practices:
SD-WAN:
How to Setup SDWAN in LAB using Palo Alto Network Virtual Firewalls (Video)
A Palo Alto Networks Case Study: Secure Branch Networking with SD-WAN (Video)
Secure SD-WAN by Palo Alto Networks (Video)
Palo SD-WAN Admin Guide (Document)
-
How to Import and Export Address and Address Objects (CLI) (Creating objects from a file of IPs)
How to import export address and address objects
Power Shell Script (Run it straight from powershell prompt/file must be in the same directory):
Palo Script (object group is log4j) :
foreach($ip in Get-Content ip1.txt)
{
Write-output “set address Log4j_BadIP_$ip ip-netmask $ip” | Tee-Object -FilePath ‘C:\Users\fali\output_palo.txt’ -append
Write-output “set address-group log4j static Log4j_BadIP_$ip” | Tee-Object -FilePath ‘C:\Users\fali\output_palo.txt’ -append
}Panorama Script (object group is log4j):
foreach($ip in Get-Content ip1.txt)
{
Write-output “set shared address Log4j_BadIP_$ip ip-netmask $ip” | Tee-Object -FilePath ‘C:\Users\fali\outputpano.txt’ -append
Write-output “set shared address-group log4j static Log4j_BadIP_$ip” | Tee-Object -FilePath ‘C:\Users\fali\outputpano.txt’ -append
}}