Firewalls and VPN: Network Security and Virtual Private Networks
Firewalls and VPN: Network Security and Virtual Private Networks
OBJECTIVES
The objective of this lab is to study the role of firewalls and virtual private networks (VPNs)
in providing security to shared public networks such as the Internet.
OVERVIEW
Computer networks are typically a shared resource used by many applications for many
different purposes. Sometimes the data transmitted between application processes is confi-
dential, and the application users would prefer that others not be able to read it. 137
A firewall router is a specially programmed router that sits between a site and the rest of the
network. It is a router in the sense that it is connected to two or more physical networks,
and it forwards packets from one network to another, but it also filters the packets that flow
through it. A firewall allows the system administrator to implement a security policy in one
centralized place. Filter-based firewalls are the simplest and most widely deployed type of
firewall. They are configured with a table of addresses that characterizes the packets they will
and will not forward.
A VPN is an example of providing a controlled connectivity over a public network such
as the Internet. VPNs utilize a concept called an IP tunnela virtual point-to-point link
between a pair of nodes that are actually separated by an arbitrary number of networks.
The virtual link is created within the router at the entrance of the tunnel by providing it
with the IP address of the router at the far end of the tunnel. Whenever the router at the
entrance of the tunnel wants to send a packet over this virtual link, it encapsulates the
packet inside an IP datagram. The destination address in the IP header is the address of
the router at the far end of the tunnel, whereas the source address is that of the encapsu-
lating router.
In this lab, you will set up a network where servers are accessed over the Internet by customers
who have different privileges. You will study how firewalls and VPNs can provide security to
the information in the servers while maintaining access for customers with the appropriate
privilege.
PRE-LAB ACTIVITIES
& Read Sections 4.3.3 and 8.4.2 from Computer Networks: A Systems Approach, 5th Edition.
Network Simulation Experiments Manual
PROCEDURE
Create a New Project
1. Start OPNET IT Guru Academic Edition Choose New from the File menu.
2. Select Project and click OK Name the project <your initials>_VPN, and the scenario
NoFirewall Click OK.
3. Click Quit on the Startup Wizard.
4. To remove the world background map, select the View menu Background Set
Border Map Select NONE from the drop-down menu Click OK.
138
Our Firewall configuration does not allow database-related traffic to pass through the
firewall (it filters such packets out). This way, the databases in the server are protected from
external access. Your Firewall scenario should look like the following figure.
141
Simulating encryption:
A virtual tunnel between the Sales A and the Server does not guarantee security for the
contents of the transferred database packets. If the contents of these packets are confidential,
encryption of these packets will be needed. In OPNET AE, the effect of packet encryption
can be simulated by the available compression function. Two of the available compression
schemes are the Per-Interface Compression and the Per-Virtual Circuit Compression, as
shown in the following figure. Once you edit the Compression Information attribute of an
interface, OPNET adds the IP Config node to the project.
Network Simulation Experiments Manual
Per-Interface Compression compresses the entire packet (including the headers). This means
the packet is decompressed and compressed at each hop on the route. Per-Virtual Circuit
Compression compresses the packet payload only. Therefore, compression and decompres-
sion take place only at the end nodes. One of the exercises at the end of this lab requires you
to create a new scenario to utilize the compression function.
142 3. Click OK to run the three simulations. Depending on the speed of your processor, this
task may take several seconds to complete.
4. After the three simulation runs complete, one for each scenario, click Close.
4. Press Show and the resulting graph should resemble the following figure. Your graph may
not match exactly because of node placement.
143
6. Create two graphs similar to the previous ones to depict the Traffic Received by the Client
Http for Sales A and Sales B.
144
FURTHER READINGS
The Impact of Internet Link Capacity on Application Performance: From the Protocols
menu, select Methodologies Capacity Planning.
Virtual Private Networks: IETF RFC number 2685 (www.ietf.org/rfc.html).
EXERCISES
1. From the obtained graphs, explain the effect of the firewall, as well as the configured
VPN, on the database traffic requested by Sales A and Sales B.
2. Compare the graphs that show the received HTTP traffic with those that show the
received database traffic.
3. Generate and analyze the graph(s) that show the effect of the firewall, as well as the con-
figured VPN, on the response time (delay) of the HTTP pages and database queries.
4. In the Firewall_VPN scenario, we configured the VPN node so that no traffic from Sales A
is blocked by the firewall. Create a duplicate of the Firewall_VPN scenario, and name
the new scenario Q4_DB_Web. In the Q4_DB_Web scenario, we want to configure the
network so that:
a. The databases in the server can be accessed only by the people in the Sales A site.
b. The Web sites in the server can be accessed only by the people in the Sales B site.
Include in your report the diagram of the new network configuration, including any
changes you made to the attributes of the existing or added nodes. Generate the graphs of
the DB traffic received and the HTTP traffic received for both Sales A and Sales B, to show
that the new network meets the previously mentioned requirements.
5. Create a duplicate of the Firewall_VPN scenario, and name the new scenario
Q5_Compression. In the new scenario, simulate packet encryption between Sales A
and the Server by allowing Per-Virtual Circuit Compression in both nodes. Because 145
encryption takes more time than compression, edit the attributes of the Per-Virtual
Circuit Compression row (row 3) in the IP Config node. Assign 3E-006 and 1E-006 to
Compression Delay and Decompression Delay, respectively. Study the effect of com-
pression on the DB Query response time between Sales A and the Server.
LAB REPORT
Prepare a report that follows the guidelines explained in the Introduction Lab. The report
should include the answers to the preceding exercises as well as the graphs you generated
from the simulation scenarios. Discuss the results you obtained, and compare these results
with your expectations. Mention any anomalies or unexplained behaviors.