Basic PC Tips

Firewalls - what they are, what they do and why you need one!

What is a Firewall?
Single Computer connected to the internet
Multiple computers, or network, connected to the internet
Software Firewalls
Hardware Firewalls

How a Firewall filters information
Packet Filtering
Proxy Firewalls
Stateful Inspection

How does a Firewall know what should be blocked?
IP Addresses
Domain Names
Protocols
Ports
Words and Phrases

What a Firewall Protects you from

What a Firewall won't protect you against

Related Documents
Resources

What is a Firewall?

When a computer is connected to the internet it can be 'seen' by anybody else who is also connected to the internet. This makes it potentially vulnerable to unauthorised access to the information and services on that computer.

You can think of it as having a house with the front door and windows unlocked … your house would be vulnerable to 'unauthorised access'!

In fact, it would be closer to think of it being like having a house in the worst street in the worst neighbourhood, and not only leaving the doors and windows unlocked - but also wide open!

There are many threats on the internet that regularly scan millions of computers on the internet to try to find ones that are vulnerable.

A firewall is a piece of equipment, or a software application running on your computer, that protects it from this unauthorised access.

In effect, a firewall closes and locks your windows and doors … and also posts a security guard outside each!
Top

Single Computer connected to the internet

If you have just one computer connected to the internet you should make sure that you have either a hardware or software firewall between your computer and the internet connection.

Top

Multiple computers, or network, connected to the internet

If you have more than one computer connected to the internet they will usually be connected together as a local network. All the computers on this network then share the internet connection. The network will normally access the internet through equipment such as a combined modem and router.

Top

Software Firewalls

With this setup your computer is likely to be connected to the internet via either a broadband modem or a more traditional (and slower!) dial-up modem.

If this is the case, you need to make sure that you have a software firewall installed on your computer.
The software is installed on your computer and may not look like it is between your computer and you internet connection. However, this is deceptive because it actually filters all information to the computer as soon as it arrives and before that information is 'seen' by the computer. Likewise, any information sent from the computer is intercepted by the software before it is sent out onto the internet.
Top

Hardware Firewalls

A hardware firewall is a piece of equipment that is physically located between your computer and your internet connection.

In this scenario your modem will be plugged into one connection on the firewall and your computer (or network) into another. Any traffic to and from the internet passes through the firewall, and is filtered, before reaching your computer.

This type of setup is rarely implemented when there is just one computer involved and is the usual setup when multiple computers are connected to an internal network which is then connected to the internet.

If you have a setup like this at home, and you have broadband, you will probably have a combined modem, router and firewall. You should check that your router has a firewall built in.

Your router may be wireless, which again should have a built-in firewall.

In the unlikely event that your router does not have firewall functionality you should make sure that each computer attached to it also has a software firewall. If your router does have an inbuilt firewall you do not need to have software firewalls on the computers.

This scenario, implementing a firewall between the internet and a local network, is also most common in business environments. However, for small businesses with only one computer connecting to the internet you should check your setup and ensure that you have a firewall in place.

Top

How a Firewall filters information

There are three basic methods that a firewall can use to filter information traffic:

How many of these are used by a specific firewall will depend on it's abilities.

Top

Packet Filtering

Information is broken down and sent across the internet as packets (for more information on this read So what is this internet thing?)

A packet filtering firewall will examine the contents of a packet and accept or reject that packet based on rules that have been defined.

Top

Proxy Firewalls

A proxy firewall controls all access to the internet. In many cases a computer will have to authenticate with a proxy firewall using a separate user ID and password in order to access the internet.

All information is received by the proxy service which compares it to specific rules, such as which programs are allowed to access the internet. If the information is allowed it will be forwarded to it's intended destination, otherwise it will be blocked.

Top

Stateful Inspection

This is similar to packet filtering, but only examines certain elements of a packet. It compares these elements with a database of trusted information. If the comparison is successful the packet is allowed through; if not it is blocked.

Top

How does a Firewall know what should be blocked?

A firewall contains a set of rules which it compares all traffic against. Traffic that meets the rules is allowed through and traffic that doesn't is blocked.

Fortunately, most firewalls (and especially consumer ones) have default rules that will provide a good level of protection without needing to be customized any further.

Some of the more common criteria that can be configured on most firewalls are:

Top

IP Addresses

This is the unique address assigned to equipment connected to a network (for more information read IP Addressing - how computers communicate across the Internet).

A firewall can be set to block information to or from specific IP Addresses or ranges of addresses.

Top

Domain Names

A domain name is a text description of an IP Address (for example the domain name of this site is pc-help-online.co.uk which is mapped to the IP address 194.154.164.100).

Firewalls can usually be configured to block all traffic to and from specific domains.

Top

Protocols

A network protocol is the definition of how services talk to each other over a network.

This sounds more complicated than it is - think of protocols as being different ways to communicate, which are specific to different tasks.

To view information on a website your computer needs to use the Hyper Text Transfer Protocol (HTTP). To talk across the internet your computer needs to use two protocols: Transmission Control Protocol (TCP) and Internet Protocol (IP).

A firewall can be set to block specific protocols, effectively stopping certain services (for example if a firewall was set to block HTTP, no computers communicating through the firewall would be able to access any web pages).

Other common protocols are: File Transfer Protocol (FTP), User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP), Simple Mail Transport Protocol (SMTP), Simple Network Management Protocol (SNMP) and Telnet.
Top

Ports

When a program on your computer needs to communicate over the internet it will do so via one or more ports.

A good analogy is to think of ports as being phone extensions. A company might have a main phone number, just as a computer connected to the internet will have an IP Address. A person in the company will have a specific extension number just as a program needing to talk to the internet will have one or more port numbers.

A firewall can be set to block all communication based on specific ports, preventing specific programs from accessing the network.

Rules can be combined. So, for example, combining this with an IP Address filter could mean that a program will only be able to use the internet if it is running on a specific computer.

Most firewalls will block any unused ports. This prevents a hacker or malicious software being able to access your computer through a port that isn't being used by a program.

Top

Words and Phrases

Some firewalls will allow information to be filtered based on specific words or phrases. Each packet will be examined for these and accepted or blocked based on whether any disallowed phrases appear.

Top

What a Firewall Protects you from

A firewall will provide protection from:

However, it should be noted that this is only one type of virus. Generally, a firewall will not protect you from viruses - for this you need to have anti-virus software (for more information read: Viruses - what they are, what they do and how to protect your computer).
Top

What a Firewall won't protect you against

Generally, a firewall will not protect you from:

It is possible to configure a firewall so that you are protected from all of these. However that would mean blocking all access to the internet - it would be cheaper and easier to unplug your modem! To block all spam you would need to block all email, which is a little over the top!
Top

Related Documents

So what is this internet thing?
IP Addressing - how computers communicate across the Internet
Viruses - what they are, what they do and how to protect your computer
Spyware - what it is and the risk to you

Resources

Essential Software

Top