Linux Netfilter discussions
 help / color / mirror / Atom feed
* Can netfilter do this?
@ 2004-03-25 11:59 Joe Mott
  2004-03-25 12:14 ` Gavin Hamill
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Joe Mott @ 2004-03-25 11:59 UTC (permalink / raw)
  To: netfilter

I have been searching the archived lists without any success to have the 
following question answered:

Is netfilter capable of knowing when someone is crafting SMTP (or FTP or 
HTTP or ...) packets that violate RFC rules to exploit a vulnerability 
in some server?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can netfilter do this?
  2004-03-25 11:59 Can netfilter do this? Joe Mott
@ 2004-03-25 12:14 ` Gavin Hamill
  2004-03-25 12:20 ` David Cannings
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Gavin Hamill @ 2004-03-25 12:14 UTC (permalink / raw)
  To: netfilter

On Thursday 25 March 2004 11:59, Joe Mott wrote:

> Is netfilter capable of knowing when someone is crafting SMTP (or FTP or
> HTTP or ...) packets that violate RFC rules to exploit a vulnerability
> in some server?

No, application-level filtering / analysis is outside the scope of netfilter. 

Try http://www.snort.org/ 

Cheers,
Gavin.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can netfilter do this?
  2004-03-25 11:59 Can netfilter do this? Joe Mott
  2004-03-25 12:14 ` Gavin Hamill
@ 2004-03-25 12:20 ` David Cannings
  2004-03-25 12:33 ` Ray Leach
  2004-03-25 21:56 ` Frederic de Villamil
  3 siblings, 0 replies; 7+ messages in thread
From: David Cannings @ 2004-03-25 12:20 UTC (permalink / raw)
  To: netfilter

On Thursday 25 March 2004 11:59, Joe Mott wrote:
> I have been searching the archived lists without any success to have
> the following question answered:
>
> Is netfilter capable of knowing when someone is crafting SMTP (or FTP
> or HTTP or ...) packets that violate RFC rules to exploit a
> vulnerability in some server?

No, that is the job for some form of IDS, such as Snort.  Whilst netfilter 
can look inside the contents of packets it can only do so on a packet by 
packet basis.  An HTTP request, SMTP conversation (etc) is likely to be 
so large it spans multiple packets.  When text wraps the boundary of one 
packet netfilter can no longer help, some form of reassembly is required 
before the "full" text can be read and taken into context.

David


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can netfilter do this?
  2004-03-25 11:59 Can netfilter do this? Joe Mott
  2004-03-25 12:14 ` Gavin Hamill
  2004-03-25 12:20 ` David Cannings
@ 2004-03-25 12:33 ` Ray Leach
  2004-03-25 21:56 ` Frederic de Villamil
  3 siblings, 0 replies; 7+ messages in thread
From: Ray Leach @ 2004-03-25 12:33 UTC (permalink / raw)
  To: Netfilter Mailing List

[-- Attachment #1: Type: text/plain, Size: 763 bytes --]

On Thu, 2004-03-25 at 13:59, Joe Mott wrote:
> I have been searching the archived lists without any success to have the 
> following question answered:
> 
> Is netfilter capable of knowing when someone is crafting SMTP (or FTP or 
> HTTP or ...) packets that violate RFC rules to exploit a vulnerability 
> in some server?

As the other replies say, the short answer is no.

You can do some filtering using the netfilter POM patches, like string
matching, TOS, TCP flags.

Regards

Ray
-- 
--
Raymond Leach <raymondl@knowledgefactory.co.za>
Network Support Specialist
http://www.knowledgefactory.co.za
"lynx -source http://www.rchq.co.za/raymondl.asc | gpg --import"
Key fingerprint = 7209 A695 9EE0 E971 A9AD  00EE 8757 EE47 F06F FB28
--

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Can netfilter do this?
@ 2004-03-25 17:23 Daniel Chemko
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Chemko @ 2004-03-25 17:23 UTC (permalink / raw)
  To: David Cannings, netfilter



> When text
> wraps the boundary of one packet netfilter can no longer help, some
> form of reassembly is required before the "full" text can be read and
> taken into context. 

Apparently when you use the QUEUE extension the packet is re-assembled
before the packet is passed to the userspace application. This makes
proper filtering and detection possible. You still have to track the
entire session from userspace if you want to be accurate, but that
depends on what userspace tool you're plugging into. I know of Snort and
Squid which have 'inline' modes. These programs should have some ability
to filter out the garbage.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Can netfilter do this?
@ 2004-03-25 20:53 Small, Jim
  0 siblings, 0 replies; 7+ messages in thread
From: Small, Jim @ 2004-03-25 20:53 UTC (permalink / raw)
  To: netfilter

> -----Original Message-----
> > Is netfilter capable of knowing when someone is crafting SMTP (or FTP or
> > HTTP or ...) packets that violate RFC rules to exploit a vulnerability
> > in some server?

Snort is an excellent "tool"/Network Intrusion Detection System.  You might
also be interested in this:
http://l7-filter.sourceforge.net/

Snort is more robust, but also more complex.

<> Jim




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Can netfilter do this?
  2004-03-25 11:59 Can netfilter do this? Joe Mott
                   ` (2 preceding siblings ...)
  2004-03-25 12:33 ` Ray Leach
@ 2004-03-25 21:56 ` Frederic de Villamil
  3 siblings, 0 replies; 7+ messages in thread
From: Frederic de Villamil @ 2004-03-25 21:56 UTC (permalink / raw)
  To: Joe Mott; +Cc: netfilter

[-- Attachment #1: Type: text/plain, Size: 672 bytes --]

On Thu, 25 Mar 2004, Joe Mott wrote:

> I have been searching the archived lists without any success to have the
> following question answered:
>
> Is netfilter capable of knowing when someone is crafting SMTP (or FTP or
> HTTP or ...) packets that violate RFC rules to exploit a vulnerability
> in some server?
>

Hi,
what you need is an IDS (intrusion detection system).
The most well known are prelude (prelude-ids.org) and snort.

Did I  mention that  I don't  trust snort because  of too  much passed
vulnerabilities?

Regards
Frederic


--
< Ylli> lol je rigole neuro jte prend pa pr un pervers ms un president et pere de famille respectable :s
http://www.seclab.jp

[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-03-25 21:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-25 11:59 Can netfilter do this? Joe Mott
2004-03-25 12:14 ` Gavin Hamill
2004-03-25 12:20 ` David Cannings
2004-03-25 12:33 ` Ray Leach
2004-03-25 21:56 ` Frederic de Villamil
  -- strict thread matches above, loose matches on Subject: below --
2004-03-25 17:23 Daniel Chemko
2004-03-25 20:53 Small, Jim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox