Protect you computer and your data


How firewalls work

A firewall is an information technologynetworks.
(IT) security device which is configured* Whether the communication is
to permit, deny or proxy dataintercepted at the network layer, or at
connections set and configured by thethe application layer.
organization's security policy.* Whether the communication state is
Firewalls can either be hardware and/orbeing tracked at the firewall or not.
software based.With regard to the scope of filtered
A firewall's basic task is to controlcommunications there exist:
traffic between computer networks with* Personal firewalls, a software
different zones of trust. Typicalapplication which normally filters
examples are the Internet which is atraffic entering or leaving a single
zone with no trust and an internalcomputer.
network which is (and should be) a zone* Network firewalls, normally running on
with high trust. The ultimate goal is toa dedicated network device or computer
provide controlled interfaces betweenpositioned on the boundary of two or
zones of differing trust levels throughmore networks or DMZs (demilitarized
the enforcement of a security policy andzones). Such a firewall filters all
connectivity model based on the leasttraffic entering or leaving the
privilege principle and separation ofconnected networks.
duties.The latter definition corresponds to the
A firewall is also called a Borderconventional, traditional meaning of
Protection Device (BPD) in certain"firewall" in networking.
military contexts where a firewallIn reference to the layers where the
separates networks by creating perimetertraffic can be intercepted, three main
networks in a Demilitarized zone (DMZ).categories of firewalls exist:
In a BSD context they are also known as* Network layer firewalls. An example
a packet filter. A firewall's functionwould be iptables.
is analogous to firewalls in building* Application layer firewalls. An
construction.example would be TCP Wrappers.
Proper configuration of firewalls* Application firewalls. An example
demands skill from the firewallwould be restricting ftp services
administrator. It requires considerablethrough /etc/ftpaccess file
understanding of network protocols andThese network-layer and
of computer security. Small mistakes canapplication-layer types of firewall may
render a firewall worthless as aoverlap, even though the personal
security tool.firewall does not serve a network;
Firewall technology emerged in the lateindeed, single systems have implemented
1980s when the Internet was a fairly newboth together.
technology in terms of its global useThere's also the notion of application
and connectivity. The original idea wasfirewalls which are sometimes used
formed in response to a number of majorduring wide area network (WAN)
internet security breaches, whichnetworking on the world-wide web and
occurred in the late 1980s. In 1988 angovern the system software. An extended
employee at the NASA Ames Researchdescription would place them lower than
Center in California sent a memo byapplication layer firewalls, indeed at
email to his colleagues that read,the Operating System layer, and could
“ We are currently under attack fromalternately be called operating system
an Internet VIRUS! It has hit Berkeley,firewalls.
UC San Diego, Lawrence Livermore,Lastly, depending on whether the
Stanford, and NASA Ames. ”firewalls keeps track of the state of
This virus known as Morris Worm wasnetwork connections or treats each
carried by e-mail. The Morris Worm waspacket in isolation, two additional
the first large scale attack on Internetcategories of firewalls exist:
security; the online community wasStateful firewalls
neither expecting an attack nor preparedStateless firewalls
to deal with one.Network layer
First generation - packet filtersNetwork layer firewalls operate at a
The first paper published on firewall(relatively) low level of the TCP/IP
technology was in 1988, when Jeff Mogulprotocol stack as IP-packet filters, not
from Digital Equipment Corporation (DEC)allowing packets to pass through the
developed filter systems known as packetfirewall unless they match the rules.
filter firewalls. This fairly basicThe firewall administrator may define
system was the first generation of whatthe rules; or default built-in rules may
would become a highly evolved andapply (as in some inflexible firewall
technical internet security feature. Atsystems).
AT&T Bill Cheswick and Steve BellovinA more permissive setup could allow any
were continuing their research in packetpacket to pass the filter as long as it
filtering and developed a working modeldoes not match one or more
for their own company based upon their"negative-rules", or "deny rules". Today
original first generation architecture.network firewalls are built into most
This type of packet filtering is notcomputer operating systems and network
responsible for 'statefull' packetappliances.
inspection, in other words, it's aModern firewalls can filter traffic
static set of rules applied to thebased on many packet attributes like
packets traversing the firewall.source IP address, source port,
Second generation - circuit leveldestination IP address or port,
From 1980-1990 three colleagues fromdestination service like WWW or FTP.
AT&T Bell Laboratories, Dave Presetto,They can filter based on protocols, TTL
Howard Trickey, and Kshitij Nigamvalues, netblock of originator, domain
developed the second generation ofname of the source, and many other
firewalls known as circuit levelattributes.
firewalls.Application-layer
This is also referred to as a 'statefulApplication-layer firewalls work on the
firewall' as it is able to determine ifapplication level of the TCP/IP stack
a packet is either a new connection or(i.e., all browser traffic, or all
data that is part of an existingtelnet or ftp traffic), and may
connection. Though there's still a setintercept all packets traveling to or
of static rules involved for configuringfrom an application. They block other
this firewall the state of a connectionpackets (usually dropping them without
can in itself also trigger specificacknowledgement to the sender). In
rules.principle, application firewalls can
Third generation - application layerprevent all unwanted outside traffic
Publications by Gene Spafford of Purduefrom reaching protected machines.
University, Bill Cheswick at AT&TBy inspecting all packets for improper
Laboratories and Marcus Ranum describedcontent, firewalls can even prevent the
a third generation firewall known asspread of the likes of viruses. In
application layer firewall, also knownpractice, however, this becomes so
as proxy based firewalls. Marcus Ranum'scomplex and so difficult to attempt
work on the technology spearheaded the(given the variety of applications and
creation of the first commercialthe diversity of content each may allow
product. The product was released by DECin its packet traffic) that
who named it the SEAL product. DEC’scomprehensive firewall design does not
first major sale was on June 13, 1991 togenerally attempt this approach.
a chemical company based on the EastThe XML firewall exemplifies a more
Coast of the USA.recent kind of application-layer
Subsequent generationsfirewall.
In 1992, Bob Braden and Annette DeSchonProxies
at the University of Southern CaliforniaA proxy device (running either on
(USC) were developing their own fourthdedicated hardware or as software on a
generation packet filter firewallgeneral-purpose machine) may act as a
system. The product known as “Visas”firewall by responding to input packets
was the first system to have a visual(connection requests, for example) in
integration interface with colours andthe manner of an application, whilst
icons, which could be easily implementedblocking other packets.
to and accessed on a computer operatingProxies make tampering with an internal
system such as Microsoft's Windows orsystem from the external network more
Apple's MacOS. In 1994 an Israelidifficult and misuse of one internal
company called Check Point Softwaresystem would not necessarily cause a
Technologies built this into readilysecurity breach exploitable from outside
available software known as FireWall-1.the firewall (as long as the application
A second generation of proxy firewallsproxy remains intact and properly
was based on Kernel Proxy technology.configured). Conversely, intruders may
This design is constantly evolving buthijack a publicly-reachable system and
its basic features and codes areuse it as a proxy for their own
currently in widespread use in bothpurposes; the proxy then masquerades as
commercial and domestic computerthat system to other internal machines.
systems. Cisco, one of the largestWhile use of internal address spaces
internet security companies in the worldenhances security, crackers may still
released their PIX product to the publicemploy methods such as IP spoofing to
in 1997.attempt to pass packets to a target
Some modern firewalls leverage theirnetwork..
existing deep packet inspection engineNetwork address translation
by sharing this functionality with anFirewalls often have network address
Intrusion-prevention system (IPS).translation (NAT) functionality, and the
Typeshosts protected behind a firewall
There are three basic types of firewallscommonly have addresses in the "private
depending on:address range", as defined in RFC 1918.
* Whether the communication is beingFirewalls often have such functionality
done between a single node and theto hide the true address of protected
network, or between two or morehosts.



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 95 96 97 98 99 100 101 102 103 104 105