LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2005, 02:48 AM   #1
b:z
Member
 
Registered: Mar 2005
Posts: 146

Rep: Reputation: 15
Squid -- how can i deny download during working hours -- please help


Here is short configuration of "squid.conf" file:

Quote:
#----deny download----
acl bad_file url_regex -i "/etc/squid/.badfile"
acl download method GET
#
http_access deny bad_file download
http_access deny bad_file
#
##########
acl localnet src 192.168.1.1-192.168.1.100/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl Safe_ports port 20 21 70 80 110 210 443 8443
acl CONNECT method CONNECT
acl all src 0.0.0.0/0.0.0.0
######
http_access allow localnet
http_access deny !Safe_ports
http_access deny CONNECT
http_access deny all
#
I have two problem with it:

- How can i disable access list " bad_file " after working hours, it means all users in my local network can download with all file types? The working hours is 8:15a.m --- 19:15p.m

- In above access list, i only allow IP range from 192.168.1.1 --to-- 192.168.1.100 can access Internet, however others IP address outsite this range still pass my Squid proxy go Internet. How can i fix this, and allow only specify IP range?

Please help me solve the problems. Thank you very much.
 
Old 05-05-2005, 10:31 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
all you might need is here:

http://www.tldp.org/HOWTO/Bandwidth-Limiting-HOWTO/
 
  


Reply



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
squid always direct and deny from cache cccc Linux - General 1 06-13-2005 01:17 AM
Restricting Download based on total download using Squid,SARG& Webmin jomy Linux - Networking 0 04-27-2005 06:04 AM
Squid Deny Access but... Roach Linux - Software 4 11-23-2004 12:18 PM
how to configured squid to deny LAN client using wingate glenne Linux - Networking 2 06-29-2004 02:35 PM
Squid.conf - how to do customized and stardard access deny message x2000koh Linux - Networking 3 09-04-2002 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:59 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