Re: [squid-users] error pages on acl deny
On 10/27/05, Henrik Nordstrom [EMAIL PROTECTED] wrote: On Wed, 26 Oct 2005, Christoph Haas wrote: On Wednesday 26 October 2005 11:36, Metal Gear wrote: hi guys i am now using the following acls i.e. i want different error pages for different acls but i m always having a same error pages i.e. of 'ERR_ACCESS_DENIED'. i think its priority is higher than the second one. acl blockedsites url_regex /usr/local/squid/etc/sites/block http_access deny blockedsites mydomain deny_info ERR_ACCESS_DENIED blockedsites mydomain acl browserblocker browser -i 1.0.7 http_access deny !browserblocker mydomain deny_info ERR_OLD_BROWSER_DENIED !browserblocker mydomain http_access allow mydomain how will i get the different error page? deny_info looks for the very last acl of the http_access line which denied access. Nothing more, nothing less. If you list multiple acls on the same deny_info line then http_access deny lines ending in any of these acls will show the indicated error message. If you can not arrange your http_access deny statements in such manner that the last acl on each line is something meaningful to use in deny_info for selecting a suitable error message then it is possible to introduce dummy acls similar to the all acl to connect things together with deny_info. so how can i introduce dummy acls since i tried each and every thing but the situation remains. You need to define the deny_info before you use it in http_access. Just swap the lines. No, the ordering of deny_info in relation to http_access is not important. You can have all your deny_info lines first in squid.conf, or last if you prefer, or mixed with your http_access lines. Regards Henrik
Re: [squid-users] error pages on acl deny
hi guys i am now using the following acls i.e. i want different error pages for different acls but i m always having a same error pages i.e. of 'ERR_ACCESS_DENIED'. i think its priority is higher than the second one. acl blockedsites url_regex /usr/local/squid/etc/sites/block http_access deny blockedsites mydomain deny_info ERR_ACCESS_DENIED blockedsites mydomain acl browserblocker browser -i 1.0.7 http_access deny !browserblocker mydomain deny_info ERR_OLD_BROWSER_DENIED !browserblocker mydomain http_access allow mydomain how will i get the different error page? Thanks
[squid-users] pwp-printable web pages
hi all, is there any other plugin equivalent of pwp (printable web pages) which is mentioned at http://www.squid-cache.org/related-software.html as Many news sites have ultra-snazzy layouts which contribute nothing to the usability or readability of the web site. The usual crap includes: stock quotes, banner ads etc etc along with every news story. Another very annoying feature of some web sites is that they split a single story across multiple web pages. Perhaps they get more ad impressions that way. The PWP page describes how you can use Squid and Squirm to automatically rewrite requests for these pages into their printer-friendly versions. or are there any manual technique thru which i can achive such behaviour. Thanks
Re: [squid-users] error pages on acl deny
thanks you guys for the reply the working acl now is deny_info ERR_CUSTOM_DENIED !browserblocker mydomain Thanks again
[squid-users] error pages on acl deny
Hi all, i m using following acls to block users using Firefox version lesser than 1.0.7 and giving out an customized error page. acl browserblocker browser !Firefox/1.0.7 http_access deny browserblocker mydomain deny_info ERR_CUSTOM_DENIED browserblocker http_access allow mydomain I am using squid 2.5 stable 9 on redhat 9 i copied the ERR_ACCESS_DENIED as ERR_CUSTOM_DENIED and changed it completely in folder /usr/local/squid/share/errors/English but still i am getting the Access Denied pages i.e. ERR_ACCESS_DENIED, can someone tell me why this is happening, any help, suggestion, link would be appreciated Thanks
Re: [squid-users] error pages on acl deny
i have tried that too but was not working i can block the user from accessing the web but the customize pages doesn't comes up in response either access denied page comes up. On 10/17/05, Matus UHLAR - fantomas [EMAIL PROTECTED] wrote: On 17.10 12:14, Metal Gear wrote: Hi all, i m using following acls to block users using Firefox version lesser than 1.0.7 and giving out an customized error page. acl browserblocker browser !Firefox/1.0.7 http_access deny browserblocker mydomain deny_info ERR_CUSTOM_DENIED browserblocker http_access allow mydomain I am using squid 2.5 stable 9 on redhat 9 i copied the ERR_ACCESS_DENIED as ERR_CUSTOM_DENIED and changed it completely in folder /usr/local/squid/share/errors/English but still i am getting the Access Denied pages i.e. ERR_ACCESS_DENIED, can someone tell me why this is happening, any help, suggestion, link would be appreciated maybe you should change acl browserblocker browser !Firefox/1.0.7 http_access deny browserblocker mydomain to acl browserblocker browser Firefox/1.0.7 http_access deny !browserblocker mydomain (or the latter to: http_access deny mydomain !browserblocker) -- Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. On the other hand, you have different fingers.
Re: [squid-users] running multiple instances
Hi all, i made another squid.conf and then followed the steps mentioned at http://squidwiki.kinkie.it/squidwiki/MultipleInstances. The squid's first instance is used for the corporate network while the second one i uses for testing squid configurations and for optimizations. I was making acls for blocking images for second squid instance but it didn't worked i then tried couple of other acls but that were also not working. I then killed the second instace and applied the acls in the conf file of first squid and restarted and it was working. No the problem is that when when i m running both instaces one instance follows the specified acls while the second one is not follwong the acl. Both have differenct conf files. Thanks
Re: [squid-users] running multiple instances
Here are the conf files, - First one maximum_object_size 50 MB cache_mem 256 MB cache_dir ufs /usr/local/squid/var/cache 9000 256 256 forwarded_for off acl Gopher proto Gopher http_access deny Gopher acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl mylocalnet src 192.168.1.0/255.255.255.0 acl SSL_ports port 443 563 acl Safe_ports port 21 22 23 70 80 100 210 443 563 1025-65535 acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports acl porn url_regex /usr/local/squid/etc/sites/block http_access deny porn mylocalnet #acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$ \.(exe)$ \.(zip)$ \.(mp3)$ .jpg .gif .jpeg .png .exe .zip .mp3 #acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$ \.(exe)$ \.(zip)$ \.(mp3)$ #http_access deny blockimages mylocalnet http_access allow mylocalnet http_access deny all icp_access allow all miss_access allow all cache_mgr [EMAIL PROTECTED] visible_hostname www.myisp.net unique_hostname www.myisp.net httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on http_port 3128 cache_effective_user squid #cache_store_log /usr/local/squid/var/logs/store.log #redirect_program /usr/local/bin/SquidClamAV_Redirector.py -c /etc/squid/SquidClamAV_Redirector.conf #redirect_children 100 ftp_user [EMAIL PROTECTED] ftp_list_width 32 ftp_passive on ftp_sanitycheck on ftp_telnet_protocol on hosts_file /etc/hosts -- Second one maximum_object_size 2 MB cache_mem 5 MB cache_dir ufs /usr/local/squid/var/temcache 5 10 10 forwarded_for off cache_access_log /usr/local/squid/var/access.log cache_log /usr/local/squid/var/cache.log #log_mime_hdrs on acl Gopher proto Gopher http_access deny Gopher acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl mylocallan src 192.168.1.0/255.255.255.0 acl SSL_ports port 443 563 acl Safe_ports port 21 22 23 70 80 100 210 443 563 1025-65535 acl Safe_ports port 280 acl Safe_ports port 488 acl Safe_ports port 591 acl Safe_ports port 777 acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access allow Safe_ports http_access allow CONNECT SSL_ports #acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$ \.(exe)$ \.(zip)$ \.(mp3)$ .jpg .gif .jpeg .png .exe .zip .mp3 acl blockimages urlpath_regex -i \.(jpg)$ \.(gif)$ \.(jpeg)$ \.(png)$ \.(exe)$ \.(zip)$ \.(mp3)$ http_access deny blockimages mylocallan http_access allow mylocallan icp_access allow all miss_access allow all http_access deny all cache_mgr [EMAIL PROTECTED] visible_hostname www1.myisp.net unique_hostname www1.myisp.net httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on http_port 8080 cache_effective_user squid #cache_store_log /usr/local/squid/var/logs/store.log #redirect_program /usr/local/bin/SquidClamAV_Redirector.py -c /etc/squid/SquidClamAV_Redirector.conf #redirect_children 100 ftp_user [EMAIL PROTECTED] ftp_list_width 32 ftp_passive on ftp_sanitycheck on ftp_telnet_protocol on hosts_file /etc/hosts --
[squid-users] running multiple instances
Hi all, i want to run multiple squid instances on different ports with different conf files but whenever i try to run another instance it shows that squid is already running with the process id so and so. So how can i run multiple instances on same machine. I m using redhat9 and squid 2.5.STABLE7. Thanks