Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    SquidGuard Time Restrictions not working ?

    Scheduled Pinned Locked Moved pfSense Packages
    2 Posts 1 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Guldil
      last edited by

      Hy,

      On my fresh 2.1 i386 box i install squidGuard and Squid.

      Filtering in non transparent mode is working.

      But it's look like the time restriction are not applied.
      I create a small list for sites denied in working time.

      Exemple :

      # ============================================================
      # SquidGuard configuration file
      # This file generated automaticly with SquidGuard configurator
      # (C)2006 Serg Dvoriancev
      # email: dv_serg@mail.ru
      # ============================================================
      
      logdir /var/squidGuard/log
      dbhome /var/db/squidGuard
      
      # 
      time horaire-bureau {
      	weekly * 08:30-12:30
      	weekly * 14:30-20:00
      }
      [...]
      acl  {
      	# 
      	sites-interdits  within horaire-bureau {
      		pass !in-addr !sites-interdits !blk_BL_porn !blk_BL_socialnet all
      		rewrite safesearch
      		log block.log
      		} else {
      		pass !in-addr !blk_BL_porn sites-interdits blk_BL_socialnet all
      		redirect http://192.168.10.10:80/sgerror.php?url=403%20&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      		rewrite safesearch
      		log block.log
      	}
      	# 
      	default  {
      		pass !in-addr none
      		redirect http://192.168.10.10:80/sgerror.php?url=403%20&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
      		rewrite safesearch
      		log block.log
      	}
      }
      

      Sites are still blocked at 20:15.

      If i hit "Apply" in General Settings, sites are allowed and "porn" still blocked (what i want).

      I search on the forum, i found some people with same probleme but with no response…

      Can someone help us ?

      Thanks

      Guldil

      1 Reply Last reply Reply Quote 0
      • G
        Guldil
        last edited by

        I found this topic http://forum.pfsense.org/index.php?topic=59671.0 and i execute```
        /usr/local/sbin/squid -k reconfigure

        
        Time restriction are now applied and it's working as expected : i created some schedule 09:00-09:10, 09:20-09:30,  09:40-09:50 transitions are working.
        
        a bit strange right ?
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.