Tag: asa

  • How to use Packet Tracer on Cisco ASA

    How to use Packet Tracer on Cisco ASA

    Packet tracer feature used to verify the security mechanisms as packet moves from one interface to another in a cisco ASA firewall. By this we can troubleshoot why the traffic is not working in the firewall or whether we created the rule correctly or not

    A typical series of security features tested might look like the following:

    • Flow lookup: Checks for existing xlate and conn entries.
    • UN-NAT: Checks for address translation entries.
    • Access list lookup: Checks for any applicable ACL entries.
    • IP options lookup: Checks handling of IP options in the ingress packet.
    • NAT: Checks the Reverse Path Forwarding (RPF) information.
    • NAT: Checks for host connection limits.
    • IP options lookup: Checks handling of IP options in egress packet.
    • Flow creation: Creates new xlate and conn entries, if needed.
    • Route lookup: Checks for a router to the destination address.

    Using Packet Tracer

    • Login to the ASA and go to enable mode:
    • login as: admin
    • dmin@10.1.10.1
    • password: Type help or ‘?’ for a list of available commands.
    • Corp-Hq-Fw01> en Password: Corp-Hq-Fw01#
    • Gather the required information for your packet trace:
      • The interface you wish the traffic to originate from
      • The type of traffic you wish to spoof, with TCP, UDP, ICMP (all types) or RawIP traffic supported.
      • The source port (if applicable) you want the traffic to originate from.
      • The destination port (again, if applicable) you want the traffic to be destined to.

    Now type in the command, syntax is

    packet-tracer input $source-interface $traffic-type $src_address $src_proto $src_proto_options $dest_address
    
    • In this instance let’s test
    • Inside interface address
    • ICMP traffic
    • Destined for google 8s

    Corp-Hq-Fw01# packet-tracer input inside icmp 10.1.10.5 8 0 8.8.8.8
    
    Phase: 1
     Type: ROUTE-LOOKUP
     Subtype: Resolve Egress Interface
     Result: ALLOW
     Config:
     Additional Information:
     found next-hop X.X.X.X using egress ifc OUTSIDE
    
    Phase: 2
     Type: ACCESS-LIST
     Subtype:
     Result: DROP
     Config:
     Implicit Rule
     Additional Information:
    
    Result:
     input-interface: inside
     input-status: up
     input-line-status: up
     output-interface: OUTSIDE
     output-status: up
     output-line-status: up
     Action: drop
     Drop-reason: (acl-drop) Flow is denied by configured rule
    

    The traffic is blocked in the firewall because there is no rule for created for ICMP. Lets do the test again after creating rule to allow ICMP in the firewall

    Corp-Hq-Fw01# packet-tracer input inside icmp 10.1.10.5 8 0 8.8.8.8
    
    Phase: 1
     Type: ROUTE-LOOKUP
     Subtype: Resolve Egress Interface
     Result: ALLOW
     Config:
     Additional Information:
     found next-hop X.X.X.X using egress ifc OUTSIDE
    
    Phase: 2
     Type: NAT
     Subtype:
     Result: ALLOW
     Config:
     object network REDOUBT
     nat (inside,OUTSIDE) static X.X.X.X
     Additional Information:
     Static translate 10.1.10.0/0 to X.X.X.X/0
    
    Phase: 3
     Type: NAT
     Subtype: per-session
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 4
     Type: IP-OPTIONS
     Subtype:
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 5
     Type: INSPECT
     Subtype: np-inspect
     Result: ALLOW
     Config:
     class-map inspection_default
     match default-inspection-traffic
     policy-map global_policy
     class inspection_default
     inspect icmp
     service-policy global_policy global
     Additional Information:
    
    Phase: 6
     Type: INSPECT
     Subtype: np-inspect
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 7
     Type: NAT
     Subtype: rpf-check
     Result: ALLOW
     Config:
     nat (any,OUTSIDE) after-auto source dynamic any interface
     Additional Information:
    
    Phase: 8
     Type: USER-STATISTICS
     Subtype: user-statistics
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 9
     Type: NAT
     Subtype: per-session
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 10
     Type: IP-OPTIONS
     Subtype:
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 11
     Type: USER-STATISTICS
     Subtype: user-statistics
     Result: ALLOW
     Config:
     Additional Information:
    
    Phase: 12
     Type: FLOW-CREATION
     Subtype:
     Result: ALLOW
     Config:
     Additional Information:
     New flow created with id 725694429, packet dispatched to next module
    
    Result:
     input-interface: inside
     input-status: up
     input-line-status: up
     output-interface: OUTSIDE
     output-status: up
     output-line-status: up
     Action: allow

    As you can see above, ping passes through the firewall successfully

    • You can see the initial routing decision(Phase 1),
    • that the traffic hit the outside interface NAT (Phase 2 & 3)
    • and that it passed ICMP inspection (Phase 5)
  • Introduction To Cisco ASA Firewall

    Introduction

    • In computer networking, Cisco ASA 5500 Series Adaptive Security Appliances, or simply Cisco ASA, is Cisco’s line of network security devices introduced in May 2005, that succeeded three existing lines of popular Cisco products:
    • Cisco PIX, which provided firewall and network address translation (NAT) functions ended sale on 28 July 2008.
    • Cisco IPS 4200 Series, which worked as intrusion prevention systems (IPS).
    • Cisco VPN 3000 Series Concentrators, which provided virtual private networking (VPN).
    • The Cisco ASA is a unified threat management device, combining several network security functions in one box.

    Cisco ASA Features

    • antivirus
    • antispam
    • IDS/IPS engine
    • VPN Device
    • SSL Device
    • content inspection

    ASA Models and their throughputs

    • Cisco ASA 5505
    • Cisco ASA 5510
    • Cisco ASA 5520
    • Cisco ASA 5525-X
    • Cisco ASA 5540
    • Cisco ASA 5550
    • Cisco ASA 5580-20
    • Cisco ASA 5580-40
    Model5506-X5506W-X5506H-X5508-X5512-X5515-X5516-X5525-X5545-X5555-X5585-X
    Throughput Gb/s0.250.250.250.450.30.50.851.11.51.754-40
    GB ports88486688886-8
    Ten GB ports00000000002-4
    Form factordesktopdesktopdesktop1 RU1 RU1 RU1 RU1RU1RU1RU2RU

    

    ASA Architecture

    • ASA is an application-aware stateful packet filtering firewall
    • Inspects all the packets which are passing through the firewall
    • Each and every interface on ASA requires configuration of following parameters

    ASA Architecture

    • ASA is an application-aware stateful packet filtering firewall
    • Inspects all the packets which are passing through the firewall
    • Each and every interface on ASA requires configuration of following parameters

    1.Interfaces with name and IP Address Add block

    2.Security Level

    ASA security levels

    • By default ,the security level is automatically set to the interface once name is configured §ASA uses security level 100 for trusted or internal networks and 0 for un-trusted or public networks
    • We can configure security levels to other interfaces also like DMZ 50
    • By default, traffic from higher traffic level to lower are allowed or inspected, all other traffic is blocked
    This image has an empty alt attribute; its file name is image.png