Re: [squid-users] Blocking worm(s)

This is a discussion on Re: [squid-users] Blocking worm(s) within the Squid Users forums, part of the Web Server and Related Forums category; On Thu, 19 Feb 2004, Brad Groshok wrote: > Looking through past comments about this, someone has suggested blocking > ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2004
Henrik Nordstrom
 
Posts: n/a
Default Re: [squid-users] Blocking worm(s)

On Thu, 19 Feb 2004, Brad Groshok wrote:

> Looking through past comments about this, someone has suggested blocking
> requests to ip addresses.
> (think this is what was suggested)
>
> acl worm url_regex ^https?://[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*/.*$
> http_access deny worm


This should work, but will also block users from accessing such pages.

> Others have said this is a firewall issue and should be dealt with at the
> router level.


This is best, but hard to automate.

> Which approach would be best for dealing with this problem?
> Having squid deal with it, or blocking at the router level?
>
> And if at the router level
> Can anybody post a simple solution for blocking this on a cisco router.


It does not need to be in the router. Almost all OS:es where Squid runs
has firewalling capabilities allowing you to install filters like these.

Doing it on the proxy server makes like a lot easier, as you can then have
a small program with monitors the proxy access log for dubious activity
and blocks the IP addresses generatign such traffic.

> Actually, one last question. What is really happening here?
> Is the worm making many requests, presumably to ip addresses that don't
> have web servers running on them, and squid is waiting for the replies to
> come back? (timing out)


If you see a lot of requests for IP addresses or certain web site from a
few clients, where a lot is in proportion to the amount of normal traffic
then something hairy is going on at those clients, usually a worm.

> Is squid getting slow because it has reached some max number of open
> connections? (while waiting for these replies/timeouts)


Squid performance degrades if it needs to keep very many connections, and
gets very poor if it runs out of filedescriptors (see cache.log for
warnings about this)

Configuration directives which helps somewhat is (in priority order)

half_closed_clients off
client_persistent_connections off
server_persistent_connections off

Regards
Henrik

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0