Skip to main content

Network Security Key concepts

Switch Security Features

Cisco SAFE Framework

  • Cisco SAFE is a security architectural framework designed to protect against evolving threats like phishing, malware, and ransomware. It ensures comprehensive security across the network in various "places in the network" (PINs).

Next-Generation Intrusion Prevention System (NGIPS)

  • NGIPS is an advanced system for detecting and preventing intrusion attacks. It can log, analyze, and block malicious activities. NGIPS is available in physical appliances, virtual machines, or integrated with other Cisco systems like ISR.
    • Firepower appliances provide dedicated hardware for intrusion prevention.
    • NGIPS Virtual (NGIPSv) is available for virtualization environments.

Technical Tip: NGIPS should be strategically deployed in areas with high traffic, such as edge devices or data centers, to monitor for anomalies effectively.

Next-Generation Firewall (NGFW)

  • NGFW provides stateful inspection by monitoring network traffic and applying security policies based on packet contents. It combines traditional firewall capabilities with advanced filtering for applications and deep packet inspection.

Cisco Identity Services Engine (ISE)

  • Cisco ISE provides Network Access Control (NAC) by identifying users and devices connected to the network. It supports advanced policies like:
    • 802.1x authentication
    • MAC Authentication Bypass (MAB)
    • Web Authentication (WebAuth)
    • Enhanced Flexible Authentication (FlexAuth): Allows concurrent use of multiple authentication methods, reducing delays in endpoint authentication.

Technical Tip: Configure ISE with Enhanced FlexAuth to reduce delays for non-802.1x devices by enabling concurrent MAB and WebAuth alongside 802.1x.

Cisco TrustSec

  • Cisco TrustSec is a scalable network access control solution using Security Group Tags (SGT) for policy enforcement. TrustSec reduces the need for maintaining numerous ACLs by tagging traffic at the ingress, and applying access control based on SGT tags at egress points.

Technical Tip: TrustSec tags can be integrated with Cisco's Software-Defined Access (SD-Access) solution for scalable access control across multiple sites or devices.

VACL, PACL

  • Port ACLs (PACLs): Applied to Layer 2 interfaces to control incoming traffic. They filter IP and non-IP traffic based on source and destination MAC addresses.
  • VLAN ACLs (VACLs): Used to filter traffic within a VLAN. VACLs are directionless and applied globally to VLANs.
    • VLAN maps: Used to apply VACLs with matching conditions and actions.

Technical Tip: PACLs take precedence over VACLs and Router ACLs (RACLs). They are applied first on incoming traffic.

Example Configuration:

ip access-list extended TELNET

 permit tcp any any eq 23

exit

vlan access-map VACL_20 10

 match ip address TELNET

 action drop log

Storm Control

  • Storm control mitigates traffic flooding on LANs from broadcast, multicast, or unicast storms.
  • Measured by:
    • Bandwidth percentage
    • Packet rate (pps)

Technical Tip: Storm control should be enabled on interfaces facing user devices to avoid disruption during traffic floods.

Example Configuration:

storm-control broadcast level 20

DHCP Snooping & Option 82

  • DHCP Snooping: Protects against rogue DHCP servers. It classifies ports as trusted (allowed to forward DHCP traffic) or untrusted (blocked).
  • Option 82: Provides additional information (circuit IDs) about the source of DHCP requests.

Technical Tip: Only configure trusted ports on interfaces connected to the DHCP server.

Example Configuration:

ip dhcp snooping vlan 10

ip dhcp snooping information option

IP Source Guard (IPSG)

  • IPSG: Prevents IP spoofing by filtering traffic based on the DHCP snooping database. It only allows traffic from valid IP-to-MAC bindings.

Technical Tip: Enable IPSG on all access ports to block IP spoofing attempts from rogue devices.

Example Configuration:

ip verify source port-security

Dynamic ARP Inspection (DAI)

  • DAI: Prevents man-in-the-middle attacks by validating ARP packets against the DHCP snooping database.
  • Trusted interfaces forward ARP traffic without inspection, while untrusted interfaces are inspected.

Technical Tip: Set ARP rate limits on untrusted interfaces to prevent excessive ARP packets from overwhelming the switch.

Example Configuration:

ip arp inspection vlan 10

ip arp inspection limit rate 15

Port Security

  • Port Security: Limits the number of MAC addresses on a port, preventing unauthorized devices from accessing the network.
  • Violation Modes:
    • Protect: Drops packets with unknown MAC addresses without notification.
    • Restrict: Drops and logs violations.
    • Shutdown: Disables the port on a violation.

Technical Tip: Use sticky MAC to learn and bind secure MAC addresses dynamically.

Example Configuration:

switchport port-security mac-address sticky

