Securing the Edge: NAC, Wi-Fi, ZTNA and DDoS Escalation
Which access-edge control stops which attack: 802.1X with a guest VLAN, MAC authentication bypass, DHCP snooping and dynamic ARP inspection, port security, native-VLAN hygiene, WPA3-Enterprise with server-certificate validation and rogue-AP detection; when to choose ZTNA, a VPN or microsegmentation; and when a DDoS goes upstream.
Contentsand lesson path
On this page
- Why it matters
- Wired ports: 802.1X and layer-2 safeguards
- Wi-Fi: WPA3-Enterprise, certificates and rogue access points
- Remote access and east-west traffic: ZTNA, VPN or microsegmentation
- DDoS at the edge: when to call upstream
- Check your understanding
- Apply it
- Review prompt
Lessons of Network Defense & Monitoring
- Zones, Trust and Deny-by-Default Design Worked example · 25 min
- Intrusion Detection and Network Security Monitoring Concept · 15 min
- Running Suricata and Zeek on a Lab Network Lab · 30 min
- Hunting Scans, Beacons and Floods in Captures and Flows Lab · 30 min
- Securing the Edge: NAC, Wi-Fi, ZTNA and DDoS Escalation Concept · 25 min
- Network Defense Check Knowledge check · 10 questions
What you will learn
- Compare zero trust network access, VPNs and microsegmentation and recommend one for a given scenario.
- Recommend access-edge protections for a site (802.1X network access control, switch-port and VLAN safeguards, WPA3-Enterprise with rogue access point detection) and state which attack each one stops.
- Analyse packet captures, flow data and connection logs to identify scanning, lateral movement, beaconing, DNS anomalies or a volumetric flood, and for a flood follow a DDoS runbook that escalates to the upstream or scrubbing provider.
Prerequisites: Networking Basics
01. Why it matters
The zones from lesson 1 assume that a device is in the zone it claims to be in. The access edge is where that assumption is made: the switch port in a meeting room, the Wi-Fi access point in the lobby, the remote-access gateway on the internet. If anyone can plug in and land on the staff VLAN, or answer ARP for the gateway, the firewall rules behind them protect much less. The internet edge must also stay reachable under a flood.
Each control in this lesson stops a specific attack and not others. When you recommend controls for a site, name the attack each one stops. That avoids both gaps and features that defend against nothing you face.
02. Wired ports: 802.1X and layer-2 safeguards
IEEE 802.1X is port-based network access control (NAC). It has three roles: the supplicant (software on the device), the authenticator (the switch) and the authentication server (usually RADIUS). Until the device proves its identity, with a certificate or credentials carried in EAP (Extensible Authentication Protocol), the switch only passes authentication traffic. RADIUS then answers with a decision and can assign a VLAN: RFC 3580 describes the tunnel attributes for this (Tunnel-Type=VLAN, Tunnel-Medium-Type=802, Tunnel-Private-Group-ID=<VLAN ID>). Devices that do not answer 802.1X can be placed in a guest VLAN with internet access only. So a visitor's laptop in a meeting-room port cannot reach the staff network.
Printers, phones and cameras often cannot run a supplicant. MAC authentication bypass (MAB) lets the switch send the device's MAC address to RADIUS as its identity. MAC addresses are easy to copy, so MAB devices should land in a restricted VLAN that allows only what that device type needs.
Authentication decides who is on the port. Other switch features stop attacks from devices that are already on it:
- DHCP snooping marks the uplink towards the real DHCP server as trusted and drops DHCP server messages (OFFER, ACK) on every other port, which stops a rogue DHCP server from naming itself as everyone's gateway. It also records a binding table of port, MAC and leased IP.
- Dynamic ARP inspection (DAI) checks ARP packets on untrusted ports against that table and drops forged ones, which stops ARP spoofing, a classic way to put a device in the middle of other hosts' traffic.
- Port security limits how many MAC addresses a port may learn, which stops MAC flooding: filling the switch table so it floods frames to every port.
- Native-VLAN hygiene stops VLAN hopping by double tagging. A frame with two 802.1Q tags, sent from an access port in the trunk's native VLAN, loses its outer tag on the trunk and arrives in the VLAN of the inner tag. Set the native VLAN to an unused one, tag it if the platform allows, set user ports to access mode and turn off trunk negotiation.
The script below replays a few switch events through the snooping and DAI logic, so you can predict what the switch would drop. It needs only Python 3.
"""Replay switch events through DHCP snooping and dynamic ARP inspection (DAI)."""
TRUSTED = {"Gi1/0/48"} # uplink towards the router and the real DHCP server
GW_IP, GW_MAC = "10.1.10.1", "00:00:5e:00:01:01"
A, B, P = "3c:52:82:00:00:05", "3c:52:82:00:00:07", "3c:52:82:00:00:0c"
events = [ # (port, message, MAC address, IP address)
("Gi1/0/5", "DHCPREQ", A, "-"), # laptop A asks for an address
("Gi1/0/48", "DHCPACK", A, "10.1.10.5"), # the real server answers
("Gi1/0/7", "DHCPREQ", B, "-"), # laptop B asks too
("Gi1/0/9", "DHCPOFFER", "de:ad:be:ef:00:09", "10.1.10.99"), # rogue server
("Gi1/0/48", "DHCPACK", B, "10.1.10.7"),
("Gi1/0/48", "ARP", GW_MAC, GW_IP), # the real gateway
("Gi1/0/5", "ARP", A, "10.1.10.5"), # A tells the truth
("Gi1/0/7", "ARP", B, GW_IP), # B claims to be the gateway
("Gi1/0/12", "ARP", P, "10.1.10.12"), # printer with a static address
]
asked_on, bindings = {}, {} # MAC -> port it asked on; (port, MAC) -> leased IP
for port, msg, mac, ip in events:
if msg == "DHCPREQ":
asked_on[mac] = port
verdict = "PASS client request, remember the port"
elif msg in ("DHCPOFFER", "DHCPACK") and port not in TRUSTED:
verdict = "DROP DHCP server message on an untrusted port"
elif msg == "DHCPACK":
bindings[(asked_on[mac], mac)] = ip
verdict = f"PASS binding {asked_on[mac]} {mac} -> {ip}"
elif port in TRUSTED:
verdict = "PASS ARP on a trusted port is not inspected"
elif bindings.get((port, mac)) == ip:
verdict = "PASS ARP matches the binding"
else:
verdict = "DROP ARP does not match any binding"
print(f"{port:<9} {msg:<9} {ip:<10} {verdict}")python3 l2guard.pyGi1/0/5 DHCPREQ - PASS client request, remember the port
Gi1/0/48 DHCPACK 10.1.10.5 PASS binding Gi1/0/5 3c:52:82:00:00:05 -> 10.1.10.5
Gi1/0/7 DHCPREQ - PASS client request, remember the port
Gi1/0/9 DHCPOFFER 10.1.10.99 DROP DHCP server message on an untrusted port
Gi1/0/48 DHCPACK 10.1.10.7 PASS binding Gi1/0/7 3c:52:82:00:00:07 -> 10.1.10.7
Gi1/0/48 ARP 10.1.10.1 PASS ARP on a trusted port is not inspected
Gi1/0/5 ARP 10.1.10.5 PASS ARP matches the binding
Gi1/0/7 ARP 10.1.10.1 DROP ARP does not match any binding
Gi1/0/12 ARP 10.1.10.12 DROP ARP does not match any bindingThe rogue DHCP offer and laptop B's claim to own the gateway address are both dropped. So is the printer, although it did nothing wrong: it has a static address, so snooping never learned a binding for it. On a real switch you add a static binding or an ARP access list for such devices, rather than trusting their port.
dot1x system-auth-control
ip dhcp snooping
ip dhcp snooping vlan 10,50
ip arp inspection vlan 10,50
vlan dot1q tag native
!
interface GigabitEthernet1/0/5
description meeting room
switchport mode access
switchport access vlan 10
switchport nonegotiate
switchport port-security maximum 2
switchport port-security
authentication port-control auto
authentication event no-response action authorize vlan 50
mab
dot1x pae authenticator
!
interface GigabitEthernet1/0/48
description uplink
switchport mode trunk
switchport trunk native vlan 999
switchport trunk allowed vlan 10,20,50,99
switchport nonegotiate
ip dhcp snooping trust
ip arp inspection trust03. Wi-Fi: WPA3-Enterprise, certificates and rogue access points
WPA3 has two main modes. WPA3-Personal uses SAE (Simultaneous Authentication of Equals), a password-based handshake that resists offline password guessing. WPA3-Enterprise uses 802.1X: each user or device authenticates to RADIUS, so you can revoke one person without changing a shared password. The Wi-Fi Alliance also requires Protected Management Frames (PMF) on WPA3 networks, which makes forged management frames, such as the deauthentication frames used to knock clients off, much harder to use.
The main wireless attack on enterprise Wi-Fi is the evil twin: an attacker's access point broadcasting your network name (SSID), often after forged deauthentication frames push clients to reconnect. With PEAP or EAP-TTLS, the client sends its credentials inside a TLS tunnel to the RADIUS server. If the client accepts any server certificate, it builds that tunnel to the attacker and hands over credentials. The control is server-certificate validation: configure every client with the CA that signed the RADIUS certificate and the server name to expect. The wpa_supplicant documentation is blunt: without ca_cert, the server certificate is not verified, which it calls insecure. Hiding the SSID does not help (clients name it in their probes), and MAC filtering fails because MAC addresses can be copied.
You also need to find rogue devices. A wireless intrusion detection system (WIDS), often built into enterprise access points, compares what it hears with your inventory: unknown access points using your SSID, your SSID on unexpected channels, bursts of deauthentication frames. NIST SP 800-153 recommends such monitoring for rogue WLAN devices, together with physical checks. Also turn off Wi-Fi Protected Setup (WPS): its PIN is verified in two halves, so an attacker in range needs at most about 11,000 guesses to find it, and then gets the network key.
network={
ssid="corp"
key_mgmt=WPA-EAP-SHA256
ieee80211w=2 # PMF required
eap=PEAP
identity="[email protected]"
phase2="auth=MSCHAPV2"
ca_cert="/etc/ssl/certs/corp-radius-ca.pem"
domain_suffix_match="radius.corp.example"
}04. Remote access and east-west traffic: ZTNA, VPN or microsegmentation
These three answer different questions, so compare them by scenario.
A remote-access VPN builds an encrypted tunnel from a device into the network. After one login, the device has network-level reach, often to whole subnets. That suits managed laptops that need many internal protocols, but it trusts whatever the device does next. A site-to-site VPN joins two networks, such as a branch and head office, and is about links rather than users.
Zero trust network access (ZTNA) puts a broker in front of each application. NIST SP 800-207 describes the pattern: a policy decision point checks identity, device state and other signals, and a policy enforcement point grants access to one resource for one session. The user never joins the network, and the application is not open to the internet. That suits contractors on unmanaged laptops who need two web apps.
Microsegmentation controls east-west traffic, between workloads inside the data centre or cloud, with per-workload rules in host firewalls, hypervisors or cloud security groups. NIST SP 800-207 lists it as one way to build a zero trust architecture. It is the answer when one compromised server on a flat VLAN could reach every other one, as in a ransomware spread. It does not address remote users, and ZTNA does not control server-to-server traffic.
Having a VPN is not the same as having zero trust: the VPN decides once, at connection time, while zero trust decides per request and keeps checking. SASE (secure access service edge) is a cloud service that bundles ZTNA with web filtering and a cloud firewall, so one policy follows the user anywhere.
05. DDoS at the edge: when to call upstream
Denial-of-service floods come in three broad kinds. Volumetric floods fill the link. Many use reflection and amplification: the attacker sends small requests, with your address forged as the source, to open DNS or NTP servers, which send much larger replies to you. Protocol floods, such as the SYN flood in the hunting lab, exhaust connection state. Application floods send expensive but valid requests.
Where you can respond depends on where the bottleneck is. If the link still has room, local controls work: SYN cookies, rate limits, firewall or CDN (content delivery network) rules. If the flood fills the link, packets are dropped before your firewall sees them, so nothing on your premises can filter them. Then only upstream capacity helps: your ISP filtering in its network, or a scrubbing service that removes the attack and forwards the rest. The UK NCSC puts it plainly: a determined attacker will nearly always be able to send more traffic than most organisations could cope with unaided.
That is why the runbook matters more than the firewall. Before an attack, know what your ISP offers, who may call its network operations centre, how scrubbing is activated and how long it takes, and test it. During an attack, hand over the target, start time, peak rate, protocol and a sample capture. Afterwards, review the timeline, thresholds and contacts.
06. Check your understanding
07. Apply it
For the skill project, write the edge section of your design as a table of attack, control and where it is configured:
- the access edge of your three-zone lab: which ports use 802.1X, which use MAB and where guests land;
- a choice of ZTNA, VPN or microsegmentation for two scenarios of your own, with reasons;
- in
l2guard.py, add a second rogue offer on a trusted port and explain why snooping lets it through and what would catch it instead.
Finish the DDoS runbook from the hunting lab with the question you would ask your ISP this week.
08. Review prompt
Without looking back:
- For 802.1X, DHCP snooping, DAI, port security and native-VLAN hygiene, name the attack each one stops.
- Why does an evil twin succeed against clients that do not validate the RADIUS certificate?
- Give one scenario each for ZTNA, a VPN and microsegmentation.
- Why can on-premises filtering not stop a flood that fills the link?
References
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
10 questions · about 8 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.