Checking users and devices before the network lets them in

9 min 5 sections 5 practice questions 18 sources citedISC2 objective 4.2

Before a laptop, phone or administrator gets onto a network, something has to check who they are, what they may do and whether the device is safe to admit. Central sign-in servers, a switch that keeps its socket shut and a health check on the device do that work together. No background is assumed. A security professional needs it because a network that admits anything plugged into a wall socket has no front door.

By the end of this unit you will be able to:

  • Explain how PAP, CHAP and EAP prove a password over a link, and rank them
  • Tell apart RADIUS, TACACS+ and Diameter by transport, port, what each protects and how each handles the three A's
  • Put in order the steps of an 802.1X sign-in and name its three roles
  • Choose between pre-admission and post-admission, agent and agentless, and inline and out-of-band network access control

The laptop in the waiting room

An illustrative example

A busy veterinary practice has a network socket in its waiting room, left over from a fish tank pump. A customer's teenage son plugs in his own laptop while he waits. Within a minute the laptop has an address on the practice network and can see the server holding client records and card payments.

The laptop has not had an update for two years. The practice manager learns of it only when the boy asks the receptionist why the printer is listed.

What would have to change for the socket to refuse a device until it proves who it belongs to and that it is safe?

One central server answers for every way into the network

A network can be entered in many places: a wall socket, a access point, a remote access gateway, the management port of a router. The device a user connects to is the network access server (NAS). Rather than keep its own list of users, each one passes the request to an AAA server, which holds the accounts in one place.

Authentication
The AAA server checks the user's proof, such as a password or a .
Authorisation
It tells the NAS what the user may do: which network to join, for how long, which commands to run.
Accounting
The NAS reports when the session started and ended and what was used, so there is a record afterwards.

A hotel chain's reception desks

Every hotel in a chain checks a guest's booking with the central reservations system, not with a notebook at its own desk. A cancelled booking is cancelled everywhere at once, and head office sees every check-in.

Central control gives one place to remove a leaver's access, one set of rules and one log. It also makes the AAA server a single target, so it is hardened and duplicated.

PAP, CHAP and EAP: proving a password over a link

The Point-to-Point Protocol (PPP) carries network traffic over a direct link between two devices, such as a dial-up modem call. It can require the caller to prove who they are before any other traffic flows. Three ways of doing that are named.

The Password Authentication Protocol (PAP) sends the user name and password across the link in readable form. Anyone listening collects them, and nothing stops a recorded login being replayed.

The Challenge Handshake Authentication Protocol (CHAP) never sends the password. The server sends a random challenge. The client combines it with the shared secret, the result and returns the hash. The server does the same sum and compares. A fresh challenge each time defeats replay, and the server can challenge again during the session. Its weakness is that the server must store the secret in readable form. Microsoft's version, MS-CHAP, has known flaws that let a captured exchange reveal the password.

The Extensible Authentication Protocol (EAP) is not one method but a framework that carries many. It runs over or straight over a local network, so new methods can be added without changing the equipment.

EAP methods and how strong each is
MethodHow the user proves identityCertificatesStanding
EAP-TLSA certificate on the device and one on the serverBoth sidesStrongest
PEAPPassword, inside an tunnel the server's certificate sets upServer onlySound if the device checks the server certificate
EAP-TTLSPassword or older method, inside a similar tunnelServer onlySound if the server certificate is checked
EAP-FASTTunnel built from a credential issued in advanceNot requiredSound
LEAPPassword, hashed but open to offline guessingNoneBroken: replace

RADIUS, TACACS+ and Diameter compared

Three protocols carry the conversation between a NAS and its AAA server.

Remote Authentication Dial-In User Service (RADIUS) was built for dial-up providers and now serves Wi-Fi, VPNs and switch ports. It runs over . Only the password is hidden, using the secret the NAS and server share. The server's yes carries the user's settings, so authentication and come in one answer.

Terminal Access Controller Access-Control System Plus (TACACS+) is used mostly for administrators signing in to routers, switches and . It runs over and hides the whole body of every . It keeps the three A's separate, so each can sit on a different server and every command an administrator types can be authorised one by one.

Diameter was designed later to fix gaps in RADIUS, such as its lack of error messages and of support for relays and proxies. It serves large providers and users roaming between them, and can run beside RADIUS. It runs over TCP or SCTP, a transport built for signalling, and must be protected by TLS or IPsec.

Three AAA protocols side by side
PointRADIUSTACACS+Diameter
Transport and portUDP 1812, accounting on 1813TCP 49TCP or SCTP 3868
What is protectedThe password onlyThe whole packet bodyEverything, by TLS or IPsec
The three A'sAuthentication and authorisation combinedAll three separateAll three, in one framework
Typical useUsers joining Wi-Fi, VPN, 802.1XAdministrators of network devicesLarge providers and roaming

The TACACS+ standard of 2020, RFC 8907, calls its own hiding obfuscation rather than encryption, because it gives no real or replay protection. In practice both TACACS+ and RADIUS are therefore carried inside TLS or IPsec. Against each other, TACACS+ still protects more than RADIUS.

802.1X keeps a switch port shut until the device proves itself

IEEE 802.1X is . A port here is the physical socket on a switch, or a device's connection to a wireless access point. Until the device has authenticated, the port passes nothing but sign-in messages.

Supplicant
The device asking to join, or the software on it that answers.
Authenticator
The switch or access point that holds the port shut and relays the sign-in.
Authentication server
The AAA server, usually RADIUS, that checks the proof and says yes or no.

A switch relays the sign-in and obeys the answer

A switch relays the sign-in and obeys the answerThe supplicant, the authenticator and the authentication server in a row, joined by EAPOL and then RADIUS. From the authenticator two outcomes follow: on accept the port opens, on reject it stays shut.Supplicantthe laptop orphone joiningAuthenticatorthe switch: holdsthe port shutAuthenticationserverRADIUS: checks theproof, says yes or noPortopenedinto the VLANit was givenPort staysshutsign-in onlygets throughEAPOLRADIUSon accepton rejectA switch relays the sign-in and obeys the answerThe supplicant, the authenticator and the authentication server in a row, joined by EAPOL and then RADIUS. From the authenticator two outcomes follow: on accept the port opens, on reject it stays shut.Supplicantthe laptop orphone joiningAuthenticatorthe switch: holdsthe port shutAuthenticationserverRADIUS: checks theproof, says yes or noPortopenedinto the VLANit was givenPort staysshutsign-in onlygets throughEAPOLRADIUSon accepton reject
Read this figure as text

IEEE 802.1X is port-based network access control. Until a device has authenticated, its switch port, or its connection to a wireless access point, passes nothing but sign-in messages. Three roles take part.

  1. The supplicant is the device asking to join, or the software on it that answers. When a laptop is plugged in, the switch lets through only EAP messages, carried over the local network as EAP over LAN (EAPOL).
  2. The authenticator is the switch or access point. It holds the port shut and relays the laptop's EAP messages to the authentication server, wrapped inside RADIUS.
  3. The authentication server, usually RADIUS, completes the EAP method with the laptop, for example EAP-TLS with certificates, and returns accept or reject. An accept can name the VLAN the laptop belongs in.
  4. On an accept the switch opens the port and places the laptop in that VLAN.
  5. On a reject the port stays shut. The switch never sees the password or certificate check itself: it only relays and obeys.
  1. A laptop is plugged in. The switch lets through only EAP messages, carried over the local network as EAP over LAN (EAPOL).
  2. The switch relays the laptop's EAP messages to the RADIUS server, wrapped inside RADIUS.
  3. The server and the laptop complete the EAP method, for example EAP-TLS with certificates.
  4. The server returns an accept and can name the VLAN the laptop belongs in.
  5. The switch opens the port and places the laptop in that VLAN. On a reject the port stays shut.

The switch never sees the password or certificate check itself. It only relays and obeys.

Network access control checks the device as well as the person

Network access control (NAC) adds a second test to identity: whether the device is healthy enough to admit. The check is called posture assessment. It looks at , whether anti-malware is running, whether the disk is encrypted and whether the host firewall is on. A device is admitted. A failing one is put in quarantine, a restricted network that reaches only the servers needed for remediation, meaning updates and fixes, and is checked again once repaired.

Pre-admission against post-admission
Pre-admission checks before the device joins. Post-admission keeps watching after it joins and can move or cut off a device whose state or behaviour changes.
Agent against agentless
An agent is software on the device that reports its state. Agentless NAC scans the device from the network or queries it remotely, which suits printers and guests' devices.
Persistent against dissolvable
A persistent agent stays installed and checks continuously. A dissolvable agent is downloaded for one check and removes itself, which suits visitors.
Inline against out-of-band
An inline NAC device sits in the path of all traffic. Out-of-band NAC takes part only in the check, then instructs switches and steps aside.

NAC is sold as a physical appliance or as virtual software running on a server or in a cloud. Both do the same job. Most systems combine 802.1X for identity, RADIUS to decide and assignment to enforce.

Common misconception

“NAC checks a device once, when it joins, and has no say afterwards.”

That describes pre-admission only. Post-admission NAC goes on watching and can quarantine a device that falls out of compliance or starts behaving badly after joining.

A question, worked through

