Great Circle Associates Firewalls
(March 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: IHL field in IP packet header
From: Chris Kostick <ckostick @ ashton . csc . com>
Date: Wed, 20 Mar 1996 21:40:53 -0500 (EST)
To: chris @ sandpiper . com (Chris Newton)
Cc: firewalls @ greatcircle . com
In-reply-to: <9603201956 . AA14692 @ sandy . sandpiper . com> from "Chris Newton" at Mar 20, 96 11:56:38 am

> I'm trying to set up some packet filtering, on a fairly primitive box. I can
> use it get the value of a field at a particular offset, but am unable to 
> calculate an offset to use - it has to be an explicit constant value.
> 
> The IHL field in the IP header indicates the length of that header - so if,
> for instance, I need to get to the TCP destination port field within the
> packet, I should calculate the offset of it based upon the value of the IHL.
> 
> So my question is, is it valid to reject packets which have an IHL value of
> something other than 5, since I can't find a way to index into packets with 
> a different value

The short answer is, yes it's valid. The question is, do you want to do it
or not?

It's okay to reject if you have determined that no IP packets containing
options will be permitted. Otherwise, that's not a good determining
factor. The real solution is to filter on header offsets from the TCP
Header and not IP.

A question to the group -- are there any firewalls / routers / 'anything
else that filters' that will allow you to choose offsets from the transport
header rather than the IP header?

--
chris kostick
CSC - Network Dude (official title, really. :)


References:
Indexed By Date Previous: Re: PKUNZIP TROJAN
From: Warren Moore <warren . moore @ cbis . com>
Next: Re: Watchdog
From: pmoen @ sbnsw . com . au
Indexed By Thread Previous: IHL field in IP packet header
From: chris @ sandpiper . com (Chris Newton)
Next: Re: IHL field in IP packet header
From: David Bonn <david @ klawatti . mazama . com>

Google
 
Search Internet Search www.greatcircle.com