suggest the modfcn in squid.conf for blocking websites with optimize performance
suggest the modification for blocking websites with optimize performance..
here is my squid.conf >>>> #--------------------------------------------------- # Recommended minimum configuration: #-------------------------------------------------- acl manager proto cache_object acl localhost src 127.0.0.1/32 acl localhost src ::1/128 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl to_localhost dst ::1/128 #-------------------------------------------------- # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed #------------------------------------------------- #acl_our_networks src 169.254.100.200/255.255.0.0 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl SSL_ports port 443 acl SSL_ports port 995 acl SSL_ports port 587 acl SSL_ports port 110 acl SSL_ports port 25 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 65535 # unregistered port 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 110 # pop3-imap-iips acl Safe_ports port 25 # smtp-iips acl CONNECT method CONNECT acl lanhome src 169.254.0.0/255.255.0.0 acl blockeddomain dstdomain "/etc/squid/blocked.domains.acl acl blockfiles urlpath_regex "/etc/squid/blocks.files.acl" acl blockregexurl url_regex -i apps.facebook http_access deny blockregexurl #------------------------------------------- acl blockregexurl url_regex -i orkut.com http_access deny blockregexurl #------------------------------------------ acl blockregexurl url_regex -i porn http_access deny blockregexurl #----------------------------------------- acl blockregexurl url_regex -i sex http_access deny blockregexurl #------------------------------------------ acl blockregexurl url_regex -i xxx myspace.com http_access deny blockregexurl #----------------------------------------- #acl blockregexurl url_regex -i adult.* acl youtube dstdomain .youtube.com acl blockregexurl url_regex -i youtube.com http_access deny blockregexurl #http_access allow special_client blockregexurl #http_access allow special_client auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd auth_param basic children 5 auth_param basic realm Squid proxy-caching IIPSPROXY server acl ncsa_user proxy_auth REQUIRED http_access allow ncsa_user http_access allow localhost #http_access allow our_networks #http_access deny CONNECT youtube !special_client #http_access deny youtube !special_client http_access allow lanhome # Recommended minimum Access Permission configuration: # Only allow cachemgr access from localhost http_access allow manager localhost http_access deny manager http_access deny blockeddomain # Deny requests to certain unsafe ports http_access deny !Safe_ports # Deny CONNECT to other than secure 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 # # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow localnet http_access allow localhost http_access allow lanhome # And finally deny all other access to this proxy http_access deny all # Squid normally listens to port 3128 http_port 8080 # We recommend you to use at least the following line. hierarchy_stoplist cgi-bin ? # Uncomment and adjust the following to add a disk cache directory. #cache_dir ufs /var/spool/squid 100 16 256 # Leave coredumps in the first cache dir coredump_dir /var/spool/squid # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 Thanks in advanced ..! |
Quote:
|
Quote:
squid 3.1 4gb of RAM with i5 processor, 320Gb hdd drive, no other application is installed on redhatserver other than squid proxy number of users : 300+ bandwidth : 100Mb orkut,youtube, facebookgames, many porn sites, sites with adult contains, torrents, downloading of exe,zip more than 100mb need to be block for all users except some admin users. browsers mostly used at client side : IE,Crome, firefox..! is there any tool by which we can monitor the traffic graphically..! |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 11:36 PM. |