Private VLANs

  • Private VLANs (PVLANs): Partition a single VLAN into isolated sub-VLANs for enhanced security.
    • Promiscuous Ports: Can communicate with all secondary VLANs.
    • Isolated Ports: Cannot communicate with each other but can communicate with promiscuous ports.
    • Community Ports: Can communicate within the same community VLAN but not with other communities.

Technical Tip: Use VTPv3 to manage Private VLANs across multiple switches, ensuring proper VLAN propagation.

Example Configuration:

vlan 20

private-vlan primary

private-vlan association 501-503

Router Security Features

IPv6 Traffic Filters

  • IPv6 ACLs can be applied to interfaces to filter incoming and outgoing IPv6 traffic.

IPv4 Access Control Lists (ACLs)

  • Standard ACLs: Match on source IP addresses.
  • Extended ACLs: Match on source, destination, and protocol.

Technical Tip: Use Named ACLs for easier management, as they allow editing and resequencing of individual ACEs.

Example Configuration:

ip access-list extended WEB_FILTER

 deny tcp any any eq 80

Unicast Reverse Path Forwarding (uRPF)

  • uRPF: Prevents IP spoofing by verifying that the source address of incoming packets has a valid path in the routing table.

IPv6 Infrastructure Security

  • RA Guard: Protects against rogue router advertisements in IPv6 networks.
  • DHCP Guard: Blocks DHCP server responses from unauthorized interfaces.
  • ND Inspection: Validates Neighbor Discovery packets for IPv6.

Technical Tip: Always enable IPv6 security features to mitigate IPv6-specific vulnerabilities like rogue RA attacks.

IEEE 802.1X Port-Based Authentication

Device Roles and Port States

  • 802.1X: Ensures devices authenticate before accessing the network.

Authentication Process

  • MAC Authentication Bypass (MAB): A fallback for non-802.1X devices, using the MAC address for authentication.

Technical Tip: Use MAB with restricted access policies and downloadable ACLs to prevent unauthorized access.

Example Configuration:

authentication order mab dot1x

Comments

Popular posts from this blog

How to import Putty Saved Connections to mRemoteNG

Just started using mRemoteNG and its being very cool to connect to different remote connection with different protocols e.g Window Remote Desktop, VNC to Linux, SSH, HTTP connection etc. from a single application. As new user I configured some remote desktop connection which was quite easy to figure out. But when I wanted to add SSH connections, it came in my mind to import all of the saved connections in the putty. But I couldn't figure it out how can it be done, though it was quite easy and here are the steps. Open your mRemoteNG Create a folder if you want segregation of multiple networks Create a new connection Enter the IP address of remote server under connection in Config pane Under the config pane, select protocol " SSH version 2 ".  Once you select protocol to SSH version 2 you are given option to import putty sessions, as shown in the snap below. In the above snap, I have imported CSR-AWS session from my saved sessions in Putty.

Authoritative DNS Servers Delegation and Internal DNS Explained

DNS (Domain Name System) plays a critical role in how users and systems find resources on the internet or within internal networks. Whether it's managing an internal domain in an enterprise or delegating parts of a domain for traffic distribution, DNS setups vary widely depending on needs. In this blog post, we’ll break down the different types of DNS setups, including authoritative DNS servers, DNS delegation, and how internal DNS functions within organizations. 1. Authoritative DNS Server An Authoritative DNS server is the final source of truth for a specific domain. When someone queries a domain (e.g., example.com ), the authoritative DNS server for that domain holds the DNS records (A records, CNAME, MX, etc.) and responds with the corresponding IP address. Key Points: Who can host it? Authoritative DNS servers are often hosted by domain registrars (e.g., GoDaddy, Namecheap) or cloud DNS providers (e.g., AWS Route 53, Cloudflare). However, organizations can also host their ...

BGP MED: Managing Inbound Traffic with Multi-Exit Discriminator

The Multi-Exit Discriminator (MED) is used in BGP to control inbound traffic into your AS. It tells a neighboring AS which entry point into your network it should prefer when there are multiple links between your AS and the neighboring AS. The lower the MED value , the more preferred the path. MED is only honored between the same neighboring AS . Example Scenario : You are connected to ISP1 via two routers, CE1 and CE2 , and want to control which router ISP1 uses to send traffic into your AS. Network Topology : CE1 (connected to ISP1): 10.0.1.1/30 CE2 (connected to ISP1): 10.0.2.1/30 iBGP Router (Internal) connected to both CE1 (10.0.1.2/30) and CE2 (10.0.2.2/30). Configuration on CE1 (Lower MED, More Preferred) : Create a route map to set the MED to 50 for CE1: route-map SET_MED permit 10 set metric 50 Apply this route map to the neighbor in the BGP configuration for CE1: router bgp 65001 neighbor 10.0.1.1 remote-as 65000 neighbor 10.0.1.1 route-map SET_MED out Configuratio...