PAN-OS

PAN-OS Cheatsheet #

PAN-OS is the operating system used by Palo Alto Networks’ next-generation firewalls. This cheatsheet provides common commands and configurations for PAN-OS.

Basic Commands #

Command/OptionExampleDescription
show system infoshow system infoDisplay system information
configureconfigureEnter configuration mode
commitcommitCommit changes to the configuration
savesaveSave the current configuration
exitexitExit configuration mode
restart devicerestart deviceRestart the device
debugdebug log-receiver onEnable debugging
show logshow log systemDisplay system logs

Interface Configuration #

Command/OptionExampleDescription
configureconfigureEnter configuration mode
set interface ethernet1/1set interface ethernet1/1Configure interface ethernet1/1
set ip 192.168.1.1/24set ip 192.168.1.1/24Set IP address and subnet mask
set name "Inside"set name "Inside"Set interface name
commitcommitCommit changes to the configuration
exitexitExit configuration mode
show interfaceshow interfaceDisplay interface status

VLAN Configuration #

Command/OptionExampleDescription
configureconfigureEnter configuration mode
set vlan 10set vlan 10Create or edit VLAN 10
set interface ethernet1/1set interface ethernet1/1Assign VLAN to interface ethernet1/1
set tag 10set tag 10Set VLAN tag
commitcommitCommit changes to the configuration
exitexitExit configuration mode
show vlanshow vlanDisplay VLAN configuration

Security Policy Configuration #

Command/OptionExampleDescription
configureconfigureEnter configuration mode
set rulebase security rulesset rulebase security rulesEnter security policy configuration mode
edit Allow_HTTPedit Allow_HTTPEdit policy named Allow_HTTP
set source 192.168.1.0/24set source 192.168.1.0/24Set source address
set destination anyset destination anySet destination address
set application web-browsingset application web-browsingSet allowed application
set action allowset action allowSet action to allow
commitcommitCommit changes to the configuration
exitexitExit security policy configuration mode
show rulebase securityshow rulebase securityDisplay security policy rules

VPN Configuration #

Command/OptionExampleDescription
configureconfigureEnter configuration mode
set network vpn ipsecset network vpn ipsecEnter VPN IPsec configuration mode
edit vpn1edit vpn1Edit VPN configuration
set interface ethernet1/2set interface ethernet1/2Set VPN interface
set peer-address 203.0.113.1set peer-address 203.0.113.1Set peer IP address
set pre-shared-key abc123set pre-shared-key abc123Set pre-shared key
commitcommitCommit changes to the configuration
exitexitExit VPN configuration mode
show vpn ipsecshow vpn ipsecDisplay VPN IPsec status

Management #

Command/OptionExampleDescription
show system infoshow system infoDisplay system information
show config runningshow config runningDisplay current configuration
show logshow logDisplay logs
debugdebug log-receiver onEnable debugging
execute rebootexecute rebootReboot the device
execute backupexecute backupBackup the current configuration
execute restoreexecute restoreRestore configuration

This cheatsheet covers essential PAN-OS commands for configuration, management, and troubleshooting of Palo Alto Networks devices. For detailed command syntax and additional options, consult the Palo Alto Networks documentation.

PAN-OS

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.