Search squid archive

Re: All website getting Blocked

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this is my squid conf file.

#############################################

auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl allowed_sites dstdomain "/etc/squid3/Allowed_Sites.txt"
acl blocked_ip src "/etc/squid3/Blocked_Ip.txt"
acl allowed_ip dst "/etc/squid3/Allowed_Ip.txt"
acl allcomputers src 192.168.1.0/255.255.255.0
acl allcomputers src 192.168.2.0/255.255.255.0
acl all_others dst 0.0.0.0/0.0.0.0
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl all src all
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
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
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128
http_port 80 vhost
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid3/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Package(.gz)*)$        0       20%     2880
refresh_pattern \.js$ 1440 0% 4320
refresh_pattern \.(PNG|png)$ 1440 0% 4320
refresh_pattern .               0       20%     4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid3

###################################################

On Wed, Aug 3, 2016 at 10:23 PM, Harsha S Aryan <harsha.s.aryan@xxxxxxxxx> wrote:

---------- Forwarded message ----------
From: Harsha S Aryan <harsha.s.aryan@xxxxxxxxx>
Date: Wed, Aug 3, 2016 at 10:22 PM
Subject: All website getting Blocked
To: squid-users@xxxxxxxxxxxxxxxxxxxxx


Hi,

All website getting Blocked 
using squid3
ubuntu 14.04
Squid Cache: Version 3.3.8


conf file 


auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl allowed_sites dstdomain "/etc/squid3/Allowed_Sites.txt"
acl blocked_ip src "/etc/squid3/Blocked_Ip.txt"
acl allowed_ip dst "/etc/squid3/Allowed_Ip.txt"
acl allcomputers src 192.168.1.0/255.255.255.0
acl allcomputers src 192.168.2.0/255.255.255.0
acl all_others dst 0.0.0.0/0.0.0.0
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl all src all
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
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
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128
http_port 80 vhost
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid3/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Package(.gz)*)$        0       20%     2880
refresh_pattern \.js$ 1440 0% 4320
refresh_pattern \.(PNG|png)$ 1440 0% 4320
refresh_pattern .               0       20%     4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid3

Please let me know if anything is missing

--
Rehards,
Harsha 



--
Rehards,
Harsha 



--
Rehards,
Harsha 
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux