Network Security Devices, Protocols and GovernanceIntroductionModern networks are not protected by a single appliance or protocol. They are defended through defence-in-depth: multiple, coordinated controls that reduce the likelihood of compromise, limit the scope of a successful attack, detect suspicious behaviour, support recovery, and provide evidence for accountability. A firewall may block an unauthorised connection, but it cannot by itself prevent a stolen credential from being misused. An intrusion prevention system may identify an exploit, but it cannot correct poor access governance or an unpatched server. Effective security therefore combines technology, architecture, people, procedures and oversight. This chapter examines security devices and protocols used in enterprise networks, together with access control, segmentation, secure management, privacy, ethics, compliance and incident response. The focus is practical: a network technician should be able to select controls, place them appropriately, interpret their limitations and operate them responsibly. Learning objectivesBy the end of this chapter, you should be able to: - explain the purpose and limitations of firewalls, proxies, IDS and IPS;
- construct access-control rules and apply network segmentation;
- describe NAC, secure administration and cryptographic protocols;
- assess threats, vulnerabilities, likelihood and impact;
- apply defence-in-depth to a network design;
- discuss privacy, ethical monitoring, governance and compliance; and
- outline a disciplined incident-response process.
1. Security foundations and threat assessment1.1 Security objectivesThe traditional CIA triad consists of: - Confidentiality: information is disclosed only to authorised subjects.
- Integrity: information and systems are protected from unauthorised alteration.
- Availability: authorised users can access services when required.
Additional objectives are increasingly important. Authenticity establishes that an entity or message is genuine; accountability links actions to responsible identities; and non-repudiation provides evidence that a party performed an action, although technical evidence cannot eliminate all legal disputes. Security controls can be classified as: | Classification | Purpose | Examples |
|---|
| Preventive | Stop or reduce an unwanted event | Firewall rule, MFA, patching | | Detective | Reveal an event or condition | IDS alert, log analysis | | Corrective | Restore or repair | Backup restoration, malware removal | | Deterrent | Discourage misuse | Warning banner, sanctions | | Compensating | Provide alternative protection | Restricted jump host when legacy equipment cannot use MFA |
A control may belong to more than one category. Network segmentation, for example, is preventive because it blocks paths and detective when unusual cross-segment traffic is monitored. 1.2 Threats, vulnerabilities and riskA threat is a potential cause of harm, such as ransomware, credential theft, an insider or a denial-of-service attack. A vulnerability is a weakness that can be exploited, such as an exposed management interface or unsupported operating system. Risk combines the possibility of an event with its consequences. A simple qualitative model is: Risk = Likelihood × Impact Likelihood and impact may be rated on an ordinal scale, for example from 1 to 5. This produces a prioritisation aid, not a measurement in currency or probability. The model assumes that the two ratings are sufficiently consistent for comparison. A score of 20 does not mean that an event is twice as dangerous as one scored 10; it indicates a higher priority under the chosen assessment method. A more formal expected-loss model is: Annualised Loss Expectancy = Annual Rate of Occurrence × Single Loss Expectancy The annual rate of occurrence is the estimated number of events per year, and the single loss expectancy is the financial loss per event. Estimates may include uncertainty and should not be treated as precise predictions. Qualitative judgement is especially important for safety, privacy and reputational effects that are difficult to monetise. Threat assessment should identify assets, trust boundaries, threat actors, attack paths, existing controls and business consequences. A vulnerability scan identifies technical weaknesses; it does not alone establish exploitability or business risk. Penetration testing goes further by safely attempting exploitation within an agreed scope. 2. Firewalls and access-control policy2.1 Firewall functionsA firewall controls traffic between security zones according to policy. A packet-filtering firewall evaluates fields such as source and destination IP address, protocol and port. A stateful firewall also tracks connection state, allowing return traffic for an established session without treating every packet as an independent request. A next-generation firewall (NGFW) may add application identification, user identity, encrypted-traffic inspection and integrated threat prevention. Firewalls may be implemented as dedicated appliances, virtual machines, cloud services or host-based software. Their principal value is enforcing a defined boundary; they are not substitutes for secure applications, endpoint protection or identity governance. A sound default policy is deny by default, permit by exception. Rules should be specific, documented, ordered deliberately and reviewed regularly. A typical rule record contains source zone, destination zone, source and destination address, service, action, identity or device condition, logging requirement, owner and expiry or review date. 2.2 Access-control listsAn ACL is an ordered set of permit and deny statements. Many devices use first-match processing, so a broad permit placed before a specific deny can unintentionally allow traffic. A final implicit deny may exist even when it is not displayed; administrators should make the policy visible through an explicit rule where appropriate. Example policy: | Order | Source | Destination | Service | Action | Reason |
|---|
| 10 | Public network | Web DMZ | HTTPS | Permit | Public web service | | 20 | Web DMZ | Database zone | Database service | Permit | Required application flow | | 30 | User VLAN | Management VLAN | Any | Deny and log | Protect administration | | 40 | Any | Any | Any | Deny and log | Default boundary |
The rule allowing the web DMZ to reach the database should be restricted to the required server addresses and ports, not to an entire network unless justified. Rules should be tested using expected, exceptional and prohibited flows. Shadowed, duplicate, overly broad and obsolete rules increase attack surface and administrative error. 2.3 Network address translation and firewallsNAT changes address information and can reduce direct exposure of internal addresses, but NAT is not a security policy by itself. A connection may still be permitted through a translation rule, and internal threats are not solved by hiding addresses. Firewall policy and NAT policy should therefore be reviewed separately. 2.4 High availability and resilienceA firewall can become a single point of failure. High-availability pairs commonly use state synchronisation and failover links. Design must consider asymmetric routing, session preservation, software-version compatibility, split-brain prevention, capacity during failover and the security of the synchronisation channel. Redundant equipment does not guarantee availability if both units depend on the same power, upstream link or flawed configuration. 3. Proxies and secure application gatewaysA forward proxy represents clients when accessing external services. It can enforce browsing policy, authenticate users, cache content and record requests. A reverse proxy represents servers to clients and is commonly placed in front of web applications. It can terminate TLS, distribute traffic, enforce rate limits and conceal internal topology. An application-layer proxy understands a protocol more deeply than a basic packet filter. A web application firewall (WAF), often deployed as a reverse proxy or cloud service, examines HTTP requests for patterns associated with attacks such as injection or cross-site scripting. It is valuable but imperfect: encrypted traffic, novel attacks, legitimate complex requests and application logic errors can produce false negatives or false positives. TLS interception requires special caution. The organisation effectively becomes a man-in-the-middle for inspected connections, so it must control trusted certificates, protect private keys, limit inspection to justified categories, handle certificate pinning and avoid exposing sensitive health, legal or financial information. Users should receive clear notice under applicable policy and law. 4. IDS and IPSAn intrusion detection system (IDS) monitors traffic or hosts and generates alerts. An intrusion prevention system (IPS) is positioned inline or integrated with a control point so that it can block or modify suspected traffic. Detection methods include: - Signature detection, which matches known patterns and is effective for recognised threats;
- Anomaly detection, which identifies deviation from an established baseline but may produce false alarms; and
- Behavioural or heuristic analysis, which evaluates sequences and characteristics rather than one exact signature.
Network IDS sensors often receive a copy of traffic through a TAP or mirror port, so they are out of band and cannot block directly. An IPS must see the relevant traffic inline and must be engineered for throughput, latency and fail-open or fail-closed behaviour. Host-based systems can observe processes, files and local events that network sensors cannot see. Detection quality depends on visibility, time synchronisation, sensor placement, rule updates and analyst capability. Encrypted traffic reduces content visibility, although metadata and endpoint telemetry remain useful. Alerts should be prioritised using asset criticality, confidence, attack stage and corroborating evidence. Excessive low-quality alerts create alert fatigue. 5. Segmentation and zero-trust access5.1 Segmentation principlesSegmentation divides a network into zones with different trust requirements. Common zones include the public-facing DMZ, user network, server network, management network, backup network, guest network, voice network and industrial-control network. Communication between zones should pass through an enforcement point and be permitted only when justified. VLANs provide logical Layer 2 separation, while routing and firewalls enforce Layer 3 or application policy. VLANs alone are not a complete security boundary: trunk misconfiguration, shared infrastructure, compromised switches and permissive inter-VLAN routing can defeat their purpose. Microsegmentation applies policy to individual workloads, identities or processes and is especially useful in virtualised and cloud environments. Segmentation limits lateral movement. It does not make a compromised zone safe; each zone still requires endpoint hardening, identity controls, monitoring and patching. 5.2 Zero trustZero trust is an architectural approach, not a product. It rejects implicit trust based solely on network location. Access decisions consider identity, device health, resource sensitivity, requested action, context and policy. The practical principles are verify explicitly, use least privilege and assume breach. A zero-trust design may combine identity-aware proxies, MFA, device certificates, endpoint posture checks, just-in-time privileges, microsegmentation and continuous logging. It must still support availability and usability; excessively frequent challenges or poorly designed policy can encourage workarounds. 5.3 Network access controlNAC evaluates a device before or during network access. It may use 802.1X authentication, certificates, user identity, device posture and VLAN or security-group assignment. Non-compliant devices can be denied, quarantined or placed in a remediation network. NAC deployments need an exception process for printers, medical devices, sensors and legacy systems that cannot perform 802.1X. The exception should be narrow, documented, monitored and periodically reviewed. NAC is not a replacement for patching: a compliant device can still be compromised after admission. 6. Secure management and cryptographic protocols6.1 Management-plane protectionThe management plane controls infrastructure and is therefore a high-value target. Best practice includes a dedicated management network or out-of-band path, administrative jump hosts, MFA, role-based access, least privilege, named accounts, central logging, configuration backups, time synchronisation and restricted source addresses. Insecure protocols such as Telnet, FTP and HTTP expose credentials or data. Prefer SSH for command-line administration, SFTP or SCP for controlled file transfer, HTTPS for web management, SNMPv3 for authenticated and confidential monitoring, and secure APIs using TLS. Disable unused services and management interfaces. Privileged actions should be attributable to individual accounts rather than shared administrator credentials. 6.2 Cryptographic building blocksEncryption protects confidentiality, but secure systems also require integrity and authentication. - Symmetric encryption uses one shared secret key for encryption and decryption. It is efficient for bulk data, but key distribution is difficult.
- Asymmetric cryptography uses a public and private key. It supports key establishment and digital signatures, but is computationally more expensive.
- Hash functions map input to a fixed-length digest. A secure cryptographic hash is designed to make finding collisions and reversing the input computationally infeasible; a hash is not encryption.
- Message authentication codes (MACs) provide integrity and authentication to parties sharing a secret.
- Digital signatures use a private key to sign and a public key to verify integrity, origin and non-repudiation evidence.
A simplified authenticated-encryption expression is: Ciphertext, Tag = AEADEncrypt(Key, Nonce, Plaintext, Associated Data) Here, Key is the secret encryption key, Nonce is a unique value used with that key, Plaintext is the protected data, Associated Data is authenticated but not encrypted, and Tag is an integrity-authentication value. The exact algorithm determines the implementation. A nonce must not be reused with the same key for common AEAD modes; key length and algorithm choice must follow current standards and organisational policy. 6.3 TLS, IPsec and VPNsTLS protects application sessions such as HTTPS. During a handshake, the endpoints negotiate algorithms, authenticate a server using certificates and establish shared session keys. Certificate validation must check trust chain, name, validity and revocation or equivalent status. A padlock icon does not prove that a website is trustworthy; it indicates a cryptographically protected connection to the validated endpoint. IPsec protects IP traffic at the network layer. In tunnel mode, an entire original IP packet is encapsulated inside a new packet, which is common for site-to-site VPNs. In transport mode, the payload of an IP packet is protected while the original IP header remains visible; it is less common for general site-to-site VPN deployment. VPNs protect traffic across an untrusted path but do not automatically make an endpoint secure. Split tunnelling, DNS leakage, weak authentication, excessive network reach and unmanaged personal devices can undermine a VPN. MFA, device posture, least-privilege routes and logging are important complements. 7. Governance, privacy and ethical monitoringTechnical controls operate within governance. Governance defines who may make decisions, what risks are acceptable, how controls are reviewed and how evidence is retained. A security policy should be supported by standards, procedures, configuration baselines, exception records and an approval structure. Important policy areas include acceptable use, password and MFA requirements, remote access, logging, vulnerability management, change control, backup, third-party access, data classification and incident response. Policies should identify owners, review dates, enforcement mechanisms and consequences for non-compliance. Monitoring creates ethical and legal responsibilities. Before collecting logs or inspecting traffic, an organisation should establish a legitimate purpose, collect only necessary data, restrict access, protect the data, define retention and provide appropriate notice. Monitoring employees indiscriminately can damage trust and may violate privacy or employment law. Security teams should distinguish content from metadata and use the least intrusive method that achieves the security purpose. Governance frameworks and regulations vary by jurisdiction and sector. Examples include information-security management standards, privacy and data-protection laws, payment-card requirements and critical-infrastructure rules. Compliance is a baseline, not proof of security. Organisations must map obligations to controls, retain evidence, conduct risk assessments and obtain specialist legal advice where jurisdiction is uncertain. Supply-chain governance is also essential. Contracts should define security requirements, breach notification, access restrictions, data location, subcontracting, audit rights, secure disposal and service continuity. Vendor risk assessments should be proportionate to the sensitivity and criticality of the service. 8. Incident response and operational assuranceIncident response should be planned before an incident. A commonly used lifecycle is: - Preparation: define roles, contacts, tools, playbooks, backups, legal escalation and exercises.
- Detection and analysis: validate alerts, establish scope, preserve evidence and classify severity.
- Containment: limit spread while preserving essential services and evidence.
- Eradication: remove malware, close exploited weaknesses, rotate credentials and eliminate persistence.
- Recovery: restore trusted systems, monitor closely and return to normal operation.
- Lessons learned: identify root and contributing causes, improve controls and update plans.
Containment decisions involve trade-offs. Disconnecting a server may stop an attack but destroy volatile evidence or interrupt safety-critical operations. Evidence handling should document who collected it, when, how, where it was stored and who accessed it. This chain of custody supports credibility. Logs should be centralised and protected against alteration. Useful sources include firewalls, VPN concentrators, DNS, authentication systems, endpoints, cloud control planes and application servers. Time must be synchronised, commonly through authenticated or controlled NTP, so events can be correlated. Retention should meet investigative, operational, privacy and legal requirements rather than simply keeping everything indefinitely. Operational assurance includes vulnerability scanning, patch management, configuration review, penetration testing, backup restoration tests, tabletop exercises and disaster-recovery drills. Metrics should encourage meaningful outcomes, such as time to detect, time to contain, remediation age by severity and restoration success, rather than rewarding superficial activity such as the number of alerts closed. 9. Applied case: illustrative college network redesignBackgroundA fictional college operates a public learning portal, administrative systems, laboratory devices, staff and student Wi-Fi, and remote access for staff. The network grew organically. The same administrator password was used on several switches, management interfaces were reachable from user VLANs, and a firewall rule permitted broad access from student devices to internal servers. ProblemA phishing campaign captured a staff password. Attackers used the remote-access service, scanned internal addresses and reached an unpatched laboratory server. Monitoring was fragmented, and investigators could not reliably reconstruct the sequence because device clocks differed. AnalysisThe principal weaknesses were not a single missing product but a set of failed assumptions: network location implied trust, administrative identity was shared, segmentation was weak, management traffic lacked isolation, patch ownership was unclear and logs were not centrally correlated. The college also lacked a tested incident-response plan. ApproachThe redesign used defence-in-depth: - a reverse proxy and WAF were placed before the learning portal;
- public services were placed in a DMZ, with narrowly defined flows to application and database zones;
- student, staff, guest, laboratory, voice, backup and management networks were separated;
- inter-zone traffic was denied by default and documented by service owner;
- staff remote access required MFA, device checks and routes only to approved applications;
- switches and firewalls were managed through a restricted jump host using SSH and HTTPS;
- unique administrator accounts, role separation and central authentication replaced shared passwords;
- NAC placed unknown or non-compliant devices into quarantine;
- central logging and time synchronisation improved detection and evidence quality; and
- an incident playbook defined isolation, notification, evidence preservation and recovery steps.
Legacy laboratory devices could not support 802.1X, so they were placed in a restricted segment with allow-listed destinations, compensating monitoring and a replacement plan. This illustrates that exceptions should be controlled rather than ignored. OutcomeIn this illustrative case, a later simulated phishing exercise produced an alert when the compromised account attempted an unusual application and geographic access pattern. The account was disabled, sessions were revoked and no laboratory device was reached. The exercise also revealed that one backup system had not been included in the logging policy, leading to a corrective action. Learning pointsThe redesign improved security because controls worked together. MFA reduced credential risk; segmentation limited movement; secure management protected control planes; monitoring enabled response; and governance assigned ownership. The result was not absolute security. It was a more resilient system with fewer attack paths, better visibility and a tested method for handling failure. 10. Challenges, limitations and contemporary developmentsSecurity devices can be bypassed by misconfiguration, zero-day vulnerabilities, stolen identities, encrypted malicious traffic and attacks through trusted services. More inspection can increase privacy risk and operational cost. Automation can improve response speed but may also quarantine legitimate services or amplify a faulty detection rule. AI-assisted security tools can summarise alerts, detect patterns and support analysts, but their outputs require validation, protected data handling and human accountability. They should not be treated as infallible investigators. Cloud and software-defined networking move enforcement from fixed appliances toward identity-aware policies, security groups, service meshes and cloud-native logging. This improves flexibility but creates risks of inconsistent policy, excessive permissions and poor visibility across providers. Post-quantum cryptography is an emerging consideration because future quantum computers could threaten some public-key algorithms; migration requires inventory, vendor planning and cryptographic agility rather than immediate indiscriminate replacement. Best practice is therefore continuous: maintain an asset inventory, classify data, minimise exposure, enforce least privilege, patch according to risk, protect management planes, centralise trustworthy logs, test recovery, review rules and exceptions, train users, and measure whether controls reduce meaningful risk. Chapter SummaryNetwork security is an architectural and governance problem rather than a product-selection exercise. Firewalls enforce boundaries, proxies mediate application traffic, IDS and IPS provide detection and prevention, and ACLs express ordered policy. Segmentation and NAC restrict lateral movement and support zero-trust principles. Secure administration requires isolated management paths, individual identities, MFA, least privilege, protected protocols and reliable logs. Cryptography supplies confidentiality, integrity and authentication through encryption, hashes, MACs, signatures, TLS, IPsec and VPNs. Risk assessment connects threats and vulnerabilities to business impact. Governance defines acceptable use, accountability, privacy, compliance and supplier obligations. Ethical monitoring requires purpose limitation, proportionality, transparency and protection of collected data. Incident response proceeds through preparation, analysis, containment, eradication, recovery and learning. Defence-in-depth does not eliminate failure; it makes attacks harder, limits damage, improves detection and enables responsible recovery. Key TermsAccess-control list (ACL): Ordered rules that permit or deny traffic or actions. Accountability: Ability to associate an action with a responsible identity. Authenticated encryption: Encryption that also provides integrity and authenticity protection. DMZ: A controlled network zone for services exposed to less-trusted networks. Defence-in-depth: Use of multiple, complementary security controls. Firewall: A device or service that enforces traffic policy between zones. IDS: System that detects and reports suspicious activity. IPS: Inline security system that can prevent or block suspicious activity. Least privilege: Granting only the access required for an authorised task. Microsegmentation: Fine-grained separation of workloads, identities or processes. NAC: Control that evaluates devices and users before or during network access. NAT: Translation between address spaces; not, by itself, a security control. Nonce: Value used once with a cryptographic key in applicable protocols or modes. Proxy: Intermediary that makes or mediates requests on behalf of another party. Risk: Combination of the likelihood and impact of an adverse event. Segmentation: Division of a network into zones with controlled communication. TLS: Protocol for authenticated and protected application communication. Zero trust: Approach that avoids implicit trust and verifies access explicitly. Review QuestionsShort Answer Questions- What are the three elements of the CIA triad?
- Why is deny-by-default commonly recommended for firewall policy?
- Distinguish an IDS from an IPS.
- Why is VLAN separation alone not a complete security boundary?
- Name two protections for the network management plane.
Long Answer Questions- Explain how firewalls, proxies, IDS/IPS and segmentation combine in a defence-in-depth architecture.
- Discuss the benefits and limitations of zero trust and NAC in a mixed enterprise network.
- Describe the roles of symmetric encryption, asymmetric cryptography, hashes, MACs and digital signatures.
- Explain the privacy and ethical issues involved in TLS interception and employee monitoring.
- Describe the incident-response lifecycle and the importance of evidence preservation.
Analytical / Application Questions- A university permits student VLANs to access all internal server addresses. Propose a revised segmentation and ACL strategy, explaining the order and purpose of key rules.
- A legacy medical device cannot support 802.1X or modern endpoint software. Design compensating controls and identify their limitations.
- During an incident, firewall logs show a successful remote login but endpoint clocks differ by twelve minutes. Analyse the investigative consequences and propose improvements.
Multiple Choice Questions with AnswersQuestion 1Which principle best describes a firewall policy that blocks all traffic except explicitly authorised flows? A. Permit by default B. Deny by default C. NAT isolation D. Open routing Correct Answer: B. Deny by default Question 2What is the principal difference between an IDS and an IPS? A. An IDS detects and alerts, whereas an IPS can block traffic inline B. An IDS encrypts traffic, whereas an IPS decrypts traffic C. An IDS assigns IP addresses, whereas an IPS assigns VLANs D. An IDS protects hosts only, whereas an IPS protects networks only Correct Answer: A. An IDS detects and alerts, whereas an IPS can block traffic inline Question 3Which control most directly protects network-device administration from ordinary user traffic? A. Public DNS B. A dedicated management network and restricted jump host C. A larger DHCP scope D. Disabling time synchronisation Correct Answer: B. A dedicated management network and restricted jump host Question 4Why is NAT not considered a complete security control? A. It always exposes internal addresses B. It cannot translate IPv4 addresses C. It changes addressing but does not define whether traffic is authorised D. It prevents all inbound connections Correct Answer: C. It changes addressing but does not define whether traffic is authorised Question 5Which cryptographic mechanism is designed to provide integrity and authentication to parties sharing a secret key? A. Hash alone B. Message authentication code C. Public DNS D. VLAN tagging Correct Answer: B. Message authentication code Question 6What is a primary purpose of network segmentation? A. To guarantee that no endpoint can be compromised B. To limit unauthorised lateral movement between zones C. To replace all identity controls D. To eliminate the need for patching Correct Answer: B. To limit unauthorised lateral movement between zones Question 7Which incident-response activity belongs primarily to the containment phase? A. Removing persistence from rebuilt systems B. Documenting lessons after recovery C. Isolating an affected host to limit spread D. Designing the original security policy Correct Answer: C. Isolating an affected host to limit spread Question 8A rule allowing any source to reach any internal server on any port is best described as: A. Highly specific least-privilege policy B. An overly broad rule that increases attack surface C. A cryptographic control D. A time-synchronisation control Correct Answer: B. An overly broad rule that increases attack surface Question 9What is a key ethical requirement when collecting security logs? A. Retain every possible item forever B. Collect data without informing anyone in all circumstances C. Use a legitimate purpose and collect only necessary data D. Publish raw logs for transparency Correct Answer: C. Use a legitimate purpose and collect only necessary data Question 10In a zero-trust architecture, access decisions should primarily rely on: A. Physical location on the internal network alone B. Identity, device and contextual policy evaluation C. A shared administrator password D. The assumption that internal traffic is safe Correct Answer: B. Identity, device and contextual policy evaluation
|