Re: Could be a stupid question...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 17 May 2004 11:09 am, Gavin Hamill wrote:

> On Monday 17 May 2004 10:55, Dennis Morgan wrote:
> > ie SEARCH / and a load of escape characters trying to get unauthorised
> > access. I would like to know if there is a way with netfilter to drop
> > these packets?
>
> At a pinch, you could try the 'string match' module, but it's generally not
> recommended.

I *really* don't think it would work in this case, because the strings will be 
at unpredictable points into the communications stream (less chance of it 
being near the start of a packet, and therefore completely contained within 
one packet), and to do this job effectively you'd need to match on regular 
expressions, which the string match doesn't.

> More usefully, you should look at http://l7-filter.sourceforge.net/ -
> writing a little regex for this package to drop the WebDAV SEARCH requests
> should be trivial.

Good suggestion - less overhead than a full proxy server as I suggested, and 
ideal for the job.

Regards,

Antony.

-- 
Bill Gates has personally assured the Spanish Academy that he will never allow 
the upside-down question mark to disappear from Microsoft word-processing 
programs, which must be reassuring for millions of Spanish-speaking people, 
though just a piddling afterthought as far as he's concerned.

 - Lynne Truss, "Eats, Shoots and Leaves"

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux