On Mon, Oct 15, 2007 at 05:56:50AM -0700, Larry Menten wrote:
> > I'd like to see an example of what you're trying to
> Thanks, Dan. I am trying to filter the output of a tunnel, but I'd like to
> be able to select the rule set to apply to the de-encapsulated packet based
> upon the physical interface upon which the encapsulated packet was
> received.
Okay. So let's say you have physical interfaces:
e1000g0 a.b.c.1/24
e1000g1 e.f.g.1/24
e1000g2 l.m.n.1/24
e1000g3 d.e.f.1/24
and you also have:
ip.tun0 x.y.z.1 --> x.y.a.1 tsrc a.b.c.1 tdst w.x.y.1
It looks like you only want packets that get shuffled through ip.tun0 to
arrive off e1000g0 (the a.b.c.1 interface), is that correct?
> This is a "zone-based" approach to packet filtering. The zone is selected
> by the source address and source ifc. The encap packet is filtered by the
> zone rule set, decapsulated, and the decap packet is then filtered again by
> the same zone rule set.
There's gotta be a proper buzzword for this, but I view what I *think* you're
trying to say as "routing domains". Using my above example, let's say
e1000g0 is connected to an external network, but e1000g[123] and ip.tun0 are
part of an internal network. Those are two routing domains. You can only,
for example, pick a default route on one of the two networks using
straightforward TCP/IP tools. Only if you use ipfilter (and policy-based
routing) can you enforce, for example, the concept of two default routes, one
for the external network and one for the internal one.
There are some future ways to move forward. One we on Team IPsec are sorta
interested in, but haven't the cycles to try and the crassness to tell
someone else "YOU MUST DO IT" is to have tunnels that split two IP
Instances. The "lower half" of the tunnel (tsrc/tdst) is in one IP instance,
while the "upper half" of the tunnel (interface src/dst) is in another one.
> If I can learn the physical interface from information in the buffer chain,
> life is good. If I cannot, then I have more work to do to match the tunN
> interfaces to the desired rules.
I *think* for now you'll have to use ipfilter rules to enforce the sort of
separation you wish.
Am I better understanding your problem?
Dan
_______________________________________________
networking-discuss mailing list
[email protected]