goldlinux

squidGuard.conf

Apr 13th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. # ============================================================
  2. # SquidGuard configuration file
  3. # This file generated automaticly with SquidGuard configurator
  4. # (C)2006 Serg Dvoriancev
  5. # ============================================================
  6.  
  7. logdir /var/squidGuard/log
  8. dbhome /var/db/squidGuard
  9.  
  10. # WorkHours
  11. time WorkHours {
  12. weekly mon 08:00-18:00
  13. weekly tue 08:00-18:00
  14. weekly wed 08:00-18:00
  15. weekly thu 08:00-18:00
  16. weekly fri 08:00-17:00
  17. }
  18.  
  19. #
  20. src WorkTime {
  21. ip 192.168.0.0/24
  22. log block.log
  23. }
  24.  
  25. #
  26. dest FileAccessDeny {
  27. expressionlist FileAccessDeny/expressions
  28. log block.log
  29. }
  30.  
  31. #
  32. dest DomainAccessDeny {
  33. domainlist DomainAccessDeny/domains
  34. log block.log
  35. }
  36.  
  37. #
  38. rew RewriteBase {
  39. [email protected]@bash.im@i
  40. log block.log
  41. }
  42.  
  43. #
  44. rew safesearch {
  45. s@(google\..*/search?.*q=.*)@\1\&safe=active@i
  46. s@(google\..*/images.*q=.*)@\1\&safe=active@i
  47. s@(google\..*/groups.*q=.*)@\1\&safe=active@i
  48. s@(google\..*/news.*q=.*)@\1\&safe=active@i
  49. s@(yandex\..*/yandsearch?.*text=.*)@\1\&fyandex=1@i
  50. s@(search\.yahoo\..*/search.*p=.*)@\1\&vm=r&v=1@i
  51. s@(search\.live\..*/.*q=.*)@\1\&adlt=strict@i
  52. s@(search\.msn\..*/.*q=.*)@\1\&adlt=strict@i
  53. s@(\.bing\..*/.*q=.*)@\1\&adlt=strict@i
  54. log block.log
  55. }
  56.  
  57. #
  58. acl {
  59. #
  60. WorkTime within WorkHours {
  61. pass !DomainAccessDeny all
  62. redirect http://block.mts.ru
  63. log block.log
  64. } else {
  65. pass all
  66. redirect http://block.mts.ru
  67. log block.log
  68. }
  69. #
  70. default {
  71. pass DomainAccessDeny all
  72. redirect http://192.168.0.1:80/sgerror.php?url=blank&msg=&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
  73. log block.log
  74. }
  75. }
Advertisement
Add Comment
Please, Sign In to add comment