I'm using IPFilter and "keep state" heavily in the network at my
University; I'm trying to plan some resiliancy into the network.
Generally, individual academic departments are connected to one
or another PC in a rack to connect them to the "backbone", and
the PCs are all interconnected by switches. Providing resiliancy
at layer 2 is no problem; trying to do it at layer 3 is rather
more of a problem because the state tables keep the details of
which interface(s) are used by the packet. If the routing tables
change, the interface used changes and the state table entry now
blocks the packets.
I have built my rule set so that there is extensive checking of
both IP addresses by interface to stop IP spoofing; later on
there are checka about what traffic should be allowed or blocked
as a matter of *policy*. These policy rules are all written in
terms of IP addresses *only*, without reference to the interfaces;
it's safe to do this because of the extensive checks done earlier.
(One side effect is that traffic to be blocked for a particular
destination gets blocked at the first router it encounters rather
that transiting the backbone to get to the router feeding that
destination subnet.) As you might deduce some of my interfaces
are regarded as "backbone" interfaces and get less IP address
checking done.
Using "keep state" is highly desirable both for safety and for
performance (given a fairly long rule-set). I could, given the
structure of my rule-set, safely drop the check on the interface(s)
when matching packets with the state-table *provided the interface
in question was a "backbone" interface*. Would there be any use
for a facility in IPFilter to classify interfaces into a set for
which an interface match should be done, and one for which it is
not wanted? (Probably a version 4 thing?)
--
David Pick