Search squid archive

Re: Fwd: All website getting Blocked

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

 




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
You haven't permissive rule for localnet.


03.08.2016 22:53, Harsha S Aryan пишет:
>
> ---------- Forwarded message ----------
> From: *Harsha S Aryan* <harsha.s.aryan@xxxxxxxxx <mailto:harsha.s.aryan@xxxxxxxxx>>
> Date: Wed, Aug 3, 2016 at 10:22 PM
> Subject: All website getting Blocked
> To: squid-users@xxxxxxxxxxxxxxxxxxxxx <mailto: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 <http://192.168.1.0/255.255.255.0>
> acl allcomputers src 192.168.2.0/255.255.255.0 <http://192.168.2.0/255.255.255.0>
> acl all_others dst 0.0.0.0/0.0.0.0 <http://0.0.0.0/0.0.0.0>
> acl localnet src 10.0.0.0/8 <http://10.0.0.0/8>     # RFC1918 possible internal network
> acl localnet src 172.16.0.0/12 <http://172.16.0.0/12>  # RFC1918 possible internal network
> acl localnet src 192.168.0.0/16 <http://192.168.0.0/16> # RFC1918 possible internal network
> acl all src all
> acl localhost src 127.0.0.1/32 <http://127.0.0.1/32>
> acl to_localhost dst 127.0.0.0/8 <http://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

Add this here:
http_access allow localnet
and reconfigure. That's all.
> 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
>
>
> _______________________________________________
> squid-users mailing list
> squid-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXoicGAAoJENNXIZxhPexGCbIIAJt8ndstXmvXchMIuR0YgEuO
1B/lA3DY/fR14udGm8BvNtTn2V103Ch8WH97NZ0Rxm11cYZvauQ8OnkHE53aZ9Uk
J4qVVYBbidLERwRIZQQr559qyYPTZV8khNhSRNJXD1r2Vdl0vJsybIe1IW8D6v33
aVPQN2tScT4bdDFCDOYN++6Cm+uT+eU8eSR5N56qJg+t4CmQxcEPFGgqHFVP/59c
i2lVDF7vTcmsMif/HbqUx3fxHa6H6dYliaycmRVHEbApjtwT/TqFGuJsC+PTtjPH
FHApEXDfZycJh69iVVfJstfTj8yrHpe96EYOCxVdOKc6+tN1XMH2wqflkjALMeM=
=K5gg
-----END PGP SIGNATURE-----

Attachment: 0x613DEC46.asc
Description: application/pgp-keys

_______________________________________________
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