This is a discussion on SQUID ACL Problem within the Linux software forums, part of the Linux Getting Started category; I have problem with squid I have a network of Ip Range 10.120.1.0/24, and i providing Net Access to clients ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
I have problem with squid
I have a network of Ip Range 10.120.1.0/24, and i providing Net Access to clients by SQUID proxy server. Now i want a acl that restrict some of the above IPs (10.120.1.1 - 10.120.1.50) to access some web sites and full access to some IPs (10.120.1.51 - 10.120.1.100). I already created a file of web sites that has to be restrict. That is working well. But question is here that when i am applying this acl list to my squid all the IPs get restrict to access web sites that is in the list. Pl. help me to out of this problem. |
| Sponsored Links | ||
|
|
|
||||
|
I think your ACL is not correct. Especially related to IP address, because above ACL should only allow access to url mentioned in text file. SQUID ACL has one thing the placement of http_access rule should be correct. It is algo is such that if access is not allowed it will deny it or vice-versa. And which results into problem. So paste your complete ACL rule and will correct it out for you.
|
|
|||
|
Defining an Access List
acl PrivateNet src 192.168.0.0/24 192.168.1.0/24 acl specific src 10.120.1.225-10.120.1.254/24 acl restnetwork src 10.120.1.1-10.120.1.224/24 acl deniedsites dstdomain "/usr/local/squid/etc/denied-sites/restriction.acl" http_access allow specific http_access deny restnetwork deniedsites acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews 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 allow manager localhost http_access deny manager http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny all |
|
|||
|
(acl specific src 10.120.1.225-10.120.1.254/24 ) For this range i want to allow full access on any site even on those site which are in restriction.acl
(acl restnetwork src 10.120.1.1-10.120.1.224/24) For this range i want to restrict those web sites which are listed in restriction.acl and rest of these sites this range can surf any web siets. |
|
||||
|
Ok here is correct ACL for you:
Code:
acl all src 0.0.0.0/0.0.0.0 acl PrivateNet src 192.168.0.0/24 192.168.1.0/24 acl specific src 10.120.1.225-10.120.1.254/24 acl restnetwork src 10.120.1.1-10.120.1.224/24 acl deniedsites dstdomain "/usr/local/squid/etc/denied-sites/restriction.acl" http_access allow specific http_access allow restnetwork !deniedsites acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews 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 allow manager localhost http_access deny manager http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny all http_access allow restnetwork !deniedsites It means allow them to browse anything except site specified in deniedsites ACL. This is good to block illegal or pron site. ! act as not. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Squid configuration problem | jhn_daz@yahoo.com | Networking, Firewalls and Security | 1 | 06-29-2007 02:58 AM |
| Squid Problem | B!n@ry | Linux software | 3 | 04-15-2007 04:36 PM |
| problem with Squid | puppen | Linux software | 4 | 01-04-2007 03:45 PM |
| squid problem | dev_dks | Linux software | 1 | 08-01-2006 02:42 PM |
| Problem with squid | LRC | Linux software | 17 | 06-10-2006 08:52 PM |