aquaballoon

squid.conf

Jul 12th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. ###################  Setting #########################
  2. http_access allow localhost
  3.  
  4. http_port 8888 transparent
  5.  
  6. visible_hostname hureeict.edu.mn
  7.  
  8. ## Unlimited Access Users ##
  9. #acl BIGBOSS src 192.168.15.19
  10. #http_access allow BIGBOSS
  11.  
  12. ## Time Settings ##
  13. acl biz_hours time MTWHF 09:00-17:00
  14.  
  15. ## Websites/Download/Ports block ##
  16.  
  17. acl website_block dstdom_regex facebook.com tetrisfriends.com apps.facebook.com
  18. http_access deny website_block biz_hours
  19.  
  20. acl download_block urlpath_regex torrent
  21. http_access deny download_block biz_hours
  22.  
  23. acl ports_block port 6969 6881-6899
  24. http_access deny ports_block biz_hours
  25.  
  26. ## Access Subnets ##
  27. acl lan_15 src 192.168.3.0/24 192.168.4.0/24 192.168.5.0/24 192.168.6.0/24 192.168.7.0/24 192.168.8.0/24
  28. http_access allow lan_15
  29. # http_access allow lan_15 biz_hours
  30. # http_access deny all
  31. # http_access deny !Safe_ports
  32.  
  33. ## Delay Pools - 100kb/s ##
  34. delay_pools 1
  35. delay_class 1 2
  36. #delay_parameters 1 100000/100000 100000/100000
  37. delay_parameters 1 -1/-1 84000/84000
  38. delay_access 1 allow lan_15 biz_hours
  39. #delay_access 1 allow lan_15
  40. #delay_access 1 deny lan_15 !biz_hours
  41. #delay_access 1 deny lan_15 all
  42.  
  43. ## Cache 20GB ##
  44. cache_dir ufs /var/spool/squid 20000 16 256
  45.  
  46. ################# END #####################
Advertisement
Add Comment
Please, Sign In to add comment