Re: [squid-users] regex not working

From: Ahsan Ali <ahsan@dont-contact.us>
Date: Sun, 2 Dec 2001 01:35:56 +0500

Make sure that squid has permission to read the files containing your URLs.
  ----- Original Message -----
  From: Dr. Radhakrishnan T
  To: squid-users@squid-cache.org
  Sent: Saturday, December 01, 2001 5:07 PM
  Subject: [squid-users] regex not working

  Sirs,
  I have installed squid2.4 stable 2 with ./configure options --async-io --enable-linux-netfilter --enable-url-regex --enable-kill-parent-hack --enable-arp-acl. I am not able to get the url-regex ACLS operative. I had tried to ./configure squid with --enable gnu-regex and without regex. Nothing worked. Other ACLs like SRC works fine. I am not getting any debugging message in cache.log (I had set the debug options ALL 1 26, 9). My acl configurations are as follows:

  #acl myexample dst_as 1241
  acl password proxy_auth REQUIRED
  #acl fileupload req_mime_type -i ^multipart/form-data$
  #
  #Recommended minimum configuration:
  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 aris src 192.168.1.0/255.255.255.0
  acl blockedsites url_regex -i "/usr/local/squid/etc/block.txt"
  deny_info ERR_NO_PORNO blockedsites
  acl unblockedsites url_regex -i "/usr/local/squid/etc/unblock.txt"
  acl SSL_ports port 443 563
  acl Safe_ports port 80 # http
  acl Safe_ports port 21 # ftp
  acl Safe_ports port 443 563 # https, snews
  acl Safe_ports port 70 # gopher
  acl Safe_ports port 210 # wais
  acl Safe_ports port 1025-65535 # unregistered ports
  acl Safe_ports port 280 # http-mgmt
  acl Safe_ports port 488 # gss-http
  acl Safe_ports port 591 # filemaker
  acl Safe_ports port 777 # multiling http
  acl CONNECT method CONNECT

  #Default:
  # http_access deny all
  #
  #Recommended minimum configuration:
  #
  # Only allow cachemgr access from localhost
  http_access allow manager localhost
  http_access deny manager
  # Deny requests to unknown ports
  http_access deny !Safe_ports
  http_access allow password
  # Deny CONNECT to other than SSL ports
  http_access deny CONNECT !SSL_ports
  #
  # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  #
  http_access allow aris
  http_access deny blockedsites !unblockedsites
  # And finally deny all other access to this proxy
  http_access deny all

  Can anybody help

  Radhakrishnan
  _____________________________
  Dr. Radhakrishnan T
  Senior Scientist,
  National Research Centre for Groundnut,
  P O Box 5, Junagadh 362001,
  Gujarat, India.
  Tel. Off. +91 285 623041, 623461
         Res. +91 285 653855
  Fax. Off. +91 285 651550
Received on Sat Dec 01 2001 - 13:38:00 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:05:08 MST