Netopia 4541 Firewall design rules, UDP Port Service, Aurp, Firewall Logic, Binary representation

Models: 4542 4541

1 209
Download 209 pages 41.22 Kb
Page 166
Image 166

11-22 User’s Reference Guide

UDP Port

Service

69TFTP

387AURP

Firewall design rules

There are two basic rules to firewall design:

“What is not explicitly allowed is denied.”

and

“What is not explicitly denied is allowed.”

The first rule is far more secure, and is the best approach to firewall design. It is far easier (and more secure) to allow in or out only certain services and deny anything else. If the other rule is used, you would have to figure out everything that you want to disallow, now and in the future.

Firewall Logic

Firewall design is a test of logic, and filter rule ordering is critical. If a packet is forwarded through a series of filter rules and then the packet matches a rule, the appropriate action is taken. The packet will not forward through the remainder of the filter rules.

For example, if you had the following filter set...

Allow WWW access;

Allow FTP access;

Allow SMTP access;

Deny all other packets.

and a packet goes through these rules destined for FTP, the packet would forward through the first rule (WWW), go through the second rule (FTP), and match this rule; the packet is allowed through.

If you had this filter set for example....

Allow WWW access;

Allow FTP access;

Deny FTP access;

Deny all other packets.

and a packet goes through these rules destined for FTP, the packet would forward through the first filter rule (WWW), match the second rule (FTP), and the packet is allowed through. Even though the next rule is to deny all FTP traffic, the FTP packet will never make it to this rule.

Binary representation

It is easiest when doing filtering to convert the IP address and mask in question to binary. This will allow you to perform the logical AND to determine whether a packet matches a filter rule.

Page 166
Image 166
Netopia 4541, 4542 manual Firewall design rules, UDP Port Service, Aurp, Firewall Logic, Binary representation