Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia - Palo Alto - Useful CLI Commands
Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia - Palo Alto - Useful CLI Commands
More
Home Design IPS Cisco_ASA5500 Troubleshooting Palo_Alto S2S VPN IA ClusterXL NAT Wires
DHCP Strata PA- Series - ML Powered Next Generation Firewall - App-ID, User-ID, Content-ID, Device-ID
VM Series - Virtual Next-Generation Firewall - App-ID, User-ID, Content-ID, Device-ID
DLSW CN Series - Containerized Next generation firewall - App-ID, User-ID, Content-ID, Device-ID
Panaroma - Firewall Management
EEM
Prisma Access - Secure Access - Service Edge
EIGRP Prisma Cloud - Cloud Native Security Platform
Prisma SD-WAN
Ethernet
Cortex XDR - Extended Detection and Response
Frame Relay Cortex XSOAR
Expense
GRE Tunnels Crypsis
IS-IS
Modules
ISDN
1. Security Platform and Architecture
ISL & 802.1q 2. Initial Configuration
3. Interface Configuration
Logging 4. Security and NAT Policies
5. App-ID
Modems 6. Content-ID
7. URL Filtering
MPLS
8. Decryption
9. WildFire
MST
10. User-ID
Multicast 11. GlobalProtect
12. Site to Site VPNs
Multicast (routing) 13. Monitoring and Reporting
14. Active/Passive High Availability
NAT & PAT 15. Security Practices
NetFlow
NTP
OSPF
Port Channels
PPP
PPPoE
Prefix Lists
QoS
Redistribution
RIPv2
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 1/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
RITE
RMON
Route Maps
RSTP
SCP
Security
SNMP
SSH
STP
Summarization
Switching Paths
Virtual LANs
VoIP
VTP
Windows
General system health
show system info –provides the system’s management IP, serial number and code version
show system statistics – shows the real time throughput on the device
show system software status – shows whether various system processes are running
show jobs processed – used to see when commits, downloads, upgrades, etc. are completed
show system disk--space-- show percent usage of disk partitions
show system logdb--quota – shows the maximum log file sizes
debug dataplane internal vif link – show management interface (eth0) counters
To monitor CPUs
show system resources -- shows processes running in the management plane similar to “top” command
show running resource--monitor – used to see the resource utilization in the data plane, such as dataplane CPU util
less mp--log mp--monitor.log – Every 15 minutes the system runs a script to monitor management plane resource u
in this file.
less dp--log dp--monitor.log -- Every 15 minutes the system runs a script to monitor dataplane resource usage, outp
NAT
show running nat--policy-- shows current NAT policy table
show running ippool-- use to see if NAT pool leak
test nat--policy--match – simulate traffic going through the device, what NAT policy will it match?
Routing
show routing route – displays the routing table
test routing fib--lookup virtual--router <VR_name> ip <IP_addr_trying_reach> -- finds which route in the routing table
the IP address that you are testing
Policies
show running security--policy – shows the current policy set
test security--policy--match from trust to untrust destination <IP>-- simulate a packet going through the system, whic
PAN Agent
show user pan--agent statistics – used to see if the agent is connected and operational. Status should be connected
see numbers under users, groups and IPs.
show pan--agent user--IDs -- used to see if the FW has pulled groups from the PANAgent
show user ip--user--mapping – used to see IP to username mappings on the FW
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 2/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
clear user--cache all – clears the user--ID cache
debug device--server reset pan--agent <name> -- reset the firewall’s connection to the specified agent
URL
test url <url or IP> – used to test the categorization of a URL on the FW
tail follow yes mp--log pan_bc_download.log – shows the BrightCloud database update logs
request url--filtering download status – shows the status of the database download (essentially the very last line from
pan_bc_download.log file)
debug dataplane show url--cache statistics– shows statistics on the URL cache
show counter global | match url – shows statistics on URL processing
clear url--cache – used to clear the URL cache-- cache contains 100k of the most popular URLs on this network
show log url direction equal backward-- view the URL log, most recent entries first
IPSec
To view detailed debug information for IPSec tunneling:
1. debug ike global on debug
2. less mp--log ikemgr.log
Misc
set deviceconfig setting session tcp--reject--non--syn no – used to ignore SYN when creating sessions; confirm com
show session info
set deviceconfig setting session offload no –-- makes all packets go through CPU, otherwise all fastpath packets jus
(turns off session offload to fastpath); confirm command took effect with show session info
debug dataplane pool statistics -- this will show the different dataplane buffers and can e used to see if the system is
certain functionality.
How do you clear the ARP cache? This is not too hard. Just SSH into the Palo Alto box. Then run the command:
I have an older PA-2050 I'm having to do a factory reset on it. Below, you can see the output of what I had to do. I
it, and during the 5 second window, type in "maint".
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 3/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
Flash: 64 MB
Net: octeth0, octeth1, octeth2
Bus 0 (CF Card): not available
Entry: maint
Palo Alto: How To Determine What Ports Are 10 Gig Ports On Palo Alto PA-850 Series
What ports are 10Gig on the Palos? Good question. You cant tell by just looking at them, so you either know wh
what I do. Go into CLI and run the following command:
cfg.capability.dfa.sw: 0x0
cfg.capability.regex.sw: 0x0
peer.cfg.capability.dfa.sw: 0x0
peer.cfg.capability.regex.sw: 0x0
sys.s1.ha1.capability: [ auto, 10Mb/s-half, 10Mb/s-full, 100Mb/s-half, 100Mb/s-full, 1Gb/s-half, 1Gb/s-full, ]
sys.s1.p1.capability: [ auto, 10Mb/s-half, 10Mb/s-full, 100Mb/s-half, 100Mb/s-full, 1Gb/s-half, 1Gb/s-full, ]
sys.s1.p10.capability: [ auto, 10Gb/s-full, ]
sys.s1.p11.capability: [ auto, 10Gb/s-full, ]
sys.s1.p12.capability: [ auto, 10Gb/s-full, ]
sys.s1.p2.capability: [ auto, 10Mb/s-half, 10Mb/s-full, 100Mb/s-half, 100Mb/s-full, 1Gb/s-half, 1Gb/s-full, ]
sys.s1.p3.capability: [ auto, 10Mb/s-half, 10Mb/s-full, 100Mb/s-half, 100Mb/s-full, 1Gb/s-half, 1Gb/s-full, ]
sys.s1.p4.capability: [ auto, 10Mb/s-half, 10Mb/s-full, 100Mb/s-half, 100Mb/s-full, 1Gb/s-half, 1Gb/s-full, ]
sys.s1.p5.capability: [ auto, 1Gb/s-full, ]
sys.s1.p6.capability: [ auto, 1Gb/s-full, ]
sys.s1.p7.capability: [ auto, 1Gb/s-full, ]
sys.s1.p8.capability: [ auto, 1Gb/s-full, ]
sys.s1.p9.capability: [ auto, 10Gb/s-full, ]
Firewall Setup
Tunnel Interface
Phase 1 Crypto
Phase 2 Crypto
192.69.180.132
68.160.164.11
18.235.195.121
54.208.86.132
152.195.50.6
VPN Configuration
Proxy ID
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 4/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
Create Routes
Create Security Policy
Create Reverse Policy
Create Tunnel Interface
Check Tunnels
Module 2
Administrative controls
Initial Access to the system
Configuration management
Licensing and software update
Account administration
Viewing and filtering logs
To reset to factory default (if you know the firewall admin password)
set system private-data-reset
If you do not know the admin passwordk you must place the firewall in maintainance mode
at boot up time, type maint into the CLI through the console port
at some point you can chose the action Reset to Factory Default
Management settings
<Device><setup><Management><General Settings> <gear>
hostname:
Domain:
Time
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 5/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
Palo Alto has a great firewall solution. It's one of two firewall vendors that I highly recommend to companies.
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 6/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
PBR (or PBF as Palo calls it), is a really great feature. Policy Based Forwarding (in the network world, we call it p
feature where you can control where packets go without using the routing table. You set a destination based on c
you define (like source, protocol, etc) and it catches this PBF policy BEFORE it hits the routing table. Here is how
verify it works the way you want it to.
PA850-1(active)> test pbf-policy-match from L3-Inside application web-browsing source 192.168.1.5 destination 5
destination-port 443
Guys, real quick, if you need to check the SFP status to know if the Palo is seeing it or not, here is a CLI comman
if it is. The below is a Proline SFP.
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 7/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
Did you know you can test your policy based forwarding yourself in CLI on the Palo Alto firewall? You sure can.
zone L3-Inside (my inside zone) to verify it will go out Ethernet 1/3 port. Based on the response below, it looks lik
having to involve the server guys.
killen@PA850-1(active)> test pbf-policy-match from L3-Inside application web-browsing source 192.168.5.5 desti
protocol 6 destination-port 443
allen@PA850-1(active)>
Real quick, I think this is useful for adding a lot of static routes into a Palo Alto. SSH in and do this in CLI and typ
out the following:
set network virtual-router [name of virtual router i.e. default] routing-table ip static-route [name of route i.e. Shane
destination [network/subnet mask i.e 10.10.10.0/24] interface [name of interface to be used outgoing i.e. ethernet
[next hop ip i.e. 4.4.4.4]
--------------------------------------------------------------------------------
runtime route lookup
--------------------------------------------------------------------------------
virtual-router: vsys_router
destination: 192.168.1.5
result:
via 5.5.5.5 interface ethernet1/3, source 5.5.5.6, metric 10
--------------------------------------------------------------------------------
Right there it is. Its ethernet1/3 in this case. I wanted to know what interface 192.168.1.5 would be going out, an
command, it tells me. Note that "vsys_router" is your virtual router that you have defined for routing. It may be de
whatever you named it.
SSL Decrypt
Most NGFWs have the ability to do SSL decryption, and its a really good idea to do so. Many attacks now come
packets, and they need to be inspected. If you have the capability to do SSL decryption, you should be doing this
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 8/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
I went on-site to a consumer to replace a PA-200 that was having some issues. I got the software, global protect,
the same version and then did a restore from a backup I had taken. It's not a bad price process to go through.
Well, what should have been an easy upgrade turned ugly on me today. I've upgraded many Palo Altos is my car
product. But today, I spent three hours working through a Palo that wouldn't boot up after the upgrade to 7.1.17. T
pair and the customer didn't experience any real downtime.
After a factory reset, getting to the same software version and importing the config back in, we were back to its or
with a download of the base 8.0 software and a download and install of 8.0.9 on both units, all is good.
Palo Alto Firewall: Amber STS LED When Booting
What does that STS amber LED mean? Well, its still bootIng firewall services. You can login to the console, but
for a few minutes for all the services to come up. You should see a "System initializing; please wait... (CTRL-C to
during this time. When the STS amber LED goes green, then you should be good to go for CLI config.
I had a unit that kept the amber LED on STS. I had to do a factory reset to overcome this problem.
Palo Alto (And Check Point)
I've been working on a pair of Palo Alto 3020s in HA mode. I really like the Palo Alto firewall. Don't get me wrong
firewalls. But Palo Alto (and Check Point) just ranks to me as the best on the market. I've been consistent in say
working on this cluster, I certainly recall why.
Just FYI, I have noticed in the past few years, its been Palo Alto and Check Point at the top of the list for NGFWs
that for sure.
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 9/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
Just a quick post today about ping in CLI. You can use a particular source address of your choice that belongs to
need to. Typically, you do need to if you are going across a VPN. Here is the quick command, fill in your IPs of c
Ref https://www.shanekillen.com/search/label/Palo%20Alto%20Firewall
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 10/11
2/12/24, 8:47 PM Dhansham - Engineer's Notebook Checkpoint Firewalls Gaia: Palo Alto: Useful CLI Commands
Total Pageviews
3 5 8 3 9 3
Followers Visitors
Followers (10)
Live Traffic Feed
A visitor from Mumbai
Live Feed viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 1 min
ago
A visitor from Saharanpur
viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 3
mins ago
A visitor from Montevideo
viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 14
mins ago
A visitor from Ramla viewed
'Dhansham - Engineer's Notebook
Checkpoint Firewall' 18 mins ago
A visitor from Asnieres-sur-
seine viewed 'Dhansham -
Engineer's Notebook Checkpoint
Firewall' 41 mins ago
A visitor from Stockholm
viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 55
mins ago
A visitor from Bourgogne
viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 56
mins ago
A visitor from Kristinehamn
viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 1 hr 1
min ago
A visitor from Minsk viewed
'Dhansham - Engineer's Notebook
Checkpoint Firewall' 1 hr 7 mins ago
A visitor from Geneva
viewed 'Dhansham - Engineer's
Notebook Checkpoint Firewall' 1 hr 8
mins ago
Real-time | Get Script | More Info
https://dkcheckpoint.blogspot.com/2022/09/i-have-older-pa-2050-im-having-to-do.html 11/11