Written for ASA 9.24 and Firewall Threat Defense (FTD) 10.0 on Cisco Secure Firewall, and checked against Cisco's command references and support articles. Each ASA command shows the mode it's typed in, as on Cisco IOS; commands in a sub-mode (interface, object) show the line that enters it. FTD is configured from the Management Center or Device Manager, not the CLI, so its section covers registration and troubleshooting; most ASA show, packet-tracer and capture commands also work at the FTD > prompt. Names, addresses and passwords are examples, so swap in your own.

Modes and getting around #

  • Go to privileged modeCisco ASA · User EXEC (>)
    enable
  • Go into configuration modeCisco ASA · Privileged EXEC (#)
    configure terminal
  • Leave configuration modeCisco ASA · Global config (config)#
    end
  • Show the model, ASA version, licence and uptimeCisco ASA · Privileged EXEC (#)
    show version
  • Stop output pausing at the end of each screenCisco ASA · Privileged EXEC (#)
    terminal pager 0
  • Show the running configCisco ASA · Privileged EXEC (#)
    show running-config
  • Show config lines that match some textCisco ASA · Privileged EXEC (#)
    show running-config | include access-list
  • Show one part of the config, including defaultsCisco ASA · Privileged EXEC (#)
    show running-config all ssh
  • Show interfaces with names, addresses and statusCisco ASA · Privileged EXEC (#)
    show interface ip brief
  • Show interface names and security levelsCisco ASA · Privileged EXEC (#)
    show nameif
  • Save the configCisco ASA · Privileged EXEC (#)
    write memory
  • Show the date and timeCisco ASA · Privileged EXEC (#)
    show clock

Basic setup #

  • Set the hostnameCisco ASA · Global config (config)#
    hostname asa-hq
  • Set the domain nameCisco ASA · Global config (config)#
    domain-name example.com
  • Set the enable passwordCisco ASA · Global config (config)#
    enable password ChangeMe-2026
  • Add an admin userCisco ASA · Global config (config)#
    username netadmin password ChangeMe-2026 privilege 15
  • Use local users for SSH loginsCisco ASA · Global config (config)#
    aaa authentication ssh console LOCAL
  • Create an SSH keyCisco ASA · Global config (config)#
    crypto key generate rsa modulus 2048
  • Allow SSH from a network on an interfaceCisco ASA · Global config (config)#
    ssh 192.168.10.0 255.255.255.0 inside
  • Turn on ASDM (the web manager)Cisco ASA · Global config (config)#
    http server enable
  • Allow ASDM from a network on an interfaceCisco ASA · Global config (config)#
    http 192.168.10.0 255.255.255.0 inside
  • Set the NTP serverCisco ASA · Global config (config)#
    ntp server 192.168.10.123
  • Turn on DNS lookups through an interfaceCisco ASA · Global config (config)#
    dns domain-lookup outside
  • Send logs to a syslog serverCisco ASA · Global config (config)#
    logging host inside 192.168.10.70
  • Turn logging onCisco ASA · Global config (config)#
    logging enable
  • Keep recent logs in memoryCisco ASA · Global config (config)#
    logging buffered informational

Interfaces and routing #

  • Name an interfaceCisco ASA · Global config (config)#
    interface GigabitEthernet0/1 nameif inside
  • Set its security level (100 trusted, 0 untrusted)Cisco ASA · Global config (config)#
    interface GigabitEthernet0/1 security-level 100
  • Give it an IP addressCisco ASA · Global config (config)#
    interface GigabitEthernet0/1 ip address 192.168.10.1 255.255.255.0
  • Bring it upCisco ASA · Global config (config)#
    interface GigabitEthernet0/1 no shutdown
  • Add a VLAN subinterfaceCisco ASA · Global config (config)#
    interface GigabitEthernet0/1.10 vlan 10 nameif users ip address 192.168.110.1 255.255.255.0
  • Add a default routeCisco ASA · Global config (config)#
    route outside 0.0.0.0 0.0.0.0 203.0.113.1
  • Add a static routeCisco ASA · Global config (config)#
    route inside 10.20.0.0 255.255.255.0 192.168.10.254
  • Show the routing tableCisco ASA · Privileged EXEC (#)
    show route
  • Show one interface's counters and errorsCisco ASA · Privileged EXEC (#)
    show interface GigabitEthernet0/1
  • Show the ARP tableCisco ASA · Privileged EXEC (#)
    show arp

Objects, access lists and NAT #

  • Add a host objectCisco ASA · Global config (config)#
    object network web-server host 192.168.10.80
  • Add a network objectCisco ASA · Global config (config)#
    object network inside-net subnet 10.20.0.0 255.255.255.0
  • Add an object groupCisco ASA · Global config (config)#
    object-group network web-servers network-object object web-server
  • Allow traffic in to a serverCisco ASA · Global config (config)#
    access-list OUTSIDE_IN extended permit tcp any object web-server eq https
  • Apply an access list to an interfaceCisco ASA · Global config (config)#
    access-group OUTSIDE_IN in interface outside
  • Hide inside users behind the outside address (PAT)Cisco ASA · Global config (config)#
    object network inside-net subnet 10.20.0.0 255.255.255.0 nat (inside,outside) dynamic interface
  • Forward a port on the outside address to a serverCisco ASA · Global config (config)#
    object network web-server nat (inside,outside) static interface service tcp 443 443
  • Show access list hit countsCisco ASA · Privileged EXEC (#)
    show access-list OUTSIDE_IN
  • Reset access list hit countsCisco ASA · Privileged EXEC (#)
    clear access-list OUTSIDE_IN counters
  • Show NAT rules with hit countsCisco ASA · Privileged EXEC (#)
    show nat detail
  • Show current translationsCisco ASA · Privileged EXEC (#)
    show xlate
  • Clear translations after changing NATCisco ASA · Privileged EXEC (#)
    clear xlate

    Warning: Drops every connection that uses NAT. Clear just the address you changed if you can.

Packet tracer and captures #

  • Trace how a packet would be handled, rule by ruleCisco ASA · Privileged EXEC (#)
    packet-tracer input inside tcp 192.168.10.25 12345 198.51.100.10 443 detailed
  • Capture traffic between two hostsCisco ASA · Privileged EXEC (#)
    capture CAP1 interface inside match ip host 192.168.10.25 host 198.51.100.10
  • Show a captureCisco ASA · Privileged EXEC (#)
    show capture CAP1
  • Show a capture with full packet detailCisco ASA · Privileged EXEC (#)
    show capture CAP1 detail
  • Capture packets the firewall drops, with the reasonCisco ASA · Privileged EXEC (#)
    capture ASPDROP type asp-drop all
  • Show drop counters by reasonCisco ASA · Privileged EXEC (#)
    show asp drop
  • Copy a capture off as a pcap fileCisco ASA · Privileged EXEC (#)
    copy /pcap capture:CAP1 tftp://192.168.10.60/CAP1.pcap
  • Remove a captureCisco ASA · Privileged EXEC (#)
    no capture CAP1

Connections and health #

  • Show connections for an addressCisco ASA · Privileged EXEC (#)
    show conn address 192.168.10.25
  • Count connectionsCisco ASA · Privileged EXEC (#)
    show conn count
  • Clear connections for an addressCisco ASA · Privileged EXEC (#)
    clear conn address 192.168.10.25

    Warning: Cuts those connections straight away.

  • Show everything about one host (connections, translations)Cisco ASA · Privileged EXEC (#)
    show local-host 192.168.10.25
  • Show CPU useCisco ASA · Privileged EXEC (#)
    show cpu usage
  • Show memoryCisco ASA · Privileged EXEC (#)
    show memory
  • Show traffic per interfaceCisco ASA · Privileged EXEC (#)
    show traffic
  • Show connection and translation ratesCisco ASA · Privileged EXEC (#)
    show perfmon

Logging #

  • Show the logs in memoryCisco ASA · Privileged EXEC (#)
    show logging
  • Show logs that match an addressCisco ASA · Privileged EXEC (#)
    show logging | include 192.168.10.25
  • Clear the logs in memoryCisco ASA · Privileged EXEC (#)
    clear logging buffer

Failover #

  • Show failover state and which unit is activeCisco ASA · Privileged EXEC (#)
    show failover
  • Show a short failover stateCisco ASA · Privileged EXEC (#)
    show failover state
  • Make this unit activeCisco ASA · Privileged EXEC (#)
    failover active

    Warning: Moves traffic to this unit. Run it on the standby.

  • Make this unit standbyCisco ASA · Privileged EXEC (#)
    no failover active
  • Copy the config to the standby unitCisco ASA · Privileged EXEC (#)
    write standby
  • Run a command on the other unitCisco ASA · Privileged EXEC (#)
    failover exec mate show version
  • Reload the standby unitCisco ASA · Privileged EXEC (#)
    failover reload-standby

VPN #

  • Show IKEv2 tunnels (phase 1)Cisco ASA · Privileged EXEC (#)
    show crypto ikev2 sa
  • Show IKEv1 tunnels (phase 1)Cisco ASA · Privileged EXEC (#)
    show crypto ikev1 sa
  • Show IPsec SAs and counters for one peerCisco ASA · Privileged EXEC (#)
    show crypto ipsec sa peer 198.51.100.200
  • Show VPN session totalsCisco ASA · Privileged EXEC (#)
    show vpn-sessiondb summary
  • List site-to-site sessionsCisco ASA · Privileged EXEC (#)
    show vpn-sessiondb l2l
  • List remote-access (AnyConnect) usersCisco ASA · Privileged EXEC (#)
    show vpn-sessiondb anyconnect
  • Disconnect a VPN session by addressCisco ASA · Privileged EXEC (#)
    vpn-sessiondb logoff ipaddress 198.51.100.200
  • Debug IKEv2 negotiationCisco ASA · Privileged EXEC (#)
    debug crypto ikev2 protocol 127
  • Turn off all debuggingCisco ASA · Privileged EXEC (#)
    undebug all

Software, licences and backups #

  • List files on flashCisco ASA · Privileged EXEC (#)
    dir disk0:
  • Copy an image to flash from a TFTP serverCisco ASA · Privileged EXEC (#)
    copy tftp://192.168.10.60/cisco-asa-fp1k.9.24.1.SPA disk0:/cisco-asa-fp1k.9.24.1.SPA
  • Boot from a new imageCisco ASA · Global config (config)#
    boot system disk0:/cisco-asa-fp1k.9.24.1.SPA
  • Show the boot settingsCisco ASA · Privileged EXEC (#)
    show bootvar
  • Reload the firewallCisco ASA · Privileged EXEC (#)
    reload

    Warning: Stops all traffic until it's back up.

  • Copy the running config to a TFTP serverCisco ASA · Privileged EXEC (#)
    copy running-config tftp://192.168.10.60/asa-hq.cfg
  • Show licencesCisco ASA · Privileged EXEC (#)
    show license all

Troubleshooting #

  • Ping from an interfaceCisco ASA · Privileged EXEC (#)
    ping inside 198.51.100.10
  • Trace the route to a hostCisco ASA · Privileged EXEC (#)
    traceroute 198.51.100.10
  • Test a login against a RADIUS or LDAP serverCisco ASA · Privileged EXEC (#)
    test aaa-server authentication RADIUS-SERVERS host 192.168.10.90 username netadmin password ChangeMe-2026
  • Collect everything for Cisco TACCisco ASA · Privileged EXEC (#)
    show tech-support

Firewall Threat Defense (FTD) #

  • Show the version, model and UUIDCisco FTD · FTD CLI (>)
    show version
  • Show the management interface settingsCisco FTD · FTD CLI (>)
    show network
  • Set the management addressCisco FTD · FTD CLI (>)
    configure network ipv4 manual 192.168.10.1 255.255.255.0 203.0.113.1

    Warning: Your SSH session drops if you're connected to the old address.

  • Register with a Firewall Management CenterCisco FTD · FTD CLI (>)
    configure manager add 192.168.10.5 MyRegKey123
  • Show the manager and registration stateCisco FTD · FTD CLI (>)
    show managers
  • Remove the managerCisco FTD · FTD CLI (>)
    configure manager delete

    Warning: The FMC stops managing this device until you register it again.

  • Show the deployed configCisco FTD · FTD CLI (>)
    show running-config
  • Trace a packet through the firewall rulesCisco FTD · FTD CLI (>)
    packet-tracer input inside tcp 192.168.10.25 12345 198.51.100.10 443 detailed
  • Show connections for an addressCisco FTD · FTD CLI (>)
    show conn address 192.168.10.25
  • Show failover stateCisco FTD · FTD CLI (>)
    show failover
  • Trace live traffic through Snort and the access policyCisco FTD · FTD CLI (>)
    system support trace
  • Debug which access rule Snort matchesCisco FTD · FTD CLI (>)
    system support firewall-engine-debug
  • Capture traffic as Snort sees itCisco FTD · FTD CLI (>)
    capture-traffic
  • Open the diagnostic CLI for ASA-style commands (then type enable and press Enter for the password)Cisco FTD · FTD CLI (>)
    system support diagnostic-cli
  • Add a local CLI userCisco FTD · FTD CLI (>)
    configure user add netadmin config
  • Open the FXOS chassis CLICisco FTD · FTD CLI (>)
    connect fxos