Dansguardian Multiple time limit blocks
-
I am running Pfsense 2.0.3 with squid 2.79 stable and dansguardian 2.12 perfectly.
I want to allow bbc.co.uk and cnn.com from 10:00 to 12:00 0123456
and intel.com and amd.com between 18:00 to 20:00 0123456
How do I block all 4 websites for the times other than given and give access at the time given
In my configuration only one time blocking slot works
How do I achieve multiple time blocking with dansguardian in Pfsense 2.0.3
Thanks in anticipation
cirkit -
UP
-
Never played with doing it in DG… I believe it should be possible although I'm not sure about the "multiple ranges". Another option would be to do it with firewall rules.
-
I've never tested it too.
-
tried it today…it works
-
-
Step 1. Go to Site Lists under ACLs in dansguardian
Step 2. Edit the Default profile….Under banned.....type all the sites which you want time based access...Site1.com,Site2.org,Site3.net,Site4.com,Site5.org,Site6.info
Step 3. Create a new profile, example Time1.
Step 4. Under Exception lists of Time1 type the list of sites you want to grant access to
For eg you want to grant access to Site1.com, Site2.org & Site2.net from 17:00 hrs to 18:00 Mon-sat
Hence Under Exception list you will add
#time: 17 00 18 00 012345
Site1.com
Site2.org
Site3.netStep 5. Create another profile Time2....type the list of sites you want to grant access to
For eg you want to grant access to Site4.com, site5.org, Site6.info from 09:00 to 13:00 Mon-Fri
hence Under Exception list you will add
#time: 09 00 13 00 01234
Site4.com
Site5.org
Site6.infoStep 7. Include the paths of the profiles Time1 & Time2 under the exceptionlists of Default Profile
eg..under Exceptionlist of Default profile it should be
.Include
.IncludeAdding these two lines instructs dansguardian to parse these files one by one
Similarly any number of banned, exception & greylists with different access times can be created.