Protect you computer and your data


How firewalls work

A firewall is an information technology (IT)layer.
security device which is configured to
permit, deny or proxy data connections set* Whether the communication state is being
and configured by the organization's securitytracked  at  the  firewall  or  not.
policy. Firewalls can either be hardware and
or  software  based.With regard to the scope of filtered
communications  there  exist:
A firewall's basic task is to control traffic
between computer networks with different* Personal firewalls, a software application
zones of trust. Typical examples are thewhich normally filters traffic entering or
Internet which is a zone with no trust and anleaving  a  single  computer.
internal network which is (and should be) a
zone with high trust. The ultimate goal is to* Network firewalls, normally running on a
provide controlled interfaces between zonesdedicated network device or computer
of differing trust levels through thepositioned on the boundary of two or more
enforcement of a security policy andnetworks or DMZs (demilitarized zones). Such
connectivity model based on the leasta firewall filters all traffic entering or
privilege principle and separation of duties.leaving  the  connected  networks.
A firewall is also called a Border ProtectionThe latter definition corresponds to the
Device (BPD) in certain military contextsconventional, traditional meaning of
where a firewall separates networks by"firewall"  in  networking.
creating perimeter networks in a
Demilitarized zone (DMZ). In a BSD contextIn reference to the layers where the traffic
they are also known as a packet filter. Acan be intercepted, three main categories of
firewall's function is analogous to firewallsfirewalls  exist:
in  building  construction.
* Network layer firewalls. An example would
Proper configuration of firewalls demandsbe  iptables.
skill from the firewall administrator. It
requires considerable understanding of* Application layer firewalls. An example
network protocols and of computer security.would  be  TCP  Wrappers.
Small mistakes can render a firewall
worthless  as  a  security  tool.* Application firewalls. An example would be
restricting ftp services through /etc
Firewall technology emerged in the late 1980sftpaccess  file
when the Internet was a fairly new technology
in terms of its global use and connectivity.These network-layer and application-layer
The original idea was formed in response to atypes of firewall may overlap, even though
number of major internet security breaches,the personal firewall does not serve a
which occurred in the late 1980s. In 1988 annetwork; indeed, single systems have
employee at the NASA Ames Research Center inimplemented  both  together.
California sent a memo by email to his
colleagues  that  read,There's also the notion of application
firewalls which are sometimes used during
“ We are currently under attack fromwide area network (WAN) networking on the
an Internet VIRUS! It has hit Berkeley, UCworld-wide web and govern the system
San Diego, Lawrence Livermore, Stanford, andsoftware. An extended description would place
NASA  Ames. ”them lower than application layer firewalls,
indeed at the Operating System layer, and
This virus known as Morris Worm was carriedcould alternately be called operating system
by e-mail. The Morris Worm was the firstfirewalls.
large scale attack on Internet security; the
online community was neither expecting anLastly, depending on whether the firewalls
attack  nor  prepared  to  deal  with  one.keeps track of the state of network
connections or treats each packet in
First  generation  -  packet  filtersisolation, two additional categories of
firewalls  exist:
The first paper published on firewall
technology was in 1988, when Jeff Mogul fromStateful  firewalls
Digital Equipment Corporation (DEC) developed
filter systems known as packet filterStateless  firewalls
firewalls. This fairly basic system was the
first generation of what would become aNetwork  layer
highly evolved and technical internet
security feature. At AT&T Bill Cheswick andNetwork layer firewalls operate at a
Steve Bellovin were continuing their research(relatively) low level of the TCP/IP protocol
in packet filtering and developed a workingstack as IP-packet filters, not allowing
model for their own company based upon theirpackets to pass through the firewall unless
original  first  generation  architecture.they match the rules. The firewall
administrator may define the rules; or
This type of packet filtering is notdefault built-in rules may apply (as in some
responsible for 'statefull' packetinflexible  firewall  systems).
inspection, in other words, it's a static set
of rules applied to the packets traversingA more permissive setup could allow any
the  firewall.packet to pass the filter as long as it does
not match one or more "negative-rules", or
Second  generation  -  circuit  level"deny rules". Today network firewalls are
built into most computer operating systems
From 1980-1990 three colleagues from AT&Tand  network  appliances.
Bell Laboratories, Dave Presetto, Howard
Trickey, and Kshitij Nigam developed theModern firewalls can filter traffic based on
second generation of firewalls known asmany packet attributes like source IP
circuit  level  firewalls.address, source port, destination IP address
or port, destination service like WWW or FTP.
This is also referred to as a 'statefulThey can filter based on protocols, TTL
firewall' as it is able to determine if avalues, netblock of originator, domain name
packet is either a new connection or dataof  the  source,  and  many other attributes.
that is part of an existing connection.
Though there's still a set of static rulesApplication-layer
involved for configuring this firewall the
state of a connection can in itself alsoApplication-layer firewalls work on the
trigger  specific  rules.application level of the TCP/IP stack (i.e.,
all browser traffic, or all telnet or ftp
Third  generation  -  application  layertraffic), and may intercept all packets
traveling to or from an application. They
Publications by Gene Spafford of Purdueblock other packets (usually dropping them
University, Bill Cheswick at AT&Twithout acknowledgement to the sender). In
Laboratories and Marcus Ranum described aprinciple, application firewalls can prevent
third generation firewall known asall unwanted outside traffic from reaching
application layer firewall, also known asprotected  machines.
proxy based firewalls. Marcus Ranum's work on
the technology spearheaded the creation ofBy inspecting all packets for improper
the first commercial product. The product wascontent, firewalls can even prevent the
released by DEC who named it the SEALspread of the likes of viruses. In practice,
product. DEC’s first major sale was onhowever, this becomes so complex and so
June 13, 1991 to a chemical company based ondifficult to attempt (given the variety of
the  East  Coast  of  the  USA.applications and the diversity of content
each may allow in its packet traffic) that
Subsequent  generationscomprehensive firewall design does not
generally  attempt  this  approach.
In 1992, Bob Braden and Annette DeSchon at
the University of Southern California (USC)The XML firewall exemplifies a more recent
were developing their own fourth generationkind  of  application-layer  firewall.
packet filter firewall system. The product
known as “Visas” was the firstProxies
system to have a visual integration interface
with colours and icons, which could be easilyA proxy device (running either on dedicated
implemented to and accessed on a computerhardware or as software on a general-purpose
operating system such as Microsoft's Windowsmachine) may act as a firewall by responding
or Apple's MacOS. In 1994 an Israeli companyto input packets (connection requests, for
called Check Point Software Technologiesexample) in the manner of an application,
built this into readily available softwarewhilst  blocking  other  packets.
known  as  FireWall-1.
Proxies make tampering with an internal
A second generation of proxy firewalls wassystem from the external network more
based on Kernel Proxy technology. This designdifficult and misuse of one internal system
is constantly evolving but its basic featureswould not necessarily cause a security breach
and codes are currently in widespread use inexploitable from outside the firewall (as
both commercial and domestic computerlong as the application proxy remains intact
systems. Cisco, one of the largest internetand properly configured). Conversely,
security companies in the world releasedintruders may hijack a publicly-reachable
their  PIX  product  to  the  public in 1997.system and use it as a proxy for their own
purposes; the proxy then masquerades as that
Some modern firewalls leverage their existingsystem to other internal machines. While use
deep packet inspection engine by sharing thisof internal address spaces enhances security,
functionality with an Intrusion-preventioncrackers may still employ methods such as IP
system  (IPS).spoofing to attempt to pass packets to a
target  network..
Types
Network  address  translation
There are three basic types of firewalls
depending  on:Firewalls often have network address
translation (NAT) functionality, and the
* Whether the communication is being donehosts protected behind a firewall commonly
between a single node and the network, orhave addresses in the "private address
between  two  or  more  networks.range", as defined in RFC 1918. Firewalls
often have such functionality to hide the
* Whether the communication is intercepted attrue address of protected hosts.
the network layer, or at the application



1 A B C 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105