A regional bank has 200 routers and firewalls. Auditors find that administrators share local accounts on each device and that nobody can say who changed a firewall rule last month. The network manager wants central sign-in for administrators, approval of each command they run, a separate record of every session and protection of the whole exchange.

Which protocol BEST meets these requirements?

  1. RADIUS with accounting enabled
  2. TACACS+ with a central server
  3. CHAP configured on each device
  4. IEEE 802.1X on each device port
Decide on your answer, then open the reasoning
  1. The question asks for central control of administrators, with commands authorised one at a time and the three A's kept apart.
  2. Rule out c: CHAP proves a password over a link without sending it, but it is set up device by device and authorises nothing.
  3. Rule out d: 802.1X decides whether a device may join through a port. It does not control what an administrator types once signed in.
  4. Between a and b: RADIUS gives central sign-in and accounting, but it joins authentication and authorisation and protects only the password. TACACS+ separates the three A's, authorises each command and protects the whole packet body. The answer is b.

Answer: B. TACACS+ with a central server

Choosing between good answers

A scenario is about administrators signing in to routers, switches or firewalls, or about authorising each command
choose TACACS+.
A scenario is about users joining Wi-Fi, a VPN or a switch port through a central server
choose RADIUS, usually with 802.1X.
Options compare what RADIUS and TACACS+ protect
RADIUS hides only the password and runs on UDP. TACACS+ hides the whole body and runs on TCP 49.
An answer offers PAP for anything that matters
rule it out. PAP sends the password in readable form. Prefer EAP-TLS, then a tunnelled method.
A device that passed its check at sign-in later turns unsafe
the answer is post-admission NAC, which quarantines it for remediation.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

A laptop is plugged into a wall socket on a switch that uses IEEE 802.1X, with a RADIUS server behind it.

Put the steps in the order they happen.

Put the steps in order with the buttons beside each one. The whole order has to be right.

  1. 1The switch holds the port shut except for EAP messages from the laptop
  2. 2The RADIUS server returns an accept that names the laptop's VLAN
  3. 3The switch opens the port and places the laptop in the named VLAN
  4. 4The switch relays the laptop's EAP messages to the RADIUS server inside RADIUS
  5. 5The laptop and the RADIUS server complete the EAP method, such as EAP-TLS

What to remember

  • A network access server passes every sign-in to a central AAA server, which authenticates, authorises and keeps the accounting record.
  • PAP sends the password in the clear. CHAP sends a hash of a challenge and the secret. EAP is a framework for many methods, of which EAP-TLS is strongest.
  • RADIUS runs on UDP 1812 and 1813, hides only the password and combines authentication with authorisation.
  • TACACS+ runs on TCP 49, protects the whole packet body and keeps the three A's apart. Diameter is a later, larger AAA protocol built to fix gaps in RADIUS.
  • 802.1X holds a port shut until the supplicant proves itself to the authentication server through the authenticator.
  • NAC checks the device's posture as well as the user, before admission and after it, and quarantines a failing device for remediation.

Say it from memory

  1. What does network access control check, how does it enforce the result, and what are its four pairs of design choices?

    It checks the user's identity and the device's posture (patches, anti-malware, encryption, firewall). It enforces through 802.1X, RADIUS and VLAN assignment, admitting compliant devices and quarantining others for remediation. Choices: pre-admission or post-admission, agent or agentless, persistent or dissolvable agent, inline or out-of-band. It comes as a physical appliance or virtual software.

    Read this part again

  2. What do the three A's of an AAA server each do?

    Authentication checks the user's proof, such as a password or a certificate. Authorisation tells the network access server what the user may do: which network to join, for how long, which commands to run. Accounting records when the session started and ended and what was used.

    Read this part again

  3. Which EAP method is strongest, which is broken, and on what does PEAP's soundness depend?

    EAP-TLS is the strongest: it uses a certificate on the device and one on the server. LEAP is broken and should be replaced, because its hashed password is open to offline guessing. PEAP carries a password inside an encrypted tunnel set up by the server's certificate, and is sound only if the device checks that certificate.

    Read this part again

  4. Compare RADIUS and TACACS+: transport and port, what each protects, and how each handles the three A's.

    RADIUS runs over UDP 1812, with accounting on 1813, hides only the password and combines authentication and authorisation. TACACS+ runs over TCP 49, hides the whole packet body and keeps all three A's separate, so each command can be authorised. Diameter runs over TCP or SCTP 3868.

    Read this part again

  5. Name the three roles in IEEE 802.1X and say what the switch lets through before authentication.

    The supplicant is the device asking to join. The authenticator is the switch or access point that holds the port shut and relays the sign-in. The authentication server, usually RADIUS, checks the proof. Before authentication the port passes only EAP messages, carried as EAP over LAN (EAPOL).

    Read this part again

Sources