2082 3

BIT451 ยท 2082 ยท 10 marks

Differentiate between name based and IP based virtual hosting. Explain proxy ACL.

Differentiate between name based and IP based virtual hosting. Explain proxy ACL.[10]

Network and System AdministrationChapter 6: Web and Email ServicesName-based virtual hosting

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

AspectName-BasedIP-Based
IP AddressesSingle IP for multiple sitesOne IP per site
DifferentiationDomain name (Host header)IP address
Resource UsageEfficientWasteful
HTTPS SupportRequires SNINative support
ScalabilityHighly scalableLimited
HTTP VersionHTTP/1.1 requiredAll 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

  1. Source IP Address: Allow/deny based on client IP
  2. Destination IP/Domain: Allow/deny access to specific servers or websites
  3. Port Numbers: Control access to specific ports
  4. Time-based: Restrict access during certain hours
  5. Protocol: Allow/deny specific protocols (HTTP, HTTPS, FTP)
  6. URL Patterns: Block or allow based on URL matching
  7. 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

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.