nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

squid help pleaase

This is a discussion on squid help pleaase within the Getting started tutorials forums, part of the Linux Getting Started category; squid help please. i've two networks. On one network i want to allow only particular sites. On 2nd network i ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Getting started tutorials

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-14-2007, 09:29 PM
Junior Member
User
 
Join Date: Aug 2007
My distro: redhat
Posts: 3
Rep Power: 0
vitaminme is on a distinguished road
Default squid help pleaase

squid help please.
i've two networks. On one network i want to allow only particular sites.
On 2nd network i want to allow all sites. how do i do that? Only need help with acls order. Thanks


will this work

#Recommended minimum configuration:
acl geek scr 172.16.1.1
acl smokers src 192.168.0.0/24
acl walled_class src 172.16.0.0/24
acl allowedSites url_regex -i "/etc/squid/allowedsites" # define allowed
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
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








# And finally deny all other access to this proxy
http_access allow geek
http_access allow smokers # allow all to smokers
http_access allow walled_class allowedsites # allow only
http_access deny walled_class !allowedsites # deny everything other than allowed sites
http_access allow localhost
http_access deny all

Last edited by vitaminme; 11-16-2007 at 09:07 AM.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-11-2007, 01:38 PM
Junior Member
User
 
Join Date: Dec 2007
My distro: Debian
Posts: 2
Rep Power: 0
malan_in is on a distinguished road
Default squid

acl List1 url_regex cooking
acl list2 url_regex recipe
acl newclients src 172.16.5.0/24
acl oldclients src 192.168.1.0/24
http_access deny List1 newclients
http_access deny List2 oldclients
http_access allow newclients
http_access allow oldclients
http_access deny all

Try this and send me the feedback
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 04:55 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36