Docsity

Firewalls - Linux - Lecture Slides, Slides of Linux skills

Partial preview of the text

Download Firewalls - Linux - Lecture Slides and more Slides Linux skills in PDF only on Docsity!

Firewalls in Linux

Overview

 START

 The Project Objectives  Definitions  What firewall? What technology?  Installation Process  Testing  Problems encountered  END

What is a Firewall?

 “A system designed to prevent unauthorized access to or from a private network”

(www.webopedia.com)

 Often used to protect Intranets  Set of security criteria to define access to a computer or network of computers

Firewalls and Network Interfaces

Internet Firewall Intranet

External NIC Internal NIC

Firewalls that protect a network from the Internet have two Network Interfaces, one for the Internet, one for the Intranet.

Protocols Related to Firewall Security

 Different protocols exist at different layers of the

OSI (Open System Interconnection) model.

Application DNS, FTP, TFTP, BOOTP, SNMP, RLOGIN, SMTP, MIME, NFS, FINGER, TELNET, NCP, APPC, AFP, SMB Presentation Session NetBIOS Names Pipes, Mail Slots, RPC Transport TCP, ARP, RARP; SPX, NWLink NetBIOS / NetBEUI, ATP Network IP , ARP, RARP, ICMP, RIP, OSFP, IGMP, IPX, NWLink, NetBEUI, OSI, DDP, DECnet Datalink 802.1 OSI Model, 802.2 Logical Link Control, 802.3 CSMA/CD (Ethernet) 802.4 Token Bus (ARCnet), 802. Token Ring, 802.12 Demand Priority Physical IEEE 802, IEEE 802.2, ISO 2110, ISDN

Firewall Security and the OSI

Model

 Because different protocols exist at different levels of the OSI model, firewalls must also provide security at different levels.  The lower down the OSI model the firewall can provide security, the more effective and efficient the firewall is.  Firewalls provide security at different levels by establishing IP chain rules for each protocol.

Theoretical Firewall Use

 Our group selected an installation and configuration process for setting-up a personal firewall at home, suitable for:  Firewall security for a single personal PC; or  Firewall security for a small network  Therefore, this process is easy for other students and first-time users to understand.

Choosing a Firewall

 Use the Firewall included with Linux-Mandrake OS  Only a personal (not network) firewall  Download free firewall from Internet  www.freshmeat.net  www.linux-mandrake.com  Purchase a Firewall  www.linuxiso.org/

PMFirewall

 Features (cont.)  Logging of DENY packets.  Masquerading support is decided during install.  Custom rules can be added to the pmfirewall.rules.local file.

PM Firewall Technology

 The technology underlying PMFirewall is known as IP Chain Software.  This is the case for many Firewall packages designed for Linux operating systems.  The configuration of the PMFirewall package automatically configures the underlying IP Chain Software (saving the user from entering the commands manually).

IP Chain Software Explained

 Inbuilt in the kernel of Linux operating system are IP packet filtering capabilities.  IP Chain software is a program that makes use of these facilities.  The program examines the header of a packet to determine what action is suitable for each packet.  Actions include:  DENY (discard the packet silently)  ACCEPT (let the packet through or out)  REJECT (deny and notify the source of the packet)

Obtaining IP Chain Software

 Most distributions of Linux come with preinstalled IP Chain Software.  IP Chain Software is also readily available for free all over the Internet, below is just one example.  http://www.rustcorp.com/linux/ipchains/ Incidentally you cannot access this site from within the Bond Network as ITS classifies it as Porn!

IP Chains and Kernels

 Some newer Linux distributions still require the Kernel to be changed to allow IP Masquerading (e.g SuSe)  This requires changing and recompiling the Kernel source code (!Danger).  This is not required when installing PMFirewall on Linux- Mandrake.

IP Chain Syntax (Briefly)

 The Configuration of the PM Firewall does not

require knowledge of IP Chain Software. However,

for interests, this has been included.

 General Format:

ipchains []

 Switches

  • F : flush a chain so it starts fresh
  • P : sets default handling
  • A : adds conditions or rules
  • L : view all rules
    • E.g. ipchains - L