Network and System Administration · Unit 6
Web and Email Services
Exam-focused notes for Web and Email Services (Network and System Administration, BIT451): what the TU syllabus asks and how it has actually been tested, with 7 solved past questions from this unit.
Web and Email Services in short
Web, proxy, mail and file transfer servers are the most common services an administrator runs. This chapter shows how each one is set up and how it works.
What this unit covers
- Web server configuration process
- Name-based virtual hosting
- IP-based virtual hosting and advantages
- Proxy ACL configuration
- Proxy caching server configuration and benefits
- SMTP relay and operation
- SMTP, POP3, and IMAP email protocols
- FTP principles and anonymous FTP
Name-based virtual hosting
2082 · 10 marks
Differentiate between name based and IP based virtual hosting. Explain proxy ACL.[10]
Show solved answerHide answer
Model Answer: Virtual Hosting and Proxy ACL
Part 1: Name-Based vs IP-Based Virtual Hosting
Name-Based Virtual Hosting
Definition: Multiple websites (virtual hosts) are hosted on a single IP address, differentiated by their domain names (hostnames).
Key Characteristics:
- Uses HTTP Host header to identify which website the client is requesting
- Server examines the Host field in the HTTP request and routes to the appropriate virtual host
- More efficient use of IP addresses
- Requires DNS to resolve multiple domain names to the same IP address
- Example: www.site1.com and www.site2.com both resolve to 192.168.1.10
Advantages:
- Conserves IP addresses (critical when IPv4 addresses are limited)
- Cost-effective hosting solution
- Easier to manage multiple sites on one server
Limitations:
- Requires HTTP/1.1 (older HTTP/1.0 clients may not send Host header)
- Cannot be used for HTTPS without SNI (Server Name Indication)
- Browser must support the Host header
IP-Based Virtual Hosting
Definition: Each virtual host is assigned a unique IP address on the same physical server.
Key Characteristics:
- Each website has its own distinct IP address
- Server uses the destination IP address to determine which virtual host to serve
- Works at the network layer (Layer 3)
- No dependency on HTTP headers
- Example: www.site1.com → 192.168.1.10, www.site2.com → 192.168.1.11
Advantages:
- Works with all HTTP versions (HTTP/1.0 and HTTP/1.1)
- Compatible with HTTPS without SNI
- No reliance on client-side Host header support
- Better for legacy systems
Limitations:
- Requires multiple IP addresses (expensive and wasteful)
- More complex network configuration
- Difficult to scale for large numbers of virtual hosts
Comparison Table
| Aspect | Name-Based | IP-Based |
|---|---|---|
| IP Addresses | Single IP for multiple sites | One IP per site |
| Differentiation | Domain name (Host header) | IP address |
| Resource Usage | Efficient | Wasteful |
| HTTPS Support | Requires SNI | Native support |
| Scalability | Highly scalable | Limited |
| HTTP Version | HTTP/1.1 required | All versions |
Part 2: Proxy ACL (Access Control List)
Definition
Proxy ACL is a set of rules configured on a proxy server (such as Squid) that controls and filters network traffic by allowing or denying access to specific resources based on defined criteria.
Purpose
- Control which clients can access the proxy
- Restrict access to specific websites or content
- Implement bandwidth management
- Enforce security policies
- Block malicious or inappropriate content
Common ACL Criteria
- Source IP Address: Allow/deny based on client IP
- Destination IP/Domain: Allow/deny access to specific servers or websites
- Port Numbers: Control access to specific ports
- Time-based: Restrict access during certain hours
- Protocol: Allow/deny specific protocols (HTTP, HTTPS, FTP)
- URL Patterns: Block or allow based on URL matching
- User Authentication: Control based on username/credentials
Basic ACL Rule Structure
acl <name> <type> <value>
http_access allow/deny <acl_name>
Example (Squid Proxy)
acl internal_network src 192.168.1.0/24
acl blocked_sites dstdomain .facebook.com .youtube.com
acl work_hours time MTWHF 09:00-17:00
http_access allow internal_network work_hours
http_access deny blocked_sites
http_access deny all
Benefits
- Enhanced security by filtering unwanted traffic
- Bandwidth optimization
- Content filtering and policy enforcement
- Protection against unauthorized access
Web server configuration process
2082 · 5 marks
Explain the process of web server configuration. [5]
IP-based virtual hosting and advantages
2081 · 10 marks
Illustrate the concept of IP-based virtual hosting. How is it carried out? What are its advantages?[10]
SMTP relay and operation
FTP principles and anonymous FTP
2081 · 5 marks
Elaborate FTP principles. How does anonymous FTP work? [5]
Proxy caching server configuration and benefits
2082.1 · 5 marks
What is a proxy caching server? Explain its configuration and benefits for network performance and bandwidth management. [1+4]
Show solved answerHide answer
Proxy Caching Server: Definition, Configuration, and Benefits
1. Definition of Proxy Caching Server
A proxy caching server is an intermediary server that sits between client computers and origin servers (web servers). It intercepts client requests, stores copies of frequently accessed web content locally, and serves that cached content to subsequent requests without fetching from the origin server again.
The proxy acts as a "middleman" that:
- Receives HTTP requests from clients
- Checks if requested content exists in its cache
- Returns cached content if available (cache hit)
- Forwards requests to origin servers if content is not cached (cache miss)
- Stores responses for future use
2. Configuration of Proxy Caching Server
Key Configuration Parameters:
a) Cache Storage
- Define cache directory location and total cache size (e.g., 1GB, 10GB)
- Set maximum object size to cache (e.g., don't cache files > 100MB)
- Configure cache replacement policy (LRU - Least Recently Used, LFU - Least Frequently Used)
b) Cache Expiration (TTL - Time To Live)
- Set expiration time for different content types
- Static content: longer TTL (e.g., 7 days)
- Dynamic content: shorter TTL (e.g., 1 hour)
- Configure based on HTTP headers (Cache-Control, Expires)
c) Access Control
- Define which clients can use the proxy
- Specify allowed/blocked domains
- Set authentication requirements
d) Refresh Policies
- Configure when to revalidate cached content with origin server
- Set conditional request headers (If-Modified-Since, ETag)
e) Logging and Monitoring
- Enable access logs to track cache hits/misses
- Monitor cache performance metrics
3. Benefits for Network Performance and Bandwidth Management
Network Performance Benefits:
| Benefit | Explanation |
|---|---|
| Reduced Latency | Cached content served locally is much faster than fetching from distant origin servers |
| Faster Response Times | Users experience quicker page loads and downloads |
| Reduced Server Load | Origin servers handle fewer requests, improving their response time |
| Better User Experience | Faster access to frequently used content |
Bandwidth Management Benefits:
| Benefit | Explanation |
|---|---|
| Bandwidth Savings | Repeated requests for same content don't consume WAN bandwidth; served from local cache |
| Reduced WAN Traffic | Can reduce outbound bandwidth by 30-70% depending on content patterns |
| Lower ISP Costs | Less data transferred = lower bandwidth bills |
| Efficient Resource Utilization | Network links used more efficiently for new/unique content |
| Congestion Reduction | Fewer requests traverse the network backbone |
Example Impact:
If 100 users request the same 5MB file:
- Without proxy cache: 500MB transferred over WAN
- With proxy cache: 5MB transferred (first request only) + local distribution
Conclusion: Proxy caching servers are essential infrastructure for optimizing network performance and controlling bandwidth costs, particularly in organizations with high internet usage or limited WAN capacity.
SMTP, POP3, and IMAP email protocols
2082.1 · 5 marks
Explain the roles of SMTP, POP3, and IMAP in email communication. [5]
Make Unit 6 stick
Practice BIT451 with flashcards & quizzes