Information presented in this article will serve well in preparations or reviews of the CCIE Core Knowledge section.
Private VLANs - this feature prevents inter host communication providing port-based security among adjacent ports within PVLAN.
PVLAN Ports:
PVLAN Types:
This feature allows to prevent man in the middle attacks in L2 environment.
It can work with DHCP or non-DHCP setup:
Configure non-dynamic interface with:
int G0/1
ip arp inspection trust
Then enable DAI globally on the switch for VLAN 55.
ip arp inspection vlan 55
In non-DHCP environment, we need to create ARP database and it comes in user-defined ARP acl:
arp access-list ARP_ACL
permit ip host 10.1.1.1 mac host 1111.1111.1111
ip arp inspection filter arpacl vlan 55
int G0/1
no ip arp inspection
To verify:
show ip arp inspection vlan 55
DoS - To limit floody of ARP packets use:
ip arp inspection limit <pps>
Generally there are 3 participants in 802.1x authentication:
ACS supports following authentication protocols:
In the scenario where user laptop is connected to 802.1x enabled network, the following occurs:
Several RADIUS VSA attributes passed back from ACS to the switch:
On IETF RADIUS page enter:
[64] - Tunnel-Type = Tag 1 = "VLAN"
[65] - Tunnel-Medium = Tag 1 = "802"
[81] - Tunnel-Private-Group-ID = Tag 1 "301"
On Cisco IOS/PIX RADIUS page enter:
[009\001] cisco-av-pair
cisco-avpair="tunnel-type(#64)=VLAN(13)"
cisco-avpair="tunnel-medium-type(#65)= 802 media(6)"
cisco-avpair="tunnel-private-group-ID(#81)=301"
Router FW mode - RIP, OSPF, but only with single context
Transparent FW mode - only ARP is allowed by default
ASA 8.0 supports NAT
ASA 7.2 and earlier - no NAT support and it does not allow shared interface
Multiple context mode - no VPN or Multicast allowed
ASA 8.0(1) introduced Redundant interfaces
ASA supports up to 3 equal cost routes on the same interface for load balancing
Stateful Inspection for "NEW" connections takes "management path":
Steteful Inspection for "ESTABLISHED" connections takes "fast path":
NAT order:
NAT types:
access-list POLICYNAT permit ip 10.1.1.0 255.255.255.0 10.2.2.2.0 255.255.255.0
nat (inside) 1 access-list POLICYNAT
global(outside) 1 209.165.202.1
route outside 0 0 track 100
sla monitor 1
type echo protocol ipIcmpEcho 172.16.1.1 interface outside
sla monitor schedule 1 life forever start-time now
track 100 rtr 1 reachability
"Tunneled" Route - feature allows to append "tunneled" keyword to static routes which will force all the encrypted traffic to use that particular route.
Equal Cost Multiple Path (ECMP) Forwarding - feature allows to forward data along 3 (three) equal-cost routes. This include different default routes.
OSPF Cost = 100,000,000 /bandwidth (in bps)
"rip outside passive" - allows only "receive" on outside interface
TCP Normalization feature will drop any packets that exceed maximum segment size (MSS). To disable this feature and allow packets, use MPF
access-list 100 permit tcp any any
tcp-map PERMIT_MSS_PACKETS
exceed-mss allow
class-map TCP_TRAFFIC
match access-list 100
policy-map TCP_POLICY
set connection advanced-options PERMIT_MSS_PACKETS
service-policy TCP_POLICY interface outside
Same will work for "checksum-verification", etc.
Application Layer Protocol Inspection are established using "Modular Policy Framework" (MPF):
SRC -> ACL -> XLATE -> INSPECTION -> (Decision to allow/drop) -> DST
Active/Standby - provides redundancy in both single and multi mode
Active/Active - provides load balancing in multi mode only
Requirements:
|-------------------------------------------------------------|
| Stateful Failover Replication Information |
|-------------------------------------------------------------|
| PASSED | NOT PASSED |
|-------------------------------------------------------------|
| NAT Translations | User authentication |
| TCP/UDP connection states | Routing Tables |
| ARP Entries | Multicast Info |
| ISAKMP and IPSEC SA | State Information for |
| | SSC (Service Security Card) |
|-------------------------------------------------------------|
How to configure LAN Failover with stateful failover replication
failover lan unit primary
failover lan interface failover Ethernet 2
failover link state Ethernet 3
failover interface ip failover 10.1.1.1 255.255.255.0 standby 10.1.1.2
failover interface ip state 10.1.2.1 255.255.255.0 standby 10.1.2.2
failover lan enabled
SMURF - source (spoofed) -> destination (broadcast) -> type (ICMP Echo Request - ICMP Type 8)
FRAGGLE -> source (spoofed) -> destination (broadcast) -> type (UDP Echo Request)
To discover and mitigate this attack perform:
Create ACL to match ICMP traffic and apply it to the interface:
# match ICMP type 8 (echo-request for Windows)
access-list 100 permit icmp any any echo
# match UDP ports 33434-33464 (echo-request for UNIX)
access-list 100 permit udp any any range 33434-33464
# match ICMP type 0
access-list 100 permit icmp any any echo-reply
The important thing is to watch when you execute "show access-list 100" is the difference in counts between "echo" and "echo-reply". If you are under the attack number of "echo-reply" packets will be significantly larger.
In order to mitigate you can use one of the following techniques:
Or you can block broadcasts on the router's interface:
int E0/0
no ip directed-broadcast
SYN attacks come in two flavors: Spoofed Address and Non-Spoofed address.
Usually Cisco devices look at SYN RTT (Interval between "SYN+ACK" and "ACK") and if it exceeds certain value, device will start dropping embryonic connections.
To detect SYN attack, create access list:
access-list 100 permit tcp any any syn
access-list 100 permit tcp any any
Apply it on the interface and see if the first line increases fast enough. If it does then you are under SYN attack.
To mitigate this type of attack, use:
The below configuration uses CAR to limit WWW traffic to 2 Mbps with normal burst of 16000 bytes and excess burst of 24000 bytes, and any remaining traffic will be limited to 4 Mbps.
access-list 101 permit tcp any any eq www
int E0/1
rate-limit output access-group 101 2000000 16000 24000
conform-action continue
exceed-action drop
rate-limit ouput 4000000 16000 24000
conform-action continue
exceed-action drop
IP Source Tracket Feature allows to identify source interface for the traffic that destined to specific network address.
Why is this important?
Main reason is that a lot of times network attacks come from spoofed addresses, so the only way to find offending source is to track it hop by hop. "SrcIF" field will point you to the segment where the traffic originates from.
This RFC defines Network Ingress Filtering
Network Based Application Recognition is:
Cisco IPS acts in two mode:
Both modes look for the following patterns of misuse:
Types of alerts:
Types of operation:
Types of Signature Engines:
List of features:
Firewall ACL Check:
VFR - Virtual Fragment Reassembly - is an IOS Firewall feature that works in conjunction with CBAC. Before VFR, CBAC was not able to identify content of fragmented packets, this allowed all fragmented packets to bypass CBAC inspection.
To enable VFR:
ip virtual-reassembly
If all fragments are not received within specific interval, then fragments will be dropped.
RFC1858 covers security considerations for IP fragment filtering.
When CBAC is enabled to allow traffic originated from the router itself, use "router-traffic" keyword.
Outbound ACL on the router checks only traffic passing through, and not traffic originated from the router.
This feature allows dynamic opening of ports based on client's authentication. Prerequisites:
username test password test
username test autocommand access-enable host timeout 10
access-list 102 dynamic INSIDE_IN timeout 15 permit ip any any
access-list 102 permit tcp any host 1.1.1.1 eq 23 // 1.1.1.1 router's IP
int E0/0 // inside interface
ip access-group 102 in
How to debug traffic with ACL:
access-list 101 permit ip host 1.1.1.1 host 2.2.2.2
access-list 101 permit ip host 2.2.2.2 host 1.1.1.1
debug ip packet detail 101
Banner Types:
Privilege Levels:
Control Plane Policing (CoPP) is used to protect control and management plane against attacks using MQC and limiting transfer rates.
control plane
service-policy input <policy-map>
shell:cli-view-name=xyzview
is successor of DIAMETER
RADIUS Header
|----------------------------|
| Code | Identifier | Length |
|----------------------------|
| Authenticator |
|----------------------------|
|------------------------------|
| Code |
|------------------------------|
| 1 | Access-Request |
| 2 | Access-Accept |
| 3 | Access-Reject |
| 4 | Accounting-Request |
| 5 | Accounting-Response |
| 11 | Access-Challenge |
|------------------------------|
Identifier value is used to match request/reply pair. This way router knows to which RADIUS request to match reply from ACS server
Authenticator - is a random value generated by the router. ACS replies wtih md5hash(original message + shared secret).
RADIUS provides authentication and authorization in one packet. Uses udp/1645 (authentication and authorization) and udp/1646 (accounting).
TACACS Header
|--------------------------------------------------|
| Major | Minor | Packet Type | Sequence # | Flags |
|--------------------------------------------------|
| Lenght |
|--------------------------------------------------|
| Authenticator |
|--------------------------------------------------|
Major/Minor - are TACACS server versions. This way you will be able to identify what version ACS server is running.
Flags - defines encryption and additional fields.
Sequence - starts with #1 at Router, #2 at ACS, #3 at Router, etc.
|-----------------------|
| Packet Type |
|-----------------------|
| 0x01 | Authentication |
| 0x02 | Authorization |
| 0x03 | Accounting |
|-----------------------|
Shared Profile Components:
- Downloadable ACL - supports (Routers/VPN/ASA/PIX)
- NAF (Network Access Filter) - different level of access per device or device group (provider more granularity
|--------------------------------------------------|
| Authentication |
|--------------------------------------------------|
| FROM | MESSAGE | TO |
| Router | START | ACS |
| ACS | GETUSER(username) | Router |
| Router | CONTINUE (username=user1) | ACS |
| ACS | GETPASS | Router |
| Router | CONTINUE | ACS |
| ACS | FAIL/PASS | Router |
|--------------------------------------------------|
| Authorization |
|--------------------------------------------------|
| Router | START | ACS |
| ACS | RESPONSE | Router |
|--------------------------------------------------|
EAP-MD5 is IETF standard
not secure, because of the MD5 brute-force attacks
EAP-TLS is IETF standard developed by Microsoft
Instead of password, the Certificate is send. They will need to be issued by trusted CA.
EAP-TTLS is Funk Software/Certicom product
EAP-FAST (EAP Flexible Authentication via Secure Tunnelling)
developed by Cisco
uses TLS, but does not require PKI infrastructure for user identity
secure tunnel is established using pre-shared key called PAC (Protected Access Credentials)
PEAP (Protected EAP) was developed by Cisco, Microsoft, RSA
Cisco NAC can be deployed in two ways:
NAC Appliance does not rely on 3rd party vendors, and offers assessment, policy management, and remediation services. (CSA, CCA agents and Clean Access Server/Manager)
NAC Framework integrates with third party vendors to provide endpoint clients and policy servers. On piece of Cisco device is ACS.
NAC Framework uses following protocols:
NAC Framework Admission Control
Symmetric Keys:
| Algorithm | Cipher Type | Key Size |
|---|---|---|
| DES | block |
56 bit |
| 3DES | block |
3x56 bit |
| AES | block |
128/192/256 bit |
Other algorithms: CAST-128/256, IDEA, RC4, Blowfish
Asymmetric Key Cryptography:
Cryptographic VPN Technologies:
Non-cryptographic VPN Technologies:
IPSec Framework offers following services:
IPSec Modes:
Types of IPSec Headers:
ESP Header - Encapsulating Security Payload:
AH Header - Authentication Header:
IKE Framework consists of:
IKE Phases:
Note: Multiple Phase 2 SAs can be established under the same phase 1 SA.
SA is agreement between two entities on a method to communicate securely.
IKEv2 vs IKE:
"ISAKMP Profile" is used to configure MPLS VPNs, router certificate management and IPSec/QoS configurations.
When to use? When router has more than one IPSec tunnel requiring different Phase 1 parameters for different sites.
How it is applied? Router will select ISAKMP profile based on "match identity" criteria:
Where used?
User connects -> Physical Interface -> auth + authorization -> Virtual Access Interface <- Virtual Template Interface
Certificate Enrollment - is a process of obtaining a certificate from a CA server.
Certificate Enrollment Methods:
Certificate Enrollment Process:
Public Key Certificate specs:
Modes:
We have 3 guests and no members online