Hello all,
I am trying to disable some sites based on various words in my restricted.conf, however for some reason it does not enforce this rule.
Also does anybody know how to enable spotify through proxy? I have configured the proxy settings in spotify however it reports that it cant connect.
Below is my squid.conf
Code:
#
########### squid.conf ###########
visible_hostname GlobalEntree
http_port 3128
# Authentication
auth_param basic program /usr/bin/php /usr/lib64/squid/sql_auth.php
auth_param basic children 5
auth_param basic realm GlobalEntree proxy, please enter your username and password
auth_param basic credentialsttl 1 hour
auth_param basic casesensitive off
## ports allowed
acl Safe_ports port 80
acl Safe_ports port 4070
http_access deny !Safe_ports
## ssl ports/method allowed
acl SSL_ports port 443
acl CONNECT method CONNECT
http_access deny CONNECT !SSL_ports
## protocols allowed
acl Safe_proto proto HTTP SSL
http_access deny !Safe_proto
## methods allowed
acl Safe_method method CONNECT GET HEAD POST
http_access deny !Safe_method
# Access Control Lists
acl class proxy_auth REQUIRED
acl BadSites url_regex "/etc/squid/restricted.conf"
acl all src 0.0.0.0/0
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
http_access allow class
http_access deny BadSites
## timeouts
forward_timeout 30 seconds
connect_timeout 30 seconds
read_timeout 30 seconds
request_timeout 30 seconds
persistent_request_timeout 1 minute
client_lifetime 20 hours
## disable caching
cache deny all
cache_dir null /tmp
## logs
logformat combined [%tl] %>A %{Host}>h "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
access_log /var/log/squid/access.log combined
cache_store_log /var/log/squid/store.log
cache_log /var/log/squid/cache.log
logfile_rotate 2
## support files
coredump_dir /tmp
# pid_filename /tmp/squid.pid
########### END squid.conf ###########
#
Kind regards,
Adrian.