LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-18-2016, 03:44 AM   #1
Jagdish Dhongade
LQ Newbie
 
Registered: Mar 2016
Location: India, Maharashtra
Posts: 1

Rep: Reputation: Disabled
ubuntu 14.04 Squid3 proxy server did't block websites listed in file


acl AuthenticatedUsers proxy_auth REQUIRED
acl localnet src 192.168.0.0/22 # RFC1918 possible internal network
acl special_client arp "/etc/squid3/spclients"
acl media rep_mime_type video/flv video/x-flv
acl media rep_mime_type -i ^video/
acl media rep_mime_type -i ^video\/
acl media rep_mime_type ^application/vnd.ms.wms-hdr.asfv1
acl media rep_mime_type ^application/x-fcs
acl media rep_mime_type ^application/x-mms-framed
acl media rep_mime_type ^video/x-ms-asf
acl media rep_mime_type ^audio/mpeg
acl media rep_mime_type ^audio/x-scpls
acl media rep_mime_type ^video/x-flv
acl media rep_mime_type ^video/mpeg4
acl media rep_mime_type ms-hdr
acl media rep_mime_type x-fcs
acl mediapr urlpath_regex \.flv(\?.*)?$
acl mediapr urlpath_regex -i \.(avi|mp4|mov|m4v|mkv|flv)(\?.*)?$
acl mediapr urlpath_regex -i \.(mpg|mpeg|avi|mov|flv|wmv|mkv|rmvb)(\?.*)?$
acl SSL_ports port 443 # regex matching on whole URL
acl Safe_ports port 80
acl Safe_ports port 21 # http
acl Safe_ports port 443 # ftp
acl Safe_ports port 70 # https
acl Safe_ports port 210 # gopher
acl Safe_ports port 1025-65535 # wais
acl Safe_ports port 280 # unregistered ports
acl Safe_ports port 488 # http-mgmt
acl Safe_ports port 591 # gss-http
acl Safe_ports port 777 # filemaker
acl CONNECT method CONNECT # multiling http
acl admin src 192.168.0.3
acl bansites url_regex "/etc/squid3/bansite.conf"
http_access allow AuthenticatedUsers
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow mediapr special_client
http_access deny mediapr
http_access allow admin
http_access deny bansites
http_access allow localnet
http_access allow localhost
http_access deny all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Setup Squid3 as Transparent Proxy on Ubuntu Server 12.04 LXer Syndicated Linux News 0 06-10-2012 04:30 AM
LXer: How to Install and Configure Proxy Server with Squid3 on Ubuntu Server 12.04 LTS LXer Syndicated Linux News 0 05-31-2012 10:40 AM
how do i get squid proxy server to block websites using webmin baronobeefdip Linux - Software 3 07-19-2010 10:35 AM
How to Block Websites in Proxy!!!! costam Linux - Security 2 07-02-2010 02:03 AM
How do I setup a mail, proxy and file server running the listed services? ichauya Linux - Newbie 1 02-08-2008 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration