SQUID Server: Blocking FTP through TIME ACL

Syed Khalid Ali Khalid_Khursheed at hotmail.com
Thu Sep 14 17:33:27 UTC 2006


Hello to all

I need to block the FTP during 5pm to 3am. However the access-list isn't working as exepected. Another thing is the cache. I have 256mb ram so the cache should be around 80mb?

I have attached the config file
Note: # denotes COMMENTS
#SQUID.CONF
 http_port 8080

visible_hostname THESERVER

acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl cable001 src 10.0.0.0/255.255.255.0
acl allowed_ports port 80 443 563 1025-65535
acl ftp_allowed_time time 03:00 - 17:00
acl ftp_port 20 21

http_access allow localhost
http_access allow cable001
http_access deny !allowed_ports
# the following line will allow ftp downloads from 3am to 5pm
http_access deny ftp_port !ftp_allowed_time
http_access deny all

cache_effective_user #### #####

cache_access_log /usr/local/squid/logs/access.log
cache_log /usr/local/squid/logs/cache.log

cache_dir ufs /usr/local/squid/cache0 2000 32 512
cache_dir ufs /usr/local/squid/cache1 2000 32 512

cache_mem 40 MB

cache_mgr root at localhost

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060914/51f8210e/attachment.html>


More information about the ubuntu-users mailing list