Reaper-X » Freeware » Internet Tools » Network and Security » Open Source » Privacy » Software » Squid » Tutorials » Windows » Complete Guide on Installing and Configuring Squid Proxy Server for Windows
Here’s another guide again by me to configure / installing Squid Cache Proxy to be an Anonymous Proxy Server and filtering some ads / banners (on Windows not Linux since most Linux users already know about this) :)
Note: in this tutorial i’ll use G:\Squid as the Squid Directory
# HTTP Port (in this tutorial squid will run on localhost at port 3128)
http_port 127.0.0.1:3128
# ICP Port and HTCP Port (we’ll disable this since we are not going to use it)
icp_port 0
htcp_port 0
# Cache Peer (we’ll forward all request into parent proxy)
cache_peer 127.0.0.1 parent 4001 7 no-query
# Cache directory (in this example i was using 3000 MB / 3 GB space to store squid cache)
cache_dir awin32 g:/squid/var/cache 3000 16 256
# access_log
access_log g:/squid/var/logs/access.log squid
# cache_log
cache_log g:/squid/var/logs/cache.log
# cache_store_log
cache_store_log none
# mime_table
mime_table g:/squid/etc/mime.conf
# pid_filename
pid_filename g:/squid/var/logs/squid.pid
# unlinkd_program
unlinkd_program g:/squid/libexec/unlinkd.exe
# refresh_pattern (you can configure this as you like it, to get more hits from a website)
# note: if you change this parameter “refresh_pattern . 1 100% 20160 reload-into-ims ignore-reload” into something else for
# example like “refresh_pattern . 10 100% 20160 reload-into-ims ignore-reload”
# there’ll be some error on some page (Gamefaqs.com for an example) because the page didnt reload correctly after login into Gamefaqs
refresh_pattern ^http://.*\.gif$ 1440 50% 20160 reload-into-ims
refresh_pattern ^http://.*\.asis$ 1440 50% 20160
refresh_pattern -i \.png$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.jpg$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.bmp$ 10080 150% 40320 reload-into-ims
refresh_pattern -i \.gif$ 10080 300% 40320 reload-into-ims
refresh_pattern -i \.ico$ 10080 300% 40320 reload-into-ims
refresh_pattern -i \.swf$ 10080 300% 40320 reload-into-ims
refresh_pattern -i \.flv$ 10080 300% 40320 reload-into-ims
refresh_pattern -i \.rar$ 10080 150% 40320
refresh_pattern -i \.ram$ 10080 150% 40320
refresh_pattern -i \.txt$ 1440 100% 20160 reload-into-ims override-lastmod
refresh_pattern -i \.css$ 1440 60% 20160
refresh_pattern ^http:// 1 100% 20160 reload-into-ims ignore-reload
refresh_pattern ^ftp:// 240 50% 20160
refresh_pattern ^gopher:// 240 40% 20160
refresh_pattern /cgi-bin/ 0 0% 30
refresh_pattern . 0 100% 20160 reload-into-ims
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
# Block access to Malware & ads farm site
# Insert your own rule here by using
# acl blablabla url_regex -i “path to file”
# or
# acl blablabla url_regex “path to file”
http_access allow localhost
http_access deny all
cache_mgr Reaper-X
httpd_suppress_version_string on
visible_hostname Reaper
via off
forwarded_for off
log_icp_queries off
client_db off
never_direct allow all
#Some anonymizing
header_access From deny all
#there’s some website which use referer check
#so its better to disable this
#header_access Referer deny all
header_access WWW-Authenticate deny all
header_access Link deny all
header_access Warning deny all
header_access Via deny all
header_access User-Agent deny all
header_access Proxy-Connection deny all
header_access X-Forwarded-For deny all
Now the next step would be running JAP, configure browsers to use Squid Proxy and start squid and you’re finished …. ;)
I am using Squid 2.7 stable7. I had my squid running and able to browse from client systems. But the problem is I am unable to connect to FTP server. Kindly guide.
Could you tell me, hardware specifications for this squid minimum and recommended (Windows). Thank’s for info sharing ^_^
i used the same configuration, but when i start the service by using squid -X, it says:
cachemgrRegister: registered config
fd_open FD 0 stdin
fd_open FD 1 stdout
fd_open FD 2 stderr
leave_suid: PID 76440 called
abnormal program termination
Could you tell me on which Squid version are you running?
i cant start squid service when i start it that time squid is not working
can any one give full installation and configurations of squid proxy for windows to me
thanks and regards
mr.mdaziz@yahoo.com
Hi Aditya,
I’ve recently written an updated version of installing Squid on Windows.
http://how-to-solutions.com/installing-and-configuring-squidnt-27-on-a-windows-domain.html
I hope your readers find it useful! Thanks
first of all, what i download squid is squid 2.7for NT and somone suggest to run as
Simply unzip in the root of C: and run c:\squid\sbin\squid -i. Rename and edit the files in c:\squid\etc and run net start squid or start squid via services.msc. Also, make sure to create c:\squid\var\cache and run squid -z to create swap directories (or you might spend a long time trying to figure out the cryptic “abnormal program termination” message like I did! :) )
but not able to run squid on winxp
(also squid port 3168 also not workin)
Plz send guide on Installing and Configuring Squid Proxy Server for WindowsXP in more simple way
also how we connect JAP to squid
plz respond on mail, i shell be thankful to your goodself
regards
kamal
boss_kamal(at)indiatimes(dot)com
no tweaks for windows server ? like tcp optimization and kernel tweaking on linux?
aah .. actually since squid 2.6 stable 4 awin32 is no longer used, you should replace it with aufs instead :)
Hi,
I got the following error when i run “squid -z -f “c:/squid/etc/squid.conf”,
the configuration file I downloaded here.
Pls show me how to do.
thanks.
FATAL: Bungled squid.conf line 12: cache_dir awin32 c:/squid/var/cache 1000 8 64
Squid Cache (Version 2.6.STABLE12): Terminated abnormally.
well .. actually you can say that squid client is the client browser itself (for example client computer or other computer in the same network) and for the server itself. where the squid process launched :)
please send more tutorial about squid include how squid client connect and works to server
since i never check this post, i didnt know that my post about this isnt properly posted (since i was using 3rd party software to blogs) … but i just edited this post as necessary (unfortunately there’s some missing words *not an important words* since i already forgot about it) … sorry for any inconvenience caused by me :)