Learning Objectives
By the end of this chapter, you will be able to:
- Group network security controls by purpose.
- Classify firewalls by scope and by inspection method.
- Explain encryption versus decryption and symmetric versus asymmetric keys.
- Show where HTTPS, VPN, and signatures apply.
Related: wireless security, telnet versus SSH, computer security and control.
What network security is
Network security is the set of policies and controls that prevent, detect, and limit unauthorized access, misuse, and disruption on a network. It is not one device. It is a stack.
Controls in three groups
| Group | Purpose | Controls | What each solves |
|---|---|---|---|
| A. Perimeter and gate | Let good traffic in, keep bad traffic out | Firewalls, IDS and IPS, access rules | Unwanted ports and patterns stopped at entry |
| B. Secrecy and trust | Make intercepted data unreadable and prove who sent it | Encryption, decryption, keys, HTTPS, VPN, digital signatures | Eavesdropping and tampering become useless without keys |
| C. Stay up and recover | Survive when something bypasses A and B | Auth and MFA, patching, backups, monitoring | A stolen password or a known flaw does not become a disaster |
A firm that funds only A buys gates with no locks. A firm that funds only B encrypts without knowing what it allows in.
flowchart LR
INT[Internet: untrusted] --> FW{Firewall and IPS}
FW -->|Allow| LAN[Internal network]
FW -->|Drop| X[Blocked port or pattern]
LAN --> ENC[Encrypted session: HTTPS or VPN]
ENC --> APP[App with MFA and logs]
Firewalls
A firewall allows or drops packets against a rule set. It is the line between trusted and untrusted.
By scope
| Scope | Where it sits | What it protects | Example |
|---|---|---|---|
| Hardware | Appliance or router at the edge | The whole network behind it | Office firewall box |
| Software | Agent on a machine | That machine only | Windows Defender Firewall |
Most firms use both. Hardware blocks before the switch inside is touched. Software decides which app on a laptop may speak.
By inspection method
| Type | How it decides | Speed | Use |
|---|---|---|---|
| Packet filtering | Checks header: source, destination, port | Fast, basic | First coarse rules |
| Stateful inspection | Tracks established sessions, allows only traffic that belongs to them | Fast, smarter | Standard backbone |
| Proxy or application firewall | Understands the application layer, inspects content | Slower, deeper | Web filtering and API gates |
| Next generation (NGFW) | Stateful plus app awareness and IPS in one box | Varies by rule load | Offices that can manage it |
Encryption and decryption
Encryption converts plaintext to ciphertext using an algorithm and a key. Decryption reverses it with the correct key. Without the key, ciphertext looks random.
Small example: Caesar shift of 3 turns HELLO into KHOOR. Real ciphers such as AES are vastly stronger, but the idea holds. Possession of data is not possession of meaning.
Symmetric versus asymmetric
| Criterion | Symmetric | Asymmetric |
|---|---|---|
| Keys | One shared secret for both directions | Public key encrypts, private key decrypts, or the reverse for signing |
| Speed | Fast, suited to bulk data | Slower, suited to small data and key exchange |
| Key sharing problem | Must move the secret safely | Public key can be shared openly, private key never leaves the owner |
| Example algorithm | AES | RSA |
Practice combines them. Asymmetric exchange sets up a symmetric session key, then bulk data runs under the symmetric cipher at speed.
Everyday uses
- HTTPS is HTTP over TLS. The padlock signals an encrypted browser to server session. Every wallet, bank, and store must use it.
- VPN wraps a tunnel so a branch or work from home session rides encrypted over public Wi-Fi.
- Digital signatures reverse the key role. The sender signs with a private key, anyone verifies with the public key, which proves origin and unchanged content.
- Messaging apps use end to end encryption so only endpoints can read.
Self-check
Nepal worked example: securing a cooperative link between two branches (NPR, BS 2081)
A cooperative in Butwal links a branch in Bhairahawa over a carrier link on 2081-07-10. Staff currently access the accounting portal over plain HTTP with shared passwords.
Plan dated that week.
- One hardware firewall with NGFW licence at the head office: NPR 65,000 one time
- TLS certificate with auto renewal: NPR 0 via free CA, setup 2 hours at NPR 1,200 per hour = NPR 2,400
- VPN configuration for 6 users on the existing firewall: included
- MFA enrolment for 12 staff on phone authenticator: NPR 0, 30 minutes per staff
- Patch window once a month after hours: 3 hours at NPR 1,000 = NPR 3,000 per patch
One time total = 65,000 + 2,400 = NPR 67,400. Ongoing = patch 3,000 per month with VPN already counted.
Risk change: raw packet capture on the link no longer yields credentials. The firewall drops remote login on port 23 and 22 from the internet, while the VPN carries admin sessions encrypted. If one password leaks, MFA still blocks entry.
Summary
Network security is a stack. Firewalls at the gate, encryption for secrecy and trust, and auth, patching, and backups so a bypass is not a collapse. Firewalls differ by scope and by inspection. Encryption differs by key pattern, and hybrid use gives both safety and speed. For a BBA firm, the cheapest win is not a larger box. It is closing open ports, enabling HTTPS, demanding MFA, and keeping a monthly patch window that someone owns.
Key Takeaways
- Controls group into perimeter, secrecy, and stay up.
- Hardware protects the network, software protects the machine, NGFWs combine app awareness and IPS.
- Encryption maps plaintext to ciphertext, decryption reverses with the key.
- Symmetric uses one shared key and is fast, asymmetric uses a key pair and solves distribution.
- HTTPS, VPN, and signatures are the field examples you must produce in exams.
Review Questions
- Group five controls into A, B, and C and state the purpose of each group.
- Distinguish hardware versus software firewall and state when each matters.
- Walk through Caesar shift 3 for HELLO and explain why AES replaces it.
- Is RSA suitable for encrypting a 1 GB backup nightly, and why not.
- Draw the stack that secures a branch portal from internet to MFA.


