Download Aker Firewall 6.5 - Aker Security Solutions

Transcript
Mounting filtering rules in a simple packet filter.
Before showing how the Aker Firewall stateful filter configuration works is interesting
to explain the basic operation of a simple packet filter:
There are several possible criterions to perform a packet filtering. The address
filtering can be considered the simplest of all, because it consists in making a
comparison between the packets addresses and the rules addresses. In case the
addresses are the same, the packet is approved. This comparison is done as
follows:
We shall work with the following rule: All the hosts from the network 10.1.x.x can
communicate with the hosts of network 10.2.x.x. We write this rule using the masking
concept (for more information, see the chapter titled Registering entities).
Then
we have:
10.1.0.0
&
255.255.0.0
->
10.2.0.0
------- Source ------
&
255.255.0.0
------- Destination -------
Now let us apply the rule to a packet which travels from host 10.1.1.2 to host
10.3.7.7. Apply the rule mask to both addresses, the rule and the packet verify if the
source and Destination addresses are the same.
For the source address we have:
10.1.0.0 AND 255.255.0.0 = 10.1.0.0 (for rule)
10.1.1.2 AND 255.255.0.0 = 10.1.0.0 (for packet)
Therefore, the two source addresses are alike after applying the mask. Now we shall
see to the Destination address:
10.2.0.0 AND 255.255.0.0 = 10.2.0.0 (for rule)
10.3.7.7 AND 255.255.0.0 = 10.3.0.0 (for packet)
As the packet Destination address is not alike to the rule Destination address after
applying the mask, by definition, this rule will not apply to this packet.
This operation is made in every address list and Destination and source mask until
the end of the list, or until one of the rules apply to the examined packet. A list of rule
would have the same form:
10.1.1.2 & 255.255.255.255 -> 10.2.0.0 & 255.255.0.0
215