i just install squid and run. now i cant access any site. my config
my server ip is 192.168.1.6 and lan ip is 10.42.0.1
Quote:
Quote:
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
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
acl badsite url_regex "/etc/squid3/badsites"
http_access deny badsite
acl block_websites dstdomian .facebook.com
http_access allow block_websites
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl GOOD dstdomain .facebook.com
http_access allow GOOD
http_access deny all
http_access allow localnet
http_access allow localhost
http_access allow all
http_port 8080 intercept
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20 10080
refresh_pattern ^gopher: 1440 0 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20 2880
refresh_pattern . 0 20% 4320
|
i change it to
Quote:
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#which specific IPs do you want to allow to connect and use the proxy? Labeled them as clients here.
#could have entered 10.9.8.0 to specificy all computers between 10.42.0.1 to 10.42.0.255 or added a subnet mask.
acl clients src 10.42.0.15
#specify from which network the clients are from (localnet)
acl localnet src 10.42.0.0/24 # RFC1918 possible internal network
#on which ports do we allow connections using the proxy
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl GOOD dstdomain .google.com
http_access allow GOOD
http_access allow manager localhost clients
http_access deny manager
# Only allow purge requests from localhost
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
# We strongly recommend the following be uncommented to protect innocent web applications running on the proxy server who think the only one who can access services on localhost is a local user
http_access deny to_localhost
http_access allow localnet
http_access allow localhost clients
# And deny all other access to this proxy
http_access allow all
#allow HTTP connections from clients group of IP addresses
http_access allow clients
http_reply_access allow clients localnet
# Squid normally listens to port 3128
http_port 8080
|
and getting this msg. now only facebook is opening and nothing els. if i go to clear cache
root@xvy:/etc/squid3# squid3 -k shutdown
2015/10/12 21:04:01| WARNING: (B) '::/0' is a subnetwork of (A) '::/0'
2015/10/12 21:04:01| WARNING: because of this '::/0' is ignored to keep splay tree searching predictable
2015/10/12 21:04:01| WARNING: You should probably remove '::/0' from the ACL named 'all'