Viralator - Squirm Setup and Wget Caching

Q. Are you aware that wget is not caching the downloads?

A. Yes, by default wget does not use squid. If it did it would launch viralator when it tried to retrieve your file. The fix to this is to use squirm.conf (from squirm-1.23) to stop squirm from sending requests through to the viralator script from wget on the proxy server. Then alter wgetrc so it uses squid this way it uses the proxy but does not use the squirm redirector.

My network operates on a class C 255 IP address private range. A normal class C address is xxx.xxx.xxx.xxx/24 and covers all 255 addresses. My proxy server sits on 192.168.100.1 so we have to tell squirm.conf that it is ok to use every IP address in my class C range except for the ip the proxy server is on. I wish I could have found an easy way to do this but in the end I had to create a line for each IP that should use the redirector.

My squirm.conf file

begin
network 192.168.100.2
network 192.168.100.3
network 192.168.100.4
Network 192.168.100.5
network 192.168.100.6
network 192.168.100.7
network 192.168.100.8
network 192.168.100.9
network 192.168.100.10
network 192.168.100.11
network 192.168.100.12
network 192.168.100.13
network 192.168.100.14
network 192.168.100.15
..
...
....
network 192.168.100.253
network 192.168.100.254
pattern squirm.patterns get
end

My squirm.patterns file

abortregexi (^http://192\.168\.100\.1/.*)
abortregexi (^http://proxy\.loddington\.com/.*)  
regexi (^.*\.zip$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.exe$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.doc$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.xls$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.tgz$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.tar$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.arj$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.vbs$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1
regexi (^.*\.shs$) http://192.168.100.1/cgi-bin/viralator.cgi?url=\1