Notes / Module 6
Network Security Infrastructure
Module 6 covers the devices and protocols that secure and monitor a network: firewalls, IDS and IPS, ACLs, the monitoring protocols (SNMP, NetFlow, syslog, NTP), AAA and VPNs. Expect to compare similar technologies side by side.
6.1Firewalls
All firewalls share three properties: they are resistant to network attacks, they are the only transit point (all traffic flows through them), and they enforce the access control policy.
In the private/public design, public is untrusted and private is trusted. Outbound traffic is permitted and inspected, and associated return traffic is allowed back in. Traffic originating outside is generally blocked. Other designs are the DMZ and zone-based policy firewalls.
A packet filtering firewall is stateless and works at Layers 3 and 4 with a simple policy table. It is usually part of a router firewall and filters on source/destination IP, protocol, ports and SYN receipt. For example, blocking port 25 from a workstation stops an email virus.
| Firewall type | How it filters |
|---|---|
| Stateful | By state, port and protocol |
| Application gateway (proxy) | At Layers 3, 4, 5 and 7 |
| Next-generation | Adds IPS, application awareness and threat feeds |
| Host-based | Firewall software on a PC or server |
| Transparent | Between bridged interfaces |
| Hybrid | A combination of types |
6.1IDS and IPS
IDS and IPS are both deployed as sensors and both use signatures to detect misuse. A signature is a set of rules that detects severe breaches of security, common network attacks, and gathers information. Signatures match atomic patterns (a single packet) or composite patterns (multiple packets). A sensor can be a router with IOS IPS, a dedicated device or a module.
| IDS (offline) | IPS (inline) | |
|---|---|---|
| Advantages | No latency or jitter; a failure doesn't break the network | Stops trigger packets; stream normalisation defeats evasion |
| Disadvantages | Cannot stop the trigger packet; weak against email viruses and worms; tuning is time-consuming; not inline, so vulnerable to evasion techniques | Sensor issues or overload affect traffic; introduces latency and jitter |
6.1HIPS and Cisco AMP
HIPS combines antivirus, antimalware and a firewall, but only for its own host. It knows the OS in detail and protects critical processes. It stops registry changes, system directory edits and buffer overflows, and stops the host joining a DoS or an illicit FTP session.
- Disadvantage: it has a local view only, with no picture of the network.
- Disadvantage: it is OS dependent and must be installed on every host.
Cisco AMP protects before, blocks during and keeps watching after:
| Phase | What AMP does |
|---|---|
| Before | Strengthens defences against known and emerging threats |
| During | Blocks bad file types, exploits and malicious files |
| After | Continuously monitors all file activity; a once-good file behaving badly is detected and reported |
AMP is backed by Cisco Talos.
6.2Access control lists
An ACL forwards or drops packets based on the packet header. Its uses:
- Limit traffic to improve performance.
- Traffic flow control, for example routing updates from known sources.
- Basic access security, for example restricting the HR network.
- Filter by type: permit email, block Telnet.
- Screen hosts for FTP or HTTP.
- Classify traffic for priority processing.
| Standard ACL | Extended ACL | |
|---|---|---|
| Filters on | Source IPv4 address only | Protocol, source and destination IP, and ports |
| Identified by | Number or name | Number or name |
A name conveys purpose and a number doesn't. ACL logging can send a message on every permit or deny. To restrict an ACL to established sessions, allow only TCP with the ACK or RST bit set: only traffic from an already-established session passes, and outside attempts to open a new session are denied.
6.2SNMP, NetFlow, port mirroring and syslog
SNMP has three parts, and three operations:
- Manager
- Runs management software in an NMS.
- Agents
- The managed nodes being monitored.
- MIB
- A database on the agent holding data and statistics.
- get
- Collects information from an agent.
- set
- Changes configuration.
- trap
- Sent by an agent to the manager.
NetFlow gives statistics on packets flowing through a router or multilayer switch. It is narrower than SNMP, covering packet statistics only. It is used for security monitoring, network planning and traffic analysis, finds bottlenecks, supports IP accounting for billing, and its data is pushed to an external NetFlow collector.
The seven original NetFlow fields are source and destination IP, source and destination port, protocol, ToS and input interface. Any one differing means a different flow. The first four identify the connection; the Layer 3 protocol type is usually TCP or UDP; ToS says how QoS rules should apply.
Port mirroring is needed because switches isolate traffic, so a sniffer can't see the segment. The switch makes duplicate copies of traffic passing through and sends them out a port with a network monitor attached. The original traffic is forwarded as usual.
Syslog is the standard way devices send system messages to a server. It is supported by routers, switches, servers, firewalls and appliances. You can gather logging information for monitoring and troubleshooting, select which type of information is captured and specify where the messages go.
6.2NTP
NTP matters because without synchronised time you can't order events across the network. It is needed for managing, securing, troubleshooting and planning. Manual time doesn't survive a reboot, so sync to a private clock or a public internet NTP server.
A stratum is the number of hops from the authoritative source; smaller is closer.
| Stratum | Meaning |
|---|---|
| 0 | High-precision authoritative time sources |
| 1 | Directly connected to stratum 0; the primary network time standard |
| 2 and lower | Sync across the network; a stratum 2 server can serve stratum 3 |
| 16 | Unsynchronised (maximum hop count is 15) |
Servers at the same stratum can peer for backup.
6.2AAA, TACACS+ and RADIUS
AAA answers three questions: who you are, what you may do, and what you did.
- Authentication
- Prove identity: passwords, challenges, token cards.
- Authorization
- Which resources, and which operations.
- Accounting
- What was accessed, for how long, and what changed.
| TACACS+ | RADIUS | |
|---|---|---|
| Functionality | Separates AAA | Combines authentication and authorization |
| Standard | Mostly Cisco | Open RFC |
| Transport | TCP | UDP |
| CHAP | Bidirectional | Unidirectional |
| Confidentiality | Entire packet encrypted | Password only |
| Customisation | Per-user command authorisation | None |
| Accounting | Limited | Extensive |
6.2VPNs and IPsec
A VPN is virtual because it uses virtual connections instead of a dedicated physical link: private traffic runs over a public network. It is private because access is controlled to a defined community of interest and the traffic is encrypted.
Early VPNs were plain IP tunnels with no authentication or encryption. The Layer 3 options are:
| Technology | Description |
|---|---|
| GRE | Cisco tunnelling, point-to-point |
| MPLS | Any-to-any across many sites |
| IPsec | Authentication, integrity, access control and confidentiality; the secure one |
IPsec is used for both site-to-site and remote-access VPNs.
Check yourself
Answer these out loud, without scrolling up. Any you can't, reread that section — then let the deck mark you.
- 1.What three properties do all firewalls share, and what do packet filtering, stateful and application gateway firewalls each filter on?
- 2.Compare IDS and IPS on placement, advantages and disadvantages.
- 3.What is the difference between a standard and an extended ACL, and how do you limit an ACL to established sessions?
- 4.What do SNMP and NetFlow each do, and what are the seven original NetFlow fields?
- 5.Explain NTP stratum levels, including what stratum 16 means.
- 6.Compare TACACS+ and RADIUS on transport, encryption and accounting.