LAB-3 (FIREWALL ATTACK/DEFENCE):


The Firewall Simulator is a tool for students to learn how to configure a firewall using Cisco-like commands. The process for using the simulator is:




Initial Configuration


When you first start the simulation, you should configure your firewall to allow the following services to run. Actions against these services are possible as soon as the administrator enables the action button.


The general format for a Cisco-like firewall configuration command is:

access-list number {permit | deny} [protocol] {any | ipaddr mask | host ipaddr} {any | ipaddr mask | host ipaddr} [operator port | established] [log]

eq

equal

lt

less than

gt

greater than

neq

not equal

range

a range of ports; you must specify two different port numbers

est

established connections - this allows packets to pass through the firewall from the Internet if they are the response to a connection established from within the intranet.


Commands are case insensitive. Note that all access-list commands must fit on one line. Comments can be included configuration. Comments start with an exclamation point ( ! ).


Examples:

access-list 111 permit tcp any host 152.8.1.1 eq 80

This permits any computer on the Internet to connect to the computer whose IP address is 152.8.1.1 using the TCP protocol and port 80.

access-list 123 deny any 178.22.8.9 0.0.255.255

This will prohibit any computer from accessing a computer on the 178.22 domain using any protocol.


Access-list command order is important





Some interesting port numbers


port

service

21

FTP

23

Telnet

25

Simple Mail Transport Protocol

53

Domain Name Servers

69

Trivial FTP

80

HTTP

110

POP3 client email

123

Network Time Protocol

137-139

Microsoft NETBIOS

143

IMAP4 client email

161

Simple Network Maintenance Protocol

443

HTTPS

445

Windows File Sharing

1863

MSN Instant messaging

1214

Kazaa

3389

Windows Remote Desktop Protocol

5190

AOL instant messenger

28800-29100

MSN Gaming Zone

49876

Firewall Simulation


Addresses


The access-list commands specify source and destination addresses. If the source address starts with 152.8, then the traffic is going out from your network to the Internet. If the source is any other address, then the traffic is coming into your network. A description of your simulated network is shown below.