13-22 Administration Guide
Logical AND function
When a packet is compared (in most cases) a logical AND function is per formed. First the IP addresses and
subnet masks are conver ted to binar y and then combined with AND. The rules for the logical use of AND are as
follows:
0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1
For example:
Filter rule:
Deny
IP: 163.176.1.15BINARY:
10100011.10110000.00000001.00001111
Mask: 255.255.255.255BINARY:11111111.11111111.11111111.11111111
Incoming Packet:
IP 163.176.1.15BINARY:
10100011.10110000.00000001.00001111
If you put the incoming packet and subnet mask together with AND, the result is:
10100011.10110000.00000001.00001111
which matches the IP address in the filter rule and the packet is denied.
Implied rules
With a given set of filter rules, there is an Implied rule that may or may not be shown to the user. The implied
rule tells the filter set what to do with a packet that does not match any of the filter rules. An example of implied
rules is as follows:
Established connections
The TCP header contains one bit called the ACK bit (or TCP Ack bit). This ACK bit appears only with TCP, not
UDP. The ACK bit is par t of the TCP mechanism that guarantees the deliver y of data. The ACK bit is set
whenever one side of a connection has received data from the other side. Only the first TCP packet will not have
the ACK bit set; once the TCP connection is in place, the remainder of the TCP packets with have the ACK bit
set.
The ACK bit is helpful for firewall design and reduces the number of potential filter rules. A filter rule could be
created just allowing incoming TCP packets with the ACK bit set, since these packets had to be originated from
the local network.
Implied
Meaning
Y+Y+Y=N
If all filter rules are YES, the implied rule is NO.
N+N+N=Y
If all filter rules are NO, the implied rule is YES.
Y+N+Y=N
If a mix of YES and NO filters, the implied rule is NO.
Summary of Contents for 4752
Page 1: ...Netopia 4752 SDSL Integrated Access Device Administration Guide ...
Page 12: ...Administration Guide ...
Page 18: ...2 4 Administration Guide ...
Page 30: ...4 8 Administration Guide ...
Page 34: ...5 4 Administration Guide ...
Page 40: ...6 6 Administration Guide ...
Page 58: ...Administration Guide ...
Page 82: ...9 24 Administration Guide ...
Page 110: ...10 28 Administration Guide ...
Page 172: ...12 30 Administration Guide ...
Page 206: ...13 34 Administration Guide ...
Page 236: ...Administration Guide ...
Page 242: ...A 6 Administration Guide ...
Page 258: ...C 14 Administration Guide ...
Page 264: ...E 4 Administration Guide ...
Page 284: ...2 Administration Guide ...