Security features and defense

7 minuti

Security features and defense covers the tools and configurations used to harden devices, control access, and enforce traffic rules on a network. Device-level protections — managing open ports, changing default credentials, enabling port security, and using NAC (Network Access Control) — work alongside rule-based controls such as ACLs (Access Control Lists), URL and content filtering, security zones, and screened subnets to create layered defences. These notes follow Prof. Messer’s Network+ N10-009 videos: Device Security, Security Rules.

⏱ Video — Device Security (8:55): 0:01 managing open ports · 0:41 firewalls and port control · 1:01 scanning with nmap · 1:55 default credentials · 2:58 port security on switches · 4:36 disabling unused interfaces · 5:18 network access control · 5:48 mac address filtering · 7:00 key management

⏱ Video — Security Rules (10:14): 0:02 access control lists · 1:25 rule order and implicit deny · 2:26 example firewall rule set · 4:29 url filtering · 6:01 content filtering · 6:55 screened subnet · 7:40 security zones · 9:10 overlaying zones on a network

Device hardening

Managing open ports

Every network-based service running on a system opens a port number (0–65,535) that is visible to others on the network. If the service is actively used the port should stay open; if no longer needed, the service should be stopped and the port closed. A firewall controls which devices can connect to a given port — inside the network only, or a wider audience.

To discover what ports are open, use a third-party tool such as Nmap to scan the system. The scan reveals every advertised port number, and the administrator decides whether to keep the service running or shut it down.

Default credentials

Many networking devices — switches, routers, firewalls — ship with a standard set of credentials. Some require changing them on first login, but many leave the defaults available indefinitely. Default credentials often provide administrative access. Anyone who knows the default username and password can gain complete control. A database of default credentials is available at routerpasswords.com.

Port security

Port security is a switch feature that prevents someone from unplugging an authorised device and plugging in their own. It works by monitoring the MAC address (Media Access Control address) on each interface. The administrator configures how many MAC addresses are allowed per interface (one or multiple) and, optionally, the exact MAC address permitted. If an unexpected device connects, the switch disables the interface and sends an alert to the network administrator — this is the default reaction on many switches.

Disabling unused interfaces

Wall jacks in conference rooms or break rooms should be disabled until someone actually needs to use them. This takes more administration — tracking which interfaces are enabled or disabled, and occasionally being asked to enable one — but makes the network far more secure.

NAC and 802.1X

NAC (Network Access Control) requires authentication before a device can communicate on the network. It is commonly implemented as 802.1X. When a device connects to a wired port or a wireless network, it is prompted for a username and password; only after successful authentication is the device allowed onto the network.

MAC address filtering

MAC address filtering limits network access to devices whose hardware addresses are on an approved list. It is useful for keeping unauthorised devices out, but the MAC address can be changed administratively in software — an attacker can capture traffic to see which MACs are in use, wait for one to leave, and then spoof that address. For this reason, MAC filtering is considered security through obscurity: knowing the method makes it easy to circumvent.

Key management

Organisations accumulate authentication details, certificates, and encryption keys across many services. Third-party key management software centralises these into a single console, where an administrator can:

  • Create keys for a specific service, cloud provider, or user.
  • See when keys expire, renew them, or revoke them.
  • Monitor usage — who is using which key to access what system.

The dashboard typically shows certificates, the certificate authority (CA), SSH keys, license details, and vulnerabilities. SSL keys across web servers can be listed, expired, and renewed from one place. The system generates reports on how keys are used — SSH reports, server reports, private key reports, and more.

Access control lists

An ACL (Access Control List) is a generic term for a list of allowed and disallowed traffic. Rules can combine source IP address, destination IP address, port number, time of day, and application. ACLs are found on routers, firewalls, operating systems, and anything that makes an access decision.

In a firewall, security policies form a complex ACL that includes a rule name, source and destination zones, source and destination addresses, destination ports, and usernames.

Rule order and implicit deny

Most firewalls evaluate rules top to bottom:

  1. Start with the first rule and work down until a match is found.
  2. Place the most specific rules at the top so they are matched first.
  3. If no rule matches, the traffic is implicitly denied — denied by the absence of a matching allow rule, not by a specific deny entry.
#ActionProtocolPortPurpose
1AllowTCP22SSH
2AllowTCP80HTTP
3AllowTCP443HTTPS
4AllowTCP3389RDP (Remote Desktop Protocol)
5AllowUDP53DNS
6AllowUDP123NTP (Network Time Protocol)
7DenyICMP—Ping / ICMP blocked
(8)Implicit denyAnyAnyAll unmatched traffic

The example above allows SSH, web, RDP, DNS, and NTP, blocks ICMP, and implicitly denies everything else.

URL and content filtering

URL filtering controls which websites users can reach. An administrator can specify individual URLs or use broad categories — for example, auction sites, hacking sites, travel sites, or recreation sites. Categories are far more practical than maintaining a list of thousands of individual URLs. Users often try to circumvent URL filtering, so it should be combined with firewall rules. Most next-generation firewalls (NGFWs) have URL filtering built in.

Content filtering is broader than URL filtering — it inspects the data itself, not just the destination address. It can block internal documents or financial details from leaving the network, prevent non- safe-for-work content, and is commonly used in antivirus and antimalware software to detect malicious software being transferred across the network.

Screened subnet

A screened subnet (historically called a DMZ) creates a separate area of the network for publicly accessible services such as web and email servers. Users on the public internet are directed to the screened subnet, away from the internal network. Internal users can still communicate out to the internet, but external visitors never reach the private side directly.

Security zones

Firewall rules can reference security zones instead of raw IP address ranges. Common zones include:

ZoneDescription
Trusted (inside)The internal corporate network
Untrusted (outside)The internet
Screened subnetPublic-facing servers
Server / DatabaseFurther segmentation

Zones simplify policy creation — one rule can say “trusted zone may communicate to untrusted zone”, and another can deny all traffic from untrusted to trusted. A network diagram might show internet → firewall → router → second firewall → honeypots + internal network, with each arrow representing a zone boundary.

Where attacks live — mental map (beyond the video)

Not from the video — why this matters for security.

  • Default credentials — the most common initial access vector. Routerpasswords.com is also an attacker’s research tool.
  • Open ports — every port is an attack surface. Nmap is the same tool attackers use for reconnaissance.
  • Port security prevents physical tampering, but MAC spoofing is trivial once the authorised MAC is known.
  • ACL misconfiguration — a missing implicit deny or a rule in the wrong order can open the entire network.
  • Screened subnet — if it is reachable from the internal network without a second firewall, a compromised public server becomes a pivot point into the LAN.
  • Zone-based firewalls are only as strong as the zone definitions; a misclassified zone bypasses every rule that depends on it.